(function(e){function n(n){for(var t,r,s=n[0],l=n[1],c=n[2],u=0,g=[];u=this.UNITS[i]){n=Math.floor(e/this.UNITS[i])+i+"前";break}return n||"刚刚"},format:function(e){var n=this.parse(e),i=Date.now()-n.getTime();if(i>16)+(n>>16)+(i>>16);return t<<16|65535&i},bitRotateLeft:function(e,n){return e<>>32-n},md5cmn:function(e,n,i,t,a,o){return this.safeAdd(this.bitRotateLeft(this.safeAdd(this.safeAdd(n,e),this.safeAdd(t,o)),a),i)},md5ff:function(e,n,i,t,a,o,r){return this.md5cmn(n&i|~n&t,e,n,a,o,r)},md5gg:function(e,n,i,t,a,o,r){return this.md5cmn(n&t|i&~t,e,n,a,o,r)},md5hh:function(e,n,i,t,a,o,r){return this.md5cmn(n^i^t,e,n,a,o,r)},md5ii:function(e,n,i,t,a,o,r){return this.md5cmn(i^(n|~t),e,n,a,o,r)},binlMD5:function(e,n){var i,t,a,o,r;e[n>>5]|=128<>>9<<4)]=n;var s=1732584193,l=-271733879,c=-1732584194,u=271733878;for(i=0;i>5]>>>n%32&255);return i},rstr2binl:function(e){var n,i=[];for(i[(e.length>>2)-1]=void 0,n=0;n>5]|=(255&e.charCodeAt(n/8))<16&&(a=this.binlMD5(a,8*e.length)),i=0;i<16;i+=1)o[i]=909522486^a[i],r[i]=1549556828^a[i];return t=this.binlMD5(o.concat(this.rstr2binl(n)),512+8*n.length),this.binl2rstr(this.binlMD5(r.concat(t),640))},rstr2hex:function(e){var n,i,t="0123456789abcdef",a="";for(i=0;i>>4&15)+t.charAt(15&n);return a},str2rstrUTF8:function(e){return unescape(encodeURIComponent(e))},rawMD5:function(e){return this.rstrMD5(this.str2rstrUTF8(e))},hexMD5:function(e){return this.rstr2hex(this.rawMD5(e))},rawHMACMD5:function(e,n){return this.rstrHMACMD5(this.str2rstrUTF8(e),str2rstrUTF8(n))},hexHMACMD5:function(e,n){return this.rstr2hex(this.rawHMACMD5(e,n))},md5:function(e,n,i){return n?i?this.rawHMACMD5(n,e):this.hexHMACMD5(n,e):i?this.rawMD5(e):this.hexMD5(e)},getSig:function(e,n,i,t){var a=null,o=[];return Object.keys(e).sort().forEach((function(n){o.push(n+"="+e[n])})),"search"==i&&(a="/ws/place/v1/search?"+o.join("&")+n),"suggest"==i&&(a="/ws/place/v1/suggestion?"+o.join("&")+n),"reverseGeocoder"==i&&(a="/ws/geocoder/v1/?"+o.join("&")+n),"geocoder"==i&&(a="/ws/geocoder/v1/?"+o.join("&")+n),"getCityList"==i&&(a="/ws/district/v1/list?"+o.join("&")+n),"getDistrictByCityId"==i&&(a="/ws/district/v1/getchildren?"+o.join("&")+n),"calculateDistance"==i&&(a="/ws/distance/v1/?"+o.join("&")+n),"direction"==i&&(a="/ws/direction/v1/"+t+"?"+o.join("&")+n),a=this.md5(a),a},location2query:function(e){if("string"==typeof e)return e;for(var n="",i=0;i.uni-media-list-logo{margin-right:%?0?%;margin-left:%?20?%}.uni-media-list-logo{height:%?84?%;width:%?84?%;margin-right:%?20?%}.uni-media-list-logo uni-image{height:100%;width:100%}.uni-media-list-body{height:%?84?%;display:flex;flex:1;flex-direction:column;justify-content:space-between;align-items:flex-start;overflow:hidden}.uni-media-list-text-top{width:100%;line-height:%?36?%;font-size:%?30?%}.uni-media-list-text-bottom{width:100%;line-height:%?30?%;font-size:%?26?%;color:#8f8f94}\r\n/* 九宫格 */.uni-grid-9{background:#f2f2f2;width:%?750?%;display:flex;flex-direction:row;flex-wrap:wrap;border-top:%?2?% solid #eee}.uni-grid-9-item{width:%?250?%;height:%?200?%;display:flex;flex-direction:column;align-items:center;justify-content:center;border-bottom:%?2?% solid;border-right:%?2?% solid;border-color:#eee;box-sizing:border-box}.no-border-right{border-right:none}.uni-grid-9-image{width:%?100?%;height:%?100?%}.uni-grid-9-text{width:%?250?%;line-height:%?4?%;height:%?40?%;text-align:center;font-size:%?30?%}.uni-grid-9-item-hover{background:rgba(0,0,0,.1)}\r\n/* 上传 */.uni-uploader{flex:1;flex-direction:column}.uni-uploader-head{display:flex;flex-direction:row;justify-content:space-between}.uni-uploader-info{color:#b2b2b2}.uni-uploader-body{margin-top:%?16?%}.uni-uploader__files{display:flex;flex-direction:row;flex-wrap:wrap}.uni-uploader__file{margin:%?10?%;width:%?210?%;height:%?210?%}.uni-uploader__img{display:block;width:%?210?%;height:%?210?%}.uni-uploader__input-box{position:relative;margin:%?10?%;width:%?208?%;height:%?208?%;border:%?2?% solid #d9d9d9}.uni-uploader__input-box:before,\r\n.uni-uploader__input-box:after{content:" ";position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);background-color:#d9d9d9}.uni-uploader__input-box:before{width:%?4?%;height:%?79?%}.uni-uploader__input-box:after{width:%?79?%;height:%?4?%}.uni-uploader__input-box:active{border-color:#999}.uni-uploader__input-box:active:before,\r\n.uni-uploader__input-box:active:after{background-color:#999}.uni-uploader__input{position:absolute;z-index:1;top:0;left:0;width:100%;height:100%;opacity:0}\r\n/*问题反馈*/.feedback-title{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:%?20?%;color:#8f8f94;font-size:%?28?%}.feedback-star-view.feedback-title{justify-content:flex-start;margin:0}.feedback-quick{position:relative;padding-right:%?40?%}.feedback-quick:after{font-family:uniicons;font-size:%?40?%;content:"\\e581";position:absolute;right:0;top:50%;color:#bbb;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.feedback-body{background:#fff}.feedback-textare{height:%?200?%;font-size:%?34?%;line-height:%?50?%;width:100%;box-sizing:border-box;padding:%?20?% %?30?% 0}.feedback-input{font-size:%?34?%;height:%?50?%;min-height:%?50?%;padding:%?15?% %?20?%;line-height:%?50?%}.feedback-uploader{padding:%?22?% %?20?%}.feedback-star{font-family:uniicons;font-size:%?40?%;margin-left:%?6?%}.feedback-star-view{margin-left:%?20?%}.feedback-star:after{content:"\\e408"}.feedback-star.active{color:#ffb400}.feedback-star.active:after{content:"\\e438"}.feedback-submit{background:#0274ee;color:#fff;margin:%?20?%}\r\n/* input group */.uni-input-group{position:relative;padding:0;border:0;background-color:#fff}.uni-input-group:before{position:absolute;top:0;right:0;left:0;height:%?2?%;content:"";-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.uni-input-group:after{position:absolute;right:0;bottom:0;left:0;height:%?2?%;content:"";-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.uni-input-row{position:relative;display:flex;flex-direction:row;font-size:%?28?%;padding:%?22?% %?30?%;justify-content:space-between}.uni-input-group .uni-input-row:after{position:absolute;right:0;bottom:0;left:%?30?%;height:%?2?%;content:"";-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#c8c7cc}.uni-input-row uni-label{line-height:%?70?%}\r\n/* textarea */.uni-textarea{width:100%;background:#fff}.uni-textarea uni-textarea{width:96%;padding:%?18?% 2%;line-height:1.6;font-size:%?28?%;height:%?150?%}\r\n/* tab bar */.uni-tab-bar{display:flex;flex:1;flex-direction:column;overflow:hidden;height:100%}.uni-tab-bar .list{width:%?750?%;height:100%}.uni-swiper-tab{width:100%;white-space:nowrap;line-height:%?100?%;height:%?100?%;border-bottom:1px solid #c8c7cc}.swiper-tab-list{font-size:%?30?%;width:%?150?%;display:inline-block;text-align:center;color:#555}.uni-tab-bar .active{color:#0274ee}.uni-tab-bar .swiper-box{flex:1;width:100%;height:calc(100% - %?100?%)}.uni-tab-bar-loading{padding:%?20?% 0}\r\n/* comment */.uni-comment{padding:%?5?% 0;display:flex;flex-grow:1;flex-direction:column}.uni-comment-list{flex-wrap:nowrap;padding:%?10?% 0;margin:%?10?% 0;width:100%;display:flex}.uni-comment-face{width:%?70?%;height:%?70?%;border-radius:100%;margin-right:%?20?%;flex-shrink:0;overflow:hidden}.uni-comment-face uni-image{width:100%;border-radius:100%}.uni-comment-body{width:100%}.uni-comment-top{line-height:1.5em;justify-content:space-between}.uni-comment-top uni-text{color:#0a98d5;font-size:%?24?%}.uni-comment-date{line-height:%?38?%;flex-direction:row;justify-content:space-between;display:flex!important;flex-grow:1}.uni-comment-date uni-view{color:#666;font-size:%?24?%;line-height:%?38?%}.uni-comment-content{line-height:1.6em;font-size:%?28?%;padding:%?8?% 0}.uni-comment-replay-btn{background:#fff;font-size:%?24?%;line-height:%?28?%;padding:%?5?% %?20?%;border-radius:%?30?%;color:#333!important;margin:0 %?10?%}\r\n/* swiper msg */.uni-swiper-msg{width:100%;padding:%?12?% 0;flex-wrap:nowrap;display:flex}.uni-swiper-msg-icon{width:%?50?%;margin-right:%?20?%}.uni-swiper-msg-icon uni-image{width:100%;flex-shrink:0}.uni-swiper-msg uni-swiper{width:100%;height:%?50?%}.uni-swiper-msg uni-swiper-item{line-height:%?50?%}\r\n/* product */.uni-product-list{display:flex;width:100%;flex-wrap:wrap;flex-direction:row}.uni-product{padding:%?20?%;display:flex;flex-direction:column}.image-view{height:%?330?%;width:%?330?%;margin:%?12?% 0}.uni-product-image{height:%?330?%;width:%?330?%}.uni-product-title{width:%?300?%;word-break:break-all;display:-webkit-box;overflow:hidden;line-height:1.5;text-overflow:ellipsis;-webkit-box-orient:vertical;-webkit-line-clamp:2}.uni-product-price{margin-top:%?10?%;font-size:%?28?%;line-height:1.5;position:relative}.uni-product-price-original{color:#e80080}.uni-product-price-favour{color:#888;text-decoration:line-through;margin-left:%?10?%}.uni-product-tip{position:absolute;right:%?10?%;background-color:#f33;color:#fff;padding:0 %?10?%;border-radius:%?5?%}\r\n/* timeline */.uni-timeline{margin:%?35?% 0;display:flex;flex-direction:column;position:relative}.uni-timeline-item{display:flex;flex-direction:row;position:relative;padding-bottom:%?20?%;box-sizing:border-box;overflow:hidden}.uni-timeline-item .uni-timeline-item-keynode{width:%?160?%;flex-shrink:0;box-sizing:border-box;padding-right:%?20?%;text-align:right;line-height:%?65?%}.uni-timeline-item .uni-timeline-item-divider{flex-shrink:0;position:relative;width:%?30?%;height:%?30?%;top:%?15?%;border-radius:50%;background-color:#bbb}.uni-timeline-item-divider::before,\r\n\t.uni-timeline-item-divider::after{position:absolute;left:%?15?%;width:%?1?%;height:100vh;content:"";background:inherit}.uni-timeline-item-divider::before{bottom:100%}.uni-timeline-item-divider::after{top:100%}.uni-timeline-last-item .uni-timeline-item-divider:after{display:none}.uni-timeline-first-item .uni-timeline-item-divider:before{display:none}.uni-timeline-item .uni-timeline-item-content{padding-left:%?20?%}.uni-timeline-last-item .bottom-border::after{display:none}.uni-timeline-item-content .datetime{color:#ccc}\r\n/* 自定义节点颜色 */.uni-timeline-last-item .uni-timeline-item-divider{background-color:#1aad19}\r\n/* uni-icon */.uni-icon{font-family:uniicons;font-size:24px;font-weight:400;font-style:normal;line-height:1;display:inline-block;text-decoration:none;-webkit-font-smoothing:antialiased}.uni-icon.uni-active{color:#0274ee}.uni-icon-contact:before{content:"\\e100"}.uni-icon-person:before{content:"\\e101"}.uni-icon-personadd:before{content:"\\e102"}.uni-icon-contact-filled:before{content:"\\e130"}.uni-icon-person-filled:before{content:"\\e131"}.uni-icon-personadd-filled:before{content:"\\e132"}.uni-icon-phone:before{content:"\\e200"}.uni-icon-email:before{content:"\\e201"}.uni-icon-chatbubble:before{content:"\\e202"}.uni-icon-chatboxes:before{content:"\\e203"}.uni-icon-phone-filled:before{content:"\\e230"}.uni-icon-email-filled:before{content:"\\e231"}.uni-icon-chatbubble-filled:before{content:"\\e232"}.uni-icon-chatboxes-filled:before{content:"\\e233"}.uni-icon-weibo:before{content:"\\e260"}.uni-icon-weixin:before{content:"\\e261"}.uni-icon-pengyouquan:before{content:"\\e262"}.uni-icon-chat:before{content:"\\e263"}.uni-icon-qq:before{content:"\\e264"}.uni-icon-videocam:before{content:"\\e300"}.uni-icon-camera:before{content:"\\e301"}.uni-icon-mic:before{content:"\\e302"}.uni-icon-location:before{content:"\\e303"}.uni-icon-mic-filled:before,\r\n.uni-icon-speech:before{content:"\\e332"}.uni-icon-location-filled:before{content:"\\e333"}.uni-icon-micoff:before{content:"\\e360"}.uni-icon-image:before{content:"\\e363"}.uni-icon-map:before{content:"\\e364"}.uni-icon-compose:before{content:"\\e400"}.uni-icon-trash:before{content:"\\e401"}.uni-icon-upload:before{content:"\\e402"}.uni-icon-download:before{content:"\\e403"}.uni-icon-close:before{content:"\\e404"}.uni-icon-redo:before{content:"\\e405"}.uni-icon-undo:before{content:"\\e406"}.uni-icon-refresh:before{content:"\\e407"}.uni-icon-star:before{content:"\\e408"}.uni-icon-plus:before{content:"\\e409"}.uni-icon-minus:before{content:"\\e410"}.uni-icon-circle:before,\r\n.uni-icon-checkbox:before{content:"\\e411"}.uni-icon-close-filled:before,\r\n.uni-icon-clear:before{content:"\\e434"}.uni-icon-refresh-filled:before{content:"\\e437"}.uni-icon-star-filled:before{content:"\\e438"}.uni-icon-plus-filled:before{content:"\\e439"}.uni-icon-minus-filled:before{content:"\\e440"}.uni-icon-circle-filled:before{content:"\\e441"}.uni-icon-checkbox-filled:before{content:"\\e442"}.uni-icon-closeempty:before{content:"\\e460"}.uni-icon-refreshempty:before{content:"\\e461"}.uni-icon-reload:before{content:"\\e462"}.uni-icon-starhalf:before{content:"\\e463"}.uni-icon-spinner:before{content:"\\e464"}.uni-icon-spinner-cycle:before{content:"\\e465"}.uni-icon-search:before{content:"\\e466"}.uni-icon-plusempty:before{content:"\\e468"}.uni-icon-forward:before{content:"\\e470"}.uni-icon-back:before,\r\n.uni-icon-left-nav:before{content:"\\e471"}.uni-icon-checkmarkempty:before{content:"\\e472"}.uni-icon-home:before{content:"\\e500"}.uni-icon-navigate:before{content:"\\e501"}.uni-icon-gear:before{content:"\\e502"}.uni-icon-paperplane:before{content:"\\e503"}.uni-icon-info:before{content:"\\e504"}.uni-icon-help:before{content:"\\e505"}.uni-icon-locked:before{content:"\\e506"}.uni-icon-more:before{content:"\\e507"}.uni-icon-flag:before{content:"\\e508"}.uni-icon-home-filled:before{content:"\\e530"}.uni-icon-gear-filled:before{content:"\\e532"}.uni-icon-info-filled:before{content:"\\e534"}.uni-icon-help-filled:before{content:"\\e535"}.uni-icon-more-filled:before{content:"\\e537"}.uni-icon-settings:before{content:"\\e560"}.uni-icon-list:before{content:"\\e562"}.uni-icon-bars:before{content:"\\e563"}.uni-icon-loop:before{content:"\\e565"}.uni-icon-paperclip:before{content:"\\e567"}.uni-icon-eye:before{content:"\\e568"}.uni-icon-arrowup:before{content:"\\e580"}.uni-icon-arrowdown:before{content:"\\e581"}.uni-icon-arrowleft:before{content:"\\e582"}.uni-icon-arrowright:before{content:"\\e583"}.uni-icon-arrowthinup:before{content:"\\e584"}.uni-icon-arrowthindown:before{content:"\\e585"}.uni-icon-arrowthinleft:before{content:"\\e586"}.uni-icon-arrowthinright:before{content:"\\e587"}.uni-icon-pulldown:before{content:"\\e588"}.uni-icon-scan:before{content:"\\e612"}\r\n/* 分界线 */.uni-divider{height:%?110?%;display:flex;align-items:center;justify-content:center;position:relative}.uni-divider__content{font-size:%?28?%;color:#999;padding:0 %?20?%;position:relative;z-index:101;background:#f4f5f6}.uni-divider__line{background-color:#ccc;height:1px;width:100%;position:absolute;z-index:100;top:50%;left:0;-webkit-transform:translateY(50%);transform:translateY(50%)}.left-win-active uni-text{color:#0274ee!important}@font-face{font-family:customicons; /* Project id 2878519 */src:url(/static/customicons.ttf) format("truetype")}.customicons{font-family:customicons!important}.youxi:before{content:"\\e60e"}.wenjian:before{content:"\\e60f"}.zhuanfa:before{content:"\\e610"}\r\n/* H5 兼容 pc 所需 */\n@media screen and (min-width:768px){body{overflow-y:scroll}}\r\n/* 顶栏通栏样式 */\r\n/* .uni-top-window {\r\n left: 0;\r\n right: 0;\r\n} */uni-page-body{background-color:#f5f5f5!important;min-height:100%!important;height:auto!important}.uni-top-window uni-tabbar .uni-tabbar{background-color:#fff!important}.uni-app--showleftwindow .hideOnPc{display:none!important}\r\n\r\n/* 以下样式用于 hello uni-app 演示所需 */uni-page-body{background-color:#efeff4;height:100%;font-size:%?28?%\r\n\t/* line-height: 1.8; */}.fix-pc-padding{padding:0 50px}.uni-header-logo{padding:%?30?%;flex-direction:column;justify-content:center;align-items:center;margin-top:%?10?%}.uni-header-image{width:100px;height:100px}.uni-hello-text{color:#7a7e83}.uni-hello-addfile{text-align:center;line-height:%?300?%;background:#fff;padding:%?50?%;margin-top:10px;font-size:%?38?%;color:grey}\n.article img{max-width:100%;height:auto}uni-page-head{display:none}uni-toast .uni-toast{width:10em}uni-toast .uni-toast__content{padding:0 %?20?%}body.?%PAGE?%{background-color:#efeff4}',""]),e.exports=n},"89fd":function(e,n,i){var t=i("7af7");"string"===typeof t&&(t=[[e.i,t,""]]),t.locals&&(e.exports=t.locals);var a=i("4f06").default;a("87169c86",t,!0,{sourceMap:!1,shadowMode:!1})},"973b":function(e,n,i){"use strict";i.r(n);var t=i("6393"),a=i("14a5");for(var o in a)"default"!==o&&function(e){i.d(n,e,(function(){return a[e]}))}(o);i("00fb");var r,s=i("f0c5"),l=Object(s["a"])(a["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],r);n["default"]=l.exports},9820:function(e,n,i){"use strict";var t=i("4ea4");i("d3b7"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(i("5530"));i("96cf");var o=t(i("1da1")),r=t(i("e143")),s=t(i("26cb"));r.default.use(s.default);var l=i("0c11"),c=(l.config,new s.default.Store({state:{hasLogin:!1,isUniverifyLogin:!1,loginProvider:"",openid:null,testvuex:!1,colorIndex:0,colorList:["#FF0000","#00FF00","#0000FF"],noMatchLeftWindow:!0,active:"componentPage",leftWinActive:"/pages/component/view/view",activeOpen:"",menu:[],univerifyErrorMsg:"",userInfo:{},shop:!1,geoinfo:{}},mutations:{login:function(e,n){e.hasLogin=!0,e.signature=n.signature,e.vid=n.vid,e.uid=n.uid},setUserInfo:function(e,n){e.userInfo=n},setGeoInfo:function(e,n){e.geoinfo=n},setShop:function(e,n){e.shop=n.id?n:null},logout:function(e){e.hasLogin=!1,e.openid=null},setOpenid:function(e,n){e.openid=n},setTestTrue:function(e){e.testvuex=!0},setTestFalse:function(e){e.testvuex=!1},setColorIndex:function(e,n){e.colorIndex=n},setMatchLeftWindow:function(e,n){e.noMatchLeftWindow=!n},setActive:function(e,n){e.active=n},setLeftWinActive:function(e,n){e.leftWinActive=n},setActiveOpen:function(e,n){e.activeOpen=n},setMenu:function(e,n){e.menu=n},setUniverifyLogin:function(e,n){"boolean"!==typeof n&&(n=!!n),e.isUniverifyLogin=n},setUniverifyErrorMsg:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.univerifyErrorMsg=n}},getters:{currentColor:function(e){return e.colorList[e.colorIndex]}},actions:{getUserOpenId:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(n){var i,t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=n.commit,t=n.state,e.next=3,new Promise((function(e,n){t.openid?e(t.openid):(console.log("11111"),wx.login({success:function(n){i("login"),setTimeout((function(){var n="123456789";console.log("uni.request mock openid["+n+"]"),i("setOpenid",n),e(n)}),1e3)},fail:function(e){console.log("uni.login 接口调用失败,将无法正常使用开放接口等服务",e),n(e)}}))}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}(),doLogin:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(n){var i,t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=n.commit,t=n.state,e.next=3,new Promise((function(e,n){t.signature?e(t.signature):uni.login({success:function(e){uni.request({url:"http://zsmatest.nongxiaohe.com/package/passport/?l=applet.login",data:{code:e.code,system:1,version:"1.0.0",json:1},success:function(e){console.log(e),i("login",{})}})},fail:function(e){console.log("uni.login 接口调用失败,将无法正常使用开放接口等服务",e),n(e)}})}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}(),getPhoneNumber:function(e,n){e.commit;return new Promise((function(e,i){uni.request({url:"https://97fca9f2-41f6-449f-a35e-3f135d4c3875.bspapp.com/http/univerify-login",method:"POST",data:n,success:function(n){var t=n.data;t.success?e(t.phoneNumber):i(n)},fail:function(e){i(res)}})}))},getUser:function(){var e=(0,o.default)(regeneratorRuntime.mark((function e(n){var i,t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i=n.commit,t=n.state,e.next=3,new Promise((function(e,n){if(t.userInfo&&t.userInfo.signature)e(t.userInfo);else{var o={};try{o=uni.getStorageSync("baseToken")}catch(r){console.error(r)}if(!o.signature)return;i("setUserInfo",(0,a.default)({},o))}}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}()}})),u=c;n.default=u},acca:function(e,n,i){e.exports=i.p+"static/fonts/uni.75745d34.ttf"},d9ff:function(e,n,i){"use strict";var t=i("4ea4");i("99af"),i("ac1f"),i("466d");var a=t(i("5530"));i("e260"),i("e6cf"),i("cca6"),i("a79d"),i("6cd1"),i("1c31");var o=t(i("973b")),r=t(i("9820")),s=t(i("e143")),l=i("26cb"),c=function(){return"micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},u=function(){if(!c()){var e=document.getElementsByTagName("uni-page-head");e&&e[0]&&(e[0].style.display="block")}},d=i("0c11"),g=d.config,p=i("7181"),f=new p({key:"PTSBZ-MUU6U-DEGV3-2W2XU-FPKFZ-WYF44"}),h={};s.default.prototype.$store=r.default,s.default.prototype.qqmapsdk=f,o.default.mpType="app",s.default.mixin({data:function(){return{}},computed:(0,a.default)({},(0,l.mapState)(["hasLogin","userInfo","shop","geoinfo"])),methods:(0,a.default)((0,a.default)((0,a.default)({},(0,l.mapMutations)(["login","setShop","setGeoInfo","setUserInfo"])),(0,l.mapActions)(["doLogin","getUser"])),{},{showModalNoCancel:function(e){uni.showModal((0,a.default)((0,a.default)({},e),{},{showCancel:!1,confirmColor:"#0274EE"}))},goBack:function(){1==getCurrentPages().length?uni.reLaunch({url:"/pages/app/index/index"}):uni.navigateBack({})},goToDetail:function(e){var n=e.currentTarget.dataset.item,i=n.type;switch(i){case"1":uni.navigateTo({url:"/pages/app/goods_detail/goods_detail?shop_id="+(this.shop&&this.shop.id)+"&id="+n.type_id});break;case"2":uni.navigateTo({url:"/pages/assets/article/article?id=".concat(n.type_id)});break;case"3":uni.navigateTo({url:"/pages/assets/feature/feature?id=".concat(n.type_id)});break;case"4":uni.navigateTo({url:"/pages/assets/couponarticle/couponarticle?id=".concat(n.type_id)});break;case"5":uni.switchTab({url:"/pages/app/shop/shop"});break;case"6":uni.navigateTo({url:"/pages/card/cardshop/cardshop"});break;default:uni.navigateTo({url:"/pages/assets/webview/webview?link=".concat(n.link)});break}},reqByuser:function(e){if(this.userInfo&&this.userInfo.signature){e.data=(0,a.default)((0,a.default)((0,a.default)({},e.data),g.data),{},{signature:this.userInfo.signature});var n=e.url;if(h[n])return;h[n]=1,e.url="".concat(g.path).concat(e.url),e.complete?console.error("complete被占用,无法监听账号禁用状态"):e.complete=function(e){h[n]=0,-3==e.data.code&&(uni.showToast({icon:"error",title:"该账户被禁用,请更换账号"}),setTimeout((function(){that.setUserInfo({}),uni.removeStorage({key:"baseToken",success:function(){uni.reLaunch({url:"/pages/app/login/login"})}})}),2e3)),-4==e.data.code&&setTimeout((function(){that.setUserInfo({}),getApp().globalData.warningmsg=e.data.msg,uni.removeStorage({key:"baseToken",success:function(){uni.reLaunch({url:"/pages/app/warning/warning"})}})}),1e3)},uni.request(e)}else uni.navigateTo({url:"/pages/app/login/login"})},req:function(e){var n=this;e.data=(0,a.default)((0,a.default)({},e.data),g.data),e.url="".concat(g.path).concat(e.url),e.complete?console.error("complete被占用,无法监听账号禁用状态"):e.complete=function(e){-3==e.data.code&&(uni.showToast({icon:"error",title:"该账户被禁用,请更换账号"}),setTimeout((function(){n.setUserInfo({}),uni.removeStorage({key:"baseToken",success:function(){uni.reLaunch({url:"/pages/app/login/login"})}})}),2e3)),-4==e.data.code&&setTimeout((function(){n.setUserInfo({}),getApp().globalData.warningmsg=e.data.msg,uni.removeStorage({key:"baseToken",success:function(){uni.reLaunch({url:"/pages/app/warning/warning"})}})}),1e3)},uni.request(e)},upload:function(e){e.formData=(0,a.default)((0,a.default)((0,a.default)({},e.formData),g.data),{},{json:0}),e.url="".concat(g.path).concat(e.url);var n=e.url;if(!h[n]){h[n]=1,e.complete=function(e){h[n]=0};var i=uni.uploadFile(e);i.onProgressUpdate((function(e){uni.showLoading({mask:!0,title:"上传中: ".concat(e.progress,"%")}),100==e.progress&&setTimeout((function(){uni.hideLoading()}),300)}))}},getLocation:function(e){var n=this;uni.getLocation({type:"gcj02",success:function(i){n.qqmapsdk.reverseGeocoder({location:i.latitude+","+i.longitude,success:function(t){i.addressInfo=t.result,n.setGeoInfo(i),e(n.geoinfo,t)}})},fail:function(n){e(null)}})},getLocationShop:function(e){var n=this;this.getLocation((function(i,t){var a={};i&&(a={lat:i.latitude,lng:i.longitude,city:t.result.ad_info.adcode,km:1,type:3}),n.req({url:"app/shop/?l=main.home",method:"GET",data:a,success:function(n){var i=n.data.data;e(i)}})}))}}),onReady:function(){u()}});var m=new s.default((0,a.default)({store:r.default},o.default));m.$mount()}});