index.0e223a02.js 26 KB

1
  1. (function(e){function n(n){for(var i,r,c=n[0],s=n[1],d=n[2],l=0,p=[];l<c.length;l++)r=c[l],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&p.push(o[r][0]),o[r]=0;for(i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i]);u&&u(n);while(p.length)p.shift()();return a.push.apply(a,d||[]),t()}function t(){for(var e,n=0;n<a.length;n++){for(var t=a[n],i=!0,c=1;c<t.length;c++){var s=t[c];0!==o[s]&&(i=!1)}i&&(a.splice(n--,1),e=r(r.s=t[0]))}return e}var i={},o={index:0},a=[];function r(n){if(i[n])return i[n].exports;var t=i[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.e=function(e){var n=[],t=o[e];if(0!==t)if(t)n.push(t[2]);else{var i=new Promise((function(n,i){t=o[e]=[n,i]}));n.push(t[2]=i);var a,c=document.createElement("script");c.charset="utf-8",c.timeout=120,r.nc&&c.setAttribute("nonce",r.nc),c.src=function(e){return r.p+"static/js/"+({"pages-index-add":"pages-index-add","pages-index-detail":"pages-index-detail","pages-index-index":"pages-index-index","pages-index-wechat":"pages-index-wechat"}[e]||e)+"."+{"pages-index-add":"89a9bacf","pages-index-detail":"f20c4688","pages-index-index":"f9d0baff","pages-index-wechat":"b22a8163"}[e]+".js"}(e);var s=new Error;a=function(n){c.onerror=c.onload=null,clearTimeout(d);var t=o[e];if(0!==t){if(t){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,t[1](s)}o[e]=void 0}};var d=setTimeout((function(){a({type:"timeout",target:c})}),12e4);c.onerror=c.onload=a,document.head.appendChild(c)}return Promise.all(n)},r.m=e,r.c=i,r.d=function(e,n,t){r.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,n){if(1&n&&(e=r(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(r.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)r.d(t,i,function(n){return e[n]}.bind(null,i));return t},r.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(n,"a",n),n},r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},r.p="/wap/visitor/",r.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],s=c.push.bind(c);c.push=n,c=c.slice();for(var d=0;d<c.length;d++)n(c[d]);var u=s;a.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("820c")},"0b32":function(e,n,t){"use strict";t.r(n);var i=t("b59c"),o=t.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);n["default"]=o.a},"7d8a":function(e,n,t){var i=t("24fb");n=i(!1),n.push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*每个页面公共css */uni-page-body{background-color:#f3f3f3}body.?%PAGE?%{background-color:#f3f3f3}.no-data{width:100%;height:auto;margin:0 auto;margin-top:20%;text-align:center}.no-data uni-image{width:%?430?%;height:%?316?%}.no-data .no-data-text{color:#c5c8d9;font-size:%?25?%}",""]),e.exports=n},"80cf":function(e,n,t){"use strict";(function(e){t("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,t("ac1f"),t("466d");var i=t("e94f"),o={isWechat:function(){var e=window.navigator.userAgent.toLowerCase();return"micromessenger"==e.match(/micromessenger/i)},initJssdk:function(n){var t=encodeURIComponent(window.location.href.split("#")[0]);uni.request({url:"https://mdyg.sdmingde.cn/api/h5/Oauth/jssdk",data:{url:t},method:"POST",header:{"content-type":"application/x-www-form-urlencoded"},success:function(t){e.log(t),0==t.data.code&&(i.config({debug:t.data.data.debug,appId:t.data.data.appid,timestamp:t.data.data.timestamp,nonceStr:t.data.data.noncestr,signature:t.data.data.signature,jsApiList:t.data.data.jsapilist}),n&&n(t.data))},fail:function(n){e.log(n)}})},location:function(n){this.isWechat()?this.initJssdk((function(t){i.ready((function(){e.info("定位ready"),i.getLocation({type:"gcj02",success:function(t){e.log(t),n(t)},fail:function(n){e.log(n)}})}))})):e.log("不是微信客户端")}};n.default=o}).call(this,t("5a52")["default"])},"820c":function(e,n,t){"use strict";var i=t("4ea4").default,o=i(t("5530"));t("e260"),t("e6cf"),t("cca6"),t("a79d"),t("f5cb"),t("06b9");var a=i(t("e143")),r=i(t("aa94")),c=i(t("80cf"));c.default.isWechat()&&(a.default.prototype.$wechat=c.default),a.default.config.productionTip=!1,r.default.mpType="app";var s=new a.default((0,o.default)({},r.default));s.$mount()},"96e7":function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return o})),t.d(n,"a",(function(){}));var i=function(){var e=this.$createElement,n=this._self._c||e;return n("App",{attrs:{keepAliveInclude:this.keepAliveInclude}})},o=[]},aa94:function(e,n,t){"use strict";t.r(n);var i=t("96e7"),o=t("0b32");for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);t("f691");var r=t("f0c5"),c=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=c.exports},b59c:function(e,n,t){"use strict";(function(e){t("7a82"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,t("ac1f"),t("5319"),t("4d63"),t("c607"),t("2c3e"),t("25f0");var i={globalData:{serverUrl:"https://mdyg.sdmingde.cn/api/h5/",uploadServerUrl:"https://mdyg.sdmingde.cn/api/h5/",appId:"wx2f0195c58ad8c3ec",redirectUri:"https://mdyg.sdmingde.cn/wap/visitor/#/pages/index/wechat",storagePre:"visit_",host:"https://mdyg.sdmingde.cn/wap/visitor/",userinfo:{}},onLaunch:function(){e.log("App Launch");var n=getApp(),t=uni.getStorageSync(n.globalData.storagePre+"token");t&&(n.globalData.userinfo.token=t,n.globalData.userinfo.userId=uni.getStorageSync(n.globalData.storagePre+"userId"))},onShow:function(){e.log("App Show")},onHide:function(){e.log("App Hide")},methods:{getUrlCode:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},checkLogin:function(){var e=getApp(),n=e.globalData.userinfo.token;if(!n){var t=getCurrentPages(),i=t[t.length-1].route,o=t[t.length-1].options,a=o.orgId?o.orgId:0,r=o.type?o.type:0;"pages/index/add"==i&&a>0?uni.reLaunch({url:"/pages/index/wechat?state="+a+"_"+r}):uni.reLaunch({url:"/pages/index/wechat"})}},checkCode:function(e){if(-100==e){uni.showToast({title:"登录超时,请重新登录",icon:"none",duration:2e3});var n=getApp();return uni.removeStorageSync(n.globalData.storagePre+"token"),uni.removeStorageSync(n.globalData.storagePre+"userId"),setTimeout((function(){uni.reLaunch({url:"/pages/index/wechat"})}),2e3),!1}return!0},ajax:function(e){if(e.type)n=e.type;else var n="POST";if(e.apiname)t=e.apiname;else var t="1";if(e.data)i=e.data;else var i=[];var o=getApp(),a=o.globalData.userinfo.token,r=o.globalData.userinfo.userId;if(!a||void 0==a)return uni.showToast({title:"未登录",icon:"none",duration:2e3}),uni.removeStorageSync(o.globalData.storagePre+"token"),uni.removeStorageSync(o.globalData.storagePre+"userId"),setTimeout((function(){uni.reLaunch({url:"/pages/index/wechat"})}),2e3),!1;i["token"]=a,i["userId"]=r,uni.showLoading({title:"加载中",mask:!0}),uni.request({url:e.url,data:i,method:n,header:{"content-type":"application/x-www-form-urlencoded"},success:function(e){uni.hideLoading(),uni.stopPullDownRefresh();var n=o.checkCode(e.data.code);if(0==n)return!1;0==e.data.code?o.ajaxReadyCallback&&(e.data["apiname"]=t,o.ajaxReadyCallback(e)):uni.showToast({title:e.data.message,icon:"none",duration:2e3})},fail:function(e){uni.hideLoading(),uni.showToast({title:"请求失败",icon:"none",duration:2e3})}})}}};n.default=i}).call(this,t("5a52")["default"])},e94f:function(e,n,t){(function(i){var o,a=t("9523").default;t("ac1f"),t("466d"),t("c975"),t("14d9"),t("5319"),t("e9c4"),function(r,c){o=function(){return function(e,n){if(!e.jWeixin){var t,o,r={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},c=function(){var e={};for(var n in r)e[r[n]]=n;return e}(),s=e.document,d=s.title,u=navigator.userAgent.toLowerCase(),l=navigator.platform.toLowerCase(),p=!(!l.match("mac")&&!l.match("win")),f=-1!=u.indexOf("wxdebugger"),g=-1!=u.indexOf("micromessenger"),m=-1!=u.indexOf("android"),h=-1!=u.indexOf("iphone")||-1!=u.indexOf("ipad"),_=(o=u.match(/micromessenger\/(\d+\.\d+\.\d+)/)||u.match(/micromessenger\/(\d+\.\d+)/))?o[1]:"",y={initStartTime:E(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},v={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:h?1:m?2:-1,clientVersion:_,url:encodeURIComponent(location.href)},w={},S={_completes:[]},x={state:0,data:{}};N((function(){y.initEndTime=E()}));var b=!1,C=[],k=(t={config:function(n){B("config",w=n);var t=!1!==w.check;N((function(){if(t)P(r.config,{verifyJsApiList:O(w.jsApiList),verifyOpenTagList:O(w.openTagList)},function(){S._complete=function(e){y.preVerifyEndTime=E(),x.state=1,x.data=e},S.success=function(e){v.isPreVerifyOk=0},S.fail=function(e){S._fail?S._fail(e):x.state=-1};var e=S._completes;return e.push((function(){!function(){if(!(p||f||w.debug||_<"6.0.2"||v.systemType<0)){var e=new Image;v.appId=w.appId,v.initTime=y.initEndTime-y.initStartTime,v.preVerifyTime=y.preVerifyEndTime-y.preVerifyStartTime,k.getNetworkType({isInnerInvoke:!0,success:function(n){v.networkType=n.networkType;var t="https://open.weixin.qq.com/sdk/report?v="+v.version+"&o="+v.isPreVerifyOk+"&s="+v.systemType+"&c="+v.clientVersion+"&a="+v.appId+"&n="+v.networkType+"&i="+v.initTime+"&p="+v.preVerifyTime+"&u="+v.url;e.src=t}})}}()})),S.complete=function(n){for(var t=0,i=e.length;t<i;++t)e[t]();S._completes=[]},S}()),y.preVerifyStartTime=E();else{x.state=1;for(var e=S._completes,n=0,i=e.length;n<i;++n)e[n]();S._completes=[]}})),k.invoke||(k.invoke=function(n,t,i){e.WeixinJSBridge&&WeixinJSBridge.invoke(n,M(t),i)},k.on=function(n,t){e.WeixinJSBridge&&WeixinJSBridge.on(n,t)})},ready:function(e){0!=x.state?e():(S._completes.push(e),!g&&w.debug&&e())},error:function(e){_<"6.0.2"||(-1==x.state?e(x.data):S._fail=e)},checkJsApi:function(e){P("checkJsApi",{jsApiList:O(e.jsApiList)},(e._complete=function(e){if(m){var n=e.checkResult;n&&(e.checkResult=JSON.parse(n))}e=function(e){var n=e.checkResult;for(var t in n){var i=c[t];i&&(n[i]=n[t],delete n[t])}return e}(e)},e))},onMenuShareTimeline:function(e){A(r.onMenuShareTimeline,{complete:function(){P("shareTimeline",{title:e.title||d,desc:e.title||d,img_url:e.imgUrl||"",link:e.link||location.href,type:e.type||"link",data_url:e.dataUrl||""},e)}},e)},onMenuShareAppMessage:function(e){A(r.onMenuShareAppMessage,{complete:function(n){"favorite"===n.scene?P("sendAppMessage",{title:e.title||d,desc:e.desc||"",link:e.link||location.href,img_url:e.imgUrl||"",type:e.type||"link",data_url:e.dataUrl||""}):P("sendAppMessage",{title:e.title||d,desc:e.desc||"",link:e.link||location.href,img_url:e.imgUrl||"",type:e.type||"link",data_url:e.dataUrl||""},e)}},e)},onMenuShareQQ:function(e){A(r.onMenuShareQQ,{complete:function(){P("shareQQ",{title:e.title||d,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareWeibo:function(e){A(r.onMenuShareWeibo,{complete:function(){P("shareWeiboApp",{title:e.title||d,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},onMenuShareQZone:function(e){A(r.onMenuShareQZone,{complete:function(){P("shareQZone",{title:e.title||d,desc:e.desc||"",img_url:e.imgUrl||"",link:e.link||location.href},e)}},e)},updateTimelineShareData:function(e){P("updateTimelineShareData",{title:e.title,link:e.link,imgUrl:e.imgUrl},e)},updateAppMessageShareData:function(e){P("updateAppMessageShareData",{title:e.title,desc:e.desc,link:e.link,imgUrl:e.imgUrl},e)},startRecord:function(e){P("startRecord",{},e)},stopRecord:function(e){P("stopRecord",{},e)},onVoiceRecordEnd:function(e){A("onVoiceRecordEnd",e)},playVoice:function(e){P("playVoice",{localId:e.localId},e)},pauseVoice:function(e){P("pauseVoice",{localId:e.localId},e)},stopVoice:function(e){P("stopVoice",{localId:e.localId},e)},onVoicePlayEnd:function(e){A("onVoicePlayEnd",e)},uploadVoice:function(e){P("uploadVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadVoice:function(e){P("downloadVoice",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},translateVoice:function(e){P("translateVoice",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},chooseImage:function(e){P("chooseImage",{scene:"1|2",count:e.count||9,sizeType:e.sizeType||["original","compressed"],sourceType:e.sourceType||["album","camera"]},(e._complete=function(e){if(m){var n=e.localIds;try{n&&(e.localIds=JSON.parse(n))}catch(e){}}},e))},getLocation:function(e){},previewImage:function(e){P(r.previewImage,{current:e.current,urls:e.urls},e)},uploadImage:function(e){P("uploadImage",{localId:e.localId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},downloadImage:function(e){P("downloadImage",{serverId:e.serverId,isShowProgressTips:0==e.isShowProgressTips?0:1},e)},getLocalImgData:function(e){!1===b?(b=!0,P("getLocalImgData",{localId:e.localId},(e._complete=function(e){if(b=!1,0<C.length){var n=C.shift();wx.getLocalImgData(n)}},e))):C.push(e)},getNetworkType:function(e){P("getNetworkType",{},(e._complete=function(e){e=function(e){var n=e.errMsg;e.errMsg="getNetworkType:ok";var t=e.subtype;if(delete e.subtype,t)e.networkType=t;else{var i=n.indexOf(":"),o=n.substring(i+1);switch(o){case"wifi":case"edge":case"wwan":e.networkType=o;break;default:e.errMsg="getNetworkType:fail"}}return e}(e)},e))},openLocation:function(e){P("openLocation",{latitude:e.latitude,longitude:e.longitude,name:e.name||"",address:e.address||"",scale:e.scale||28,infoUrl:e.infoUrl||""},e)}},a(t,"getLocation",(function(e){P(r.getLocation,{type:(e=e||{}).type||"wgs84"},(e._complete=function(e){delete e.type},e))})),a(t,"hideOptionMenu",(function(e){P("hideOptionMenu",{},e)})),a(t,"showOptionMenu",(function(e){P("showOptionMenu",{},e)})),a(t,"closeWindow",(function(e){P("closeWindow",{},e=e||{})})),a(t,"hideMenuItems",(function(e){P("hideMenuItems",{menuList:e.menuList},e)})),a(t,"showMenuItems",(function(e){P("showMenuItems",{menuList:e.menuList},e)})),a(t,"hideAllNonBaseMenuItem",(function(e){P("hideAllNonBaseMenuItem",{},e)})),a(t,"showAllNonBaseMenuItem",(function(e){P("showAllNonBaseMenuItem",{},e)})),a(t,"scanQRCode",(function(e){P("scanQRCode",{needResult:(e=e||{}).needResult||0,scanType:e.scanType||["qrCode","barCode"]},(e._complete=function(e){if(h){var n=e.resultStr;if(n){var t=JSON.parse(n);e.resultStr=t&&t.scan_code&&t.scan_code.scan_result}}},e))})),a(t,"openAddress",(function(e){P(r.openAddress,{},(e._complete=function(e){e=function(e){return e.postalCode=e.addressPostalCode,delete e.addressPostalCode,e.provinceName=e.proviceFirstStageName,delete e.proviceFirstStageName,e.cityName=e.addressCitySecondStageName,delete e.addressCitySecondStageName,e.countryName=e.addressCountiesThirdStageName,delete e.addressCountiesThirdStageName,e.detailInfo=e.addressDetailInfo,delete e.addressDetailInfo,e}(e)},e))})),a(t,"openProductSpecificView",(function(e){P(r.openProductSpecificView,{pid:e.productId,view_type:e.viewType||0,ext_info:e.extInfo},e)})),a(t,"addCard",(function(e){for(var n=e.cardList,t=[],i=0,o=n.length;i<o;++i){var a=n[i],c={card_id:a.cardId,card_ext:a.cardExt};t.push(c)}P(r.addCard,{card_list:t},(e._complete=function(e){var n=e.card_list;if(n){for(var t=0,i=(n=JSON.parse(n)).length;t<i;++t){var o=n[t];o.cardId=o.card_id,o.cardExt=o.card_ext,o.isSuccess=!!o.is_succ,delete o.card_id,delete o.card_ext,delete o.is_succ}e.cardList=n,delete e.card_list}},e))})),a(t,"chooseCard",(function(e){P("chooseCard",{app_id:w.appId,location_id:e.shopId||"",sign_type:e.signType||"SHA1",card_id:e.cardId||"",card_type:e.cardType||"",card_sign:e.cardSign,time_stamp:e.timestamp+"",nonce_str:e.nonceStr},(e._complete=function(e){e.cardList=e.choose_card_info,delete e.choose_card_info},e))})),a(t,"openCard",(function(e){for(var n=e.cardList,t=[],i=0,o=n.length;i<o;++i){var a=n[i],c={card_id:a.cardId,code:a.code};t.push(c)}P(r.openCard,{card_list:t},e)})),a(t,"consumeAndShareCard",(function(e){P(r.consumeAndShareCard,{consumedCardId:e.cardId,consumedCode:e.code},e)})),a(t,"chooseWXPay",(function(e){P(r.chooseWXPay,V(e),e)})),a(t,"openEnterpriseRedPacket",(function(e){P(r.openEnterpriseRedPacket,V(e),e)})),a(t,"startSearchBeacons",(function(e){P(r.startSearchBeacons,{ticket:e.ticket},e)})),a(t,"stopSearchBeacons",(function(e){P(r.stopSearchBeacons,{},e)})),a(t,"onSearchBeacons",(function(e){A(r.onSearchBeacons,e)})),a(t,"openEnterpriseChat",(function(e){P("openEnterpriseChat",{useridlist:e.userIds,chatname:e.groupName},e)})),a(t,"launchMiniProgram",(function(e){P("launchMiniProgram",{targetAppId:e.targetAppId,path:function(e){if("string"==typeof e&&0<e.length){var n=e.split("?")[0],t=e.split("?")[1];return n+=".html",void 0!==t?n+"?"+t:n}}(e.path),envVersion:e.envVersion},e)})),a(t,"openBusinessView",(function(e){P("openBusinessView",{businessType:e.businessType,queryString:e.queryString||"",envVersion:e.envVersion},(e._complete=function(e){if(m){var n=e.extraData;if(n)try{e.extraData=JSON.parse(n)}catch(n){e.extraData={}}}},e))})),a(t,"miniProgram",{navigateBack:function(e){e=e||{},N((function(){P("invokeMiniProgramAPI",{name:"navigateBack",arg:{delta:e.delta||1}},e)}))},navigateTo:function(e){N((function(){P("invokeMiniProgramAPI",{name:"navigateTo",arg:{url:e.url}},e)}))},redirectTo:function(e){N((function(){P("invokeMiniProgramAPI",{name:"redirectTo",arg:{url:e.url}},e)}))},switchTab:function(e){N((function(){P("invokeMiniProgramAPI",{name:"switchTab",arg:{url:e.url}},e)}))},reLaunch:function(e){N((function(){P("invokeMiniProgramAPI",{name:"reLaunch",arg:{url:e.url}},e)}))},postMessage:function(e){N((function(){P("invokeMiniProgramAPI",{name:"postMessage",arg:e.data||{}},e)}))},getEnv:function(n){N((function(){n({miniprogram:"miniprogram"===e.__wxjs_environment})}))}}),t),I=1,T={};return s.addEventListener("error",(function(e){if(!m){var n=e.target,t=n.tagName,i=n.src;if(("IMG"==t||"VIDEO"==t||"AUDIO"==t||"SOURCE"==t)&&-1!=i.indexOf("wxlocalresource://")){e.preventDefault(),e.stopPropagation();var o=n["wx-id"];if(o||(o=I++,n["wx-id"]=o),T[o])return;T[o]=!0,wx.ready((function(){wx.getLocalImgData({localId:i,success:function(e){n.src=e.localData}})}))}}}),!0),s.addEventListener("load",(function(e){if(!m){var n=e.target,t=n.tagName;if(n.src,"IMG"==t||"VIDEO"==t||"AUDIO"==t||"SOURCE"==t){var i=n["wx-id"];i&&(T[i]=!1)}}}),!0),n&&(e.wx=e.jWeixin=k),k}function P(n,t,i){e.WeixinJSBridge?WeixinJSBridge.invoke(n,M(t),(function(e){L(n,e,i)})):B(n,i)}function A(n,t,i){e.WeixinJSBridge?WeixinJSBridge.on(n,(function(e){i&&i.trigger&&i.trigger(e),L(n,e,t)})):B(n,i||t)}function M(e){return(e=e||{}).appId=w.appId,e.verifyAppId=w.appId,e.verifySignType="sha1",e.verifyTimestamp=w.timestamp+"",e.verifyNonceStr=w.nonceStr,e.verifySignature=w.signature,e}function V(e){return{timeStamp:e.timestamp+"",nonceStr:e.nonceStr,package:e.package,paySign:e.paySign,signType:e.signType||"SHA1"}}function L(e,n,t){"openEnterpriseChat"!=e&&"openBusinessView"!==e||(n.errCode=n.err_code),delete n.err_code,delete n.err_desc,delete n.err_detail;var i=n.errMsg;i||(i=n.err_msg,delete n.err_msg,i=function(e,n){var t=e,i=c[t];i&&(t=i);var o="ok";if(n){var a=n.indexOf(":");"confirm"==(o=n.substring(a+1))&&(o="ok"),"failed"==o&&(o="fail"),-1!=o.indexOf("failed_")&&(o=o.substring(7)),-1!=o.indexOf("fail_")&&(o=o.substring(5)),"access denied"!=(o=(o=o.replace(/_/g," ")).toLowerCase())&&"no permission to execute"!=o||(o="permission denied"),"config"==t&&"function not exist"==o&&(o="ok"),""==o&&(o="fail")}return t+":"+o}(e,i),n.errMsg=i),(t=t||{})._complete&&(t._complete(n),delete t._complete),i=n.errMsg||"",w.debug&&!t.isInnerInvoke&&alert(JSON.stringify(n));var o=i.indexOf(":");switch(i.substring(o+1)){case"ok":t.success&&t.success(n);break;case"cancel":t.cancel&&t.cancel(n);break;default:t.fail&&t.fail(n)}t.complete&&t.complete(n)}function O(e){if(e){for(var n=0,t=e.length;n<t;++n){var i=e[n],o=r[i];o&&(e[n]=o)}return e}}function B(e,n){if(!(!w.debug||n&&n.isInnerInvoke)){var t=c[e];t&&(e=t),n&&n._complete&&delete n._complete,i.log('"'+e+'",',n||"")}}function E(){return(new Date).getTime()}function N(n){g&&(e.WeixinJSBridge?n():s.addEventListener&&s.addEventListener("WeixinJSBridgeReady",n,!1))}}(r)}.call(n,t,n,e),void 0===o||(e.exports=o)}(window)}).call(this,t("5a52")["default"])},eede:function(e,n,t){var i=t("7d8a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var o=t("4f06").default;o("72418186",i,!0,{sourceMap:!1,shadowMode:!1})},f5cb:function(e,n,t){"use strict";(function(e){var n=t("4ea4").default;t("13d5"),t("d3b7"),t("ddb0"),t("ac1f"),t("5319");var i=n(t("e143")),o={keys:function(){return[]}};e["____675A08F____"]=!0,delete e["____675A08F____"],e.__uniConfig={globalStyle:{navigationBarTextStyle:"white",navigationBarTitleText:"访客预约",navigationBarBackgroundColor:"#089875",backgroundColor:"#089875"}},e.__uniConfig.compilerVersion="3.8.12",e.__uniConfig.darkmode=!1,e.__uniConfig.themeConfig={},e.__uniConfig.uniPlatform="h5",e.__uniConfig.appId="__UNI__675A08F",e.__uniConfig.appName="访客预约",e.__uniConfig.appVersion="1.0.0",e.__uniConfig.appVersionCode="100",e.__uniConfig.router={mode:"hash",base:"/wap/visitor/"},e.__uniConfig.publicPath="/wap/visitor/",e.__uniConfig["async"]={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4},e.__uniConfig.debug=!1,e.__uniConfig.networkTimeout={request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},e.__uniConfig.sdkConfigs={maps:{}},e.__uniConfig.qqMapKey=void 0,e.__uniConfig.googleMapKey=void 0,e.__uniConfig.aMapKey=void 0,e.__uniConfig.aMapSecurityJsCode=void 0,e.__uniConfig.aMapServiceHost=void 0,e.__uniConfig.locale="",e.__uniConfig.fallbackLocale=void 0,e.__uniConfig.locales=o.keys().reduce((function(e,n){var t=n.replace(/\.\/(uni-app.)?(.*).json/,"$2"),i=o(n);return Object.assign(e[t]||(e[t]={}),i.common||i),e}),{}),e.__uniConfig.nvue={"flex-direction":"column"},e.__uniConfig.__webpack_chunk_load__=t.e,i.default.component("pages-index-index",(function(e){var n={component:t.e("pages-index-index").then(function(){return e(t("5edb"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n})),i.default.component("pages-index-wechat",(function(e){var n={component:t.e("pages-index-wechat").then(function(){return e(t("d214"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n})),i.default.component("pages-index-add",(function(e){var n={component:t.e("pages-index-add").then(function(){return e(t("0bae"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n})),i.default.component("pages-index-detail",(function(e){var n={component:t.e("pages-index-detail").then(function(){return e(t("c43e"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n})),e.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{render:function(e){return e("Page",{props:Object.assign({isQuit:!0,isEntry:!0},__uniConfig.globalStyle,{navigationBarTitleText:"访客预约",enablePullDownRefresh:!0,titleNView:!1})},[e("pages-index-index",{slot:"page"})])}},meta:{id:1,name:"pages-index-index",isNVue:!1,maxWidth:0,pagePath:"pages/index/index",isQuit:!0,isEntry:!0,windowTop:0}},{path:"/pages/index/wechat",component:{render:function(e){return e("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"登录",titleNView:!1})},[e("pages-index-wechat",{slot:"page"})])}},meta:{name:"pages-index-wechat",isNVue:!1,maxWidth:0,pagePath:"pages/index/wechat",windowTop:0}},{path:"/pages/index/add",component:{render:function(e){return e("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"预约信息",titleNView:!1})},[e("pages-index-add",{slot:"page"})])}},meta:{name:"pages-index-add",isNVue:!1,maxWidth:0,pagePath:"pages/index/add",windowTop:0}},{path:"/pages/index/detail",component:{render:function(e){return e("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"通行码",titleNView:!1})},[e("pages-index-detail",{slot:"page"})])}},meta:{name:"pages-index-detail",isNVue:!1,maxWidth:0,pagePath:"pages/index/detail",windowTop:0}},{path:"/choose-location",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-choose-location",{slot:"page"})])}},meta:{name:"choose-location",pagePath:"/choose-location"}},{path:"/open-location",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-open-location",{slot:"page"})])}},meta:{name:"open-location",pagePath:"/open-location"}}],e.UniApp&&new e.UniApp}).call(this,t("c8ba"))},f691:function(e,n,t){"use strict";var i=t("eede"),o=t.n(i);o.a}});