From 5edaf8fd0863026129be08fc4b065a36fce3a0bd Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Mon, 29 Dec 2025 18:19:24 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BB=A3=E7=A0=81=E5=8E=8B=E7=BC=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/vendor.js | 4 ++-- components/ns-empty/ns-empty.js | 2 +- pages/contact/contact.wxml | 2 +- pages/goods/cart.wxml | 2 +- pages/index/index.wxml | 2 +- pages_tool/article/detail.wxml | 21 +-------------------- pages_tool/member/footprint.wxml | 2 +- 7 files changed, 8 insertions(+), 27 deletions(-) diff --git a/common/vendor.js b/common/vendor.js index ab184c3..766d559 100644 --- a/common/vendor.js +++ b/common/vendor.js @@ -4,11 +4,11 @@ import site from "../site.js";(global["webpackJsonp"]=global["webpackJsonp"]||[] * (c) 2014-2024 Evan You * Released under the MIT License. */ -var o=Object.freeze({});function i(e){return void 0===e||null===e}function n(e){return void 0!==e&&null!==e}function r(e){return!0===e}function a(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function s(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function l(e){return"[object Object]"===c.call(e)}function u(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return n(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var o=Object.create(null),i=e.split(","),n=0;n-1)return e.splice(o,1)}}var _=Object.prototype.hasOwnProperty;function v(e,t){return _.call(e,t)}function y(e){var t=Object.create(null);return function(o){var i=t[o];return i||(t[o]=e(o))}}var b=/-(\w)/g,w=y((function(e){return e.replace(b,(function(e,t){return t?t.toUpperCase():""}))})),S=y((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,x=y((function(e){return e.replace(k,"-$1").toLowerCase()}));var D=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function o(o){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,o):e.call(t)}return o._length=e.length,o};function P(e,t){t=t||0;var o=e.length-t,i=new Array(o);while(o--)i[o]=e[o+t];return i}function C(e,t){for(var o in t)e[o]=t[o];return e}function O(e){for(var t={},o=0;o0),Y=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===H),K=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/),{}.watch);if(G)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){}}),window.addEventListener("test-passive",null,Q)}catch(Lo){}var Z=function(){return void 0===z&&(z=!G&&!q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),z},ee=G&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function te(e){return"function"===typeof e&&/native code/.test(e.toString())}var oe,ie="undefined"!==typeof Symbol&&te(Symbol)&&"undefined"!==typeof Reflect&&te(Reflect.ownKeys);oe="undefined"!==typeof Set&&te(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ne=$,re=0,ae=function(){this.id=re++,this.subs=[]};function se(e){ae.SharedObject.targetStack.push(e),ae.SharedObject.target=e,ae.target=e}function ce(){ae.SharedObject.targetStack.pop(),ae.SharedObject.target=ae.SharedObject.targetStack[ae.SharedObject.targetStack.length-1],ae.target=ae.SharedObject.target}ae.prototype.addSub=function(e){this.subs.push(e)},ae.prototype.removeSub=function(e){m(this.subs,e)},ae.prototype.depend=function(){ae.SharedObject.target&&ae.SharedObject.target.addDep(this)},ae.prototype.notify=function(){var e=this.subs.slice();for(var t=0,o=e.length;t-1)if(r&&!v(n,"default"))a=!1;else if(""===a||a===x(e)){var c=Ee(String,n.type);(c<0||s0&&(c=e(c,(o||"")+"_"+s),it(c[0])&&it(u)&&(d[l]=fe(u.text+c[0].text),c.shift()),d.push.apply(d,c)):a(c)?it(u)?d[l]=fe(u.text+c):""!==c&&d.push(fe(c)):it(c)&&it(u)?d[l]=fe(u.text+c.text):(r(t._isVList)&&n(c.tag)&&i(c.key)&&n(o)&&(c.key="__vlist"+o+"_"+s+"__"),d.push(c)));return d}(e):void 0}function it(e){return n(e)&&n(e.text)&&function(e){return!1===e}(e.isComment)}function nt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function rt(e){var t=at(e.$options.inject,e);t&&(_e(!1),Object.keys(t).forEach((function(o){we(e,o,t[o])})),_e(!0))}function at(e,t){if(e){for(var o=Object.create(null),i=ie?Reflect.ownKeys(e):Object.keys(e),n=0;n0,a=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&i&&i!==o&&s===i.$key&&!r&&!i.$hasNormal)return i;for(var c in n={},e)e[c]&&"$"!==c[0]&&(n[c]=ut(t,c,e[c]))}else n={};for(var l in t)l in n||(n[l]=dt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=n),U(n,"$stable",a),U(n,"$key",s),U(n,"$hasNormal",r),n}function ut(e,t,o){var i=function(){var e=arguments.length?o.apply(null,arguments):o({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:ot(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return o.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function dt(e,t){return function(){return e[t]}}function ft(e,t){var o,i,r,a,c;if(Array.isArray(e)||"string"===typeof e)for(o=new Array(e.length),i=0,r=e.length;idocument.createEvent("Event").timeStamp&&(Zt=function(){return eo.now()})}function to(){var e,t;for(Zt(),Kt=!0,Wt.sort((function(e,t){return e.id-t.id})),Qt=0;QtQt&&Wt[o].id>e.id)o--;Wt.splice(o+1,0,e)}else Wt.push(e);Yt||(Yt=!0,Je(to))}}(this)},io.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Lo){Le(Lo,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},io.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},io.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},io.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var no={enumerable:!0,configurable:!0,get:$,set:$};function ro(e,t,o){no.get=function(){return this[t][o]},no.set=function(e){this[t][o]=e},Object.defineProperty(e,o,no)}function ao(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var o=e.$options.propsData||{},i=e._props={},n=e.$options._propKeys=[],r=!e.$parent;r||_e(!1);var a=function(r){n.push(r);var a=Te(r,t,o,e);we(i,r,a),r in e||ro(e,"_props",r)};for(var s in t)a(s);_e(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var o in t)e[o]="function"!==typeof t[o]?$:D(t[o],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;t=e._data="function"===typeof t?function(e,t){se();try{return e.call(t,t)}catch(Lo){return Le(Lo,t,"data()"),{}}finally{ce()}}(t,e):t||{},l(t)||(t={});var o=Object.keys(t),i=e.$options.props,n=(e.$options.methods,o.length);while(n--){var r=o[n];0,i&&v(i,r)||N(r)||ro(e,"_data",r)}be(t,!0)}(e):be(e._data={},!0),t.computed&&function(e,t){var o=e._computedWatchers=Object.create(null),i=Z();for(var n in t){var r=t[n],a="function"===typeof r?r:r.get;0,i||(o[n]=new io(e,a||$,$,so)),n in e||co(e,n,r)}}(e,t.computed),t.watch&&t.watch!==K&&function(e,t){for(var o in t){var i=t[o];if(Array.isArray(i))for(var n=0;n-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===c.call(e)}(e)&&e.test(t)}function yo(e,t){var o=e.cache,i=e.keys,n=e._vnode;for(var r in o){var a=o[r];if(a){var s=_o(a.componentOptions);s&&!t(s)&&bo(o,r,i,n)}}}function bo(e,t,o,i){var n=e[t];!n||i&&n.tag===i.tag||n.componentInstance.$destroy(),e[t]=null,m(o,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=po++,t._isVue=!0,e&&e._isComponent?function(e,t){var o=e.$options=Object.create(e.constructor.options),i=t._parentVnode;o.parent=t.parent,o._parentVnode=i;var n=i.componentOptions;o.propsData=n.propsData,o._parentListeners=n.listeners,o._renderChildren=n.children,o._componentTag=n.tag,t.render&&(o.render=t.render,o.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Me(ho(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,o=t.parent;if(o&&!t.abstract){while(o.$options.abstract&&o.$parent)o=o.$parent;o.$children.push(e)}e.$parent=o,e.$root=o?o.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&zt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,n=i&&i.context;e.$slots=st(t._renderChildren,n),e.$scopedSlots=o,e._c=function(t,o,i,n){return It(e,t,o,i,n,!1)},e.$createElement=function(t,o,i,n){return It(e,t,o,i,n,!0)};var r=i&&i.data;we(e,"$attrs",r&&r.attrs||o,null,!0),we(e,"$listeners",t._parentListeners||o,null,!0)}(t),Ht(t,"beforeCreate"),!t._$fallback&&rt(t),ao(t),!t._$fallback&&nt(t),!t._$fallback&&Ht(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(go),function(e){var t={get:function(){return this._data}},o={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",o),e.prototype.$set=Se,e.prototype.$delete=ke,e.prototype.$watch=function(e,t,o){if(l(t))return fo(this,e,t,o);o=o||{},o.user=!0;var i=new io(this,e,t,o);if(o.immediate)try{t.call(this,i.value)}catch(n){Le(n,this,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}(go),function(e){var t=/^hook:/;e.prototype.$on=function(e,o){var i=this;if(Array.isArray(e))for(var n=0,r=e.length;n1?P(o):o;for(var i=P(arguments,1),n='event handler for "'+e+'"',r=0,a=o.length;rparseInt(this.max)&&bo(s,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},ko={KeepAlive:So};(function(e){var t={get:function(){return L}};Object.defineProperty(e,"config",t),e.util={warn:ne,extend:C,mergeOptions:Me,defineReactive:we},e.set=Se,e.delete=ke,e.nextTick=Je,e.observable=function(e){return be(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,C(e.options.components,ko),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var o=P(arguments,1);return o.unshift(this),"function"===typeof e.install?e.install.apply(e,o):"function"===typeof e&&e.apply(null,o),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Me(this.options,e),this}}(e),mo(e),function(e){F.forEach((function(t){e[t]=function(e,o){return o?("component"===t&&l(o)&&(o.name=o.name||e,o=this.options._base.extend(o)),"directive"===t&&"function"===typeof o&&(o={bind:o,update:o}),this.options[t+"s"][e]=o,o):this.options[t+"s"][e]}}))}(e)})(go),Object.defineProperty(go.prototype,"$isServer",{get:Z}),Object.defineProperty(go.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(go,"FunctionalRenderContext",{value:Ct}),go.version="2.6.11";var xo="[object Array]",Do="[object Object]";function Po(e,t){var o={};return function e(t,o){if(t===o)return;var i=Oo(t),n=Oo(o);if(i==Do&&n==Do){if(Object.keys(t).length>=Object.keys(o).length)for(var r in o){var a=t[r];void 0===a?t[r]=null:e(a,o[r])}}else i==xo&&n==xo&&t.length>=o.length&&o.forEach((function(o,i){e(t[i],o)}))}(e,t),function e(t,o,i,n){if(t===o)return;var r=Oo(t),a=Oo(o);if(r==Do)if(a!=Do||Object.keys(t).length1&&(t[i[0].trim()]=i[1].trim())}})),t}));var Fo=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];var Eo=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onUploadDouyinVideo","onNFCReadMessage","onPageShow","onPageHide","onPageResize"];go.prototype.__patch__=function(e,t){var o=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var i=this.$scope,n=Object.create(null);try{n=function(e){var t=Object.create(null),o=[].concat(Object.keys(e._data||{}),Object.keys(e._computedWatchers||{}));o.reduce((function(t,o){return t[o]=e[o],t}),t);var i=e.__composition_api_state__||e.__secret_vfa_state__,n=i&&i.rawBindings;return n&&Object.keys(n).forEach((function(o){t[o]=e[o]})),Object.assign(t,e.$mp.data||{}),Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field")&&(t["name"]=e.name,t["value"]=e.value),JSON.parse(JSON.stringify(t,Mo))}(this)}catch(s){}n.__webviewId__=i.data.__webviewId__;var r=Object.create(null);Object.keys(n).forEach((function(e){r[e]=i.data[e]}));var a=!1===this.$shouldDiffData?n:Po(n,r);Object.keys(a).length?(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"lucky_weapp",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(i.is||i.route)+"]["+this._uid+"]差量更新",JSON.stringify(a)),this.__next_tick_pending=!0,i.setData(a,(function(){o.__next_tick_pending=!1,$o(o)}))):$o(this)}},go.prototype.$mount=function(e,t){return function(e,t,o){return e.mpType?("app"===e.mpType&&(e.$options.render=Ao),e.$options.render||(e.$options.render=Ao),!e._$fallback&&Ht(e,"beforeMount"),new io(e,(function(){e._update(e._render(),o)}),$,{before:function(){e._isMounted&&!e._isDestroyed&&Ht(e,"beforeUpdate")}},!0),o=!1,e):e}(this,0,t)},function(e){var t=e.extend;e.extend=function(e){e=e||{};var o=e.methods;return o&&Object.keys(o).forEach((function(t){-1!==Eo.indexOf(t)&&(e[t]=o[t],delete o[t])})),t.call(this,e)};var o=e.config.optionMergeStrategies,i=o.created;Eo.forEach((function(e){o[e]=i})),e.prototype.__lifecycle_hooks__=Eo}(go),function(e){e.config.errorHandler=function(t,o,i){e.util.warn("Error in "+i+': "'+t.toString()+'"',o);var n="function"===typeof getApp&&getApp();n&&n.onError&&n.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var o=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(o)try{o.call(this.$scope,e,{__args__:P(arguments,1)})}catch(i){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return jo(this,e)},Fo.forEach((function(t){e.prototype[t]=function(e){return this.$scope&&this.$scope[t]?this.$scope[t](e):"undefined"!==typeof my?"createSelectorQuery"===t?my.createSelectorQuery(e):"createIntersectionObserver"===t?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=nt,e.prototype.__init_injections=rt,e.prototype.__call_hook=function(e,t){var o=this;se();var i,n=o.$options[e],r=e+" hook";if(n)for(var a=0,s=n.length;a0||this.invalidGoods.length>0}},methods:{initNum:function(e){var t=e.max_buy>0&&e.max_buyt?t:e.num},getCartData:function(){var e=this;this.$api.sendRequest({url:"/api/cart/goodslists",success:function(t){t.code>=0&&(t.data.length?e.handleCartData(t.data):e.cartData=[]),e.refresherTriggered=!1,e.$refs.loadingCover&&e.$refs.loadingCover.hide()},fail:function(t){e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})},handleCartData:function(e){var t=this;this.invalidGoods=[],this.cartData=[];var o={};e.forEach((function(e,i){1==e.goods_state?void 0!=e.store_goods_status&&1!=e.store_goods_status||e.min_buy>0&&e.min_buy>e.stock?t.invalidGoods.push(e):(e.checked=!0,e.edit=!1,void 0!=o["site_"+e.site_id]?o["site_"+e.site_id].cartList.push(e):o["site_"+e.site_id]={siteId:e.site_id,siteName:e.site_name,edit:!1,checked:!0,cartList:[e]}):t.invalidGoods.push(e)})),this.cartData=[],Object.keys(o).forEach((function(e){t.cartData.push(o[e])})),this.calculationTotalPrice(),this.cartData.length&&this.cartData[0].cartList.forEach((function(e){e.sku_spec_format?e.sku_spec_format=JSON.parse(e.sku_spec_format):e.sku_spec_format=[]})),this.invalidGoods.length&&this.invalidGoods.forEach((function(e){e.sku_spec_format?e.sku_spec_format=JSON.parse(e.sku_spec_format):e.sku_spec_format=[]}))},singleElection:function(e,t){this.cartData[e].cartList[t].checked=!this.cartData[e].cartList[t].checked,this.calculationTotalPrice()},siteAllElection:function(e,t){this.cartData[t].checked=e,this.cartData[t].cartList.forEach((function(t){t.checked=e})),this.calculationTotalPrice()},allElection:function(e){var t=this;this.checkAll="boolean"==typeof e?e:!this.checkAll,this.cartData.length&&this.cartData.forEach((function(e){e.checked=t.checkAll,e.cartList.forEach((function(e){e.checked=t.checkAll}))})),this.calculationTotalPrice()},calculationTotalPrice:function(){if(this.cartData.length){var e=0,t=0,o=0;this.cartData.forEach((function(i){var n=0;i.cartList.forEach((function(o){o.checked&&(n+=1,t+=parseInt(o.num),Number(o.member_price)>0&&Number(o.member_price)1?"确定要删除这些商品吗?":"确定要删除该商品吗?",success:function(e){e.confirm&&(r=r.toString(),n.$api.sendRequest({url:"/api/cart/delete",data:{cart_id:r},success:function(e){if(e.code>=0){if("all"==t){for(var r=0;r0&&i.max_buy0?i.min_buy:1;e>n&&(e=n),e=0){var n=o.cartData[t.siteIndex].cartList[t.cartIndex],r=n.goods_id,a=n.sku_id;n.num=e,o.cartList["goods_"+r]["sku_"+a].num=e,o.$store.dispatch("cartCalculate"),o.resetEditStatus(),o.calculationTotalPrice()}else o.$util.showToast({title:i.message})}})}),800)}},settlement:function(){var t=this;if(this.totalCount>0){var o=[];if(this.cartData.forEach((function(e){e.cartList.forEach((function(e){e.checked&&o.push(e.cart_id)}))})),this.discount.coupon_info&&"wait"==this.discount.coupon_info.receive_type&&this.receiveCoupon(this.discount.coupon_info.coupon_type_id,!1),this.isSub)return;this.isSub=!0,e.removeStorageSync("delivery"),e.setStorage({key:"orderCreateData",data:{cart_ids:o.toString()},success:function(){t.$util.redirectTo("/pages/order/payment"),t.isSub=!1}})}},clearInvalidGoods:function(){var t=this;e.showModal({title:"提示",content:"确定要清空这些商品吗?",success:function(e){if(e.confirm){var o=[];t.invalidGoods.forEach((function(e){o.push(e.cart_id)})),o.length&&t.$api.sendRequest({url:"/api/cart/delete",data:{cart_id:o.toString()},success:function(e){e.code>=0?(t.invalidGoods=[],t.refreshCartNumber()):t.$util.showToast({title:e.message})}})}}})},imageError:function(e,t){this.cartData[e].cartList[t].sku_image=this.$util.getDefaultImage().goods,this.$forceUpdate()},toGoodsDetail:function(e){this.$util.redirectTo("/pages/goods/detail",{sku_id:e.sku_id})},refreshCartNumber:function(){this.storeToken&&(this.$store.dispatch("getCartNumber"),this.resetEditStatus())},goodsLimit:function(e,t){var o=this.cartData[t.siteIndex].cartList[t.cartIndex];"plus"==e.type?o.max_buy>0&&o.max_buy=0?(t.invalidGoods=[],t.getCartData(),t.refreshCartNumber()):t.$util.showToast({title:e.message})}})}),t.goodsSkuDetail)}))},toggleDiscountPopup:function(){this.$refs.discountPopup.showPopup?this.$refs.discountPopup.close():this.$refs.discountPopup.open(),this.discountPopupShow=!this.discountPopupShow},discountCalculate:function(){var e=this;if(0!=this.cartData.length){var t=[];this.cartData.forEach((function(e){e.cartList.forEach((function(e){e.checked&&t.push({sku_id:e.sku_id,num:e.num})}))})),0!=t.length?this.$api.sendRequest({url:"/api/cartcalculate/calculate",data:{sku_ids:JSON.stringify(t)},success:function(t){if(t.code>=0&&t.data&&(t.data.coupon_money>0||t.data.promotion_money>0)){e.discount=t.data;var o={};t.data.goods_list.forEach((function(e){e.promotion&&e.promotion.manjian&&(o["sku_"+e.sku_id]=JSON.parse(e.promotion.manjian.rule_json))})),Object.assign(e.manjian,o),e.refresherTriggered=!1}else e.discount={}}}):this.discount={}}},receiveCoupon:function(e){var t=this,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.receiveSub||(this.receiveSub=!0,this.$api.sendRequest({url:"/coupon/api/coupon/receive",data:{coupon_type_id:e,get_type:2},success:function(e){0==e.code?t.$set(t.discount.coupon_info,"receive_type",""):(o&&t.$util.showToast({title:e.message}),t.receiveSub=!1)}}))},touchS:function(e){this.startX=e.touches[0].clientX},touchE:function(e,t){this.endX=e.changedTouches[0].clientX;var o=this.startX-this.endX;o>50?t.edit=!0:o<0&&(t.edit=!1),this.$forceUpdate()},moneyFormat:function(e){return isNaN(parseFloat(e))?e:parseFloat(e).toFixed(2)},refreshSkuDetail:function(e){this.goodsSkuDetail=e},onRefresh:function(e){this.refresherTriggered=!0,this.storeToken?(this.getCartData(),this.refreshCartNumber()):(this.cartData=[],this.invalidGoods=[],this.calculationTotalPrice())}}};t.default=o}).call(this,o("df3c")["default"])},"36a6":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"预售专区"}},"36f8":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"积分明细",emptyTpis:"您暂时还没有积分记录哦!",pointExplain:"积分说明"}},"3a02":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("af34")),r={data:function(){return{listStyle:"",loadingType:"loading",orderType:"",priceOrder:"desc",categoryList:[],goodsList:[],order:"",sort:"desc",showScreen:!1,keyword:"",categoryId:0,minPrice:"",maxPrice:"",isFreeShipping:!1,isIphoneX:!1,coupon:0,emptyShow:!1,isList:!0,share_title:"",count:0,category_title:"",coupon_name:"",listHeight:[],listPosition:[],debounce:null,brandId:0,brandList:[],config:{fontWeight:!1,padding:0,cartEvent:"detail",text:"购买",textColor:"#FFFFFF",theme:"default",aroundRadius:25,control:!0,bgColor:"#FF6A00",style:"button",iconDiy:{iconType:"icon",icon:"",style:{fontSize:"60",iconBgColor:[],iconBgColorDeg:0,iconBgImg:"",bgRadius:0,iconColor:["#000000"],iconColorDeg:0}}},langstatus:0,lang:e.getStorageSync("lang")}},onLoad:function(t){var o=this;if(this.$api.sendRequest({url:"/api/lucky/status",data:{},success:function(t){o.langstatus=t.status,1==o.langstatus&&e.setNavigationBarTitle({title:"en-us"==e.getStorageSync("lang")?"Goods List":"商品列表"})}}),this.categoryId=t.category_id||0,this.keyword=t.keyword||"",this.coupon=t.coupon||0,this.goods_id_arr=t.goods_id_arr||0,this.brandId=t.brand_id||0,this.loadCategoryList(this.categoryId),this.getBrandList(),this.isIphoneX=this.$util.uniappIsIPhoneX(),t.source_member&&e.setStorageSync("source_member",t.source_member),t.scene){var i=decodeURIComponent(t.scene);i=i.split("&"),i.length&&i.forEach((function(t){-1!=t.indexOf("sku_id")&&(o.skuId=t.split("-")[1]),-1!=t.indexOf("m")&&e.setStorageSync("source_member",t.split("-")[1]),-1!=t.indexOf("is_test")&&e.setStorageSync("is_test",1)}))}e.onWindowResize((function(e){o.debounce&&clearTimeout(o.debounce),o.waterfallflow(0)}))},onShow:function(){this.storeToken&&e.getStorageSync("source_member")&&this.$util.onSourceMember(e.getStorageSync("source_member"))},onShareAppMessage:function(e){var t="搜索到"+this.count+"件“"+this.keyword+this.category_title+this.coupon_name+"”相关的优质商品",o=this.$util.getCurrentShareRoute(this.memberInfo?this.memberInfo.member_id:0),i=o.path;return{title:t,path:i,success:function(e){},fail:function(e){}}},onShareTimeline:function(){var e="搜索到"+this.count+"件“"+this.keyword+this.category_title+this.coupon_name+"”相关的优质商品",t=this.$util.getCurrentShareRoute(this.memberInfo?this.memberInfo.member_id:0),o=t.query;return{title:e,query:o,imageUrl:""}},methods:{couponInfo:function(e){var t=this;return new Promise((function(o){t.$api.sendRequest({url:"/coupon/api/coupon/typeinfo",data:{coupon_type_id:e},success:function(e){e.code>=0&&o(e.data.coupon_name)}})}))},share_select:function(e,t){return new Promise((function(o){e.forEach((function(e){e.category_id==t&&o(e.category_name),e.child_list&&e.child_list.length>0&&e.child_list.forEach((function(e){e.category_id==t&&o(e.category_name),e.child_list&&e.child_list.length>0&&e.forEach((function(e){e.category_id==t&&o(e.category_name)}))}))}))}))},loadCategoryList:function(e,t){var o=this;this.$api.sendRequest({url:"/api/goodscategory/tree",data:{},success:function(e){null!=e.data&&(o.categoryList=e.data)}})},getGoodsList:function(e){var t=this;this.$api.sendRequest({url:"/api/goodssku/page",data:{page:e.num,page_size:e.size,keyword:this.keyword,category_id:this.categoryId,brand_id:this.brandId,min_price:this.minPrice,max_price:this.maxPrice,is_free_shipping:this.isFreeShipping?1:0,order:this.order,sort:this.sort,coupon:this.coupon,goods_id_arr:this.goods_id_arr},success:function(o){var i=[],n=o.message;0==o.code&&o.data?(t.count=o.data.count,0==o.data.page_count&&(t.emptyShow=!0),i=o.data.list,i=i.map((function(e){return e.id=t.genNonDuplicate(),e}))):t.$util.showToast({title:n}),t.category_title="",t.coupon_name="",o.data.config&&(t.config=o.data.config),t.categoryId&&t.share_select(t.categoryList,t.categoryId).then((function(e){t.category_title=e})),t.coupon&&t.couponInfo(t.coupon).then((function(e){t.coupon_name=e})),e.endSuccess(i.length),1==e.num&&(t.goodsList=[]),t.goodsList=t.goodsList.concat(i),t.$refs.loadingCover&&t.$refs.loadingCover.hide(),t.waterfallflow(10*(e.num-1))},fail:function(o){e.endErr(),t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},changeListStyle:function(){this.isList=!this.isList,this.waterfallflow(0)},sortTabClick:function(e){if("sale_num"==e)this.order="sale_num",this.sort="desc";else if("discount_price"==e)this.order="discount_price",this.sort="desc";else{if("screen"==e)return void(this.showScreen=!0);this.order="",this.sort=""}this.orderType===e&&"discount_price"!==e||(this.orderType=e,"discount_price"===e?(this.priceOrder="asc"===this.priceOrder?"desc":"asc",this.sort=this.priceOrder):this.priceOrder="",this.emptyShow=!1,this.goodsList=[],this.$refs.mescroll.refresh())},toDetail:function(e){this.$util.redirectTo("/pages/goods/detail",{goods_id:e.goods_id})},search:function(){this.emptyShow=!1,this.goodsList=[],this.$refs.mescroll.refresh()},selectedCategory:function(e){this.categoryId=e},screenData:function(){if(""!=this.minPrice||""!=this.maxPrice){if(!Number(this.maxPrice)&&this.maxPrice)return void this.$util.showToast({title:"请输入最高价"});if(Number(this.minPrice)<0||Number(this.maxPrice)<0)return void this.$util.showToast({title:"筛选价格不能小于0"});if(""!=this.minPrice&&Number(this.minPrice)>Number(this.maxPrice)&&this.maxPrice)return void this.$util.showToast({title:"最低价不能大于最高价"});if(""!=this.maxPrice&&Number(this.maxPrice)0)return e.market_price;if(parseFloat(e.price)>parseFloat(t))return e.price}return""},goodsTag:function(e){return e.label_name||""},waterfallflow:function(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.isList||this.$nextTick((function(){setTimeout((function(){var i=[],r=[];0!=o&&(i=t.listHeight,r=t.listPosition);var a=e.createSelectorQuery().in(t);a.selectAll(".double-column .goods-item").boundingClientRect((function(a){for(var s=o;s0&&void 0!==arguments[0]?arguments[0]:6;return Number(Math.random().toString().substr(3,e)+Date.now()).toString(36)}}};t.default=r}).call(this,o("df3c")["default"])},"3b2d":function(e,t){function o(t){return e.exports=o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},"3b90":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:"视频"}},4191:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"秒杀专区"}},4406:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"店铺笔记"}},"44bc":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"商品评价"}},"46b3":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"拼团分享"}},"46f4":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:""}},4779:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"账单"}},"47a9":function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"47e7":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"核销明细"}},"4d7a":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"我的预售",emptyTips:"暂无相关预售订单",update:"释放刷新",updateIng:"加载中..."}},"4e31":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"支付结果",paymentSuccess:"支付成功",paymentFail:"支付失败",goHome:"回到首页",memberCenter:"会员中心",payMoney:"支付金额",unit:"元"}},"4ff4":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"编辑账户",name:"姓名",namePlaceholder:"请输入真实姓名",mobilePhone:"手机号码",mobilePhonePlaceholder:"请输入手机号",accountType:"账号类型",bankInfo:"支行信息",bankInfoPlaceholder:"请输入支行信息",withdrawalAccount:"提现账号",withdrawalAccountPlaceholder:"请输入提现账号",save:"保存"}},"51f3":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:""}},"52c5":function(e,t,o){"use strict";var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("7ca3"));function r(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function a(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:"gcj02",n=a(t,e,i);r(n[1],n[0],o)}};t.default=s}).call(this,o("df3c")["default"])},6090:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"我的拼单"}},"60d7":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"会员中心",login:"登录/注册",loginTpis:"点击登录 享受更多精彩信息",memberLevel:"会员等级",moreAuthority:"更多权限",allOrders:"全部订单",seeAllOrders:"查看全部订单",waitPay:"待付款",readyDelivery:"待发货",waitDelivery:"待收货",refunding:"退款",sign:"签到",personInfo:"个人资料",receivingAddress:"收货地址",accountList:"账户列表",couponList:"优惠券",mySpellList:"我的拼单",myBargain:"我的砍价",virtualCode:"虚拟码",winningRecord:"我的礼品",myCollection:"我的关注",myTracks:"我的足迹",pintuanOrder:"拼团订单",yushouOrder:"预售订单",verification:"核销台",message:"我的消息",exchangeOrder:"积分兑换",waitpay:"待付款",waitsend:"待发货",waitconfirm:"待收货",activist:"售后",completed:"已完成",balance:"余额",point:"积分",coupon:"优惠券",memberRecommend:"邀请有礼",myPresale:"我的预售",myGiftcard:"我的礼品卡",myDivideticket:"我的瓜分券",myRebate:"拼团返利",myHongbao:"我的红包列表",myBlindBox:"我的盲盒"}},6208:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"兑换结果",exchangeSuccess:"兑换成功",see:"查看兑换记录",goHome:"回到首页"}},6381:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"编辑收货地址",consignee:"姓名",consigneePlaceholder:"收货人姓名",mobile:"手机",mobilePlaceholder:"收货人手机号",telephone:"电话",telephonePlaceholder:"收货人固定电话(选填)",receivingCity:"地区",address:"详细地址",addressPlaceholder:"小区、街道、写字楼",save:"保存"}},6382:function(e,t,o){var i=o("6454");e.exports=function(e,t){if(e){if("string"===typeof e)return i(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"641c":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"品牌专区"}},6454:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=new Array(t);o0)return a.default.commit("setSiteState",-3),void r.default.redirectTo("/pages_tool/storeclose/storeclose",{},"reLaunch");e.data.refreshtoken&&a.default.commit("setToken",e.data.refreshtoken),-10009!=e.data.code&&-10010!=e.data.code||(a.default.commit("setToken",""),a.default.commit("setMemberInfo","")),c(e.data)},fail:function(t){t.errMsg&&"request:fail url not in domain list"==t.errMsg?e.showToast({title:n.default.baseUrl+"不在request 合法域名列表中",icon:"none",duration:1e4}):l(t)},complete:function(t){t.errMsg&&"request:ok"!=t.errMsg||t.statusCode&&-1==[200,500].indexOf(t.statusCode)?e.showToast({title:n.default.baseUrl+"请求失败",icon:"none",duration:1e4}):l(t.data)}})}));e.request({url:i,method:o,data:s,header:t.header||{"content-type":"application/x-www-form-urlencoded;application/json"},dataType:t.dataType||"json",responseType:t.responseType||"text",success:function(e){if(-3==e.data.code&&a.default.state.siteState>0)return a.default.commit("setSiteState",-3),void r.default.redirectTo("/pages_tool/storeclose/storeclose",{},"reLaunch");e.data.refreshtoken&&a.default.commit("setToken",e.data.refreshtoken),-10009!=e.data.code&&-10010!=e.data.code||(a.default.commit("setToken",""),a.default.commit("setMemberInfo","")),"function"==typeof t.success&&t.success(e.data)},fail:function(o){o.errMsg&&"request:fail url not in domain list"==o.errMsg?e.showToast({title:n.default.baseUrl+"不在request 合法域名列表中",icon:"none",duration:1e4}):"function"==typeof t.fail&&t.fail(o)},complete:function(o){o.errMsg&&"request:ok"!=o.errMsg||o.statusCode&&-1==[200,500].indexOf(o.statusCode)?e.showToast({title:n.default.baseUrl+"请求失败",icon:"none",duration:1e4}):"function"==typeof t.complete&&t.complete(o.data)}})}else e.showToast({title:"未配置请求域名",icon:"none",duration:1e4})},uploadBase64:function(t){e.request({url:n.default.baseUrl+"/api/upload/headimgBase64",method:"POST",header:{"content-type":"application/x-www-form-urlencoded;application/json"},data:{app_type:"weapp",app_type_name:"微信小程序",images:t.base64},dataType:"json",responseType:"text",success:function(e){"function"==typeof t.success&&t.success(e.data)},fail:function(){"function"==typeof t.fail&&t.fail(res)}})},pullImage:function(t){e.request({url:n.default.baseUrl+"/api/upload/headimgPull",method:"POST",header:{"content-type":"application/x-www-form-urlencoded;application/json"},data:{app_type:"weapp",app_type_name:"微信小程序",path:t.path},dataType:"json",responseType:"text",success:function(e){"function"==typeof t.success&&t.success(e.data)},fail:function(){"function"==typeof t.fail&&t.fail(res)}})},upload:function(t){e.uploadFile({url:n.default.baseUrl+t.url,filePath:t.filePath,name:t.name||"file",fileType:t.fileType||"image",formData:{app_type:"weapp",app_type_name:"微信小程序"},header:{"content-type":"application/x-www-form-urlencoded;application/json"},success:function(e){"function"==typeof t.success&&t.success(JSON.parse(e.data))},fail:function(e){"function"==typeof t.fail&&t.fail(e)}})}};t.default=s}).call(this,o("df3c")["default"])},7172:function(e,t){e.exports=function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i,n,r,a,s=[],c=!0,l=!1;try{if(r=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;c=!1}else for(;!(c=(i=r.call(o)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,n=e}finally{try{if(!c&&null!=o["return"]&&(a=o["return"](),Object(a)!==a))return}finally{if(l)throw n}}return s}},e.exports.__esModule=!0,e.exports["default"]=e.exports},7307:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"核销记录",emptyTips:"暂无记录"}},"755e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"订单详情"}},7647:function(e,t){function o(t,i){return e.exports=o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports["default"]=e.exports,o(t,i)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},"769e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"退款详情"}},7749:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"核销台"}},7780:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"邀请好友"}},"78b8":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"申请退款"}},"7c49":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"团购专区"}},"7c5d":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"账号注销"}},"7c64":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={tabBar:{home:"首页",category:"分类",cart:"购物车",member:"个人中心"},common:{name:"中文",mescrollTextInOffset:"下拉刷新",mescrollTextOutOffset:"释放更新",mescrollEmpty:"暂无相关数据",goodsRecommendTitle:"猜你喜欢",currencySymbol:"¥",submit:"提交"}}},"7ca3":function(e,t,o){var i=o("d551");e.exports=function(e,t,o){return t=i(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"7d44":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"店铺打烊"}},"7e77":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"积分中心"}},"7eb4":function(e,t,o){var i=o("9fc1")();e.exports=i},"823e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"砍价详情"}},"828b":function(e,t,o){"use strict";function i(e,t,o,i,n,r,a,s,c,l){var u,d="function"===typeof e?e.options:e;if(c){d.components||(d.components={});var f=Object.prototype.hasOwnProperty;for(var p in c)f.call(c,p)&&!f.call(d.components,p)&&(d.components[p]=c[p])}if(l&&("function"===typeof l.beforeCreate&&(l.beforeCreate=[l.beforeCreate]),(l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(d.mixins||(d.mixins=[])).push(l)),t&&(d.render=t,d.staticRenderFns=o,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=u):n&&(u=s?function(){n.call(this,this.$root.$options.shadowRoot)}:n),u)if(d.functional){d._injectStyles=u;var h=d.render;d.render=function(e,t){return u.call(t),h(e,t)}}else{var g=d.beforeCreate;d.beforeCreate=g?[].concat(g,u):[u]}return{exports:e,options:d}}o.d(t,"a",(function(){return i}))},"834a":function(e,t,o){"use strict";(function(e,o){function i(e,t){var o="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=function(e,t){if(!e)return;if("string"===typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return n(e,t)}(e))||t&&e&&"number"===typeof e.length){o&&(e=o);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(c)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=new Array(t);o",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…",larr:"←",uarr:"↑",rarr:"→",darr:"↓"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",strike:"text-decoration:line-through",u:"text-decoration:underline"},svgDict:{animatetransform:"animateTransform",lineargradient:"linearGradient",viewbox:"viewBox",attributename:"attributeName",repeatcount:"repeatCount",repeatdur:"repeatDur",foreignobject:"foreignObject"}},a={},s=e.getSystemInfoSync(),c=s.windowWidth,l=s.system,u=f(" ,\r,\n,\t,\f"),d=0;function f(e){for(var t=Object.create(null),o=e.split(","),i=o.length;i--;)t[o[i]]=!0;return t}function p(e,t){var o=e.indexOf("&");while(-1!==o){var i=e.indexOf(";",o+3),n=void 0;if(-1===i)break;"#"===e[o+1]?(n=parseInt(("x"===e[o+2]?"0":"")+e.substring(o+2,i)),isNaN(n)||(e=e.substr(0,o)+String.fromCharCode(n)+e.substr(i+1))):(n=e.substring(o+1,i),(r.entities[n]||"amp"===n&&t)&&(e=e.substr(0,o)+(r.entities[n]||"&")+e.substr(i+1))),o=e.indexOf("&",o+1)}return e}function h(e){for(var t=e.length-1,o=t;o>=-1;o--)(-1===o||e[o].c||!e[o].name||"div"!==e[o].name&&"p"!==e[o].name&&"h"!==e[o].name[0]||(e[o].attrs.style||"").includes("inline"))&&(t-o>=5&&e.splice(o+1,t-o,{name:"div",attrs:{},children:e.slice(o+1,t+1)}),t=o-1)}function g(e){this.options=e||{},this.tagStyle=Object.assign({},r.tagStyle,this.options.tagStyle),this.imgList=e.imgList||[],this.imgList._unloadimgs=0,this.plugins=e.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[],this.pre=(this.options.containerStyle||"").includes("white-space")&&this.options.containerStyle.includes("pre")?2:0}function m(e){this.handler=e}g.prototype.parse=function(e){for(var t=this.plugins.length;t--;)this.plugins[t].onUpdate&&(e=this.plugins[t].onUpdate(e,r)||e);new m(this).parse(e);while(this.stack.length)this.popNode();return this.nodes.length>50&&h(this.nodes),this.nodes},g.prototype.expose=function(){for(var e=this.stack.length;e--;){var t=this.stack[e];if(t.c||"a"===t.name||"video"===t.name||"audio"===t.name)return;t.c=1}},g.prototype.hook=function(e){for(var t=this.plugins.length;t--;)if(this.plugins[t].onParse&&!1===this.plugins[t].onParse(e,this))return!1;return!0},g.prototype.getUrl=function(e){var t=this.options.domain;return"/"===e[0]?"/"===e[1]?e=(t?t.split("://")[0]:"http")+":"+e:t&&(e=t+e):e.includes("data:")||e.includes("://")||t&&(e=t+"/"+e),e},g.prototype.parseStyle=function(e){var t=e.attrs,o=(this.tagStyle[e.name]||"").split(";").concat((t.style||"").split(";")),i={},n="";t.id&&!this.xml&&(this.options.useAnchor?this.expose():"img"!==e.name&&"a"!==e.name&&"video"!==e.name&&"audio"!==e.name&&(t.id=void 0)),t.width&&(i.width=parseFloat(t.width)+(t.width.includes("%")?"%":"px"),t.width=void 0),t.height&&(i.height=parseFloat(t.height)+(t.height.includes("%")?"%":"px"),t.height=void 0);for(var r=0,a=o.length;r0||d.includes("safe"))n+=";".concat(l,":").concat(d);else if(!i[l]||d.includes("import")||!i[l].includes("import")){if(d.includes("url")){var f=d.indexOf("(")+1;if(f){while('"'===d[f]||"'"===d[f]||u[d[f]])f++;d=d.substr(0,f)+this.getUrl(d.substr(f))}}else d.includes("rpx")&&(d=d.replace(/[0-9.]+\s*rpx/g,(function(e){return parseFloat(e)*c/750+"px"})));i[l]=d}}}return e.attrs.style=n,i},g.prototype.onTagName=function(e){this.tagName=this.xml?e:e.toLowerCase(),"svg"===this.tagName&&(this.xml=(this.xml||0)+1,r.ignoreTags.style=void 0)},g.prototype.onAttrName=function(e){e=this.xml?e:e.toLowerCase(),"data-"===e.substr(0,5)?"data-src"!==e||this.attrs.src?"img"===this.tagName||"a"===this.tagName?this.attrName=e:this.attrName=void 0:this.attrName="src":(this.attrName=e,this.attrs[e]="T")},g.prototype.onAttrVal=function(e){var t=this.attrName||"";"style"===t||"href"===t?this.attrs[t]=p(e,!0):t.includes("src")?this.attrs[t]=this.getUrl(p(e,!0)):t&&(this.attrs[t]=e)},g.prototype.onOpenTag=function(e){var t=Object.create(null);t.name=this.tagName,t.attrs=this.attrs,this.options.nodes.length&&(t.type="node"),this.attrs=Object.create(null);var o=t.attrs,i=this.stack[this.stack.length-1],n=i?i.children:this.nodes,s=this.xml?e:r.voidTags[t.name];if(a[t.name]&&(o.class=a[t.name]+(o.class?" "+o.class:"")),"embed"===t.name){var l=o.src||"";l.includes(".mp4")||l.includes(".3gp")||l.includes(".m3u8")||(o.type||"").includes("video")?t.name="video":(l.includes(".mp3")||l.includes(".wav")||l.includes(".aac")||l.includes(".m4a")||(o.type||"").includes("audio"))&&(t.name="audio"),o.autostart&&(o.autoplay="T"),o.controls="T"}if("video"!==t.name&&"audio"!==t.name||("video"!==t.name||o.id||(o.id="v"+d++),o.controls||o.autoplay||(o.controls="T"),t.src=[],o.src&&(t.src.push(o.src),o.src=void 0),this.expose()),s){if(!this.hook(t)||r.ignoreTags[t.name])return void("base"!==t.name||this.options.domain?"source"===t.name&&i&&("video"===i.name||"audio"===i.name)&&o.src&&i.src.push(o.src):this.options.domain=o.href);var u=this.parseStyle(t);if("img"===t.name){if(o.src&&(o.src.includes("webp")&&(t.webp="T"),o.src.includes("data:")&&"all"!==this.options.previewImg&&!o["original-src"]&&(o.ignore="T"),!o.ignore||t.webp||o.src.includes("cloud://"))){for(var f=this.stack.length;f--;){var p=this.stack[f];"a"===p.name&&(t.a=p.attrs),"table"!==p.name||t.webp||o.src.includes("cloud://")||(!u.display||u.display.includes("inline")?t.t="inline-block":t.t=u.display,u.display=void 0);var h=p.attrs.style||"";if(!h.includes("flex:")||h.includes("flex:0")||h.includes("flex: 0")||u.width&&!(parseInt(u.width)>100))if(h.includes("flex")&&"100%"===u.width)for(var g=f+1;g.5?v[y].toUpperCase():v[y]}b+=v.substr(y),v=b}}this.imgList.push(v),t.t||(this.imgList._unloadimgs+=1)}"inline"===u.display&&(u.display=""),o.ignore&&(u["max-width"]=u["max-width"]||"100%",o.style+=";-webkit-touch-callout:none"),parseInt(u.width)>c&&(u.height=void 0),isNaN(parseInt(u.width))||(t.w="T"),!isNaN(parseInt(u.height))&&(!u.height.includes("%")||i&&(i.attrs.style||"").includes("height"))&&(t.h="T"),t.w&&t.h&&u["object-fit"]&&("contain"===u["object-fit"]?t.m="aspectFit":"cover"===u["object-fit"]&&(t.m="aspectFill"))}else if("svg"===t.name)return n.push(t),this.stack.push(t),void this.popNode();for(var w in u)u[w]&&(o.style+=";".concat(w,":").concat(u[w].replace(" !important","")));o.style=o.style.substr(1)||void 0}else("pre"===t.name||(o.style||"").includes("white-space")&&o.style.includes("pre"))&&2!==this.pre&&(this.pre=t.pre=1),t.children=[],this.stack.push(t);n.push(t)},g.prototype.onCloseTag=function(e){var t;for(e=this.xml?e:e.toLowerCase(),t=this.stack.length;t--;)if(this.stack[t].name===e)break;if(-1!==t)while(this.stack.length>t)this.popNode();else if("p"===e||"br"===e){var o=this.stack.length?this.stack[this.stack.length-1].children:this.nodes;o.push({name:e,attrs:{class:a[e]||"",style:this.tagStyle[e]||""}})}},g.prototype.popNode=function(){var t=this.stack.pop(),n=t.attrs,a=t.children,s=this.stack[this.stack.length-1],l=s?s.children:this.nodes;if(!this.hook(t)||r.ignoreTags[t.name])return"title"===t.name&&a.length&&"text"===a[0].type&&this.options.setTitle&&e.setNavigationBarTitle({title:a[0].text}),void l.pop();if(t.pre&&2!==this.pre){this.pre=t.pre=void 0;for(var u=this.stack.length;u--;)this.stack[u].pre&&(this.pre=1)}var d={};if("svg"===t.name){if(this.xml>1)return void this.xml--;var f="",p=n.style;return n.style="",n.xmlns="http://www.w3.org/2000/svg",function e(t){if("text"!==t.type){var o=r.svgDict[t.name]||t.name;if("foreignObject"===o){var n,a=i(t.children||[]);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.attrs&&!s.attrs.xmlns){s.attrs.xmlns="http://www.w3.org/1999/xhtml";break}}}catch(d){a.e(d)}finally{a.f()}}for(var c in f+="<"+o,t.attrs){var l=t.attrs[c];l&&(f+=" ".concat(r.svgDict[c]||c,'="').concat(l.replace(/"/g,""),'"'))}if(t.children){f+=">";for(var u=0;u"}else f+="/>"}else f+=t.text}(t),t.name="img",t.attrs={src:"data:image/svg+xml;utf8,"+f.replace(/#/g,"%23"),style:p,ignore:"T"},t.children=void 0,this.xml=!1,void(r.ignoreTags.style=!0)}if(n.align&&("table"===t.name?"center"===n.align?d["margin-inline-start"]=d["margin-inline-end"]="auto":d.float=n.align:d["text-align"]=n.align,n.align=void 0),n.dir&&(d.direction=n.dir,n.dir=void 0),"font"===t.name&&(n.color&&(d.color=n.color,n.color=void 0),n.face&&(d["font-family"]=n.face,n.face=void 0),n.size)){var g=parseInt(n.size);isNaN(g)||(g<1?g=1:g>7&&(g=7),d["font-size"]=["x-small","small","medium","large","x-large","xx-large","xxx-large"][g-1]),n.size=void 0}if((n.class||"").includes("align-center")&&(d["text-align"]="center"),Object.assign(d,this.parseStyle(t)),"table"!==t.name&&parseInt(d.width)>c&&(d["max-width"]="100%",d["box-sizing"]="border-box"),r.blockTags[t.name]?t.name="div":r.trustTags[t.name]||this.xml||(t.name="span"),"a"===t.name||"ad"===t.name)this.expose();else if("video"===t.name)(d.height||"").includes("auto")&&(d.height=void 0);else if("ul"!==t.name&&"ol"!==t.name||!t.c)if("table"===t.name){var m=parseFloat(n.cellpadding),_=parseFloat(n.cellspacing),v=parseFloat(n.border),y=d["border-color"],b=d["border-style"];if(t.c&&(isNaN(m)&&(m=2),isNaN(_)&&(_=2)),v&&(n.style+=";border:".concat(v,"px ").concat(b||"solid"," ").concat(y||"gray")),t.flag&&t.c){d.display="grid","collapse"===d["border-collapse"]&&(d["border-collapse"]=void 0,_=0),_?(d["grid-gap"]=_+"px",d.padding=_+"px"):v&&(n.style+=";border-left:0;border-top:0");var w=[],S=[],k=[],x={};(function e(t){for(var o=0;o=50&&t.c&&!(d.display||"").includes("flex")&&h(a),d)if(d[H]){var W=";".concat(H,":").concat(d[H].replace(" !important",""));q&&(H.includes("flex")&&"flex-direction"!==H||"align-self"===H||H.includes("grid")||"-"===d[H][0]||H.includes("width")&&W.includes("%"))?(t.f+=W,"width"===H&&(n.style+=";width:100%")):n.style+=W}n.style=n.style.substr(1)||void 0},g.prototype.onText=function(t){if(!this.pre){for(var o,i="",n=0,r=t.length;n"===this.content[this.i]||t&&">"===this.content[this.i+1])&&(e&&this.handler[e](this.content.substring(this.start,this.i)),this.i+=t?2:1,this.start=this.i,this.handler.onOpenTag(t),"script"===this.handler.tagName?(this.i=this.content.indexOf("="a"&&e<="z"||e>="A"&&e<="Z")this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"===e||"!"===e||"?"===e){this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i));var t=this.content[this.i+2];if("/"===e&&(t>="a"&&t<="z"||t>="A"&&t<="Z"))return this.i+=2,this.start=this.i,void(this.state=this.endTag);var o="--\x3e";"!"===e&&"-"===this.content[this.i+2]&&"-"===this.content[this.i+3]||(o=">"),this.i=this.content.indexOf(o,this.i),-1!==this.i&&(this.i+=o.length,this.start=this.i)}else this.i++}else this.start"===e||"/"===e){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!==e&&(this.i=this.content.indexOf(">",this.i),-1===this.i))return;this.start=++this.i,this.state=this.text}else this.i++};var _=g;t.default=_}).call(this,o("df3c")["default"],o("3223")["default"])},"84c0":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"搜索",history:"历史搜索",hot:"热门搜索",find:"搜索发现",hidefind:"当前搜索发现已隐藏",inputPlaceholder:"搜索商品"}},"86fa":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:"视频"}},"8c2d":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"账号注销"}},"8ddc":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"订单详情"}},"8f59":function(e,t,o){"use strict";(function(t){var o="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},i=o.__VUE_DEVTOOLS_GLOBAL_HOOK__;function n(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var o=function(e,t){return e.filter(t)[0]}(t,(function(t){return t.original===e}));if(o)return o.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(o){i[o]=n(e[o],t)})),i}function r(e,t){Object.keys(e).forEach((function(o){return t(e[o],o)}))}function a(e){return null!==e&&"object"===typeof e}var s=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var o=e.state;this.state=("function"===typeof o?o():o)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(e,t){this._children[e]=t},s.prototype.removeChild=function(e){delete this._children[e]},s.prototype.getChild=function(e){return this._children[e]},s.prototype.hasChild=function(e){return e in this._children},s.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},s.prototype.forEachChild=function(e){r(this._children,e)},s.prototype.forEachGetter=function(e){this._rawModule.getters&&r(this._rawModule.getters,e)},s.prototype.forEachAction=function(e){this._rawModule.actions&&r(this._rawModule.actions,e)},s.prototype.forEachMutation=function(e){this._rawModule.mutations&&r(this._rawModule.mutations,e)},Object.defineProperties(s.prototype,c);var l=function(e){this.register([],e,!1)};l.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},l.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,o){return t=t.getChild(o),e+(t.namespaced?o+"/":"")}),"")},l.prototype.update=function(e){(function e(t,o,i){0;if(o.update(i),i.modules)for(var n in i.modules){if(!o.getChild(n))return void 0;e(t.concat(n),o.getChild(n),i.modules[n])}})([],this.root,e)},l.prototype.register=function(e,t,o){var i=this;void 0===o&&(o=!0);var n=new s(t,o);if(0===e.length)this.root=n;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],n)}t.modules&&r(t.modules,(function(t,n){i.register(e.concat(n),t,o)}))},l.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),o=e[e.length-1],i=t.getChild(o);i&&i.runtime&&t.removeChild(o)},l.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),o=e[e.length-1];return!!t&&t.hasChild(o)};var u;var d=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!==typeof window&&window.Vue&&y(window.Vue);var o=e.plugins;void 0===o&&(o=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var r=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(r,e,t)},this.commit=function(e,t,o){return s.call(r,e,t,o)},this.strict=n;var c=this._modules.root.state;m(this,c,[],this._modules.root),g(this,c),o.forEach((function(e){return e(t)}));var d=void 0!==e.devtools?e.devtools:u.config.devtools;d&&function(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){i.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},f={state:{configurable:!0}};function p(e,t,o){return t.indexOf(e)<0&&(o&&o.prepend?t.unshift(e):t.push(e)),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}}function h(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var o=e.state;m(e,o,[],e._modules.root,!0),g(e,o,t)}function g(e,t,o){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var n=e._wrappedGetters,a={};r(n,(function(t,o){a[o]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,o,{get:function(){return e._vm[o]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:a}),u.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),i&&(o&&e._withCommit((function(){i._data.$$state=null})),u.nextTick((function(){return i.$destroy()})))}function m(e,t,o,i,n){var r=!o.length,a=e._modules.getNamespace(o);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!r&&!n){var s=_(t,o.slice(0,-1)),c=o[o.length-1];e._withCommit((function(){u.set(s,c,i.state)}))}var l=i.context=function(e,t,o){var i=""===t,n={dispatch:i?e.dispatch:function(o,i,n){var r=v(o,i,n),a=r.payload,s=r.options,c=r.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:i?e.commit:function(o,i,n){var r=v(o,i,n),a=r.payload,s=r.options,c=r.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(n,{getters:{get:i?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var o={},i=t.length;Object.keys(e.getters).forEach((function(n){if(n.slice(0,i)===t){var r=n.slice(i);Object.defineProperty(o,r,{get:function(){return e.getters[n]},enumerable:!0})}})),e._makeLocalGettersCache[t]=o}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return _(e.state,o)}}}),n}(e,a,o);i.forEachMutation((function(t,o){var i=a+o;(function(e,t,o,i){var n=e._mutations[t]||(e._mutations[t]=[]);n.push((function(t){o.call(e,i.state,t)}))})(e,i,t,l)})),i.forEachAction((function(t,o){var i=t.root?o:a+o,n=t.handler||t;(function(e,t,o,i){var n=e._actions[t]||(e._actions[t]=[]);n.push((function(t){var n=o.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return function(e){return e&&"function"===typeof e.then}(n)||(n=Promise.resolve(n)),e._devtoolHook?n.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):n}))})(e,i,n,l)})),i.forEachGetter((function(t,o){var i=a+o;(function(e,t,o,i){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return o(i.state,i.getters,e.state,e.getters)}})(e,i,t,l)})),i.forEachChild((function(i,r){m(e,t,o.concat(r),i,n)}))}function _(e,t){return t.reduce((function(e,t){return e[t]}),e)}function v(e,t,o){return a(e)&&e.type&&(o=t,t=e,e=e.type),{type:e,payload:t,options:o}}function y(e){u&&e===u||(u=e, +var o=Object.freeze({});function i(e){return void 0===e||null===e}function n(e){return void 0!==e&&null!==e}function r(e){return!0===e}function a(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function s(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function l(e){return"[object Object]"===c.call(e)}function u(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return n(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function f(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var o=Object.create(null),i=e.split(","),n=0;n-1)return e.splice(o,1)}}var _=Object.prototype.hasOwnProperty;function v(e,t){return _.call(e,t)}function y(e){var t=Object.create(null);return function(o){var i=t[o];return i||(t[o]=e(o))}}var b=/-(\w)/g,w=y((function(e){return e.replace(b,(function(e,t){return t?t.toUpperCase():""}))})),S=y((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),k=/\B([A-Z])/g,x=y((function(e){return e.replace(k,"-$1").toLowerCase()}));var D=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function o(o){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,o):e.call(t)}return o._length=e.length,o};function P(e,t){t=t||0;var o=e.length-t,i=new Array(o);while(o--)i[o]=e[o+t];return i}function C(e,t){for(var o in t)e[o]=t[o];return e}function O(e){for(var t={},o=0;o0),Y=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===H),K=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/),{}.watch);if(G)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){}}),window.addEventListener("test-passive",null,Q)}catch(Lo){}var Z=function(){return void 0===z&&(z=!G&&!q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),z},ee=G&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function te(e){return"function"===typeof e&&/native code/.test(e.toString())}var oe,ie="undefined"!==typeof Symbol&&te(Symbol)&&"undefined"!==typeof Reflect&&te(Reflect.ownKeys);oe="undefined"!==typeof Set&&te(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ne=$,re=0,ae=function(){this.id=re++,this.subs=[]};function se(e){ae.SharedObject.targetStack.push(e),ae.SharedObject.target=e,ae.target=e}function ce(){ae.SharedObject.targetStack.pop(),ae.SharedObject.target=ae.SharedObject.targetStack[ae.SharedObject.targetStack.length-1],ae.target=ae.SharedObject.target}ae.prototype.addSub=function(e){this.subs.push(e)},ae.prototype.removeSub=function(e){m(this.subs,e)},ae.prototype.depend=function(){ae.SharedObject.target&&ae.SharedObject.target.addDep(this)},ae.prototype.notify=function(){var e=this.subs.slice();for(var t=0,o=e.length;t-1)if(r&&!v(n,"default"))a=!1;else if(""===a||a===x(e)){var c=Ee(String,n.type);(c<0||s0&&(c=e(c,(o||"")+"_"+s),it(c[0])&&it(u)&&(d[l]=fe(u.text+c[0].text),c.shift()),d.push.apply(d,c)):a(c)?it(u)?d[l]=fe(u.text+c):""!==c&&d.push(fe(c)):it(c)&&it(u)?d[l]=fe(u.text+c.text):(r(t._isVList)&&n(c.tag)&&i(c.key)&&n(o)&&(c.key="__vlist"+o+"_"+s+"__"),d.push(c)));return d}(e):void 0}function it(e){return n(e)&&n(e.text)&&function(e){return!1===e}(e.isComment)}function nt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function rt(e){var t=at(e.$options.inject,e);t&&(_e(!1),Object.keys(t).forEach((function(o){we(e,o,t[o])})),_e(!0))}function at(e,t){if(e){for(var o=Object.create(null),i=ie?Reflect.ownKeys(e):Object.keys(e),n=0;n0,a=e?!!e.$stable:!r,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&i&&i!==o&&s===i.$key&&!r&&!i.$hasNormal)return i;for(var c in n={},e)e[c]&&"$"!==c[0]&&(n[c]=ut(t,c,e[c]))}else n={};for(var l in t)l in n||(n[l]=dt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=n),U(n,"$stable",a),U(n,"$key",s),U(n,"$hasNormal",r),n}function ut(e,t,o){var i=function(){var e=arguments.length?o.apply(null,arguments):o({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:ot(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return o.proxy&&Object.defineProperty(e,t,{get:i,enumerable:!0,configurable:!0}),i}function dt(e,t){return function(){return e[t]}}function ft(e,t){var o,i,r,a,c;if(Array.isArray(e)||"string"===typeof e)for(o=new Array(e.length),i=0,r=e.length;idocument.createEvent("Event").timeStamp&&(Zt=function(){return eo.now()})}function to(){var e,t;for(Zt(),Kt=!0,Wt.sort((function(e,t){return e.id-t.id})),Qt=0;QtQt&&Wt[o].id>e.id)o--;Wt.splice(o+1,0,e)}else Wt.push(e);Yt||(Yt=!0,Je(to))}}(this)},io.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Lo){Le(Lo,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},io.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},io.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},io.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var no={enumerable:!0,configurable:!0,get:$,set:$};function ro(e,t,o){no.get=function(){return this[t][o]},no.set=function(e){this[t][o]=e},Object.defineProperty(e,o,no)}function ao(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var o=e.$options.propsData||{},i=e._props={},n=e.$options._propKeys=[],r=!e.$parent;r||_e(!1);var a=function(r){n.push(r);var a=Te(r,t,o,e);we(i,r,a),r in e||ro(e,"_props",r)};for(var s in t)a(s);_e(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var o in t)e[o]="function"!==typeof t[o]?$:D(t[o],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;t=e._data="function"===typeof t?function(e,t){se();try{return e.call(t,t)}catch(Lo){return Le(Lo,t,"data()"),{}}finally{ce()}}(t,e):t||{},l(t)||(t={});var o=Object.keys(t),i=e.$options.props,n=(e.$options.methods,o.length);while(n--){var r=o[n];0,i&&v(i,r)||N(r)||ro(e,"_data",r)}be(t,!0)}(e):be(e._data={},!0),t.computed&&function(e,t){var o=e._computedWatchers=Object.create(null),i=Z();for(var n in t){var r=t[n],a="function"===typeof r?r:r.get;0,i||(o[n]=new io(e,a||$,$,so)),n in e||co(e,n,r)}}(e,t.computed),t.watch&&t.watch!==K&&function(e,t){for(var o in t){var i=t[o];if(Array.isArray(i))for(var n=0;n-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===c.call(e)}(e)&&e.test(t)}function yo(e,t){var o=e.cache,i=e.keys,n=e._vnode;for(var r in o){var a=o[r];if(a){var s=_o(a.componentOptions);s&&!t(s)&&bo(o,r,i,n)}}}function bo(e,t,o,i){var n=e[t];!n||i&&n.tag===i.tag||n.componentInstance.$destroy(),e[t]=null,m(o,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=po++,t._isVue=!0,e&&e._isComponent?function(e,t){var o=e.$options=Object.create(e.constructor.options),i=t._parentVnode;o.parent=t.parent,o._parentVnode=i;var n=i.componentOptions;o.propsData=n.propsData,o._parentListeners=n.listeners,o._renderChildren=n.children,o._componentTag=n.tag,t.render&&(o.render=t.render,o.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Me(ho(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,o=t.parent;if(o&&!t.abstract){while(o.$options.abstract&&o.$parent)o=o.$parent;o.$children.push(e)}e.$parent=o,e.$root=o?o.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&zt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,i=e.$vnode=t._parentVnode,n=i&&i.context;e.$slots=st(t._renderChildren,n),e.$scopedSlots=o,e._c=function(t,o,i,n){return It(e,t,o,i,n,!1)},e.$createElement=function(t,o,i,n){return It(e,t,o,i,n,!0)};var r=i&&i.data;we(e,"$attrs",r&&r.attrs||o,null,!0),we(e,"$listeners",t._parentListeners||o,null,!0)}(t),Ht(t,"beforeCreate"),!t._$fallback&&rt(t),ao(t),!t._$fallback&&nt(t),!t._$fallback&&Ht(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(go),function(e){var t={get:function(){return this._data}},o={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",o),e.prototype.$set=Se,e.prototype.$delete=ke,e.prototype.$watch=function(e,t,o){if(l(t))return fo(this,e,t,o);o=o||{},o.user=!0;var i=new io(this,e,t,o);if(o.immediate)try{t.call(this,i.value)}catch(n){Le(n,this,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}(go),function(e){var t=/^hook:/;e.prototype.$on=function(e,o){var i=this;if(Array.isArray(e))for(var n=0,r=e.length;n1?P(o):o;for(var i=P(arguments,1),n='event handler for "'+e+'"',r=0,a=o.length;rparseInt(this.max)&&bo(s,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},ko={KeepAlive:So};(function(e){var t={get:function(){return L}};Object.defineProperty(e,"config",t),e.util={warn:ne,extend:C,mergeOptions:Me,defineReactive:we},e.set=Se,e.delete=ke,e.nextTick=Je,e.observable=function(e){return be(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,C(e.options.components,ko),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var o=P(arguments,1);return o.unshift(this),"function"===typeof e.install?e.install.apply(e,o):"function"===typeof e&&e.apply(null,o),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Me(this.options,e),this}}(e),mo(e),function(e){F.forEach((function(t){e[t]=function(e,o){return o?("component"===t&&l(o)&&(o.name=o.name||e,o=this.options._base.extend(o)),"directive"===t&&"function"===typeof o&&(o={bind:o,update:o}),this.options[t+"s"][e]=o,o):this.options[t+"s"][e]}}))}(e)})(go),Object.defineProperty(go.prototype,"$isServer",{get:Z}),Object.defineProperty(go.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(go,"FunctionalRenderContext",{value:Ct}),go.version="2.6.11";var xo="[object Array]",Do="[object Object]";function Po(e,t){var o={};return function e(t,o){if(t===o)return;var i=Oo(t),n=Oo(o);if(i==Do&&n==Do){if(Object.keys(t).length>=Object.keys(o).length)for(var r in o){var a=t[r];void 0===a?t[r]=null:e(a,o[r])}}else i==xo&&n==xo&&t.length>=o.length&&o.forEach((function(o,i){e(t[i],o)}))}(e,t),function e(t,o,i,n){if(t===o)return;var r=Oo(t),a=Oo(o);if(r==Do)if(a!=Do||Object.keys(t).length1&&(t[i[0].trim()]=i[1].trim())}})),t}));var Fo=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];var Eo=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onUploadDouyinVideo","onNFCReadMessage","onPageShow","onPageHide","onPageResize"];go.prototype.__patch__=function(e,t){var o=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var i=this.$scope,n=Object.create(null);try{n=function(e){var t=Object.create(null),o=[].concat(Object.keys(e._data||{}),Object.keys(e._computedWatchers||{}));o.reduce((function(t,o){return t[o]=e[o],t}),t);var i=e.__composition_api_state__||e.__secret_vfa_state__,n=i&&i.rawBindings;return n&&Object.keys(n).forEach((function(o){t[o]=e[o]})),Object.assign(t,e.$mp.data||{}),Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field")&&(t["name"]=e.name,t["value"]=e.value),JSON.parse(JSON.stringify(t,Mo))}(this)}catch(s){}n.__webviewId__=i.data.__webviewId__;var r=Object.create(null);Object.keys(n).forEach((function(e){r[e]=i.data[e]}));var a=!1===this.$shouldDiffData?n:Po(n,r);Object.keys(a).length?(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"lucky_weapp",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG,this.__next_tick_pending=!0,i.setData(a,(function(){o.__next_tick_pending=!1,$o(o)}))):$o(this)}},go.prototype.$mount=function(e,t){return function(e,t,o){return e.mpType?("app"===e.mpType&&(e.$options.render=Ao),e.$options.render||(e.$options.render=Ao),!e._$fallback&&Ht(e,"beforeMount"),new io(e,(function(){e._update(e._render(),o)}),$,{before:function(){e._isMounted&&!e._isDestroyed&&Ht(e,"beforeUpdate")}},!0),o=!1,e):e}(this,0,t)},function(e){var t=e.extend;e.extend=function(e){e=e||{};var o=e.methods;return o&&Object.keys(o).forEach((function(t){-1!==Eo.indexOf(t)&&(e[t]=o[t],delete o[t])})),t.call(this,e)};var o=e.config.optionMergeStrategies,i=o.created;Eo.forEach((function(e){o[e]=i})),e.prototype.__lifecycle_hooks__=Eo}(go),function(e){e.config.errorHandler=function(t,o,i){e.util.warn("Error in "+i+': "'+t.toString()+'"',o);var n="function"===typeof getApp&&getApp();n&&n.onError&&n.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var o=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(o)try{o.call(this.$scope,e,{__args__:P(arguments,1)})}catch(i){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return jo(this,e)},Fo.forEach((function(t){e.prototype[t]=function(e){return this.$scope&&this.$scope[t]?this.$scope[t](e):"undefined"!==typeof my?"createSelectorQuery"===t?my.createSelectorQuery(e):"createIntersectionObserver"===t?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=nt,e.prototype.__init_injections=rt,e.prototype.__call_hook=function(e,t){var o=this;se();var i,n=o.$options[e],r=e+" hook";if(n)for(var a=0,s=n.length;a0||this.invalidGoods.length>0}},methods:{initNum:function(e){var t=e.max_buy>0&&e.max_buyt?t:e.num},getCartData:function(){var e=this;this.$api.sendRequest({url:"/api/cart/goodslists",success:function(t){t.code>=0&&(t.data.length?e.handleCartData(t.data):e.cartData=[]),e.refresherTriggered=!1,e.$refs.loadingCover&&e.$refs.loadingCover.hide()},fail:function(t){e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})},handleCartData:function(e){var t=this;this.invalidGoods=[],this.cartData=[];var o={};e.forEach((function(e,i){1==e.goods_state?void 0!=e.store_goods_status&&1!=e.store_goods_status||e.min_buy>0&&e.min_buy>e.stock?t.invalidGoods.push(e):(e.checked=!0,e.edit=!1,void 0!=o["site_"+e.site_id]?o["site_"+e.site_id].cartList.push(e):o["site_"+e.site_id]={siteId:e.site_id,siteName:e.site_name,edit:!1,checked:!0,cartList:[e]}):t.invalidGoods.push(e)})),this.cartData=[],Object.keys(o).forEach((function(e){t.cartData.push(o[e])})),this.calculationTotalPrice(),this.cartData.length&&this.cartData[0].cartList.forEach((function(e){e.sku_spec_format?e.sku_spec_format=JSON.parse(e.sku_spec_format):e.sku_spec_format=[]})),this.invalidGoods.length&&this.invalidGoods.forEach((function(e){e.sku_spec_format?e.sku_spec_format=JSON.parse(e.sku_spec_format):e.sku_spec_format=[]}))},singleElection:function(e,t){this.cartData[e].cartList[t].checked=!this.cartData[e].cartList[t].checked,this.calculationTotalPrice()},siteAllElection:function(e,t){this.cartData[t].checked=e,this.cartData[t].cartList.forEach((function(t){t.checked=e})),this.calculationTotalPrice()},allElection:function(e){var t=this;this.checkAll="boolean"==typeof e?e:!this.checkAll,this.cartData.length&&this.cartData.forEach((function(e){e.checked=t.checkAll,e.cartList.forEach((function(e){e.checked=t.checkAll}))})),this.calculationTotalPrice()},calculationTotalPrice:function(){if(this.cartData.length){var e=0,t=0,o=0;this.cartData.forEach((function(i){var n=0;i.cartList.forEach((function(o){o.checked&&(n+=1,t+=parseInt(o.num),Number(o.member_price)>0&&Number(o.member_price)1?"确定要删除这些商品吗?":"确定要删除该商品吗?",success:function(e){e.confirm&&(r=r.toString(),n.$api.sendRequest({url:"/api/cart/delete",data:{cart_id:r},success:function(e){if(e.code>=0){if("all"==t){for(var r=0;r0&&i.max_buy0?i.min_buy:1;e>n&&(e=n),e=0){var n=o.cartData[t.siteIndex].cartList[t.cartIndex],r=n.goods_id,a=n.sku_id;n.num=e,o.cartList["goods_"+r]["sku_"+a].num=e,o.$store.dispatch("cartCalculate"),o.resetEditStatus(),o.calculationTotalPrice()}else o.$util.showToast({title:i.message})}})}),800)}},settlement:function(){var t=this;if(this.totalCount>0){var o=[];if(this.cartData.forEach((function(e){e.cartList.forEach((function(e){e.checked&&o.push(e.cart_id)}))})),this.discount.coupon_info&&"wait"==this.discount.coupon_info.receive_type&&this.receiveCoupon(this.discount.coupon_info.coupon_type_id,!1),this.isSub)return;this.isSub=!0,e.removeStorageSync("delivery"),e.setStorage({key:"orderCreateData",data:{cart_ids:o.toString()},success:function(){t.$util.redirectTo("/pages/order/payment"),t.isSub=!1}})}},clearInvalidGoods:function(){var t=this;e.showModal({title:"提示",content:"确定要清空这些商品吗?",success:function(e){if(e.confirm){var o=[];t.invalidGoods.forEach((function(e){o.push(e.cart_id)})),o.length&&t.$api.sendRequest({url:"/api/cart/delete",data:{cart_id:o.toString()},success:function(e){e.code>=0?(t.invalidGoods=[],t.refreshCartNumber()):t.$util.showToast({title:e.message})}})}}})},imageError:function(e,t){this.cartData[e].cartList[t].sku_image=this.$util.getDefaultImage().goods,this.$forceUpdate()},toGoodsDetail:function(e){this.$util.redirectTo("/pages/goods/detail",{sku_id:e.sku_id})},refreshCartNumber:function(){this.storeToken&&(this.$store.dispatch("getCartNumber"),this.resetEditStatus())},goodsLimit:function(e,t){var o=this.cartData[t.siteIndex].cartList[t.cartIndex];"plus"==e.type?o.max_buy>0&&o.max_buy=0?(t.invalidGoods=[],t.getCartData(),t.refreshCartNumber()):t.$util.showToast({title:e.message})}})}),t.goodsSkuDetail)}))},toggleDiscountPopup:function(){this.$refs.discountPopup.showPopup?this.$refs.discountPopup.close():this.$refs.discountPopup.open(),this.discountPopupShow=!this.discountPopupShow},discountCalculate:function(){var e=this;if(0!=this.cartData.length){var t=[];this.cartData.forEach((function(e){e.cartList.forEach((function(e){e.checked&&t.push({sku_id:e.sku_id,num:e.num})}))})),0!=t.length?this.$api.sendRequest({url:"/api/cartcalculate/calculate",data:{sku_ids:JSON.stringify(t)},success:function(t){if(t.code>=0&&t.data&&(t.data.coupon_money>0||t.data.promotion_money>0)){e.discount=t.data;var o={};t.data.goods_list.forEach((function(e){e.promotion&&e.promotion.manjian&&(o["sku_"+e.sku_id]=JSON.parse(e.promotion.manjian.rule_json))})),Object.assign(e.manjian,o),e.refresherTriggered=!1}else e.discount={}}}):this.discount={}}},receiveCoupon:function(e){var t=this,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.receiveSub||(this.receiveSub=!0,this.$api.sendRequest({url:"/coupon/api/coupon/receive",data:{coupon_type_id:e,get_type:2},success:function(e){0==e.code?t.$set(t.discount.coupon_info,"receive_type",""):(o&&t.$util.showToast({title:e.message}),t.receiveSub=!1)}}))},touchS:function(e){this.startX=e.touches[0].clientX},touchE:function(e,t){this.endX=e.changedTouches[0].clientX;var o=this.startX-this.endX;o>50?t.edit=!0:o<0&&(t.edit=!1),this.$forceUpdate()},moneyFormat:function(e){return isNaN(parseFloat(e))?e:parseFloat(e).toFixed(2)},refreshSkuDetail:function(e){this.goodsSkuDetail=e},onRefresh:function(e){this.refresherTriggered=!0,this.storeToken?(this.getCartData(),this.refreshCartNumber()):(this.cartData=[],this.invalidGoods=[],this.calculationTotalPrice())}}};t.default=o}).call(this,o("df3c")["default"])},"36a6":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"预售专区"}},"36f8":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"积分明细",emptyTpis:"您暂时还没有积分记录哦!",pointExplain:"积分说明"}},"3a02":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("af34")),r={data:function(){return{listStyle:"",loadingType:"loading",orderType:"",priceOrder:"desc",categoryList:[],goodsList:[],order:"",sort:"desc",showScreen:!1,keyword:"",categoryId:0,minPrice:"",maxPrice:"",isFreeShipping:!1,isIphoneX:!1,coupon:0,emptyShow:!1,isList:!0,share_title:"",count:0,category_title:"",coupon_name:"",listHeight:[],listPosition:[],debounce:null,brandId:0,brandList:[],config:{fontWeight:!1,padding:0,cartEvent:"detail",text:"购买",textColor:"#FFFFFF",theme:"default",aroundRadius:25,control:!0,bgColor:"#FF6A00",style:"button",iconDiy:{iconType:"icon",icon:"",style:{fontSize:"60",iconBgColor:[],iconBgColorDeg:0,iconBgImg:"",bgRadius:0,iconColor:["#000000"],iconColorDeg:0}}},langstatus:0,lang:e.getStorageSync("lang")}},onLoad:function(t){var o=this;if(this.$api.sendRequest({url:"/api/lucky/status",data:{},success:function(t){o.langstatus=t.status,1==o.langstatus&&e.setNavigationBarTitle({title:"en-us"==e.getStorageSync("lang")?"Goods List":"商品列表"})}}),this.categoryId=t.category_id||0,this.keyword=t.keyword||"",this.coupon=t.coupon||0,this.goods_id_arr=t.goods_id_arr||0,this.brandId=t.brand_id||0,this.loadCategoryList(this.categoryId),this.getBrandList(),this.isIphoneX=this.$util.uniappIsIPhoneX(),t.source_member&&e.setStorageSync("source_member",t.source_member),t.scene){var i=decodeURIComponent(t.scene);i=i.split("&"),i.length&&i.forEach((function(t){-1!=t.indexOf("sku_id")&&(o.skuId=t.split("-")[1]),-1!=t.indexOf("m")&&e.setStorageSync("source_member",t.split("-")[1]),-1!=t.indexOf("is_test")&&e.setStorageSync("is_test",1)}))}e.onWindowResize((function(e){o.debounce&&clearTimeout(o.debounce),o.waterfallflow(0)}))},onShow:function(){this.storeToken&&e.getStorageSync("source_member")&&this.$util.onSourceMember(e.getStorageSync("source_member"))},onShareAppMessage:function(e){var t="搜索到"+this.count+"件“"+this.keyword+this.category_title+this.coupon_name+"”相关的优质商品",o=this.$util.getCurrentShareRoute(this.memberInfo?this.memberInfo.member_id:0),i=o.path;return{title:t,path:i,success:function(e){},fail:function(e){}}},onShareTimeline:function(){var e="搜索到"+this.count+"件“"+this.keyword+this.category_title+this.coupon_name+"”相关的优质商品",t=this.$util.getCurrentShareRoute(this.memberInfo?this.memberInfo.member_id:0),o=t.query;return{title:e,query:o,imageUrl:""}},methods:{couponInfo:function(e){var t=this;return new Promise((function(o){t.$api.sendRequest({url:"/coupon/api/coupon/typeinfo",data:{coupon_type_id:e},success:function(e){e.code>=0&&o(e.data.coupon_name)}})}))},share_select:function(e,t){return new Promise((function(o){e.forEach((function(e){e.category_id==t&&o(e.category_name),e.child_list&&e.child_list.length>0&&e.child_list.forEach((function(e){e.category_id==t&&o(e.category_name),e.child_list&&e.child_list.length>0&&e.forEach((function(e){e.category_id==t&&o(e.category_name)}))}))}))}))},loadCategoryList:function(e,t){var o=this;this.$api.sendRequest({url:"/api/goodscategory/tree",data:{},success:function(e){null!=e.data&&(o.categoryList=e.data)}})},getGoodsList:function(e){var t=this;this.$api.sendRequest({url:"/api/goodssku/page",data:{page:e.num,page_size:e.size,keyword:this.keyword,category_id:this.categoryId,brand_id:this.brandId,min_price:this.minPrice,max_price:this.maxPrice,is_free_shipping:this.isFreeShipping?1:0,order:this.order,sort:this.sort,coupon:this.coupon,goods_id_arr:this.goods_id_arr},success:function(o){var i=[],n=o.message;0==o.code&&o.data?(t.count=o.data.count,0==o.data.page_count&&(t.emptyShow=!0),i=o.data.list,i=i.map((function(e){return e.id=t.genNonDuplicate(),e}))):t.$util.showToast({title:n}),t.category_title="",t.coupon_name="",o.data.config&&(t.config=o.data.config),t.categoryId&&t.share_select(t.categoryList,t.categoryId).then((function(e){t.category_title=e})),t.coupon&&t.couponInfo(t.coupon).then((function(e){t.coupon_name=e})),e.endSuccess(i.length),1==e.num&&(t.goodsList=[]),t.goodsList=t.goodsList.concat(i),t.$refs.loadingCover&&t.$refs.loadingCover.hide(),t.waterfallflow(10*(e.num-1))},fail:function(o){e.endErr(),t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},changeListStyle:function(){this.isList=!this.isList,this.waterfallflow(0)},sortTabClick:function(e){if("sale_num"==e)this.order="sale_num",this.sort="desc";else if("discount_price"==e)this.order="discount_price",this.sort="desc";else{if("screen"==e)return void(this.showScreen=!0);this.order="",this.sort=""}this.orderType===e&&"discount_price"!==e||(this.orderType=e,"discount_price"===e?(this.priceOrder="asc"===this.priceOrder?"desc":"asc",this.sort=this.priceOrder):this.priceOrder="",this.emptyShow=!1,this.goodsList=[],this.$refs.mescroll.refresh())},toDetail:function(e){this.$util.redirectTo("/pages/goods/detail",{goods_id:e.goods_id})},search:function(){this.emptyShow=!1,this.goodsList=[],this.$refs.mescroll.refresh()},selectedCategory:function(e){this.categoryId=e},screenData:function(){if(""!=this.minPrice||""!=this.maxPrice){if(!Number(this.maxPrice)&&this.maxPrice)return void this.$util.showToast({title:"请输入最高价"});if(Number(this.minPrice)<0||Number(this.maxPrice)<0)return void this.$util.showToast({title:"筛选价格不能小于0"});if(""!=this.minPrice&&Number(this.minPrice)>Number(this.maxPrice)&&this.maxPrice)return void this.$util.showToast({title:"最低价不能大于最高价"});if(""!=this.maxPrice&&Number(this.maxPrice)0)return e.market_price;if(parseFloat(e.price)>parseFloat(t))return e.price}return""},goodsTag:function(e){return e.label_name||""},waterfallflow:function(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.isList||this.$nextTick((function(){setTimeout((function(){var i=[],r=[];0!=o&&(i=t.listHeight,r=t.listPosition);var a=e.createSelectorQuery().in(t);a.selectAll(".double-column .goods-item").boundingClientRect((function(a){for(var s=o;s0&&void 0!==arguments[0]?arguments[0]:6;return Number(Math.random().toString().substr(3,e)+Date.now()).toString(36)}}};t.default=r}).call(this,o("df3c")["default"])},"3b2d":function(e,t){function o(t){return e.exports=o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,o(t)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},"3b90":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:"视频"}},4191:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"秒杀专区"}},4406:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"店铺笔记"}},"44bc":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"商品评价"}},"46b3":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"拼团分享"}},"46f4":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:""}},4779:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"账单"}},"47a9":function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"47e7":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"核销明细"}},"4d7a":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"我的预售",emptyTips:"暂无相关预售订单",update:"释放刷新",updateIng:"加载中..."}},"4e31":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"支付结果",paymentSuccess:"支付成功",paymentFail:"支付失败",goHome:"回到首页",memberCenter:"会员中心",payMoney:"支付金额",unit:"元"}},"4ff4":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"编辑账户",name:"姓名",namePlaceholder:"请输入真实姓名",mobilePhone:"手机号码",mobilePhonePlaceholder:"请输入手机号",accountType:"账号类型",bankInfo:"支行信息",bankInfoPlaceholder:"请输入支行信息",withdrawalAccount:"提现账号",withdrawalAccountPlaceholder:"请输入提现账号",save:"保存"}},"51f3":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:""}},"52c5":function(e,t,o){"use strict";var i=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(o("7ca3"));function r(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function a(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:"gcj02",n=a(t,e,i);r(n[1],n[0],o)}};t.default=s}).call(this,o("df3c")["default"])},6090:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"我的拼单"}},"60d7":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"会员中心",login:"登录/注册",loginTpis:"点击登录 享受更多精彩信息",memberLevel:"会员等级",moreAuthority:"更多权限",allOrders:"全部订单",seeAllOrders:"查看全部订单",waitPay:"待付款",readyDelivery:"待发货",waitDelivery:"待收货",refunding:"退款",sign:"签到",personInfo:"个人资料",receivingAddress:"收货地址",accountList:"账户列表",couponList:"优惠券",mySpellList:"我的拼单",myBargain:"我的砍价",virtualCode:"虚拟码",winningRecord:"我的礼品",myCollection:"我的关注",myTracks:"我的足迹",pintuanOrder:"拼团订单",yushouOrder:"预售订单",verification:"核销台",message:"我的消息",exchangeOrder:"积分兑换",waitpay:"待付款",waitsend:"待发货",waitconfirm:"待收货",activist:"售后",completed:"已完成",balance:"余额",point:"积分",coupon:"优惠券",memberRecommend:"邀请有礼",myPresale:"我的预售",myGiftcard:"我的礼品卡",myDivideticket:"我的瓜分券",myRebate:"拼团返利",myHongbao:"我的红包列表",myBlindBox:"我的盲盒"}},6208:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"兑换结果",exchangeSuccess:"兑换成功",see:"查看兑换记录",goHome:"回到首页"}},6381:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"编辑收货地址",consignee:"姓名",consigneePlaceholder:"收货人姓名",mobile:"手机",mobilePlaceholder:"收货人手机号",telephone:"电话",telephonePlaceholder:"收货人固定电话(选填)",receivingCity:"地区",address:"详细地址",addressPlaceholder:"小区、街道、写字楼",save:"保存"}},6382:function(e,t,o){var i=o("6454");e.exports=function(e,t){if(e){if("string"===typeof e)return i(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(e,t):void 0}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"641c":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"品牌专区"}},6454:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=new Array(t);o0)return a.default.commit("setSiteState",-3),void r.default.redirectTo("/pages_tool/storeclose/storeclose",{},"reLaunch");e.data.refreshtoken&&a.default.commit("setToken",e.data.refreshtoken),-10009!=e.data.code&&-10010!=e.data.code||(a.default.commit("setToken",""),a.default.commit("setMemberInfo","")),c(e.data)},fail:function(t){t.errMsg&&"request:fail url not in domain list"==t.errMsg?e.showToast({title:n.default.baseUrl+"不在request 合法域名列表中",icon:"none",duration:1e4}):l(t)},complete:function(t){t.errMsg&&"request:ok"!=t.errMsg||t.statusCode&&-1==[200,500].indexOf(t.statusCode)?e.showToast({title:n.default.baseUrl+"请求失败",icon:"none",duration:1e4}):l(t.data)}})}));e.request({url:i,method:o,data:s,header:t.header||{"content-type":"application/x-www-form-urlencoded;application/json"},dataType:t.dataType||"json",responseType:t.responseType||"text",success:function(e){if(-3==e.data.code&&a.default.state.siteState>0)return a.default.commit("setSiteState",-3),void r.default.redirectTo("/pages_tool/storeclose/storeclose",{},"reLaunch");e.data.refreshtoken&&a.default.commit("setToken",e.data.refreshtoken),-10009!=e.data.code&&-10010!=e.data.code||(a.default.commit("setToken",""),a.default.commit("setMemberInfo","")),"function"==typeof t.success&&t.success(e.data)},fail:function(o){o.errMsg&&"request:fail url not in domain list"==o.errMsg?e.showToast({title:n.default.baseUrl+"不在request 合法域名列表中",icon:"none",duration:1e4}):"function"==typeof t.fail&&t.fail(o)},complete:function(o){o.errMsg&&"request:ok"!=o.errMsg||o.statusCode&&-1==[200,500].indexOf(o.statusCode)?e.showToast({title:n.default.baseUrl+"请求失败",icon:"none",duration:1e4}):"function"==typeof t.complete&&t.complete(o.data)}})}else e.showToast({title:"未配置请求域名",icon:"none",duration:1e4})},uploadBase64:function(t){e.request({url:n.default.baseUrl+"/api/upload/headimgBase64",method:"POST",header:{"content-type":"application/x-www-form-urlencoded;application/json"},data:{app_type:"weapp",app_type_name:"微信小程序",images:t.base64},dataType:"json",responseType:"text",success:function(e){"function"==typeof t.success&&t.success(e.data)},fail:function(){"function"==typeof t.fail&&t.fail(res)}})},pullImage:function(t){e.request({url:n.default.baseUrl+"/api/upload/headimgPull",method:"POST",header:{"content-type":"application/x-www-form-urlencoded;application/json"},data:{app_type:"weapp",app_type_name:"微信小程序",path:t.path},dataType:"json",responseType:"text",success:function(e){"function"==typeof t.success&&t.success(e.data)},fail:function(){"function"==typeof t.fail&&t.fail(res)}})},upload:function(t){e.uploadFile({url:n.default.baseUrl+t.url,filePath:t.filePath,name:t.name||"file",fileType:t.fileType||"image",formData:{app_type:"weapp",app_type_name:"微信小程序"},header:{"content-type":"application/x-www-form-urlencoded;application/json"},success:function(e){"function"==typeof t.success&&t.success(JSON.parse(e.data))},fail:function(e){"function"==typeof t.fail&&t.fail(e)}})}};t.default=s}).call(this,o("df3c")["default"])},7172:function(e,t){e.exports=function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i,n,r,a,s=[],c=!0,l=!1;try{if(r=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;c=!1}else for(;!(c=(i=r.call(o)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,n=e}finally{try{if(!c&&null!=o["return"]&&(a=o["return"](),Object(a)!==a))return}finally{if(l)throw n}}return s}},e.exports.__esModule=!0,e.exports["default"]=e.exports},7307:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"核销记录",emptyTips:"暂无记录"}},"755e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"订单详情"}},7647:function(e,t){function o(t,i){return e.exports=o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports["default"]=e.exports,o(t,i)}e.exports=o,e.exports.__esModule=!0,e.exports["default"]=e.exports},"769e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"退款详情"}},7749:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"核销台"}},7780:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"邀请好友"}},"78b8":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"申请退款"}},"7c49":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"团购专区"}},"7c5d":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"账号注销"}},"7c64":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={tabBar:{home:"首页",category:"分类",cart:"购物车",member:"个人中心"},common:{name:"中文",mescrollTextInOffset:"下拉刷新",mescrollTextOutOffset:"释放更新",mescrollEmpty:"暂无相关数据",goodsRecommendTitle:"猜你喜欢",currencySymbol:"¥",submit:"提交"}}},"7ca3":function(e,t,o){var i=o("d551");e.exports=function(e,t,o){return t=i(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"7d44":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"店铺打烊"}},"7e77":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"积分中心"}},"7eb4":function(e,t,o){var i=o("9fc1")();e.exports=i},"823e":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"砍价详情"}},"828b":function(e,t,o){"use strict";function i(e,t,o,i,n,r,a,s,c,l){var u,d="function"===typeof e?e.options:e;if(c){d.components||(d.components={});var f=Object.prototype.hasOwnProperty;for(var p in c)f.call(c,p)&&!f.call(d.components,p)&&(d.components[p]=c[p])}if(l&&("function"===typeof l.beforeCreate&&(l.beforeCreate=[l.beforeCreate]),(l.beforeCreate||(l.beforeCreate=[])).unshift((function(){this[l.__module]=this})),(d.mixins||(d.mixins=[])).push(l)),t&&(d.render=t,d.staticRenderFns=o,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=u):n&&(u=s?function(){n.call(this,this.$root.$options.shadowRoot)}:n),u)if(d.functional){d._injectStyles=u;var h=d.render;d.render=function(e,t){return u.call(t),h(e,t)}}else{var g=d.beforeCreate;d.beforeCreate=g?[].concat(g,u):[u]}return{exports:e,options:d}}o.d(t,"a",(function(){return i}))},"834a":function(e,t,o){"use strict";(function(e,o){function i(e,t){var o="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=function(e,t){if(!e)return;if("string"===typeof e)return n(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return n(e,t)}(e))||t&&e&&"number"===typeof e.length){o&&(e=o);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==o.return||o.return()}finally{if(c)throw a}}}}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=new Array(t);o",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…",larr:"←",uarr:"↑",rarr:"→",darr:"↓"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",strike:"text-decoration:line-through",u:"text-decoration:underline"},svgDict:{animatetransform:"animateTransform",lineargradient:"linearGradient",viewbox:"viewBox",attributename:"attributeName",repeatcount:"repeatCount",repeatdur:"repeatDur",foreignobject:"foreignObject"}},a={},s=e.getSystemInfoSync(),c=s.windowWidth,l=s.system,u=f(" ,\r,\n,\t,\f"),d=0;function f(e){for(var t=Object.create(null),o=e.split(","),i=o.length;i--;)t[o[i]]=!0;return t}function p(e,t){var o=e.indexOf("&");while(-1!==o){var i=e.indexOf(";",o+3),n=void 0;if(-1===i)break;"#"===e[o+1]?(n=parseInt(("x"===e[o+2]?"0":"")+e.substring(o+2,i)),isNaN(n)||(e=e.substr(0,o)+String.fromCharCode(n)+e.substr(i+1))):(n=e.substring(o+1,i),(r.entities[n]||"amp"===n&&t)&&(e=e.substr(0,o)+(r.entities[n]||"&")+e.substr(i+1))),o=e.indexOf("&",o+1)}return e}function h(e){for(var t=e.length-1,o=t;o>=-1;o--)(-1===o||e[o].c||!e[o].name||"div"!==e[o].name&&"p"!==e[o].name&&"h"!==e[o].name[0]||(e[o].attrs.style||"").includes("inline"))&&(t-o>=5&&e.splice(o+1,t-o,{name:"div",attrs:{},children:e.slice(o+1,t+1)}),t=o-1)}function g(e){this.options=e||{},this.tagStyle=Object.assign({},r.tagStyle,this.options.tagStyle),this.imgList=e.imgList||[],this.imgList._unloadimgs=0,this.plugins=e.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[],this.pre=(this.options.containerStyle||"").includes("white-space")&&this.options.containerStyle.includes("pre")?2:0}function m(e){this.handler=e}g.prototype.parse=function(e){for(var t=this.plugins.length;t--;)this.plugins[t].onUpdate&&(e=this.plugins[t].onUpdate(e,r)||e);new m(this).parse(e);while(this.stack.length)this.popNode();return this.nodes.length>50&&h(this.nodes),this.nodes},g.prototype.expose=function(){for(var e=this.stack.length;e--;){var t=this.stack[e];if(t.c||"a"===t.name||"video"===t.name||"audio"===t.name)return;t.c=1}},g.prototype.hook=function(e){for(var t=this.plugins.length;t--;)if(this.plugins[t].onParse&&!1===this.plugins[t].onParse(e,this))return!1;return!0},g.prototype.getUrl=function(e){var t=this.options.domain;return"/"===e[0]?"/"===e[1]?e=(t?t.split("://")[0]:"http")+":"+e:t&&(e=t+e):e.includes("data:")||e.includes("://")||t&&(e=t+"/"+e),e},g.prototype.parseStyle=function(e){var t=e.attrs,o=(this.tagStyle[e.name]||"").split(";").concat((t.style||"").split(";")),i={},n="";t.id&&!this.xml&&(this.options.useAnchor?this.expose():"img"!==e.name&&"a"!==e.name&&"video"!==e.name&&"audio"!==e.name&&(t.id=void 0)),t.width&&(i.width=parseFloat(t.width)+(t.width.includes("%")?"%":"px"),t.width=void 0),t.height&&(i.height=parseFloat(t.height)+(t.height.includes("%")?"%":"px"),t.height=void 0);for(var r=0,a=o.length;r0||d.includes("safe"))n+=";".concat(l,":").concat(d);else if(!i[l]||d.includes("import")||!i[l].includes("import")){if(d.includes("url")){var f=d.indexOf("(")+1;if(f){while('"'===d[f]||"'"===d[f]||u[d[f]])f++;d=d.substr(0,f)+this.getUrl(d.substr(f))}}else d.includes("rpx")&&(d=d.replace(/[0-9.]+\s*rpx/g,(function(e){return parseFloat(e)*c/750+"px"})));i[l]=d}}}return e.attrs.style=n,i},g.prototype.onTagName=function(e){this.tagName=this.xml?e:e.toLowerCase(),"svg"===this.tagName&&(this.xml=(this.xml||0)+1,r.ignoreTags.style=void 0)},g.prototype.onAttrName=function(e){e=this.xml?e:e.toLowerCase(),"data-"===e.substr(0,5)?"data-src"!==e||this.attrs.src?"img"===this.tagName||"a"===this.tagName?this.attrName=e:this.attrName=void 0:this.attrName="src":(this.attrName=e,this.attrs[e]="T")},g.prototype.onAttrVal=function(e){var t=this.attrName||"";"style"===t||"href"===t?this.attrs[t]=p(e,!0):t.includes("src")?this.attrs[t]=this.getUrl(p(e,!0)):t&&(this.attrs[t]=e)},g.prototype.onOpenTag=function(e){var t=Object.create(null);t.name=this.tagName,t.attrs=this.attrs,this.options.nodes.length&&(t.type="node"),this.attrs=Object.create(null);var o=t.attrs,i=this.stack[this.stack.length-1],n=i?i.children:this.nodes,s=this.xml?e:r.voidTags[t.name];if(a[t.name]&&(o.class=a[t.name]+(o.class?" "+o.class:"")),"embed"===t.name){var l=o.src||"";l.includes(".mp4")||l.includes(".3gp")||l.includes(".m3u8")||(o.type||"").includes("video")?t.name="video":(l.includes(".mp3")||l.includes(".wav")||l.includes(".aac")||l.includes(".m4a")||(o.type||"").includes("audio"))&&(t.name="audio"),o.autostart&&(o.autoplay="T"),o.controls="T"}if("video"!==t.name&&"audio"!==t.name||("video"!==t.name||o.id||(o.id="v"+d++),o.controls||o.autoplay||(o.controls="T"),t.src=[],o.src&&(t.src.push(o.src),o.src=void 0),this.expose()),s){if(!this.hook(t)||r.ignoreTags[t.name])return void("base"!==t.name||this.options.domain?"source"===t.name&&i&&("video"===i.name||"audio"===i.name)&&o.src&&i.src.push(o.src):this.options.domain=o.href);var u=this.parseStyle(t);if("img"===t.name){if(o.src&&(o.src.includes("webp")&&(t.webp="T"),o.src.includes("data:")&&"all"!==this.options.previewImg&&!o["original-src"]&&(o.ignore="T"),!o.ignore||t.webp||o.src.includes("cloud://"))){for(var f=this.stack.length;f--;){var p=this.stack[f];"a"===p.name&&(t.a=p.attrs),"table"!==p.name||t.webp||o.src.includes("cloud://")||(!u.display||u.display.includes("inline")?t.t="inline-block":t.t=u.display,u.display=void 0);var h=p.attrs.style||"";if(!h.includes("flex:")||h.includes("flex:0")||h.includes("flex: 0")||u.width&&!(parseInt(u.width)>100))if(h.includes("flex")&&"100%"===u.width)for(var g=f+1;g.5?v[y].toUpperCase():v[y]}b+=v.substr(y),v=b}}this.imgList.push(v),t.t||(this.imgList._unloadimgs+=1)}"inline"===u.display&&(u.display=""),o.ignore&&(u["max-width"]=u["max-width"]||"100%",o.style+=";-webkit-touch-callout:none"),parseInt(u.width)>c&&(u.height=void 0),isNaN(parseInt(u.width))||(t.w="T"),!isNaN(parseInt(u.height))&&(!u.height.includes("%")||i&&(i.attrs.style||"").includes("height"))&&(t.h="T"),t.w&&t.h&&u["object-fit"]&&("contain"===u["object-fit"]?t.m="aspectFit":"cover"===u["object-fit"]&&(t.m="aspectFill"))}else if("svg"===t.name)return n.push(t),this.stack.push(t),void this.popNode();for(var w in u)u[w]&&(o.style+=";".concat(w,":").concat(u[w].replace(" !important","")));o.style=o.style.substr(1)||void 0}else("pre"===t.name||(o.style||"").includes("white-space")&&o.style.includes("pre"))&&2!==this.pre&&(this.pre=t.pre=1),t.children=[],this.stack.push(t);n.push(t)},g.prototype.onCloseTag=function(e){var t;for(e=this.xml?e:e.toLowerCase(),t=this.stack.length;t--;)if(this.stack[t].name===e)break;if(-1!==t)while(this.stack.length>t)this.popNode();else if("p"===e||"br"===e){var o=this.stack.length?this.stack[this.stack.length-1].children:this.nodes;o.push({name:e,attrs:{class:a[e]||"",style:this.tagStyle[e]||""}})}},g.prototype.popNode=function(){var t=this.stack.pop(),n=t.attrs,a=t.children,s=this.stack[this.stack.length-1],l=s?s.children:this.nodes;if(!this.hook(t)||r.ignoreTags[t.name])return"title"===t.name&&a.length&&"text"===a[0].type&&this.options.setTitle&&e.setNavigationBarTitle({title:a[0].text}),void l.pop();if(t.pre&&2!==this.pre){this.pre=t.pre=void 0;for(var u=this.stack.length;u--;)this.stack[u].pre&&(this.pre=1)}var d={};if("svg"===t.name){if(this.xml>1)return void this.xml--;var f="",p=n.style;return n.style="",n.xmlns="http://www.w3.org/2000/svg",function e(t){if("text"!==t.type){var o=r.svgDict[t.name]||t.name;if("foreignObject"===o){var n,a=i(t.children||[]);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.attrs&&!s.attrs.xmlns){s.attrs.xmlns="http://www.w3.org/1999/xhtml";break}}}catch(d){a.e(d)}finally{a.f()}}for(var c in f+="<"+o,t.attrs){var l=t.attrs[c];l&&(f+=" ".concat(r.svgDict[c]||c,'="').concat(l.replace(/"/g,""),'"'))}if(t.children){f+=">";for(var u=0;u"}else f+="/>"}else f+=t.text}(t),t.name="img",t.attrs={src:"data:image/svg+xml;utf8,"+f.replace(/#/g,"%23"),style:p,ignore:"T"},t.children=void 0,this.xml=!1,void(r.ignoreTags.style=!0)}if(n.align&&("table"===t.name?"center"===n.align?d["margin-inline-start"]=d["margin-inline-end"]="auto":d.float=n.align:d["text-align"]=n.align,n.align=void 0),n.dir&&(d.direction=n.dir,n.dir=void 0),"font"===t.name&&(n.color&&(d.color=n.color,n.color=void 0),n.face&&(d["font-family"]=n.face,n.face=void 0),n.size)){var g=parseInt(n.size);isNaN(g)||(g<1?g=1:g>7&&(g=7),d["font-size"]=["x-small","small","medium","large","x-large","xx-large","xxx-large"][g-1]),n.size=void 0}if((n.class||"").includes("align-center")&&(d["text-align"]="center"),Object.assign(d,this.parseStyle(t)),"table"!==t.name&&parseInt(d.width)>c&&(d["max-width"]="100%",d["box-sizing"]="border-box"),r.blockTags[t.name]?t.name="div":r.trustTags[t.name]||this.xml||(t.name="span"),"a"===t.name||"ad"===t.name)this.expose();else if("video"===t.name)(d.height||"").includes("auto")&&(d.height=void 0);else if("ul"!==t.name&&"ol"!==t.name||!t.c)if("table"===t.name){var m=parseFloat(n.cellpadding),_=parseFloat(n.cellspacing),v=parseFloat(n.border),y=d["border-color"],b=d["border-style"];if(t.c&&(isNaN(m)&&(m=2),isNaN(_)&&(_=2)),v&&(n.style+=";border:".concat(v,"px ").concat(b||"solid"," ").concat(y||"gray")),t.flag&&t.c){d.display="grid","collapse"===d["border-collapse"]&&(d["border-collapse"]=void 0,_=0),_?(d["grid-gap"]=_+"px",d.padding=_+"px"):v&&(n.style+=";border-left:0;border-top:0");var w=[],S=[],k=[],x={};(function e(t){for(var o=0;o=50&&t.c&&!(d.display||"").includes("flex")&&h(a),d)if(d[H]){var W=";".concat(H,":").concat(d[H].replace(" !important",""));q&&(H.includes("flex")&&"flex-direction"!==H||"align-self"===H||H.includes("grid")||"-"===d[H][0]||H.includes("width")&&W.includes("%"))?(t.f+=W,"width"===H&&(n.style+=";width:100%")):n.style+=W}n.style=n.style.substr(1)||void 0},g.prototype.onText=function(t){if(!this.pre){for(var o,i="",n=0,r=t.length;n"===this.content[this.i]||t&&">"===this.content[this.i+1])&&(e&&this.handler[e](this.content.substring(this.start,this.i)),this.i+=t?2:1,this.start=this.i,this.handler.onOpenTag(t),"script"===this.handler.tagName?(this.i=this.content.indexOf("="a"&&e<="z"||e>="A"&&e<="Z")this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"===e||"!"===e||"?"===e){this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i));var t=this.content[this.i+2];if("/"===e&&(t>="a"&&t<="z"||t>="A"&&t<="Z"))return this.i+=2,this.start=this.i,void(this.state=this.endTag);var o="--\x3e";"!"===e&&"-"===this.content[this.i+2]&&"-"===this.content[this.i+3]||(o=">"),this.i=this.content.indexOf(o,this.i),-1!==this.i&&(this.i+=o.length,this.start=this.i)}else this.i++}else this.start"===e||"/"===e){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!==e&&(this.i=this.content.indexOf(">",this.i),-1===this.i))return;this.start=++this.i,this.state=this.text}else this.i++};var _=g;t.default=_}).call(this,o("df3c")["default"],o("3223")["default"])},"84c0":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"搜索",history:"历史搜索",hot:"热门搜索",find:"搜索发现",hidefind:"当前搜索发现已隐藏",inputPlaceholder:"搜索商品"}},"86fa":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:"视频"}},"8c2d":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"账号注销"}},"8ddc":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lang=void 0;t.lang={title:"订单详情"}},"8f59":function(e,t,o){"use strict";(function(t){var o="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},i=o.__VUE_DEVTOOLS_GLOBAL_HOOK__;function n(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var o=function(e,t){return e.filter(t)[0]}(t,(function(t){return t.original===e}));if(o)return o.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(o){i[o]=n(e[o],t)})),i}function r(e,t){Object.keys(e).forEach((function(o){return t(e[o],o)}))}function a(e){return null!==e&&"object"===typeof e}var s=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var o=e.state;this.state=("function"===typeof o?o():o)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(e,t){this._children[e]=t},s.prototype.removeChild=function(e){delete this._children[e]},s.prototype.getChild=function(e){return this._children[e]},s.prototype.hasChild=function(e){return e in this._children},s.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},s.prototype.forEachChild=function(e){r(this._children,e)},s.prototype.forEachGetter=function(e){this._rawModule.getters&&r(this._rawModule.getters,e)},s.prototype.forEachAction=function(e){this._rawModule.actions&&r(this._rawModule.actions,e)},s.prototype.forEachMutation=function(e){this._rawModule.mutations&&r(this._rawModule.mutations,e)},Object.defineProperties(s.prototype,c);var l=function(e){this.register([],e,!1)};l.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},l.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,o){return t=t.getChild(o),e+(t.namespaced?o+"/":"")}),"")},l.prototype.update=function(e){(function e(t,o,i){0;if(o.update(i),i.modules)for(var n in i.modules){if(!o.getChild(n))return void 0;e(t.concat(n),o.getChild(n),i.modules[n])}})([],this.root,e)},l.prototype.register=function(e,t,o){var i=this;void 0===o&&(o=!0);var n=new s(t,o);if(0===e.length)this.root=n;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],n)}t.modules&&r(t.modules,(function(t,n){i.register(e.concat(n),t,o)}))},l.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),o=e[e.length-1],i=t.getChild(o);i&&i.runtime&&t.removeChild(o)},l.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),o=e[e.length-1];return!!t&&t.hasChild(o)};var u;var d=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!==typeof window&&window.Vue&&y(window.Vue);var o=e.plugins;void 0===o&&(o=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var r=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(r,e,t)},this.commit=function(e,t,o){return s.call(r,e,t,o)},this.strict=n;var c=this._modules.root.state;m(this,c,[],this._modules.root),g(this,c),o.forEach((function(e){return e(t)}));var d=void 0!==e.devtools?e.devtools:u.config.devtools;d&&function(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){i.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},f={state:{configurable:!0}};function p(e,t,o){return t.indexOf(e)<0&&(o&&o.prepend?t.unshift(e):t.push(e)),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}}function h(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var o=e.state;m(e,o,[],e._modules.root,!0),g(e,o,t)}function g(e,t,o){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var n=e._wrappedGetters,a={};r(n,(function(t,o){a[o]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,o,{get:function(){return e._vm[o]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:a}),u.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),i&&(o&&e._withCommit((function(){i._data.$$state=null})),u.nextTick((function(){return i.$destroy()})))}function m(e,t,o,i,n){var r=!o.length,a=e._modules.getNamespace(o);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!r&&!n){var s=_(t,o.slice(0,-1)),c=o[o.length-1];e._withCommit((function(){u.set(s,c,i.state)}))}var l=i.context=function(e,t,o){var i=""===t,n={dispatch:i?e.dispatch:function(o,i,n){var r=v(o,i,n),a=r.payload,s=r.options,c=r.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:i?e.commit:function(o,i,n){var r=v(o,i,n),a=r.payload,s=r.options,c=r.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(n,{getters:{get:i?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var o={},i=t.length;Object.keys(e.getters).forEach((function(n){if(n.slice(0,i)===t){var r=n.slice(i);Object.defineProperty(o,r,{get:function(){return e.getters[n]},enumerable:!0})}})),e._makeLocalGettersCache[t]=o}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return _(e.state,o)}}}),n}(e,a,o);i.forEachMutation((function(t,o){var i=a+o;(function(e,t,o,i){var n=e._mutations[t]||(e._mutations[t]=[]);n.push((function(t){o.call(e,i.state,t)}))})(e,i,t,l)})),i.forEachAction((function(t,o){var i=t.root?o:a+o,n=t.handler||t;(function(e,t,o,i){var n=e._actions[t]||(e._actions[t]=[]);n.push((function(t){var n=o.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return function(e){return e&&"function"===typeof e.then}(n)||(n=Promise.resolve(n)),e._devtoolHook?n.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):n}))})(e,i,n,l)})),i.forEachGetter((function(t,o){var i=a+o;(function(e,t,o,i){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return o(i.state,i.getters,e.state,e.getters)}})(e,i,t,l)})),i.forEachChild((function(i,r){m(e,t,o.concat(r),i,n)}))}function _(e,t){return t.reduce((function(e,t){return e[t]}),e)}function v(e,t,o){return a(e)&&e.type&&(o=t,t=e,e=e.type),{type:e,payload:t,options:o}}function y(e){u&&e===u||(u=e, /*! * vuex v3.6.2 * (c) 2021 Evan You * @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='