(function(n){function i(i){for(var a,t,u=i[0],d=i[1],p=i[2],s=0,c=[];s'),i=new RegExp("section","g"),n=n.replace(i,"div"),i=new RegExp("↵","g"),n=n.replace(i,"
"),n},o.default.prototype.getUrlPara=function(n){var i=n.split("?"),e=i[1];return!!e&&e.split("&")},o.default.prototype.idChinaName=function(n){return/^[\u4E00-\u9FA5]{2,4}$/.test(n)},o.default.prototype.idCardNumber=function(n){return/^\d{17}(\d{1}|[X|x])$/.test(n)},o.default.prototype.IsTel=function(n){return/^1\d{10}$/.test(n)},o.default.prototype.IsTelMacau=function(n){return/^\d{8}$/.test(n)},o.default.prototype.IsCode=function(n){return/^\d{6}$/.test(n)},o.default.prototype.IsMail=function(n){return/^\w+@[a-z0-9]+\.[a-z]+$/i.test(n)},o.default.prototype.IsNumber=function(n){return/^[0-9]+.?[0-9]*$/.test(n)},o.default.prototype.showImg=function(n){if(n)return-1!=n.indexOf("https://")||-1!=n.indexOf("http://")?n:"https://guide.sz-trip.com"+n},o.default.prototype.getLocation=function(){uni.startLocationUpdate({success:function(n){uni.onLocationChange((function(n){uni.setStorageSync("location",{lat:n.latitude,lon:n.longitude})}))}})},o.default.prototype.getHeadImg=function(n){return o.default.prototype.Post({type:n},"/api/public_service/getKumgangHeadImgList").then((function(n){return n.data[0].image}))},o.default.prototype.gotoPath=function(n){uni.navigateTo({url:n})},o.default.prototype.goBack=function(){console.log(getCurrentPages());var n=getCurrentPages(),i=n[n.length-1];"subPackages/techan/techanList"!=i.route&&getCurrentPages().length>1?uni.navigateBack({}):uni.switchTab({url:"/pages/index/index"})},o.default.prototype.openLocation=function(n,i){uni.openLocation({latitude:Number(n),longitude:Number(i),success:function(){console.log("success")}})},o.default.prototype.clickPhone=function(n){uni.makePhoneCall({phoneNumber:n})},o.default.prototype.ShowDateDay=function(n){var i="";switch(n){case 0:i="周日";break;case 1:i="周一";break;case 2:i="周二";break;case 3:i="周三";break;case 4:i="周四";break;case 5:i="周五";break;case 6:i="周六";break}return i},Date.prototype.Format=function(n){var i={"Y+":this.getFullYear(),"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var e in/(y+)/.test(n)&&(n=n.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),i)new RegExp("("+e+")").test(n)&&(n=n.replace(RegExp.$1,1==RegExp.$1.length?i[e]:("00"+i[e]).substr((""+i[e]).length)));return n},o.default.prototype.gotoDetailByTypeId=function(n,i){console.log(n,i),1==i?uni.navigateTo({url:"/subPackages/line/detail?id="+n}):uni.navigateTo({url:"/subPackages/daoyou/detail?id="+n})}},f848:function(n,i,e){"use strict";var a=e("3d2d"),o=e.n(a);o.a}});