diff --git a/common/vendor.js b/common/vendor.js index 6a90eee..ab184c3 100644 --- a/common/vendor.js +++ b/common/vendor.js @@ -11,4 +11,4 @@ var o=Object.freeze({});function i(e){return void 0===e||null===e}function n(e){ * @license MIT */ function(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var o=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,o.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(u))}f.state.get=function(){return this._vm._data.$$state},f.state.set=function(e){0},d.prototype.commit=function(e,t,o){var i=this,n=v(e,t,o),r=n.type,a=n.payload,s=(n.options,{type:r,payload:a}),c=this._mutations[r];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,i.state)})))},d.prototype.dispatch=function(e,t){var o=this,i=v(e,t),n=i.type,r=i.payload,a={type:n,payload:r},s=this._actions[n];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,o.state)}))}catch(l){0}var c=s.length>1?Promise.all(s.map((function(e){return e(r)}))):s[0](r);return new Promise((function(e,t){c.then((function(t){try{o._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,o.state)}))}catch(l){0}e(t)}),(function(e){try{o._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,o.state,e)}))}catch(l){0}t(e)}))}))}},d.prototype.subscribe=function(e,t){return p(e,this._subscribers,t)},d.prototype.subscribeAction=function(e,t){var o="function"===typeof e?{before:e}:e;return p(o,this._actionSubscribers,t)},d.prototype.watch=function(e,t,o){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,o)},d.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},d.prototype.registerModule=function(e,t,o){void 0===o&&(o={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),m(this,this.state,e,this._modules.get(e),o.preserveState),g(this,this.state)},d.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var o=_(t.state,e.slice(0,-1));u.delete(o,e[e.length-1])})),h(this)},d.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},d.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),h(this,!0)},d.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(d.prototype,f);var b=D((function(e,t){var o={};return x(t).forEach((function(t){var i=t.key,n=t.val;o[i]=function(){var t=this.$store.state,o=this.$store.getters;if(e){var i=P(this.$store,"mapState",e);if(!i)return;t=i.context.state,o=i.context.getters}return"function"===typeof n?n.call(this,t,o):t[n]},o[i].vuex=!0})),o})),w=D((function(e,t){var o={};return x(t).forEach((function(t){var i=t.key,n=t.val;o[i]=function(){var t=[],o=arguments.length;while(o--)t[o]=arguments[o];var i=this.$store.commit;if(e){var r=P(this.$store,"mapMutations",e);if(!r)return;i=r.context.commit}return"function"===typeof n?n.apply(this,[i].concat(t)):i.apply(this.$store,[n].concat(t))}})),o})),S=D((function(e,t){var o={};return x(t).forEach((function(t){var i=t.key,n=t.val;n=e+n,o[i]=function(){if(!e||P(this.$store,"mapGetters",e))return this.$store.getters[n]},o[i].vuex=!0})),o})),k=D((function(e,t){var o={};return x(t).forEach((function(t){var i=t.key,n=t.val;o[i]=function(){var t=[],o=arguments.length;while(o--)t[o]=arguments[o];var i=this.$store.dispatch;if(e){var r=P(this.$store,"mapActions",e);if(!r)return;i=r.context.dispatch}return"function"===typeof n?n.apply(this,[i].concat(t)):i.apply(this.$store,[n].concat(t))}})),o}));function x(e){return function(e){return Array.isArray(e)||a(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function D(e){return function(t,o){return"string"!==typeof t?(o=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,o)}}function P(e,t,o){var i=e._modulesNamespaceMap[o];return i}function C(e,t,o){var i=o?e.groupCollapsed:e.group;try{i.call(e,t)}catch(n){e.log(t)}}function O(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function $(){var e=new Date;return" @ "+j(e.getHours(),2)+":"+j(e.getMinutes(),2)+":"+j(e.getSeconds(),2)+"."+j(e.getMilliseconds(),3)}function j(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var M={Store:d,install:y,version:"3.6.2",mapState:b,mapMutations:w,mapGetters:S,mapActions:k,createNamespacedHelpers:function(e){return{mapState:b.bind(null,e),mapGetters:S.bind(null,e),mapMutations:w.bind(null,e),mapActions:k.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var o=e.filter;void 0===o&&(o=function(e,t,o){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var l=e.logActions;void 0===l&&(l=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var d=n(e.state);"undefined"!==typeof u&&(c&&e.subscribe((function(e,a){var s=n(a);if(o(e,d,s)){var c=$(),l=r(e),f="mutation "+e.type+c;C(u,f,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(d)),u.log("%c mutation","color: #03A9F4; font-weight: bold",l),u.log("%c next state","color: #4CAF50; font-weight: bold",i(s)),O(u)}d=s})),l&&e.subscribeAction((function(e,o){if(a(e,o)){var i=$(),n=s(e),r="action "+e.type+i;C(u,r,t),u.log("%c action","color: #03A9F4; font-weight: bold",n),O(u)}})))}}};e.exports=M}).call(this,o("0ee4"))},9008:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},9152:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"待付款订单"}},"92a0":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"订单详情"}},"92a8":function(e,t,o){"use strict";(function(e,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={methods:{orderPay:function(t){var o=this;0==t.adjust_money?this.pay():e.showModal({title:"提示",content:"商家已将支付金额调整为"+t.pay_money+"元,是否继续支付?",success:function(e){e.confirm&&o.pay()}})},pay:function(){var e=this;this.$api.sendRequest({url:"/api/order/pay",data:{order_ids:this.orderData.order_id},success:function(t){t.code>=0?e.$refs.choosePaymentPopup.getPayInfo(t.data):e.$util.showToast({title:t.message})}})},orderClose:function(t,o){var i=this;e.showModal({title:"提示",content:"您确定要关闭该订单吗?",success:function(e){e.confirm&&i.$api.sendRequest({url:"/api/order/close",data:{order_id:t},success:function(e){e.code>=0?"function"==typeof o&&o():i.$util.showToast({title:"当前订单可能存在拼团,维权等操作,"+e.message+"不可以关闭哦!",duration:2e3})}})}})},orderDelivery:function(t,i){var n=this;"wechatpay"==t.pay_type&&o.openBusinessView&&t.is_trade_managed?o.openBusinessView({businessType:"weappOrderConfirm",extraData:{merchant_id:t.pay_config.mch_id,merchant_trade_no:t.out_trade_no},success:function(e){e.extraData.status,n.$api.sendRequest({url:"/api/order/takedelivery",data:{order_id:t.order_id},success:function(e){n.$util.showToast({title:e.message}),"function"==typeof i&&i()}})},fail:function(e){}}):e.showModal({title:"提示",content:"您确定已经收到货物了吗?",success:function(e){e.confirm&&n.$api.sendRequest({url:"/api/order/takedelivery",data:{order_id:t.order_id},success:function(e){n.$util.showToast({title:e.message}),"function"==typeof i&&i()}})}})},orderVirtualDelivery:function(t,i){var n=this;"wechatpay"==t.pay_type&&o.openBusinessView&&t.is_trade_managed?o.openBusinessView({businessType:"weappOrderConfirm",extraData:{merchant_id:t.pay_config.mch_id,merchant_trade_no:t.out_trade_no},success:function(e){e.extraData.status,n.$api.sendRequest({url:"/api/order/membervirtualtakedelivery",data:{order_id:t.order_id},success:function(e){n.$util.showToast({title:e.message}),"function"==typeof i&&i()}})},fail:function(e){}}):e.showModal({title:"提示",content:"您确定要进行收货吗?",success:function(e){e.confirm&&n.$api.sendRequest({url:"/api/order/membervirtualtakedelivery",data:{order_id:t.order_id},success:function(e){n.$util.showToast({title:e.message}),"function"==typeof i&&i()}})}})}}};t.default=i}).call(this,o("df3c")["default"],o("3223")["default"])},"931d":function(e,t,o){var i=o("7647"),n=o("011a");e.exports=function(e,t,o){if(n())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return o&&i(a,o.prototype),a},e.exports.__esModule=!0,e.exports["default"]=e.exports},"93cc":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"商品咨询"}},9457:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"订单详情"}},"945d":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"我的关注"}},"96b0":function(e,t,o){"use strict";(function(e,i){var n=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o("7eb4")),a=n(o("3b2d")),s=n(o("ee10")),c=n(o("c16a")),l=n(o("15b5")),u=n(o("6be8")),d=o("cc1e"),f={redirectTo:function(t,o,i){var n=t,r=["/pages/index/index","/pages/goods/category","/pages/vr/index","/pages/contact/contact","/pages/member/index"];void 0!=o&&Object.keys(o).forEach((function(e){-1!=n.indexOf("?")?n+="&"+e+"="+o[e]:n+="?"+e+"="+o[e]}));for(var a=0;a1&&(e=e.split(",")[0]),t&&e!=this.getDefaultImage().goods){var i=e.split("."),n=i[i.length-1];i.pop(),i[i.length-1]=i[i.length-1]+"_"+t.size.toUpperCase(),i.push(n)}o=-1==e.indexOf("http://")&&-1==e.indexOf("https://")?c.default.imgDomain+"/"+e:e}return o},timeStampTurnTime:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(void 0!=e&&""!=e&&e>0){var o=new Date;o.setTime(1e3*e);var i=o.getFullYear(),n=o.getMonth()+1;n=n<10?"0"+n:n;var r=o.getDate();r=r<10?"0"+r:r;var a=o.getHours();a=a<10?"0"+a:a;var s=o.getMinutes(),c=o.getSeconds();return s=s<10?"0"+s:s,c=c<10?"0"+c:c,t?"yearMonthDay"==t?i+"年"+n+"月"+r+"日":i+"-"+n+"-"+r:i+"-"+n+"-"+r+" "+a+":"+s+":"+c}return""},timeTurnTimeStamp:function(e){var t=e.split(" ",2),o=(t[0]?t[0]:"").split("-",3),i=(t[1]?t[1]:"").split(":",3);return new Date(parseInt(o[0],10)||null,(parseInt(o[1],10)||1)-1,parseInt(o[2],10)||null,parseInt(i[0],10)||null,parseInt(i[1],10)||null,parseInt(i[2],10)||null).getTime()/1e3},countDown:function(e){var t=0,o=0,i=0,n=0;return e>0&&(t=Math.floor(e/86400),o=Math.floor(e/3600)-24*t,i=Math.floor(e/60)-24*t*60-60*o,n=Math.floor(e)-24*t*60*60-60*o*60-60*i),t<10&&(t="0"+t),o<10&&(o="0"+o),i<10&&(i="0"+i),n<10&&(n="0"+n),{d:t,h:o,i:i,s:n}},unique:function(e,t){var o=new Map;return e.filter((function(e){return!o.has(e[t])&&o.set(e[t],1)}))},inArray:function(e,t){return null==t?-1:t.indexOf(e)},getDay:function(e){var t=new Date,o=t.getTime()+864e5*e;t.setTime(o);var i=function(e){var t=e;return 1==e.toString().length&&(t="0"+e),t},n=t.getFullYear(),r=t.getMonth(),a=t.getDate(),s=t.getDay(),c=parseInt(t.getTime()/1e3);r=i(r+1),a=i(a);return{t:c,y:n,m:r,d:a,w:["周日","周一","周二","周三","周四","周五","周六"][s]}},upload:function(t,o,i,n){var a={token:l.default.state.token,app_type:"weapp",app_type_name:"微信小程序"};a=Object.assign(a,o);var c=t,u=this;e.chooseImage({count:c,sizeType:["compressed"],sourceType:["album","camera"],success:function(){var t=(0,s.default)(r.default.mark((function t(s){var c,l,d,f,p;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:c=s.tempFilePaths,l=a,d=[],e.showLoading({title:"图片上传中"}),f=0;case 5:if(!(f3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4?arguments[4]:void 0;if(n)var a=c.default.baseUrl+n;else a=c.default.baseUrl+"/api/upload/"+i;return new Promise((function(i,n){e.uploadFile({url:a,filePath:t,name:"file",fileType:o.fileType||"image",formData:o,success:function(e){var t=JSON.parse(e.data);t.code>=0?(i(t.data.pic_path),"function"==typeof r&&r(t.data.pic_path)):n("error")}})}))},copy:function(t,o){e.setClipboardData({data:t,success:function(){"function"==typeof o&&o()}})},isWeiXin:function(){return!1},showToast:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.title=t.title||"",t.icon=t.icon||"none",t.duration=t.duration||1500,e.showToast(t),t.success&&t.success()},isIPhoneX:function(){var t=e.getSystemInfoSync();return-1!=t.model.search("iPhone X")},isAndroid:function(){var t=e.getSystemInfoSync().platform;return"ios"!=t&&("android"==t||void 0)},deepClone:function(e){var t=function(e){return"object"==(0,a.default)(e)};if(!t(e))throw new Error("obj 不是一个对象!");var o=Array.isArray(e),i=o?[]:{};for(var n in e)i[n]=t(e[n])?this.deepClone(e[n]):e[n];return i},diyRedirectTo:function(t){if(t.wap_url&&-1!=t.wap_url.indexOf("http")||t.wap_url&&-1!=t.wap_url.indexOf("http"))this.redirectTo("/pages_tool/webview/webview",{src:encodeURIComponent(t.wap_url)});else if(t.appid)e.navigateToMiniProgram({appId:t.appid,path:t.page});else if("MOBILE"!=t.name||t.wap_url)if("MEMBER_CONTACT"==t.name){var o,n=l.default.state.servicerConfig;switch(o=n.weapp,o.type){case"wxwork":i.openCustomerServiceChat({extInfo:{url:o.wxwork_url},corpId:o.corpid,showMessageCard:!0,sendMessageTitle:"this.sendMessageTitle",sendMessagePath:"this.sendMessagePath",sendMessageImg:"this.sendMessageImg"});break;case"third":window.location.href=o.third_url;break;case"niushop":this.redirectTo("/pages_tool/chat/room");break;case"weapp":this.redirectTo(t.wap_url);break;default:var r=l.default.state.siteInfo;r&&r.site_tel?e.makePhoneCall({phoneNumber:r.site_tel}):this.showToast({title:"抱歉,商家暂无客服,请线下联系"})}}else t.wap_url&&(this.redirectTo(t.wap_url));else e.makePhoneCall({phoneNumber:t.mobile,success:function(e){},fail:function(e){}})},getDefaultImage:function(){var e=l.default.state.defaultImg;return e.goods=this.img(e.goods),e.head=this.img(e.head),e.store=this.img(e.store),e.article=this.img(e.article),e.kefu=this.img(e.kefu),e.phone=this.img(e.phone),e},uniappIsIPhoneX:function(){var t=!1,o=e.getSystemInfoSync();return-1==o.model.search("iPhone X")&&-1==o.model.search("iPhone 11")&&-1==o.model.search("iPhone 12")&&-1==o.model.search("iPhone 13")||(t=!0),t},uniappIsIPhone11:function(){var t=!1,o=e.getSystemInfoSync();return-1!=o.model.search("iPhone 11")&&(t=!0),t},numberFixed:function(e,t){return t||(t=0),Number(e).toFixed(t)},getUrlCode:function(e){var t=location.search,o=new Object;if(-1!=t.indexOf("?"))for(var i=t.substr(1),n=i.split("&"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"/pages/index/index";1==getCurrentPages().length?this.redirectTo(t):e.navigateBack()},getTimeStr:function(e){var t=parseInt(e/3600).toString(),o=parseInt(e%3600/60).toString();return 1==o.length&&(o="0"+o),1==t.length&&(t="0"+t),t+":"+o},getLocation:function(){},getDistance:function(e,t,o,i){var n=e*Math.PI/180,r=o*Math.PI/180,a=n-r,s=t*Math.PI/180-i*Math.PI/180,c=2*Math.asin(Math.sqrt(Math.pow(Math.sin(a/2),2)+Math.cos(n)*Math.cos(r)*Math.pow(Math.sin(s/2),2)));return c*=6378.137,c=Math.round(1e4*c)/1e4,c},onSourceMember:function(t){u.default.sendRequest({url:"/api/Member/alterShareRelation",data:{share_member:t},success:function(t){t.code>=0&&e.removeStorage({key:"source_member",success:function(e){}})}})},subscribeMessage:function(t){u.default.sendRequest({url:"/weapp/api/weapp/messagetmplids",data:{keywords:t},success:function(t){t.data.length&&e.requestSubscribeMessage({tmplIds:t.data,success:function(e){},fail:function(e){}})}})},getMpShare:function(e){if(!e){var t=this.getCurrentRoute();if(e=t.path,"/pages/member/index"==e)return new Promise((function(e,t){e({})}))}return new Promise((function(t,o){u.default.sendRequest({url:"/weapp/api/weapp/share",data:{path:e},success:function(e){if(e.code>=0){var i=e.data.data;if(i){var n={title:i.title,path:i.path,imageUrl:i.imageUrl,success:function(e){},fail:function(e){}};i.path.indexOf("?")>0&&i.path.split("?")[1];var r={title:i.title,query:i.path,imageUrl:i.imageUrl};t({appMessage:n,timeLine:r})}else o(e.data)}else o(e.data)}})}))},setPublicShare:function(t,o){var i=this;this.isWeiXin()&&u.default.sendRequest({url:"/wechat/api/wechat/jssdkconfig",data:{url:"ios"==e.getSystemInfoSync().platform?e.getStorageSync("initUrl"):window.location.href},success:function(e){if(0==e.code){var n,r,a,s=new d.Weixin;s.init(e.data),s.weixin.showOptionMenu(),s.setShareData({title:null!==(n=t.title)&&void 0!==n?n:"",desc:null!==(r=t.desc)&&void 0!==r?r:"",link:null!==(a=t.link)&&void 0!==a?a:location.href,imgUrl:t.imgUrl?i.img(t.imgUrl):""},(function(e){"function"==typeof o&&o(e)}))}}})},getCurrentRoute:function(){var e=getCurrentPages(),t=e[e.length-1].route,o=e[e.length-1].options,i=[];for(var n in o)i.push(n+"="+o[n]);var r="/"+t,a=i.join("&");return a&&(r+="?"+a),{path:r,query:a}},getCurrentShareRoute:function(e){var t=this.getCurrentRoute();return t.path=t.path.replace(/[?|&]source_member=\d+/,""),e&&(t.path.indexOf("?")>0?t.path+="&":t.path+="?",t.path+="source_member="+e,t.query&&(t.query+="&"),t.query+="source_member="+e),t},objToStyle:function(e){var t=[];for(var o in e)t.push(o+":"+e[o]);return t.join(";")},colourBlend:function(e,t,o){o=Math.max(Math.min(Number(o),1),0);var i=parseInt(e.substring(1,3),16),n=parseInt(e.substring(3,5),16),r=parseInt(e.substring(5,7),16),a=parseInt(t.substring(1,3),16),s=parseInt(t.substring(3,5),16),c=parseInt(t.substring(5,7),16),l=Math.round(i*(1-o)+a*o),u=Math.round(n*(1-o)+s*o),d=Math.round(r*(1-o)+c*o);return l=("0"+(l||0).toString(16)).slice(-2),u=("0"+(u||0).toString(16)).slice(-2),d=("0"+(d||0).toString(16)).slice(-2),"#"+l+u+d},bezier:function(e,t){var o=[],i=[],n=[],r=Math.sqrt(Math.pow(e[1]["x"]-e[0]["x"],2)+Math.pow(e[1]["y"]-e[0]["y"],2)),a=Math.sqrt(Math.pow(e[2]["x"]-e[1]["x"],2)+Math.pow(e[2]["y"]-e[1]["y"],2));if(e[0]["x"]>e[2]["x"])var s=-r/t,c=-a/t;else s=+r/t,c=+a/t;for(var l=(e[1]["y"]-e[0]["y"])/(e[1]["x"]-e[0]["x"]),u=(e[2]["y"]-e[1]["y"])/(e[2]["x"]-e[1]["x"]),d=Math.atan(l),f=Math.atan(u),p=1;p<=t;p++){var h=s*p,g=c*p,m={};m["x"]=h*Math.cos(d)+e[0]["x"],m["y"]=h*Math.sin(d)+e[0]["y"],i.push(m);var _={};_["x"]=g*Math.cos(f)+e[1]["x"],_["y"]=g*Math.sin(f)+e[1]["y"],n.push(_);var v=(_["y"]-m["y"])/(_["x"]-m["x"]),y=Math.atan(v),b=Math.sqrt(Math.pow(_["x"]-m["x"],2)+Math.pow(_["y"]-m["y"],2)),w=h/r*b,S={};S["x"]=w*Math.cos(y)+m["x"],S["y"]=w*Math.sin(y)+m["y"],o.push(S)}return{bezier_points:o}},verifyMobile:function(e){var t=/^\d{11}$/.test(e);return t}};t.default=f}).call(this,o("df3c")["default"],o("3223")["default"])},9908:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"提现详情"}},"9a31":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={data:function(){return{diyRoute:"/pages/member/index",lang:e.getStorageSync("lang")}},computed:{},watch:{storeToken:function(t,o){t&&(this.initData(),e.getStorageSync("source_member")&&this.$util.onSourceMember(e.getStorageSync("source_member")))}},onLoad:function(t){var o=this;this.$langConfig.refresh(),e.hideTabBar(),this.name="DIY_VIEW_MEMBER_INDEX",t.code&&this.$api.sendRequest({url:"/wechat/api/wechat/authcodetoopenid",data:{code:t.code},success:function(e){e.code>=0&&(e.data.userinfo.nickName&&o.modifyNickname(e.data.userinfo.nickName),e.data.userinfo.avatarUrl&&o.modifyHeadimg(e.data.userinfo.avatarUrl))}}),"en-us"==this.lang&&e.setNavigationBarTitle({title:"Member"})},onShow:function(){this.$refs.diyGroup&&(this.$refs.diyGroup.$refs.diyMemberIndex&&this.$refs.diyGroup.$refs.diyMemberIndex[0].init(),this.$refs.diyGroup.$refs.diyMemberMyOrder&&this.$refs.diyGroup.$refs.diyMemberMyOrder[0].getOrderNum())},methods:{initData:function(){var e=this;this.storeToken&&this.$nextTick((function(){e.$refs.nsNewGift.init(),e.$refs.birthdayGift.init()}))},modifyNickname:function(e){var t=this;this.$api.sendRequest({url:"/api/member/modifynickname",data:{nickname:e},success:function(o){0==o.code&&(t.memberInfo.nickname=e,t.$store.commit("setMemberInfo",t.memberInfo))}})},modifyHeadimg:function(e){var t=this;this.$api.sendRequest({url:"/api/member/modifyheadimg",data:{headimg:e},success:function(o){0==o.code&&(t.memberInfo.headimg=e,t.$store.commit("setMemberInfo",t.memberInfo))}})}}};t.default=o}).call(this,o("df3c")["default"])},"9b09":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"待付款订单"}},"9b0e":function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("7eb4")),r=i(o("af34")),a=i(o("ee10")),s=(i(o("1c28")),i(o("c16a")),e.getSystemInfoSync()),c={data:function(){return{diyData:{global:{title:"",popWindow:{imageUrl:"",count:-1,link:{},imgWidth:"",imgHeight:""}}},id:0,name:"",topIndexValue:null,statusBarHeight:s.statusBarHeight,collectTop:44,showTip:!1,mpCollect:!1,mpShareData:null,scrollTop:0,paddingTop:44+s.statusBarHeight+"px",marginTop:-(44+s.statusBarHeight)+"px",followOfficialAccount:null,latitude:null,longitude:null,currentPosition:"",nearestStore:null,storeTimeOut:null,locationModule:"",diyRoute:"",openBottomNav:!1,isShowCopyRight:!1,adv:{}}},onLoad:function(t){if(e.hideTabBar(),t.source_member&&e.setStorageSync("source_member",t.source_member),t.scene){var o=decodeURIComponent(t.scene);o=o.split("&"),o.length&&o.forEach((function(t){-1!=t.indexOf("m")&&e.setStorageSync("source_member",t.split("-")[1])}))}this.id=t.id||0,this.name=t.name||"",e.removeStorageSync("manual_store_info"),e.removeStorageSync("manual_change_store"),"locationPicker"==this.locationModule?(this.getNearestStore(),this.getCurrentLocation()):1==this.mapConfig.wap_is_open||this.enterDefaultStore()},onShow:function(){this.init()},onHide:function(){this.storeTimeOut&&clearTimeout(this.storeTimeOut),this.closeChooseStorePopup(),this.$store.commit("setDiySeckillInterval",0)},computed:{bgColor:function(){var e="";return this.diyData&&this.diyData.global&&(e=this.diyData.global.pageBgColor),e},bgImg:function(){var e="";return this.diyData&&this.diyData.global&&(e=this.diyData.global.topNavBg?"url("+this.$util.img(this.diyData.global.bgUrl)+")":this.diyData.global.pageBgColor),e},bgUrl:function(){var e="";return this.diyData&&this.diyData.global&&(e=this.diyData.global.topNavBg?"transparent":this.diyData.global.bgUrl),e},backgroundUrl:function(){var e=this.diyData.global.bgUrl&&"transparent"!=this.diyData.global.bgUrl?"url("+this.$util.img(this.diyData.global.bgUrl)+") ":"";return e},textNavColor:function(){return this.diyData&&this.diyData.global&&this.diyData.global.textNavColor?this.diyData.global.textNavColor:"#ffffff"},popWindowStyle:function(){var e,t,o=this.diyData.global.popWindow.imgHeight/this.diyData.global.popWindow.imgWidth;o<1?(e=290,t=e*o):(t=410,e=t/o);var i="";return this.diyData.global.popWindow&&-1!=this.diyData.global.popWindow.count&&this.diyData.global.popWindow.imageUrl&&(i+="height:"+2*t+"rpx;",i+="width:"+2*e+"rpx;"),i}},watch:{location:function(e){e&&(this.latitude=e.latitude,this.longitude=e.longitude,this.getNearestStore(),this.getCurrentLocation())}},methods:{todiyurl:function(e){this.$util.diyRedirectTo(e)},play:function(){},init:function(){var t=this;return(0,a.default)(n.default.mark((function o(){var i;return n.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return 1==t.mapConfig.wap_is_open&&t.locationStorage&&t.locationStorage.is_expired&&t.$util.getLocation({fail:function(e){t.enterDefaultStore()}}),t.storeToken&&e.getStorageSync("source_member")&&t.$util.onSourceMember(e.getStorageSync("source_member")),o.next=4,t.getDiyInfo();case 4:return o.next=6,t.getDiyAdv();case 6:t.$store.commit("setDiySeckillInterval",1),t.$util.getMpShare().then((function(e){t.mpShareData=e})),i=e.getStorageSync("manual_change_store"),i&&(e.removeStorageSync("manual_change_store"),e.pageScrollTo({duration:200,scrollTop:0}));case 10:case"end":return o.stop()}}),o)})))()},callback:function(){this.$refs.indexPage&&this.$refs.indexPage.initPageIndex()},getHeight:function(){var t=this,o=setInterval((function(){t.$nextTick((function(){var i=e.createSelectorQuery().in(t);i.select(".page-header").boundingClientRect((function(e){e&&e.height&&(t.paddingTop=e.height+"px",t.marginTop=-e.height+"px",clearInterval(o))})).exec()}))}),50)},getDiyAdv:function(){var t=this;return(0,a.default)(n.default.mark((function o(){var i;return n.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,t.$api.sendRequest({url:"/api/diyview/getstartadv",data:{},async:!1});case 2:i=o.sent,t.adv=i.value,1==t.adv.advshow&&setTimeout((function(){if(1==i.value.advtype){var o=e.getStorageSync(t.id+t.name+"_popwindow_count");(t.$refs.uniPopupWindow&&""==o||t.$refs.uniPopupWindow&&1==o)&&(t.$refs.uniPopupWindow.open(),e.setStorageSync(t.id+t.name+"_popwindow_count",1))}else 0==i.value.advtype&&(t.$refs.uniPopupWindow.open(),e.setStorageSync(t.id+t.name+"_popwindow_count",0))}),500);case 5:case"end":return o.stop()}}),o)})))()},getDiyInfo:function(){var t=this;return(0,a.default)(n.default.mark((function o(){var i,a,s,c,l,u,d,f,p,h,g,m;return n.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,t.$api.sendRequest({url:"/api/diyview/info",data:{id:t.id,name:t.name,en_type:e.getStorageSync("lang")},async:!1});case 2:if(i=o.sent,0==i.code&&i.data){o.next=12;break}if(t.$refs.loadingCover&&t.$refs.loadingCover.hide(),-3!=i.code){o.next=9;break}return t.$util.showToast({title:i.message}),t.diyData={},o.abrupt("return");case 9:return t.$util.showToast({title:"未配置自定义页面数据"}),t.diyData={},o.abrupt("return");case 12:if(a=i.data,!a.value){o.next=39;break}t.diyData=JSON.parse(a.value),"会员中心"!=t.diyData.global.title&&t.$langConfig.title(t.diyData.global.title),t.mpCollect=t.diyData.global.mpCollect,t.setPublicShare(),s=-1,c=-1,t.diyData.value.forEach((function(e,t){"Search"==e.componentName&&"fixed"==e.positionWay&&(s=t),"TopCategory"==e.componentName&&(c=t)})),-1!=s&&-1!=c?(u=t.diyData.value.slice(s,s+1),d=t.diyData.value.slice(c,c+1),t.diyData.value.splice(s,1),s>c?(t.diyData.value.splice(c,1),(f=t.diyData.value).splice.apply(f,[0,0].concat((0,r.default)(d))),(p=t.diyData.value).splice.apply(p,[1,0].concat((0,r.default)(u)))):(l=t.diyData.value).splice.apply(l,[0,0].concat((0,r.default)(u)))):-1!=s&&-1==c&&(g=t.diyData.value.slice(s,s+1),t.diyData.value.splice(s,1),(h=t.diyData.value).splice.apply(h,[0,0].concat((0,r.default)(g)))),m=0;case 23:if(!(m=20?this.$refs.topNav.navTopBg():this.$refs.topNav.unSetnavTopBg())},onPullDownRefresh:function(){this.$store.commit("setComponentRefresh"),setTimeout((function(){e.stopPullDownRefresh()}),50)},onShareAppMessage:function(){return this.mpShareData.appMessage},onShareTimeline:function(){return this.mpShareData.timeLine}};t.default=c}).call(this,o("df3c")["default"])},"9b78":function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.uniStorage=function(){var t=e.setStorageSync,o=e.setStorage,i=e.getStorage,n=e.getStorageSync,r=e.removeStorage,a=e.removeStorageSync;e.setStorage=function(e){e.key=s(e.key),o(e)},e.setStorageSync=function(e,o){t(s(e),o)},e.getStorage=function(e){e.key=s(e.key),i(e)},e.getStorageSync=function(e){return n(s(e))},e.removeStorage=function(e){e.key=s(e.key),r(e)},e.removeStorageSync=function(e){return a(s(e))}};var n=i(o("c16a")),r=n.default.baseUrl.replace(/(http:\/\/)|(https:\/\/)/g,""),a=e.getStorageSync("prefix");a!=r&&e.clearStorageSync(),e.setStorageSync("prefix",r);var s=function(e){var t=(r?"".concat(r,"_"):"")+e;return t}}).call(this,o("df3c")["default"])},"9ceb":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"充值详情"}},"9d8b":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"账户列表",name:"姓名",accountType:"账号类型",mobilePhone:"手机号码",withdrawalAccount:"提现账号",bankInfo:"支行信息",newAddAccount:"新增账户",del:"删除",update:"修改",emptyText:"当前暂无账户"}},"9f9e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"签到有礼"}},"9fc1":function(e,t,o){var i=o("3b2d")["default"];function n(){"use strict"; -/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=n=function(){return o},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,o={},r=Object.prototype,a=r.hasOwnProperty,s=Object.defineProperty||function(e,t,o){e[t]=o.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",d=c.toStringTag||"@@toStringTag";function f(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,o){return e[t]=o}}function p(e,t,o,i){var n=t&&t.prototype instanceof y?t:y,r=Object.create(n.prototype),a=new A(i||[]);return s(r,"_invoke",{value:O(e,o,a)}),r}function h(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}o.wrap=p;var g="suspendedStart",m="executing",_="completed",v={};function y(){}function b(){}function w(){}var S={};f(S,l,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(T([])));x&&x!==r&&a.call(x,l)&&(S=x);var D=w.prototype=y.prototype=Object.create(S);function P(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function o(n,r,s,c){var l=h(e[n],e,r);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==i(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,s,c)}),(function(e){o("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return o("throw",e,s,c)}))}c(l.arg)}var n;s(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,n){o(e,i,t,n)}))}return n=n?n.then(r,r):r()}})}function O(e,o,i){var n=g;return function(r,a){if(n===m)throw Error("Generator is already running");if(n===_){if("throw"===r)throw a;return{value:t,done:!0}}for(i.method=r,i.arg=a;;){var s=i.delegate;if(s){var c=$(s,i);if(c){if(c===v)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===g)throw n=_,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=m;var l=h(e,o,i);if("normal"===l.type){if(n=i.done?_:"suspendedYield",l.arg===v)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n=_,i.method="throw",i.arg=l.arg)}}}function $(e,o){var i=o.method,n=e.iterator[i];if(n===t)return o.delegate=null,"throw"===i&&e.iterator["return"]&&(o.method="return",o.arg=t,$(e,o),"throw"===o.method)||"return"!==i&&(o.method="throw",o.arg=new TypeError("The iterator does not provide a '"+i+"' method")),v;var r=h(n,e.iterator,o.arg);if("throw"===r.type)return o.method="throw",o.arg=r.arg,o.delegate=null,v;var a=r.arg;return a?a.done?(o[e.resultName]=a.value,o.next=e.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,v):a:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,v)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function T(e){if(e||""===e){var o=e[l];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function o(){for(;++n=0;--n){var r=this.tryEntries[n],s=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var c=a.call(r,"catchLoc"),l=a.call(r,"finallyLoc");if(c&&l){if(this.prev=0;--o){var i=this.tryEntries[o];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),M(o),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var i=o.completion;if("throw"===i.type){var n=i.arg;M(o)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,o,i){return this.delegate={iterator:T(e),resultName:o,nextLoc:i},"next"===this.method&&(this.arg=t),v}},o}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},a047:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"会员卡"}},a100:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"修改头像"}},a50b:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"待付款订单"}},a56f:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"帮助详情"}},a708:function(e,t,o){var i=o("6454");e.exports=function(e){if(Array.isArray(e))return i(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},a952:function(e,t,o){var i={"./en-us/common.js":"aaf5","./zh-cn/common.js":"7c64"};function n(e){var t=r(e);return o(t)}function r(e){if(!o.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}n.keys=function(){return Object.keys(i)},n.resolve=r,e.exports=n,n.id="a952"},aaf5:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={tabBar:{home:"index",category:"category",cart:"cart",member:"member"},common:{name:"英文",mescrollTextInOffset:"pull to refresh",mescrollTextOutOffset:"Loading...",mescrollEmpty:"No data available",goodsRecommendTitle:"Guess you like",currencySymbol:"¥"}}},ab7b:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"订单详情"}},ac2c:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={contact:"",person:"",personadd:"","contact-filled":"","person-filled":"","personadd-filled":"",phone:"",email:"",chatbubble:"",chatboxes:"","phone-filled":"","email-filled":"","chatbubble-filled":"","chatboxes-filled":"",weibo:"",weixin:"",pengyouquan:"",chat:"",qq:"",videocam:"",camera:"",mic:"",location:"","mic-filled":"",speech:"","location-filled":"",micoff:"",image:"",map:"",compose:"",trash:"",upload:"",download:"",close:"",redo:"",undo:"",refresh:"",star:"",plus:"",minus:"",circle:"",checkbox:"","close-filled":"",clear:"","refresh-filled":"","star-filled":"","plus-filled":"","minus-filled":"","circle-filled":"","checkbox-filled":"",closeempty:"",refreshempty:"",reload:"",starhalf:"",spinner:"","spinner-cycle":"",search:"",plusempty:"",forward:"",back:"","left-nav":"",checkmarkempty:"",home:"",navigate:"",gear:"",paperplane:"",info:"",help:"",locked:"",more:"",flag:"","home-filled":"","gear-filled":"","info-filled":"","help-filled":"","more-filled":"",settings:"",list:"",bars:"",loop:"",paperclip:"",eye:"",arrowup:"",arrowdown:"",arrowleft:"",arrowright:"",arrowthinup:"",arrowthindown:"",arrowthinleft:"",arrowthinright:"",pulldown:"",closefill:"",sound:"",scan:""}},aefd:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"",select:"选择",params:"参数",service:"商品服务",allGoods:"全部商品",image:"图片",video:"视频"}},af34:function(e,t,o){var i=o("a708"),n=o("b893"),r=o("6382"),a=o("9008");e.exports=function(e){return i(e)||n(e)||r(e)||a()},e.exports.__esModule=!0,e.exports["default"]=e.exports},afbd:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"我的关注"}},b07f:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"我要评价"}},b2af:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"积分商城"}},b2e5:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:""}},b465:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"商品找不到"}},b647:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"充值记录"}},b67f:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"商品列表",Random:"综合",Sales:"销量",Price:"价格",Filter:"筛选",Search:"请输入您要搜索的商品",Make:"咨询"}},b878:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"拼团专区"}},b893:function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},bba4:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"",select:"选择",params:"参数",service:"商品服务",allGoods:"全部商品",image:"图片",video:"视频"}},bd1c:function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var n=i(o("3b2d"));function r(e,t){var o=this;o.version="1.2.3",o.options=e||{},o.isScrollBody=t||!1,o.isDownScrolling=!1,o.isUpScrolling=!1;var i=o.options.down&&o.options.down.callback;o.initDownScroll(),o.initUpScroll(),setTimeout((function(){o.optDown.use&&o.optDown.auto&&i&&(o.optDown.autoShowLoading?o.triggerDownScroll():o.optDown.callback&&o.optDown.callback(o)),setTimeout((function(){o.optUp.use&&o.optUp.auto&&!o.isUpAutoLoad&&o.triggerUpScroll()}),100)}),30)}r.prototype.extendDownScroll=function(e){r.extend(e,{use:!0,auto:!0,native:!1,autoShowLoading:!1,isLock:!1,offset:80,startTop:100,fps:80,inOffsetRate:1,outOffsetRate:.2,bottomOffset:20,minAngle:45,textInOffset:"下拉刷新",textOutOffset:"释放更新",textLoading:"加载中 ...",inited:null,inOffset:null,outOffset:null,onMoving:null,beforeLoading:null,showLoading:null,afterLoading:null,endDownScroll:null,callback:function(e){e.resetUpScroll()}})},r.prototype.extendUpScroll=function(e){r.extend(e,{use:!0,auto:!0,isLock:!1,isBoth:!0,isBounce:!1,callback:null,page:{num:0,size:10,time:null},noMoreSize:5,offset:80,textLoading:"加载中 ...",textNoMore:"-- END --",inited:null,showLoading:null,showNoMore:null,hideUpScroll:null,errDistance:60,toTop:{src:null,offset:1e3,duration:300,btnClick:null,onShow:null,zIndex:9990,left:null,right:20,bottom:120,safearea:!1,width:72,radius:"50%"},empty:{use:!0,icon:null,tip:"~ 暂无相关数据 ~",btnText:"",btnClick:null,onShow:null,fixed:!1,top:"100rpx",zIndex:99},onScroll:!1})},r.extend=function(e,t){if(!e)return t;for(var o in t)if(null==e[o]){var i=t[o];null!=i&&"object"===(0,n.default)(i)?e[o]=r.extend({},i):e[o]=i}else"object"===(0,n.default)(e[o])&&r.extend(e[o],t[o]);return e},r.prototype.initDownScroll=function(){var e=this;e.optDown=e.options.down||{},e.extendDownScroll(e.optDown),e.isScrollBody&&e.optDown.native?e.optDown.use=!1:e.optDown.native=!1,e.downHight=0,e.optDown.use&&e.optDown.inited&&setTimeout((function(){e.optDown.inited(e)}),0)},r.prototype.touchstartEvent=function(e){this.optDown.use&&(this.startPoint=this.getPoint(e),this.startTop=this.getScrollTop(),this.lastPoint=this.startPoint,this.maxTouchmoveY=this.getBodyHeight()-this.optDown.bottomOffset,this.inTouchend=!1)},r.prototype.touchmoveEvent=function(e){if(this.optDown.use&&this.startPoint){var t=this,o=(new Date).getTime();if(!(t.moveTime&&o-t.moveTime0&&(t.isScrollBody&&i<=0||!t.isScrollBody&&(i<=0||i<=t.optDown.startTop&&i===t.startTop))&&!t.inTouchend&&!t.isDownScrolling&&!t.optDown.isLock&&(!t.isUpScrolling||t.isUpScrolling&&t.optUp.isBoth)){var a=t.getAngle(t.lastPoint,n);if(a0&&n.y>=t.maxTouchmoveY)return t.inTouchend=!0,void t.touchendEvent();t.preventDefault(e);var s=n.y-t.lastPoint.y;t.downHight0?Math.round(s*t.optDown.outOffsetRate):s);var c=t.downHight/t.optDown.offset;t.optDown.onMoving&&t.optDown.onMoving(t,c,t.downHight)}t.lastPoint=n}}},r.prototype.touchendEvent=function(e){if(this.optDown.use)if(this.isMoveDown)this.downHight>=this.optDown.offset?this.triggerDownScroll():(this.downHight=0,this.optDown.endDownScroll&&this.optDown.endDownScroll(this)),this.movetype=0,this.isMoveDown=!1;else if(!this.isScrollBody&&this.getScrollTop()===this.startTop){var t=this.getPoint(e).y-this.startPoint.y<0;if(t){var o=this.getAngle(this.getPoint(e),this.startPoint);o>80&&this.triggerUpScroll(!0)}}},r.prototype.getPoint=function(e){return e?e.touches&&e.touches[0]?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches[0]?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.clientX,y:e.clientY}:{x:0,y:0}},r.prototype.getAngle=function(e,t){var o=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y),n=Math.sqrt(o*o+i*i),r=0;return 0!==n&&(r=Math.asin(i/n)/Math.PI*180),r},r.prototype.triggerDownScroll=function(){this.optDown.beforeLoading&&this.optDown.beforeLoading(this)||(this.showDownScroll(),this.optDown.callback&&this.optDown.callback(this))},r.prototype.showDownScroll=function(){this.isDownScrolling=!0,this.optDown.native?(e.startPullDownRefresh(),this.optDown.showLoading&&this.optDown.showLoading(this,0)):(this.downHight=this.optDown.offset,this.optDown.showLoading&&this.optDown.showLoading(this,this.downHight))},r.prototype.onPullDownRefresh=function(){this.isDownScrolling=!0,this.optDown.showLoading&&this.optDown.showLoading(this,0),this.optDown.callback&&this.optDown.callback(this)},r.prototype.endDownScroll=function(){if(this.optDown.native)return this.isDownScrolling=!1,this.optDown.endDownScroll&&this.optDown.endDownScroll(this),void e.stopPullDownRefresh();var t=this,o=function(){t.downHight=0,t.isDownScrolling=!1,t.optDown.endDownScroll&&t.optDown.endDownScroll(t),!t.isScrollBody&&t.setScrollHeight(0)},i=0;t.optDown.afterLoading&&(i=t.optDown.afterLoading(t)),"number"===typeof i&&i>0?setTimeout(o,i):o()},r.prototype.lockDownScroll=function(e){null==e&&(e=!0),this.optDown.isLock=e},r.prototype.lockUpScroll=function(e){null==e&&(e=!0),this.optUp.isLock=e},r.prototype.initUpScroll=function(){var e=this;e.optUp=e.options.up||{use:!1},e.extendUpScroll(e.optUp),e.optUp.isBounce||e.setBounce(!1),!1!==e.optUp.use&&(e.optUp.hasNext=!0,e.startNum=e.optUp.page.num+1,e.optUp.inited&&setTimeout((function(){e.optUp.inited(e)}),0))},r.prototype.onReachBottom=function(){this.isScrollBody&&!this.isUpScrolling&&!this.optUp.isLock&&this.optUp.hasNext&&this.triggerUpScroll()},r.prototype.onPageScroll=function(e){this.isScrollBody&&(this.setScrollTop(e.scrollTop),e.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn())},r.prototype.scroll=function(e,t){this.setScrollTop(e.scrollTop),this.setScrollHeight(e.scrollHeight),null==this.preScrollY&&(this.preScrollY=0),this.isScrollUp=e.scrollTop-this.preScrollY>0,this.preScrollY=e.scrollTop,this.isScrollUp&&this.triggerUpScroll(!0),e.scrollTop>=this.optUp.toTop.offset?this.showTopBtn():this.hideTopBtn(),this.optUp.onScroll&&t&&t()},r.prototype.triggerUpScroll=function(e){if(!this.isUpScrolling&&this.optUp.use&&this.optUp.callback){if(!0===e){var t=!1;if(!this.optUp.hasNext||this.optUp.isLock||this.isDownScrolling||this.getScrollBottom()<=this.optUp.offset&&(t=!0),!1===t)return}this.showUpScroll(),this.optUp.page.num++,this.isUpAutoLoad=!0,this.num=this.optUp.page.num,this.size=this.optUp.page.size,this.time=this.optUp.page.time,this.optUp.callback(this)}},r.prototype.showUpScroll=function(){this.isUpScrolling=!0,this.optUp.showLoading&&this.optUp.showLoading(this)},r.prototype.showNoMore=function(){this.optUp.hasNext=!1,this.optUp.showNoMore&&this.optUp.showNoMore(this)},r.prototype.hideUpScroll=function(){this.optUp.hideUpScroll&&this.optUp.hideUpScroll(this)},r.prototype.endUpScroll=function(e){null!=e&&(e?this.showNoMore():this.hideUpScroll()),this.isUpScrolling=!1},r.prototype.resetUpScroll=function(e){if(this.optUp&&this.optUp.use){var t=this.optUp.page;this.prePageNum=t.num,this.prePageTime=t.time,t.num=this.startNum,t.time=null,this.isDownScrolling||!1===e||(null==e?(this.removeEmpty(),this.showUpScroll()):this.showDownScroll()),this.isUpAutoLoad=!0,this.num=t.num,this.size=t.size,this.time=t.time,this.optUp.callback&&this.optUp.callback(this)}},r.prototype.setPageNum=function(e){this.optUp.page.num=e-1},r.prototype.setPageSize=function(e){this.optUp.page.size=e},r.prototype.endByPage=function(e,t,o){var i;this.optUp.use&&null!=t&&(i=this.optUp.page.num1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var n=[t,e];e=n[0],t=n[1]}"string"!==typeof e&&(e=S());"string"!==typeof o&&(o="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var r=new b({locale:e,fallbackLocale:o,messages:t,watcher:i}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return r.t(e,t)};else{var o=!1;a=function(e,t){var i=getApp().$vm;return i&&(i.$locale,o||(o=!0,w(i,r))),r.t(e,t)}}return a(e,t)};return{i18n:r,f:function(e,t,o){return r.f(e,t,o)},t:function(e,t){return a(e,t)},add:function(e,t){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r.add(e,t,o)},watch:function(e){return r.watchLocale(e)},getLocale:function(){return r.getLocale()},setLocale:function(e){return r.setLocale(e)}}},t.isI18nStr=D,t.isString=void 0,t.normalizeLocale=y,t.parseI18nJson=function e(t,o,i){k||(k=new d);return O(t,(function(t,n){var r=t[n];x(r)?D(r,i)&&(t[n]=P(r,o,i)):e(r,o,i)})),t},t.resolveLocale=function(e){return function(t){return t?(t=y(t)||t,function(e){var t=[],o=e.split("-");while(o.length)t.push(o.join("-")),o.pop();return t}(t).find((function(t){return e.indexOf(t)>-1}))):t}};var r=n(o("34cf")),a=n(o("67ad")),s=n(o("0bdb")),c=n(o("3b2d")),l=function(e){return null!==e&&"object"===(0,c.default)(e)},u=["{","}"],d=function(){function e(){(0,a.default)(this,e),this._caches=Object.create(null)}return(0,s.default)(e,[{key:"interpolate",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;if(!t)return[e];var i=this._caches[e];return i||(i=h(e,o),this._caches[e]=i),g(i,t)}}]),e}();t.Formatter=d;var f=/^(?:\d)+/,p=/^(?:\w)+/;function h(e,t){var o=(0,r.default)(t,2),i=o[0],n=o[1],a=[],s=0,c="";while(s-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var o=["en","fr","es"];t&&Object.keys(t).length>0&&(o=Object.keys(t));var i=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,o);return i||void 0}}var b=function(){function e(t){var o=t.locale,i=t.fallbackLocale,n=t.messages,r=t.watcher,s=t.formater;(0,a.default)(this,e),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],i&&(this.fallbackLocale=i),this.formater=s||v,this.messages=n||{},this.setLocale(o||"en"),r&&this.watchLocale(r)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,o=this.locale;this.locale=y(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],o!==this.locale&&this.watchers.forEach((function(e){e(t.locale,o)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,o=this.watchers.push(e)-1;return function(){t.watchers.splice(o,1)}}},{key:"add",value:function(e,t){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this.messages[e];i?o?Object.assign(i,t):Object.keys(t).forEach((function(e){_(i,e)||(i[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,o){return this.formater.interpolate(e,t,o).join("")}},{key:"t",value:function(e,t,o){var i=this.message;return"string"===typeof t?(t=y(t,this.messages),t&&(i=this.messages[t])):o=t,_(i,e)?this.formater.interpolate(i[e],o).join(""):(e)}}]),e}();function w(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function S(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof i&&i.getLocale?i.getLocale():"en"}t.I18n=b;var k,x=function(e){return"string"===typeof e};function D(e,t){return e.indexOf(t[0])>-1}function P(e,t,o){return k.interpolate(e,t,o).join("")}function C(e,t,o){return O(e,(function(e,i){(function(e,t,o,i){var n=e[t];if(x(n)){if(D(n,i)&&(e[t]=P(n,o[0].values,i),o.length>1)){var r=e[t+"Locales"]={};o.forEach((function(e){r[e.locale]=P(n,e.values,i)}))}}else C(n,o,i)})(e,i,t,o)})),e}function O(e,t){if(Array.isArray(e)){for(var o=0;o1)for(var d in u){var f=parseInt(d)+1;f1)for(var p=1;p1&&void 0!==arguments[1]?arguments[1]:0,i=getCurrentPages()[getCurrentPages().length-1];i&&(e.setStorageSync("lang",t),n=e.getStorageSync("lang")||"zh-cn",this.refresh(),1==o?e.reLaunch({url:"/pages/index/index"}):e.reLaunch({url:"/pages/member/index"}))},refresh:function(){var t=getCurrentPages()[getCurrentPages().length-1];t&&(n=e.getStorageSync("lang")||"zh-cn",this.title(this.lang("title")))},title:function(t){t&&e.setNavigationBarTitle({title:t,success:function(e){},fail:function(e){}})},list:function(){var e=[];try{for(var t=0;t>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return n}:atob;var v=Object.prototype.toString,y=Object.prototype.hasOwnProperty;function b(e){return"function"===typeof e}function w(e){return"string"===typeof e}function S(e){return"[object Object]"===v.call(e)}function k(e,t){return y.call(e,t)}function x(){}function D(e){var t=Object.create(null);return function(o){var i=t[o];return i||(t[o]=e(o))}}var P=/-(\w)/g,C=D((function(e){return e.replace(P,(function(e,t){return t?t.toUpperCase():""}))}));function O(e){var t={};return S(e)&&Object.keys(e).sort().forEach((function(o){t[o]=e[o]})),Object.keys(t)?t:e}var $=["invoke","success","fail","complete","returnValue"],j={},M={};function A(e,t){Object.keys(t).forEach((function(o){-1!==$.indexOf(o)&&b(t[o])&&(e[o]=function(e,t){var o=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return o?function(e){for(var t=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(o){if(Array.isArray(e[o])){var i=t[o];t[o]=function(n){E(e[o],n,t).then((function(e){return b(i)&&i(e)||e}))}}})),t}function R(e,t){var o=[];Array.isArray(j.returnValue)&&o.push.apply(o,(0,l.default)(j.returnValue));var i=M[e];return i&&Array.isArray(i.returnValue)&&o.push.apply(o,(0,l.default)(i.returnValue)),o.forEach((function(e){t=e(t)||t})),t}function N(e){var t=Object.create(null);Object.keys(j).forEach((function(e){"returnValue"!==e&&(t[e]=j[e].slice())}));var o=M[e];return o&&Object.keys(o).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(o[e]))})),t}function U(e,t,o){for(var i=arguments.length,n=new Array(i>3?i-3:0),r=3;r0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length,n=new Array(i>1?i-1:0),r=1;r-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var o=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,["en","fr","es"]);return o||void 0}}function se(){if(b(getApp)){var t=getApp({allowDefault:!0});if(t&&t.$vm)return t.$vm.$locale}return ae(e.getAppBaseInfo().language)||"en"}var ce=[];"undefined"!==typeof i&&(i.getLocale=se);var le={promiseInterceptor:B},ue=Object.freeze({__proto__:null,upx2px:te,rpx2px:te,getLocale:se,setLocale:function(e){var t=!!b(getApp)&&getApp();if(!t)return!1;var o=t.$vm.$locale;return o!==e&&(t.$vm.$locale=e,ce.forEach((function(t){return t({locale:e})})),!0)},onLocaleChange:function(e){-1===ce.indexOf(e)&&ce.push(e)},addInterceptor:function(e,t){"string"===typeof e&&S(t)?A(M[e]||(M[e]={}),t):S(e)&&A(j,e)},removeInterceptor:function(e,t){"string"===typeof e?S(t)?T(M[e],t):delete M[e]:S(e)&&T(j,e)},interceptors:le});var de,fe={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=function(e){var t=getCurrentPages(),o=t.length;while(o--){var i=t[o];if(i.$page&&i.$page.fullPath===e)return o}return-1}(e.url);if(-1!==t){var o=getCurrentPages().length-1-t;o>0&&(e.delta=o)}}}},pe={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var o=e.urls;if(Array.isArray(o)){var i=o.length;if(i)return t<0?t=0:t>=i&&(t=i-1),t>0?(e.current=o[t],e.urls=o.filter((function(e,i){return!(i2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(S(t)){var r=!0===n?t:{};for(var a in b(o)&&(o=o(t,r)||{}),t)if(k(o,a)){var s=o[a];b(s)&&(s=s(t[a],t,r)),s?w(s)?r[s]=t[a]:S(s)&&(r[s.name?s.name:a]=s.value):console.warn("")}else-1!==Pe.indexOf(a)?b(t[a])&&(r[a]=Ce(e,t[a],i)):n||(r[a]=t[a]);return r}return b(t)&&(t=Ce(e,t,i)),t}function $e(e,t,o){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return b(De.returnValue)&&(t=De.returnValue(e,t)),Oe(e,t,o,{},i)}function je(t,o){if(k(De,t)){var i=De[t];return i?function(o,n){var r=i;b(i)&&(r=i(o)),o=Oe(t,o,r.args,r.returnValue);var a=[o];"undefined"!==typeof n&&a.push(n),b(r.name)?t=r.name(o):w(r.name)&&(t=r.name);var s=e[t].apply(e,a);return X(t)?$e(t,s,r.returnValue,W(t)):s}:function(){}}return o}var Me=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(e){Me[e]=function(e){return function(t){var o=t.fail,i=t.complete,n={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};b(o)&&o(n),b(i)&&i(n)}}(e)}));var Ae={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var Te=Object.freeze({__proto__:null,getProvider:function(e){var t=e.service,o=e.success,i=e.fail,n=e.complete,r=!1;Ae[t]?(r={errMsg:"getProvider:ok",service:t,provider:Ae[t]},b(o)&&o(r)):(r={errMsg:"getProvider:fail service not found"},b(i)&&i(r)),b(n)&&n(r)}}),Ie=function(){var e;return function(){return e||(e=new f.default),e}}();function Fe(e,t,o){return e[t].apply(e,o)}var Ee,Le,Re,Ne=Object.freeze({__proto__:null,$on:function(){return Fe(Ie(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return Fe(Ie(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return Fe(Ie(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return Fe(Ie(),"$emit",Array.prototype.slice.call(arguments))}});function Ue(e){return function(){try{return e.apply(e,arguments)}catch(t){}}}function Be(e){try{return JSON.parse(e)}catch(t){}return e}var ze=[];function Ve(e,t){ze.forEach((function(o){o(e,t)})),ze.length=0}var Ge=[],qe=e.getAppBaseInfo&&e.getAppBaseInfo();qe||(qe=e.getSystemInfoSync());var He=qe?qe.host:null,We=He&&"SAAASDK"===He.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Xe=Object.freeze({__proto__:null,shareVideoMessage:We,getPushClientId:function(e){S(e)||(e={});var t=function(e){var t={};for(var o in e){var i=e[o];b(i)&&(t[o]=Ue(i),delete e[o])}return t}(e),o=t.success,i=t.fail,n=t.complete,r=b(o),a=b(i),s=b(n);Promise.resolve().then((function(){"undefined"===typeof Re&&(Re=!1,Ee="",Le="uniPush is not enabled"),ze.push((function(e,t){var c;e?(c={errMsg:"getPushClientId:ok",cid:e},r&&o(c)):(c={errMsg:"getPushClientId:fail"+(t?" "+t:"")},a&&i(c)),s&&n(c)})),"undefined"!==typeof Ee&&Ve(Ee,Le)}))},onPushMessage:function(e){-1===Ge.indexOf(e)&&Ge.push(e)},offPushMessage:function(e){if(e){var t=Ge.indexOf(e);t>-1&&Ge.splice(t,1)}else Ge.length=0},invokePushCallback:function(e){if("enabled"===e.type)Re=!0;else if("clientId"===e.type)Ee=e.cid,Le=e.errMsg,Ve(Ee,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:Be(e.message)},o=0;o=0;r--){var a=n[r];if(a.$scope._$vueId===o)return a}for(var s=n.length-1;s>=0;s--)if(i=e(n[s],o),i)return i}(this.$vm,i)),t||(t=this.$vm),n.parent=t}function tt(e){return Object.defineProperty(e,"__v_isMPComponent",{configurable:!0,enumerable:!1,value:!0}),e}function ot(e){return function(e){return null!==e&&"object"===(0,u.default)(e)}(e)&&Object.isExtensible(e)&&Object.defineProperty(e,"__ob__",{configurable:!0,enumerable:!1,value:(0,s.default)({},"__v_skip",!0)}),e}var it=/_(.*)_worklet_factory_/;var nt=Page,rt=Component,at=/:/g,st=D((function(e){return C(e.replace(at,"-"))}));function ct(e){var t=e.triggerEvent,o=function(e){for(var o=arguments.length,i=new Array(o>1?o-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{};return lt("onLoad",e),nt(e)},Page.after=nt.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return lt("created",e),rt(e)});function ut(e,t,o){t.forEach((function(t){(function e(t,o){if(!o)return!0;if(f.default.options&&Array.isArray(f.default.options[t]))return!0;if(o=o.default||o,b(o))return!!b(o.extendOptions[t])||!!(o.super&&o.super.options&&Array.isArray(o.super.options[t]));if(b(o[t])||Array.isArray(o[t]))return!0;var i=o.mixins;return Array.isArray(i)?!!i.find((function(o){return e(t,o)})):void 0})(t,o)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function dt(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];ft(t).forEach((function(t){return pt(e,t,o)}))}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(o){0===o.indexOf("on")&&b(e[o])&&t.push(o)})),t}function pt(e,t,o){-1!==o.indexOf(t)||k(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function ht(e,t){var o;return t=t.default||t,o=b(t)?t:e.extend(t),t=o.options,[o,t]}function gt(e,t){if(Array.isArray(t)&&t.length){var o=Object.create(null);t.forEach((function(e){o[e]=!0})),e.$scopedSlots=e.$slots=o}}function mt(e,t){e=(e||"").split(",");var o=e.length;1===o?t._$vueId=e[0]:2===o&&(t._$vueId=e[0],t._$vuePid=e[1])}function _t(e,t){var o=e.data||{},i=e.methods||{};if("function"===typeof o)try{o=o.call(t)}catch(n){Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"lucky_weapp",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG}else try{o=JSON.parse(JSON.stringify(o))}catch(n){}return S(o)||(o={}),Object.keys(i).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||k(o,e)||(o[e]=i[e])})),o}var vt=[String,Number,Boolean,Object,Array,null];function yt(e){return function(t,o){this.$vm&&(this.$vm[e]=t)}}function bt(e,t){var o=e.behaviors,i=e.extends,n=e.mixins,r=e.props;r||(e.props=r=[]);var a=[];return Array.isArray(o)&&o.forEach((function(e){a.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(r)?(r.push("name"),r.push("value")):(r.name={type:String,default:""},r.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),S(i)&&i.props&&a.push(t({properties:St(i.props,!0)})),Array.isArray(n)&&n.forEach((function(e){S(e)&&e.props&&a.push(t({properties:St(e.props,!0)}))})),a}function wt(e,t,o,i){return Array.isArray(t)&&1===t.length?t[0]:t}function St(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>3?arguments[3]:void 0,i={};return t||(i.vueId={type:String,value:""},o.virtualHost&&(i.virtualHostStyle={type:null,value:""},i.virtualHostClass={type:null,value:""}),i.scopedSlotsCompiler={type:String,value:""},i.vueSlots={type:null,value:[],observer:function(e,t){var o=Object.create(null);e.forEach((function(e){o[e]=!0})),this.setData({$slots:o})}}),Array.isArray(e)?e.forEach((function(e){i[e]={type:null,observer:yt(e)}})):S(e)&&Object.keys(e).forEach((function(t){var o=e[t];if(S(o)){var n=o.default;b(n)&&(n=n()),o.type=wt(0,o.type),i[t]={type:-1!==vt.indexOf(o.type)?o.type:null,value:n,observer:yt(t)}}else{var r=wt(0,o);i[t]={type:-1!==vt.indexOf(r)?r:null,observer:yt(t)}}})),i}function kt(e,t,o,i){var n={};return Array.isArray(t)&&t.length&&t.forEach((function(t,r){"string"===typeof t?t?"$event"===t?n["$"+r]=o:"arguments"===t?n["$"+r]=o.detail&&o.detail.__args__||i:0===t.indexOf("$event.")?n["$"+r]=e.__get_value(t.replace("$event.",""),o):n["$"+r]=e.__get_value(t):n["$"+r]=e:n["$"+r]=function(e,t){var o=e;return t.forEach((function(t){var i=t[0],n=t[2];if(i||"undefined"!==typeof n){var r,a=t[1],s=t[3];Number.isInteger(i)?r=i:i?"string"===typeof i&&i&&(r=0===i.indexOf("#s#")?i.substr(3):e.__get_value(i,o)):r=o,Number.isInteger(r)?o=n:a?Array.isArray(r)?o=r.find((function(t){return e.__get_value(a,t)===n})):S(r)?o=Object.keys(r).find((function(t){return e.__get_value(a,r[t])===n})):console.error("v-for 暂不支持循环数据:",r):o=r[n],s&&(o=e.__get_value(s,o))}})),o}(e,t)})),n}function xt(e){for(var t={},o=1;o2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=!1,s=S(t.detail)&&t.detail.__args__||[t.detail];if(n&&(a=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!o.length))return a?[t]:s;var c=kt(e,i,t,s),l=[];return o.forEach((function(e){"$event"===e?"__set_model"!==r||n?n&&!a?l.push(s[0]):l.push(t):l.push(t.target.value):Array.isArray(e)&&"o"===e[0]?l.push(xt(e)):"string"===typeof e&&k(c,e)?l.push(c[e]):l.push(e)})),l}function Pt(e){var t=this;e=function(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=x,e.preventDefault=x,e.target=e.target||{},k(e,"detail")||(e.detail={}),k(e,"markerId")&&(e.detail="object"===(0,u.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),S(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}(e);var o=(e.currentTarget||e.target).dataset;if(!o)return;var i=o.eventOpts||o["event-opts"];if(!i)return;var n=e.type,r=[];return i.forEach((function(o){var i=o[0],a=o[1],s="^"===i.charAt(0);i=s?i.slice(1):i;var c="~"===i.charAt(0);i=c?i.slice(1):i,a&&function(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}(n,i)&&a.forEach((function(o){var i=o[0];if(i){var n=t.$vm;if(n.$options.generic&&(n=function(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}(n)||n),"$emit"===i)return void n.$emit.apply(n,Dt(t.$vm,e,o[1],o[2],s,i));var a=n[i];if(!b(a)){var l="page"===t.$vm.mpType?"Page":"Component",u=t.route||t.is;throw new Error("".concat(l,' "').concat(u,'" does not have a method "').concat(i,'"'))}if(c){if(a.once)return;a.once=!0}var d=Dt(t.$vm,e,o[1],o[2],s,i);d=Array.isArray(d)?d:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(d=d.concat([,,,,,,,,,,e])),r.push(a.apply(n,d))}}))})),"input"===n&&1===r.length&&"undefined"!==typeof r[0]?r[0]:void 0}var Ct={};var Ot=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function $t(){f.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=f.default.prototype.__call_hook;f.default.prototype.__call_hook=function(t,o){return"onLoad"===t&&o&&o.__id__&&(this.__eventChannel__=function(e){var t=Ct[e];return delete Ct[e],t}(o.__id__),delete o.__id__),e.call(this,t,o)}}function jt(t,o){var i=o.mocks,n=o.initRefs;$t(),function(){var e={},t={};function o(e){var t=this.$options.propsData.vueId;if(t){var o=t.split(",")[0];e(o)}}f.default.prototype.$hasSSP=function(o){var i=e[o];return i||(t[o]=this,this.$on("hook:destroyed",(function(){delete t[o]}))),i},f.default.prototype.$getSSP=function(t,o,i){var n=e[t];if(n){var r=n[o]||[];return i?r:r[0]}},f.default.prototype.$setSSP=function(t,i){var n=0;return o.call(this,(function(o){var r=e[o],a=r[t]=r[t]||[];a.push(i),n=a.length-1})),n},f.default.prototype.$initSSP=function(){o.call(this,(function(t){e[t]={}}))},f.default.prototype.$callSSP=function(){o.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},f.default.mixin({destroyed:function(){var o=this.$options.propsData,i=o&&o.vueId;i&&(delete e[i],delete t[i])}})}(),t.$options.store&&(f.default.prototype.$store=t.$options.store),function(e){e.prototype.uniIDHasRole=function(e){var t=_(),o=t.role;return o.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=_(),o=t.permission;return this.uniIDHasRole("admin")||o.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=_(),t=e.tokenExpired;return t>Date.now()}}(f.default),f.default.prototype.mpHost="mp-weixin",f.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(n(this),function(e,t){var o=e.$mp[e.mpType];t.forEach((function(t){k(o,t)&&(e[t]=o[t])}))}(this,i))}}});var r={onLaunch:function(o){this.$vm||(e.canIUse&&!e.canIUse("nextTick"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",o),this.$vm.__call_hook("onLaunch",o))}};r.globalData=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(e){r[e]=a[e]})),function(e,t,o){var i=e.observable({locale:o||ne.getLocale()}),n=[];t.$watchLocale=function(e){n.push(e)},Object.defineProperty(t,"$locale",{get:function(){return i.locale},set:function(e){i.locale=e,n.forEach((function(t){return t(e)}))}})}(f.default,t,ae(e.getAppBaseInfo().language)||"en"),ut(r,Ot),dt(r,t.$options),r}function Mt(e){return jt(e,{mocks:Je,initRefs:Ze})}function At(e){return App(Mt(e)),e}var Tt=/[!'()*]/g,It=function(e){return"%"+e.charCodeAt(0).toString(16)},Ft=/%2C/g,Et=function(e){return encodeURIComponent(e).replace(Tt,It).replace(Ft,",")};function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Et,o=e?Object.keys(e).map((function(o){var i=e[o];if(void 0===i)return"";if(null===i)return t(o);if(Array.isArray(i)){var n=[];return i.forEach((function(e){void 0!==e&&(null===e?n.push(t(o)):n.push(t(o)+"="+t(e)))})),n.join("&")}return t(o)+"="+t(i)})).filter((function(e){return e.length>0})).join("&"):null;return o?"?".concat(o):""}function Rt(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.isPage,i=t.initRelation,n=arguments.length>2?arguments[2]:void 0,r=ht(f.default,e),s=(0,a.default)(r,2),c=s[0],l=s[1],u=h({multipleSlots:!0,addGlobalClass:!0},l.options||{});l["mp-weixin"]&&l["mp-weixin"].options&&Object.assign(u,l["mp-weixin"].options);var d={options:u,data:_t(l,f.default.prototype),behaviors:bt(l,Ye),properties:St(l.props,!1,l.__file,u),lifetimes:{attached:function(){var e=this.properties,t={mpType:o.call(this)?"page":"component",mpInstance:this,propsData:e};mt(e.vueId,this),i.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new c(t),gt(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:et,__e:Pt}};return l.externalClasses&&(d.externalClasses=l.externalClasses),Array.isArray(l.wxsCallMethods)&&l.wxsCallMethods.forEach((function(e){d.methods[e]=function(t){return this.$vm[e](t)}})),n?[d,l,c]:o?d:[d,c]}(e,{isPage:Ke,initRelation:Qe},t)}var Nt=["onShow","onHide","onUnload"];function Ut(e){var t=Rt(e,!0),o=(0,a.default)(t,2),i=o[0],n=o[1];return ut(i.methods,Nt,n),i.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Lt(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},dt(i.methods,e,["onReady"]),function(e,t){t&&Object.keys(t).forEach((function(o){var i=o.match(it);if(i){var n=i[1];e[o]=t[o],e[n]=t[n]}}))}(i.methods,n.methods),i}function Bt(e){return Component(function(e){return Ut(e)}(e))}function zt(e){return Component(Rt(e))}function Vt(t){var o=Mt(t),i=getApp({allowDefault:!0});t.$scope=i;var n=i.globalData;if(n&&Object.keys(o.globalData).forEach((function(e){k(n,e)||(n[e]=o.globalData[e])})),Object.keys(o).forEach((function(e){k(i,e)||(i[e]=o[e])})),b(o.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,o=new Array(e),i=0;i=0&&t.data?e.storeList.data=e.storeList.data.concat(t.data.list):e.$util.showToast({title:t.message})}})},selectStore:function(e){this.$util.redirectTo("/pages_tool/store/detail",{store_id:e.store_id}),this.closeStoreListPopup()},switchGoodsAttr:function(){this.goodsAttrShow=!this.goodsAttrShow},getGoodsEvaluate:function(e){var t=this;e&&(this.goodsEvaluate=e,this.goodsEvaluate.forEach((function(e,o){t.goodsEvaluate[o].images&&(t.goodsEvaluate[o].images=t.goodsEvaluate[o].images.split(",")),1==t.goodsEvaluate[o].is_anonymous&&(t.goodsEvaluate[o].member_name=t.goodsEvaluate[o].member_name.replace(t.goodsEvaluate[o].member_name.substring(1,t.goodsEvaluate[o].member_name.length-1),"***"))})))},previewEvaluate:function(t,o,i){for(var n=[],r=0;r0&&(e.whetherCollection=1),t.next=16;break;case 11:return t.next=13,e.$api.sendRequest({url:"/api/goodscollect/delete",data:{goods_id:e.goodsSkuDetail.goods_id},async:!1});case 13:n=t.sent,i=n.data,i>0&&(e.whetherCollection=0);case 16:return t.abrupt("return",e.whetherCollection);case 19:e.source_member?e.$refs.login.open(e.shareUrl+"&source_member="+e.source_member):e.$refs.login.open(e.shareUrl);case 20:case"end":return t.stop()}}),t)})))()},openSharePopup:function(){this.$refs.sharePopup.open()},closeSharePopup:function(){this.$refs.sharePopup.close()},copyUrl:function(){var e=this,t=this.$config.h5Domain+this.shareUrl;this.memberInfo&&this.memberInfo.member_id&&(t+="&source_member="+this.memberInfo.member_id),this.$util.copy(t,(function(){e.closeSharePopup()}))},openPosterPopup:function(){this.getGoodsPoster(),this.$refs.sharePopup.close()},closePosterPopup:function(){this.$refs.posterPopup.close(),this.poster=""},getGoodsPoster:function(){var t=this;e.showLoading({title:"海报生成中..."}),this.memberInfo&&this.memberInfo.member_id&&(this.posterParams.source_member=this.memberInfo.member_id),this.$api.sendRequest({url:this.posterApi,data:{page:this.goodsRoute,qrcode_param:JSON.stringify(this.posterParams)},success:function(o){0==o.code?(t.$refs.posterPopup.open(),t.poster=o.data.path+"?time="+(new Date).getTime()):(t.posterMsg=o.message,t.$util.showToast({title:o.message})),e.hideLoading()},fail:function(t){e.hideLoading()}})},previewMedia:function(t){for(var o=[],i=0;i=0?(e.data.openid&&(i.authInfo.weapp_openid=e.data.openid),e.data.unionid&&(i.authInfo.wx_unionid=e.data.unionid),"function"==typeof t&&t(i.authInfo)):i.$util.showToast({title:e.message?e.message:"小程序配置错误"})}})},fail:function(e){var t=o.getLaunchOptionsSync().scene;-1==[1154,1155].indexOf(t)&&i.$util.showToast({title:e.errMsg})}})}}};t.default=i}).call(this,o("df3c")["default"],o("3223")["default"])},e41b:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"待付款订单"}},e5ac:function(e,t,o){"use strict";(function(e){var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("96b0")),r=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,a=/^<\/([-A-Za-z0-9_]+)[^>]*>/,s=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,c=h("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),l=h("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),u=h("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),d=h("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),f=h("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),p=h("script,style");function h(e){for(var t={},o=e.split(","),i=0;i\n/,"").replace(/\n/,"").replace(/\n/,"")}(t),t=function(e){return e=e.replace(//gi,""),e}(t),t=function(t){var o=e.getSystemInfoSync(),i=o.windowWidth;i-=20,i+="px";var r=']*src=['"]([^'"]+)[^>]*>/gi,(function(e,t){return r+' src="'+n.default.img(t)+'"/>'})),t}(t),t=function(e){return e=e.replace(/style\s*=\s*["][^>]*;[^"]?/gi,(function(e,t){return e=e.replace(/[:](\s?)[\s\S]*/gi,(function(e,t){return e.replace(/"/g,"'")})),e})),e}(t),t=function(t){var o=e.getSystemInfoSync(),i=o.windowWidth;i-=20,i+="px";var r='