(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){"use strict";n.d(e,"k",(function(){return y})),n.d(e,"m",(function(){return O})),n.d(e,"l",(function(){return j})),n.d(e,"e",(function(){return w})),n.d(e,"b",(function(){return x})),n.d(e,"s",(function(){return C})),n.d(e,"g",(function(){return k})),n.d(e,"h",(function(){return E})),n.d(e,"d",(function(){return S})),n.d(e,"r",(function(){return T})),n.d(e,"j",(function(){return $})),n.d(e,"t",(function(){return P})),n.d(e,"o",(function(){return R})),n.d(e,"q",(function(){return L})),n.d(e,"f",(function(){return D})),n.d(e,"c",(function(){return M})),n.d(e,"i",(function(){return N})),n.d(e,"p",(function(){return U})),n.d(e,"a",(function(){return J})),n.d(e,"v",(function(){return Y})),n.d(e,"n",(function(){return W})),n.d(e,"u",(function(){return X}));n(83),n(24),n(84),n(85),n(29),n(17),n(30);var r=n(21),o=n(20),c=n(4),l=n(42),d=(n(94),n(8),n(23),n(366),n(56),n(93),n(76),n(25),n(47),n(50),n(65),n(34),n(64),n(250),n(173),n(251),n(74),n(150),n(371),n(107),n(132),n(2)),f=n(54);function m(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function h(t){for(var i=1;i=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},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 o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i1&&void 0!==arguments[1]?arguments[1]:[],r=t.$children||[],o=v(r);try{for(o.s();!(e=o.n()).done;){var c=e.value;c.$fetch?n.push(c):c.$children&&w(c,n)}}catch(t){o.e(t)}finally{o.f()}return n}function x(t,e){if(e||!t.options.__hasNuxtData){var n=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=n,t.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),h(h({},data),e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function C(t){return t.options&&t._Ctor===t||(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=d.default.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file)),t}function k(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],t.matched.map((function(t,r){return Object.keys(t[n]).map((function(o){return e&&e.push(r),t[n][o]}))})))}function E(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return k(t,e,"instances")}function S(t,e){return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).reduce((function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r}),[])})))}function T(t,e){return Promise.all(S(t,function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n,r,o,c){var l,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n||n.options){t.next=11;break}return t.prev=1,t.next=4,n();case 4:n=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t.catch(1),t.t0&&"ChunkLoadError"===t.t0.name&&"undefined"!=typeof window&&window.sessionStorage&&(l=Date.now(),(!(d=parseInt(window.sessionStorage.getItem("nuxt-reload")))||d+6e41&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"POST",r=t.url,data={app_type:"pc",app_type_name:"PC"},o=Object(l.a)();return o&&(data.token=o),null!=t.data&&Object.assign(data,t.data),c()({url:r,method:n,data:data}).then((function(t){var code=(t.data||{}).code;if(-3!=code||"close"==window.$nuxt.$route.name)return code==e?t.data:Promise.reject(t.data);window.$nuxt.$router.push("/close")})).catch((function(e){return"TOKEN_ERROR"===e.error_code&&(e.message="登录错误",vue.$store.dispatch("member/remove_token"),t.forceLogin&&vue.$router.push("/auth/login?redirect=".concat(encodeURIComponent(vue.$router.history.current.fullPath)))),Promise.reject(e)}))}c.a.defaults.baseURL=r.a.baseUrl,c.a.defaults.headers={"X-Requested-With":"XMLHttpRequest","content-type":"application/json"},c.a.defaults.responseType="json",c.a.defaults.timeout=6e4},149:function(t,e,n){"use strict";n(73),n(8),n(17),n(107),n(132),n(76),n(23),n(65),n(56),n(83),n(47),n(34),n(24),n(84),n(85),n(50);var r=n(2);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},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 o,l=!0,d=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){d=!0,o=t},f:function(){try{l||null==n.return||n.return()}finally{if(d)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(t){return t.components.default})).filter((function(t){return"function"==typeof t&&!t.options&&!t.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){f.unobserve(this.$el);var t,e=o(this.getPrefetchComponents());try{for(e.s();!(t=e.n()).done;){var n=t.value,r=n();r instanceof Promise&&r.catch((function(){})),n.__prefetched=!0}}catch(t){e.e(t)}finally{e.f()}}}}}},151:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l}));var r=n(1);function o(t){return Object(r.a)({url:"/api/goodscategory/tree",data:t})}function c(t){return Object(r.a)({url:"/api/goodscategory/info",data:t})}function l(t){return Object(r.a)({url:"/api/config/categoryconfig",data:t})}},153:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"e",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"g",(function(){return m})),n.d(e,"f",(function(){return h})),n.d(e,"h",(function(){return v}));var r=n(1);function o(t){return Object(r.a)({url:"/api/login/login",data:t})}function c(t){return Object(r.a)({url:"/api/login/mobile",data:t})}function l(t){return Object(r.a)({url:"/api/login/mobileCode",data:t})}function d(t){return Object(r.a)({url:"/api/findpassword/mobile",data:t})}function f(t){return Object(r.a)({url:"/api/member/checkmobile",data:t},-1)}function m(t){return Object(r.a)({url:"/api/findpassword/mobilecode",data:t})}function h(t){return Object(r.a)({url:"/api/register/config",data:t})}function v(t){return Object(r.a)({url:"/api/login/getMobileCode",data:t})}},197:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return f})),n.d(e,"d",(function(){return m}));var r=n(1);function o(t){return Object(r.a)({url:"/api/register/aggrement",data:t})}function c(t){return Object(r.a)({url:"/memberregister/api/Config/Config",data:t})}function l(t){return Object(r.a)({url:"/api/register/username",data:t})}function d(t){return Object(r.a)({url:"/api/register/mobile",data:t})}function f(t){return Object(r.a)({url:"/api/register/mobileCode",data:t})}function m(t){return Object(r.a)({url:"/api/register/config",data:t})}},198:function(t,e,n){"use strict";var r={};r.auth=n(365),r.auth=r.auth.default||r.auth,e.a=r},202:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"e",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"f",(function(){return d})),n.d(e,"b",(function(){return f})),n.d(e,"d",(function(){return m})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return v}));var r=n(1);function o(t){return Object(r.a)({url:"/api/order/lists",data:t,forceLogin:!0})}function c(t){return Object(r.a)({url:"/api/order/pay",data:t,forceLogin:!0})}function l(t){return Object(r.a)({url:"/api/order/close",data:t,forceLogin:!0})}function d(t){return Object(r.a)({url:"/api/order/takedelivery",data:t,forceLogin:!0})}function f(t){return Object(r.a)({url:"/api/order/detail",data:t,forceLogin:!0})}function m(t){return Object(r.a)({url:"/api/order/package",data:t,forceLogin:!0})}function h(t){return Object(r.a)({url:"/api/order/evluateinfo",data:t,forceLogin:!0})}function v(t){var e="";return e=t.isEvaluate?"/api/goodsevaluate/again":"/api/goodsevaluate/add",Object(r.a)({url:e,data:t,forceLogin:!0})}},204:function(t,e,n){"use strict";n.d(e,"h",(function(){return o})),n.d(e,"f",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"g",(function(){return d})),n.d(e,"k",(function(){return f})),n.d(e,"d",(function(){return m})),n.d(e,"i",(function(){return h})),n.d(e,"b",(function(){return v})),n.d(e,"j",(function(){return _})),n.d(e,"a",(function(){return y})),n.d(e,"e",(function(){return O}));var r=n(1);function o(t){return Object(r.a)({url:"/api/goodssku/page",data:t})}function c(t){return Object(r.a)({url:"/api/goodssku/detail",data:t})}function l(){return Object(r.a)({url:"/api/goodsevaluate/config",data:{},forceLogin:!0})}function d(t){return Object(r.a)({url:"/api/goodssku/info",data:t})}function f(t){return Object(r.a)({url:"/seckill/api/seckillgoods/info",data:t})}function m(t){return Object(r.a)({url:"/api/goodssku/goodsqrcode",data:t})}function h(t){return Object(r.a)({url:"/manjian/api/manjian/info",data:t})}function v(t){return Object(r.a)({url:"/api/goods/aftersale",data:t})}function _(t){return Object(r.a)({url:"/api/goods/modifyclicks",data:t})}function y(t){return Object(r.a)({url:"/api/goodsbrowse/add",data:t})}function O(t){return Object(r.a)({url:"/api/goodssku/recommend",data:t})}},205:function(t,e,n){"use strict";n.d(e,"k",(function(){return o})),n.d(e,"e",(function(){return c})),n.d(e,"n",(function(){return l})),n.d(e,"i",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"m",(function(){return m})),n.d(e,"f",(function(){return h})),n.d(e,"j",(function(){return v})),n.d(e,"h",(function(){return _})),n.d(e,"c",(function(){return y})),n.d(e,"a",(function(){return O})),n.d(e,"g",(function(){return j})),n.d(e,"o",(function(){return w})),n.d(e,"b",(function(){return x})),n.d(e,"l",(function(){return C}));var r=n(1);function o(t){return Object(r.a)({url:"/api/member/info",data:t})}function c(t){return Object(r.a)({url:"/api/memberaddress/page",data:t,forceLogin:!0})}function l(t){return Object(r.a)({url:"/api/memberaddress/setdefault",data:t,forceLogin:!0})}function d(t){return Object(r.a)({url:"/api/memberaddress/delete",data:t,forceLogin:!0})}function f(t){return Object(r.a)({url:"/api/memberaddress/info",data:t,forceLogin:!0})}function m(t){return Object(r.a)({url:"/api/memberaddress/"+t.url,data:t,forceLogin:!0})}function h(t){return Object(r.a)({url:"/coupon/api/coupon/memberpage",data:t,forceLogin:!0})}function v(t){return Object(r.a)({url:"/api/goodsbrowse/page",data:t,forceLogin:!0})}function _(t){return Object(r.a)({url:"/api/goodsbrowse/delete",data:t,forceLogin:!0})}function y(t){return Object(r.a)({url:"/api/memberbankaccount/page",data:t})}function O(t){return Object(r.a)({url:"/api/memberbankaccount/setdefault",data:t})}function j(t){return Object(r.a)({url:"/api/memberbankaccount/delete",data:t})}function w(t){return Object(r.a)({url:"/api/memberwithdraw/transferType",data:t})}function x(t){return Object(r.a)({url:"/api/memberbankaccount/info",data:t})}function C(t){return Object(r.a)({url:"/api/memberbankaccount/"+t.url,data:t})}},206:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return c}));var r=n(1);function o(t){return Object(r.a)({url:"/api/address/lists",data:t})}function c(t){return Object(r.a)({url:"/api/address/city",data:t})}},210:function(t,e,n){"use strict";n.r(e);n(25),n(24),n(23),n(29),n(30);var r=n(4),o=(n(8),n(17),n(73),n(93),n(34),n(64),n(207),n(317),n(32)),c=n(310),l=n(311),d=n(1);function f(t){return Object(d.a)({url:"/servicer/api/chat/say",data:t})}function m(t){return Object(d.a)({url:"/servicer/api/chat/bye",data:t})}var h=n(12),v=(n(251),n(74),{emjoyList:{"[emjoy_01]":"public/static/img/emojy/emjoy_01.gif","[emjoy_02]":"public/static/img/emojy/emjoy_02.gif","[emjoy_03]":"public/static/img/emojy/emjoy_03.gif","[emjoy_04]":"public/static/img/emojy/emjoy_04.gif","[emjoy_05]":"public/static/img/emojy/emjoy_05.gif","[emjoy_06]":"public/static/img/emojy/emjoy_06.gif","[emjoy_07]":"public/static/img/emojy/emjoy_07.gif","[emjoy_08]":"public/static/img/emojy/emjoy_08.gif","[emjoy_09]":"public/static/img/emojy/emjoy_09.gif","[emjoy_10]":"public/static/img/emojy/emjoy_10.gif","[emjoy_11]":"public/static/img/emojy/emjoy_11.gif","[emjoy_12]":"public/static/img/emojy/emjoy_12.gif","[emjoy_13]":"public/static/img/emojy/emjoy_13.gif","[emjoy_14]":"public/static/img/emojy/emjoy_14.gif","[emjoy_15]":"public/static/img/emojy/emjoy_15.gif","[emjoy_16]":"public/static/img/emojy/emjoy_16.gif","[emjoy_17]":"public/static/img/emojy/emjoy_17.gif","[emjoy_18]":"public/static/img/emojy/emjoy_18.gif","[emjoy_19]":"public/static/img/emojy/emjoy_19.gif","[emjoy_20]":"public/static/img/emojy/emjoy_20.gif","[emjoy_21]":"public/static/img/emojy/emjoy_21.gif","[emjoy_22]":"public/static/img/emojy/emjoy_22.gif","[emjoy_23]":"public/static/img/emojy/emjoy_23.gif","[emjoy_24]":"public/static/img/emojy/emjoy_24.gif","[emjoy_25]":"public/static/img/emojy/emjoy_25.gif","[emjoy_26]":"public/static/img/emojy/emjoy_26.gif","[emjoy_27]":"public/static/img/emojy/emjoy_27.gif","[emjoy_28]":"public/static/img/emojy/emjoy_28.gif","[emjoy_29]":"public/static/img/emojy/emjoy_29.gif","[emjoy_30]":"public/static/img/emojy/emjoy_30.gif","[emjoy_31]":"public/static/img/emojy/emjoy_31.gif","[emjoy_32]":"public/static/img/emojy/emjoy_32.gif","[emjoy_33]":"public/static/img/emojy/emjoy_33.gif","[emjoy_34]":"public/static/img/emojy/emjoy_34.gif","[emjoy_35]":"public/static/img/emojy/emjoy_35.gif","[emjoy_36]":"public/static/img/emojy/emjoy_36.gif","[emjoy_37]":"public/static/img/emojy/emjoy_37.gif","[emjoy_38]":"public/static/img/emojy/emjoy_38.gif","[emjoy_39]":"public/static/img/emojy/emjoy_39.gif","[emjoy_40]":"public/static/img/emojy/emjoy_40.gif","[emjoy_41]":"public/static/img/emojy/emjoy_41.gif","[emjoy_42]":"public/static/img/emojy/emjoy_42.gif","[emjoy_43]":"public/static/img/emojy/emjoy_43.gif","[emjoy_44]":"public/static/img/emojy/emjoy_44.gif","[emjoy_45]":"public/static/img/emojy/emjoy_45.gif","[emjoy_46]":"public/static/img/emojy/emjoy_46.gif","[emjoy_47]":"public/static/img/emojy/emjoy_47.gif"},stringToEmjoy:function(t){var e=this;if(t){var n=t,r=new RegExp("\\[emjoy_(.+?)\\]","g"),o=n.replace(r,(function(t){var n="";for(var r in e.emjoyList){if(t==r)n=""}return n||t}));return o}}});function _(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var y={components:{goodsItem:c.default,orderItem:l.default},props:{skuId:{default:0},orderId:{default:0},logo:{default:""},shop:{type:Object,default:function(){return{shop_name:"",shop_id:"",logo:""}}}},data:function(){return{isFirstInit:!0,showEmoji:!1,emjoyList:v.emjoyList,showService:!1,search_text:"",websock:null,messageList:[],servicerId:0,message:"",image:"",sendSwitch:!0,page:1,total:0,getSwitch:!0,contentEmpty:!1,sessionList:[],currShop:{shop_name:"",site_logo:""},keyWordsConfig:{},canSend:!0,siteIdMap:0,timeoutObj:null,uploadActionUrl:o.a.baseUrl+"/api/upload/chatimg",text_num:0,is_first:!0,shopinfo:{name:"",logo:""}}},filters:{Time:function(time){var t=new Date,e=parseInt(time.substr(0,4)),n=parseInt(time.substr(5,2)),r=parseInt(time.substr(8,2)),o=t.getFullYear(),c=t.getMonth()+1,l=t.getDate(),d=new Date(e,n-1,r),f=(t=new Date(o,c-1,l),d.getTime()-t.getTime());return Math.abs(f)<864e5?"今天"+time.substr(11,5):f>0&&f<1728e5?"明天"+time.substr(11,5):f<0&&f>-1728e5?"昨天"+time.substr(11,5):time.substr(5,16)}},created:function(){this.siteIdMap=this.shop.shop_id,this.getKeywords(),this.getSiteInfo()},watch:{showService:function(t){!t&&this.websock&&this.websock.close()},groupId:function(t){this.group_id=this.groupId},servicerId:function(t){}},mounted:function(){},computed:function(t){for(var i=1;i=0&&e.data&&(t.shopinfo=e.data)}))},getKeywords:function(){var t=this;Object(d.a)({url:"/servicer/api/chat/keyword"}).then((function(e){e.code>=0&&e.data&&(t.keyWordsConfig=e.data)}))},sendEmoji:function(t,e){this.showEmoji=!1,this.$refs.msgInputContainer.focus();var n=this.$util.img(e),r='');document.execCommand("insertHTML",!1,r)},show:function(){this.is_first=!0,this.siteIdMap=this.shop.shop_id,console.log("新版本"),this.is_first&&(this.currShop=this.shop),this.showService=!0,this.initWebSocket()},initData:function(){this.page=1,this.messageList.length=0,this.contentEmpty=!1},selectShop:function(t){var e=this;console.log("切换联系人"),this.initData(),this.siteIdMap=t.shop_id,this.currShop=t,this.servicerId=t.servicer_id,this.sessionList.forEach((function(n){n.shop_id==t.shop_id&&(n.unread=0,e.isRead(n))})),this.messageList=[],this.closeDialog(),this.initWebSocket(),this.getMessageList(),this.text_num=0,this.$refs.msgInputContainer.innerHTML=""},isRead:function(t){var e;console.log(t,"item"),(e={site_id:t.shop_id},Object(d.a)({url:"/servicer/api/chat/setRead",data:e})).then((function(t){console.log(t,"res")})).catch((function(t){}))},test_online:function(){var t,e=this;(t={site_id:this.currShop.shop_id},Object(d.a)({url:"/servicer/api/chat/hasServicers",data:t})).then((function(t){t.data.online_count>0?(e.currShop.online=1,e.sessionList.forEach((function(t){t.shop_id==e.currShop.shop_id&&(t.online=1)}))):e.currShop.online=0}))},scrollBottom:function(){var div=document.getElementById("content");setTimeout((function(){div.scrollTop=div.scrollHeight}),0)},getMessageList:function(){var t,e=this;(t={page:this.page,limit:4,servicer_id:this.servicerId,site_id:this.siteIdMap},Object(d.a)({url:"/servicer/api/chat/dialogs",data:t})).then((function(t){var code=t.code;t.data,t.messge;if(0==code){var n=[];t.data.list.forEach((function(t){var e={};0==t.content_type?(e.content=0==t.type?t.consumer_say:t.servicer_say,e.isItMe=0==t.type,e.contentType="string",e.nickname=t.nickname,e.shop_name=t.shop_name,e.time=t.create_day+" "+t.create_time,t.avatar?e.logo=t.avatar:e.logo=t.logo):1==t.content_type?(e.isItMe=0==t.type,e.contentType="goods",e.sku_id=t.goods_sku_id,e.nickname=t.nickname,e.shop_name=t.shop_name,e.time=t.create_day+" "+t.create_time,t.avatar?e.logo=t.avatar:e.logo=t.logo):2==t.content_type?(e.isItMe=0==t.type,e.contentType="order",e.order_id=t.order_id,e.nickname=t.nickname,e.shop_name=t.shop_name,e.time=t.create_day+" "+t.create_time,t.avatar?e.logo=t.avatar:e.logo=t.logo):3==t.content_type&&(e.isItMe=0==t.type,e.contentType="image",e.content=0==t.type?t.consumer_say:t.servicer_say,e.nickname=t.nickname,e.shop_name=t.shop_name,e.time=t.create_day+" "+t.create_time,t.avatar?e.logo=t.avatar:e.logo=t.logo),n.push(e)})),e.messageList=n.concat(e.contentEmpty?[]:e.messageList),console.log(e.messageList,"this.messageList"),1==e.page&&(e.skuId&&e.joinNewFakeMessage("mine","goods"),e.orderId&&e.joinNewFakeMessage("mine","order"),e.scrollBottom()),e.page>=t.data.page_count?e.contentEmpty=!0:e.page+=1}}))},joinNewFakeMessage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mine",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"string",data={isItMe:"mine"==t,contentType:e};"string"==e&&(data.content=this.message),"goods"==e&&(data.sku_id=this.skuId,data.canSend=!0),"order"==e&&(data.order_id=this.orderId,data.canSend=!0),"image"==e&&(data.content=this.image),this.messageList.unshift(data),this.scrollBottom()},joinMessage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mine",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"string",data={isItMe:"mine"==t,contentType:e};"string"==e&&(data.content=this.message),"goods"==e&&(data.sku_id=this.skuId,data.canSend=!1),"order"==e&&(data.order_id=this.orderId,data.canSend=!1),"image"==e&&(data.content=this.image),this.messageList.push(data),this.scrollBottom()},input:function(t){var a=this.$refs.msgInputContainer.innerHTML.replace(/<\s?img.*?src\s*=\s*[\"|\']?(.*?)[\"|\']\s.*?>/gi,"0");this.text_num=a.length,this.text_num>=150&&this.$message({message:"最多一次可以发送150个字~",type:"warning"})},sendMessage:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(-1!=n&&this.messageList.splice(n,1),this.sendSwitch){this.sendSwitch=!1;var data={servicer_id:this.servicerId,site_id:this.siteIdMap},o=(r||this.$refs.msgInputContainer.innerHTML).replace(/
/g,""),c=o.replace(/<\/div>/g,""),l=c.replace(/
/g,"");if(this.message=l,"string"==e){if(!this.message.trim())return this.sendSwitch=!0,void this.$message({message:"不能发送空白内容",type:"warning"});Object.assign(data,{message:this.message,content_type:0})}"goods"==e&&Object.assign(data,{goods_id:this.skuId,content_type:1}),"order"==e&&Object.assign(data,{order_id:this.orderId,content_type:2}),"image"==e&&Object.assign(data,{message:this.image,content_type:3}),this.joinMessage("mine",e),f(data).then((function(e){t.sendSwitch=!0,t.message="",t.text_num=0,t.$refs.msgInputContainer.innerHTML=""})),this.scrollBottom()}},initWebSocket:function(){var t=o.a.webSocket;this.websock=new WebSocket(t),this.websock.onmessage=this.websocketonmessage,this.websock.onopen=this.websocketonopen,this.websock.onerror=this.websocketonerror,this.websock.onclose=this.websocketclose},websocketonopen:function(){console.log("连接建立")},websocketonerror:function(){this.initWebSocket()},websocketonmessage:function(t){var e,n=this,data=JSON.parse(t.data);if(console.log(data,"data"),this.pingInterval=o.a.pingInterval,"close"==data.type&&this.websock&&this.websock.close(),clearInterval(this.timeoutObj),this.reset(),"init"==data.type)this.messageList=[],(e={client_id:data.data.client_id},Object(d.a)({url:"/servicer/api/chat/bind",data:e})).then((function(t){var code=t.code,data=t.data,e=(t.message,{});0==code?(n.servicerId=data.servicer_id,e={contentType:"online"},n.isFirstInit&&n.initData(),n.isFirstInit=!1):e={contentType:"noline"},n.messageList.unshift(e)})).catch((function(t){n.messageList.unshift({contentType:"noline"})}));else if("connect"==data.type){if(data.data.shop_id==this.siteIdMap)if(data.data.shop_id){this.servicerId=data.servicer_id;var r={contentType:"online"};this.messageList.unshift(r)}else{this.servicerId=0;r={contentType:"noline"};this.messageList.unshift(r)}}else{var c={isItMe:!1};"string"==data.type?(c.content=data.data.servicer_say,c.time=data.data.create_day+data.data.create_time,c.logo=data.data.avatar,c.nickname=data.data.nickname,c.contentType="string"):"order"==data.type?(c.order_id=data.data.order_id,c.time=data.data.create_day+data.data.create_time,c.logo=data.data.avatar,c.nickname=data.data.nickname,c.contentType="order"):"goodssku"==data.type?(c.sku_id=data.data.goods_sku_id,c.time=data.data.create_day+data.data.create_time,c.logo=data.data.avatar,c.nickname=data.data.nickname,c.contentType="goods"):"image"==data.type&&(c.content=data.data.servicer_say,c.time=data.data.create_day+data.data.create_time,c.logo=data.data.avatar,c.nickname=data.data.nickname,c.contentType="image"),this.messageList.push(c)}this.scrollBottom()},reset:function(){console.log("检测心跳"),console.log(this.timeoutObj,"this.timeoutObj"),clearInterval(this.timeoutObj),this.start()},start:function(){var t=this;0!=o.a.pingInterval&&(console.log("启动心跳"),this.timeoutObj=setInterval((function(){console.log("检测..."),t.websock.send("ping")}),this.pingInterval))},websocketsend:function(t){this.websock.send(t)},websocketclose:function(t){console.log("断开连接",t)},closeDialog:function(){var t=this;clearInterval(this.timeoutObj),console.log("关闭链接"),this.websock.close();var data={servicer_id:this.servicerId,site_id:this.siteIdMap};this.servicerId&&this.websock&&m(data).then((function(e){0==e.code&&clearInterval(t.timeoutObj)}))},handleAvatarSuccess:function(t,e){this.image=t.data.pic_path,this.sendMessage("image")}}},O=y,j=(n(415),n(416),n(7)),component=Object(j.a)(O,(function(){var t=this,e=t._self._c;return e("el-dialog",{staticClass:"service",attrs:{visible:t.showService,width:"48%","append-to-body":!0},on:{"update:visible":function(e){t.showService=e},close:t.closeDialog}},[e("div",{staticClass:"header-box ns-bg-color"},[e("div",{staticClass:"header-logo"},[e("img",{staticClass:"header-img",attrs:{src:n(409)}}),t._v(" "),e("span",{staticClass:"serve-name"},[t._v("客服咨询")])])]),t._v(" "),e("div",{staticClass:"service-box"},[e("div",{staticClass:"service-box-right"},[e("div",{staticClass:"service-box-right-top test-1"},[e("div",{staticClass:"servicer-content",attrs:{id:"content"}},[t.contentEmpty?e("div",{staticClass:"text-center"},[t._v("没有聊天记录了")]):e("div",{staticClass:"time text-center",staticStyle:{cursor:"pointer"},on:{click:t.getMessageList}},[t._v("点击加载")]),t._v(" "),t._l(t.messageList,(function(n,r){return e("div",{key:r},[e("div",["online"==n.contentType?e("div",{staticClass:"onlineStatus"},[t._v("客服在线")]):t._e(),t._v(" "),"noline"==n.contentType?e("div",{staticClass:"onlineStatus"},[t._v("客服不在线")]):t._e()]),t._v(" "),n.isItMe?e("div",{staticClass:"message my-message"},[e("div",[e("div",{staticClass:"my-nickname"},[t._v(t._s(t.member.nickname))]),t._v(" "),"goods"==n.contentType?e("goodsItem",{attrs:{skuId:n.sku_id},on:{sendMessage:function(e){return t.sendMessage("goods",r)}}}):t._e(),t._v(" "),"order"==n.contentType?e("orderItem",{attrs:{orderId:n.order_id},on:{sendMessage:function(e){return t.sendMessage("order",r)}}}):t._e(),t._v(" "),"string"==n.contentType?e("div",{staticClass:"word-message",domProps:{innerHTML:t._s(t.dealMessage(n.content))}}):t._e(),t._v(" "),"image"==n.contentType?e("div",{staticClass:"word-message"},[e("el-image",{attrs:{src:t.$util.img(n.content),"preview-src-list":[t.$util.img(n.content)]}})],1):t._e()],1),t._v(" "),e("div",{staticClass:"headimg",style:{backgroundImage:"url("+t.$util.img(t.member.headimg?t.member.headimg:t.defaultHeadImage)+")"}})]):!1===n.isItMe?e("div",{staticClass:"message your-message"},[e("div",{staticClass:"headimg",style:{backgroundImage:"url("+t.$util.img(t.shopinfo.logo)+")"}}),t._v(" "),e("div",[e("div",{staticClass:"my-nickname"},[t._v(t._s(n.nickname)+" "),e("span",[t._v(t._s(n.time))])]),t._v(" "),"image"==n.contentType?e("div",{staticClass:"word-message your-word-message"},[e("el-image",{attrs:{src:t.$util.img(n.content),"preview-src-list":[t.$util.img(n.content)]}})],1):t._e(),t._v(" "),"goods"==n.contentType?e("goodsItem",{attrs:{skuId:n.sku_id},on:{sendMessage:function(e){return t.sendMessage("goods",r)}}}):t._e(),t._v(" "),"order"==n.contentType?e("orderItem",{attrs:{orderId:n.order_id},on:{sendMessage:function(e){return t.sendMessage("order",r)}}}):t._e(),t._v(" "),"string"==n.contentType?e("div",{staticClass:"word-message your-word-message",domProps:{innerHTML:t._s(t.dealMessage(n.content))}}):t._e()],1)]):t._e()])})),t._v(" "),e("div",{staticStyle:{height:"40px"}})],2)]),t._v(" "),e("div",{staticClass:"service-box-right-bottom"},[1==t.keyWordsConfig.is_open?e("div",{staticClass:"key-word"},t._l(t.keyWordsConfig.keyword_list,(function(n,r){return e("span",{key:r,on:{click:function(e){return t.sendMessage("string",-1,n.keyword)}}},[t._v(t._s(n.keyword))])})),0):t._e(),t._v(" "),e("div",{staticClass:"operation"},[e("img",{staticClass:"emjoy",attrs:{src:n(410)},on:{click:function(e){t.showEmoji=!t.showEmoji}}}),t._v(" "),e("el-upload",{staticClass:"upload",attrs:{action:t.uploadActionUrl,"show-file-list":!1,"on-success":t.handleAvatarSuccess}},[e("img",{staticClass:"emjoy",attrs:{src:n(411)},on:{click:function(e){t.showEmoji=!1}}})])],1),t._v(" "),t.showEmoji?e("div",{staticClass:"emoji-box"},t._l(t.emjoyList,(function(n,r){return e("img",{key:r,staticClass:"text item",staticStyle:{cursor:"pointer"},attrs:{src:t.$util.img(n)},on:{click:function(e){return t.sendEmoji(r,n)}}})})),0):t._e(),t._v(" "),e("div",{ref:"msgInputContainer",staticClass:"input-panel",class:1==t.keyWordsConfig.is_open?"":"active",attrs:{contenteditable:"true",spellcheck:"false"},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.sendMessage()},input:function(e){return t.input(e)}}}),t._v(" "),e("div",{staticClass:"num-box"},[t._v("\n\t\t\t\t\t"+t._s(t.text_num)+"/150\n\t\t\t\t")]),t._v(" "),e("el-button",{staticClass:"send-btn",attrs:{size:"small"},on:{click:function(e){return t.sendMessage()}}},[t._v("发送")])],1)])])])}),[],!1,null,"2ef0a2fb",null);e.default=component.exports},214:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return l}));var r=n(1);function o(t){return Object(r.a)({url:"/api/helpclass/lists",data:t})}function c(t){return Object(r.a)({url:"/api/help/info",data:t})}function l(t){return Object(r.a)({url:"/api/help/page",data:t})}},22:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"b",(function(){return f}));var r=n(111),o=n.n(r),c="SDrxEA%_tWW6ezd3";function l(){return o.a.get(c)}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e?o.a.set(c,t,{expires:e}):o.a.set(c,t)}function f(){return o.a.remove(c)}},256:function(t,e,n){},257:function(t,e,n){},266:function(t,e,n){},267:function(t,e,n){},268:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l}));var r=n(1);function o(t){return Object(r.a)({url:"/api/pc/floors",data:t})}function c(t){return Object(r.a)({url:"/api/goods/defaultSearchWords",data:t})}function l(t){return Object(r.a)({url:"/api/pc/floatLayer",data:t})}},269:function(t,e,n){},27:function(t,e,n){"use strict";n.d(e,"l",(function(){return o})),n.d(e,"c",(function(){return c})),n.d(e,"j",(function(){return l})),n.d(e,"i",(function(){return d})),n.d(e,"k",(function(){return f})),n.d(e,"a",(function(){return m})),n.d(e,"g",(function(){return h})),n.d(e,"d",(function(){return v})),n.d(e,"f",(function(){return _})),n.d(e,"b",(function(){return y})),n.d(e,"e",(function(){return O})),n.d(e,"h",(function(){return j}));var r=n(1);function o(t){return Object(r.a)({url:"/api/site/info",data:t})}function c(t){return Object(r.a)({url:"/api/config/copyright",data:t})}function l(t){return Object(r.a)({url:"/api/site/wapqrcode",data:t})}function d(t){return Object(r.a)({url:"/api/config/defaultimg",data:t})}function f(t){return Object(r.a)({url:"weapp/api/weapp/qrcode",data:t})}function m(t){return Object(r.a)({url:"/api/adv/detail",data:t})}function h(t){return Object(r.a)({url:"/api/goods/service",data:t})}function v(t){return Object(r.a)({url:"/api/pc/friendlyLink",data:t})}function _(t){return Object(r.a)({url:"/api/pc/navList",data:t})}function y(t){return Object(r.a)({url:"/api/captcha/captcha",data:t})}function O(){return Object(r.a)({url:"/api/site/status"})}function j(t){return Object(r.a)({url:"/api/config/servicer",data:t})}},270:function(t,e,n){},271:function(t,e,n){},272:function(t,e,n){},273:function(t,e,n){},274:function(t,e,n){},275:function(t,e,n){},276:function(t,e,n){},277:function(t,e,n){},278:function(t,e,n){},279:function(t,e,n){},280:function(t,e,n){},281:function(t,e,n){},282:function(t,e,n){},283:function(t,e,n){},309:function(t,e,n){"use strict";var r=n(20),o=(n(94),n(8),n(73),n(2)),c=n(0),l=window.__NUXT__;function d(){if(!this._hydrated)return this.$fetch()}function f(){if((t=this).$vnode&&t.$vnode.elm&&t.$vnode.elm.dataset&&t.$vnode.elm.dataset.fetchKey){var t;this._hydrated=!0,this._fetchKey=this.$vnode.elm.dataset.fetchKey;var data=l.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var e in data)o.default.set(this.$data,e,data[e])}}function m(){var t=this;return this._fetchPromise||(this._fetchPromise=h.call(this).then((function(){delete t._fetchPromise}))),this._fetchPromise}function h(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(regeneratorRuntime.mark((function t(){var e,n,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,e=null,n=Date.now(),t.prev=6,t.next=9,this.$options.fetch.call(this);case 9:t.next=15;break;case 11:t.prev=11,t.t0=t.catch(6),e=Object(c.p)(t.t0);case 15:if(!((r=this._fetchDelay-(Date.now()-n))>0)){t.next=19;break}return t.next=19,new Promise((function(t){return setTimeout(t,r)}));case 19:this.$fetchState.error=e,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return t.stop()}}),t,this,[[6,11]])})))).apply(this,arguments)}e.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.default.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=m.bind(this),Object(c.a)(this,"created",f),Object(c.a)(this,"beforeMount",d))}}},310:function(t,e,n){"use strict";n.r(e);n(25),n(24),n(23),n(8),n(29),n(17),n(30);var r=n(4),o=n(204),c=n(12);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var d={name:"goods_item",props:{skuId:0},data:function(){return{goodsInfo:{}}},computed:function(t){for(var i=1;i=0&&(t.goodsInfo=e.data.goods_sku_detail)}))}}},f=d,m=(n(413),n(7)),component=Object(m.a)(f,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"goods-info"},[e("div",{staticClass:"goods-box"},[e("div",{staticClass:"goods-img"},[e("img",{attrs:{src:t.goodsInfo.sku_image?t.$util.img(t.goodsInfo.sku_image):t.$util.img(t.defaultGoodsImage),alt:""}})]),t._v(" "),e("div",{staticClass:"goods-desc"},[e("div",{staticClass:"text-hidden-two-row"},[t._v(t._s(t.goodsInfo.sku_name))]),t._v(" "),e("div",{staticClass:"text-hidden-two-row"},[e("span",{staticClass:"sale-num"},[t._v("库存:"+t._s(t.goodsInfo.stock))]),t._v(" "),e("span",{staticClass:"sale-num"},[t._v("销量:"+t._s(t.goodsInfo.sale_num))])]),t._v(" "),e("div",{staticClass:"price-box"},[e("span",{staticClass:"sale-num price-num"},[t._v("¥"+t._s(t.goodsInfo.price))]),t._v(" "),e("span",{on:{click:function(e){return t.jump_shop()}}},[t._v("查看商品"),e("i",{staticClass:"el-icon-arrow-right"})])])])])])}),[],!1,null,"b4e40c54",null);e.default=component.exports},311:function(t,e,n){"use strict";n.r(e);n(25),n(24),n(23),n(8),n(29),n(17),n(30);var r=n(4),o=n(202),c=n(12);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var d={name:"orderItem",props:{orderId:0,canSend:{type:Boolean,default:!1}},data:function(){return{orderInfo:{order_status_name:"",delivery_type_name:"",order_money:"",order_goods:[{sku_image:""}]}}},computed:function(t){for(var i=1;i=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},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 o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2?e-2:0),r=2;r1&&void 0!==arguments[1]?arguments[1]:C,n=arguments.length>2?arguments[2]:void 0;return r.call(this,t,e,n)};var o=n.resolve.bind(n);return n.resolve=function(t,e,n){return"string"==typeof t&&(t=Object(O.c)(t)),o(t,e,n)},n}var S={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var n=e.parent,data=e.data,r=e.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,l=n.$nuxt.nuxt.transitions,d=n.$nuxt.nuxt.defaultTransition,f=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&f++,n=n.$parent;data.nuxtChildDepth=f;var m=l[f]||d,h={};T.forEach((function(t){void 0!==m[t]&&(h[t]=m[t])}));var v={};$.forEach((function(t){"function"==typeof m[t]&&(v[t]=m[t].bind(c))}));var _=v.beforeEnter;if(v.beforeEnter=function(t){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),_)return _.call(c,t)},!1===m.css){var y=v.leave;(!y||y.length<2)&&(v.leave=function(t,e){y&&y.call(c,t),c.$nextTick(e)})}var O=o("routerView",data);return r.keepAlive&&(O=o("keep-alive",{props:r.keepAliveProps},[O])),o("transition",{props:h,on:v},[O])}},T=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],$=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],I={name:"NuxtError",props:{error:{type:Object,default:null}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}},head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0"}]}}},P=(n(377),n(7)),A=Object(P.a)(I,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"__nuxt-error-page"},[e("div",{staticClass:"error"},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[e("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),t._v(" "),e("div",{staticClass:"title"},[t._v(t._s(t.message))]),t._v(" "),404===t.statusCode?e("p",{staticClass:"description"},[void 0===t.$route?e("a",{staticClass:"error-link",attrs:{href:"/"}}):e("NuxtLink",{staticClass:"error-link",attrs:{to:"/"}},[t._v("Back to the home page")])],1):t._e(),t._v(" "),t._m(0)])])}),[function(){var t=this._self._c;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt")])])}],!1,null,null,null).exports,R=n(42),L=(n(74),{name:"Nuxt",components:{NuxtChild:S,NuxtError:A},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(t){this.displayingNuxtError&&(this.errorFromNuxtError=t,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(j.c)(this.$route.matched[0].path)(this.$route.params);var t=Object(R.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){l.default.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){var e=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return e.errorFromNuxtError=!1})),t("div",{},[t("h2","An error occurred while showing the error page"),t("p","Unfortunately an error occurred and while showing the error page another error occurred"),t("p","Error details: ".concat(this.errorFromNuxtError.toString())),t("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return e.displayingNuxtError=!1})),t(A,{props:{error:this.nuxt.err}})):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}}),D=(n(65),n(83),n(84),n(85),n(73),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return t.startTimer()}),this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),setTimeout((function(){t.show=!1,t.$nextTick((function(){t.percent=0,t.reversed=!1}))}),500),this},fail:function(t){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100||t.percent<=0)&&(t.skipTimerCount=1,t.reversed=!t.reversed))}),100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}}),M=(n(378),Object(P.a)(D,undefined,undefined,!1,null,null,null).exports),N=(n(379),n(380),n(27));function U(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var F=Object(c.a)({props:{},data:function(){return{}},computed:{},created:function(){this.$store.dispatch("site/copyRight")},mounted:function(){},watch:{},methods:{}},"computed",function(t){for(var i=1;i300},shopServiceOpen:function(){var t=this;Object(N.h)().then((function(e){0==e.code&&(t.serviceConfig=e.data.pc)}))},toTop:function(){var t=setInterval((function(){var e=document.documentElement.scrollTop||document.body.scrollTop,n=Math.floor(-e/5);document.documentElement.scrollTop=document.body.scrollTop=e+n,this.isTop=!0,0===e&&clearInterval(t)}),20)},showServiceFn:function(){if(this.logined)switch(this.serviceConfig.type){case"third":window.open(this.serviceConfig.third_url,"_blank");break;case"niushop":this.hackReset=!0,this.$refs.servicer.show()}else this.$message({message:"您还未登录",type:"warning"})}}},et=(n(417),Object(P.a)(tt,(function(){var t=this,e=t._self._c;return e("aside",{staticClass:"main-sidebar clearfix"},[e("div",{staticClass:"main-sidebar-body"},[e("ul",[e("li",{on:{click:function(e){return t.$router.push("/goods/cart")}}},[e("div",{staticClass:"li-item"},[e("img",{attrs:{src:n(404)}}),t._v(" "),e("span",[t._v("购物车")]),t._v(" "),e("em",{directives:[{name:"show",rawName:"v-show",value:t.cartCount,expression:"cartCount"}]},[t._v(t._s(t.cartCount))])])]),t._v(" "),e("li",{staticClass:"mobile"},[e("div",{staticClass:"mobile-qrcode-wrap"},[t.qrcode?e("div",{staticClass:"mobile-qrcode"},[e("img",{attrs:{src:t.$img(t.qrcode)}})]):t._e()]),t._v(" "),t._m(0)]),t._v(" "),"none"!=t.serviceConfig.type?e("li",{staticClass:"kefuTip"},[e("div",{staticClass:"li-item",on:{click:function(e){return t.showServiceFn()}}},[e("img",{attrs:{src:n(405)}}),t._v(" "),e("span",[t._v("联系客服")])])]):t._e(),t._v(" "),e("li",{on:{click:function(e){return t.$router.push("/member")}}},[t._m(1)])]),t._v(" "),e("div",{class:["back-top",{showBtn:t.visible}],on:{click:t.toTop}},[e("img",{attrs:{src:n(406)}}),t._v(" "),e("span",[t._v("回到顶部")])])]),t._v(" "),t._m(2),t._v(" "),e("servicerMessage",{ref:"servicer",staticClass:"kefu",attrs:{shop:{shop_id:0,logo:t.siteInfo.logo,shop_name:"平台客服"}}})],1)}),z,!1,null,"61661ba2",null).exports),nt=(n(318),n(214)),ot={props:{},data:function(){return{shopServiceList:[],linkList:[],helpList:[],ishide:!1,activeName:"first",qrcode:""}},computed:{},created:function(){this.getShopServiceLists(),this.link(),this.getHelpList(),this.getqrcodeimg()},mounted:function(){},watch:{},methods:{getqrcodeimg:function(){var t=this;Object(N.k)({}).then((function(e){0==e.code&&e.data&&(t.qrcode=e.data)})).catch((function(e){t.$message.error(e.message)}))},getShopServiceLists:function(){var t=this;Object(N.g)({}).then((function(e){0==e.code&&e.data&&(t.shopServiceList=e.data)})).catch((function(e){t.shopServiceList=[]}))},link:function(){var t=this;Object(N.d)({}).then((function(e){0==e.code&&e.data&&(t.linkList=e.data)})).catch((function(e){t.$message.error(e.message)}))},linkUrl:function(t,e){t&&(-1==t.indexOf("http")&&-1==t.indexOf("https")?e?this.$util.pushToTab({path:t}):this.$router.push({path:t}):e?window.open(t):window.location.href=t)},getHelpList:function(){var t=this;Object(nt.b)().then((function(e){if(0==e.code&&e.data){var n=[];n=e.data.slice(0,4);for(var i=0;i0?e("div",{staticClass:"footer-top"},[e("ul",{staticClass:"service"},t._l(t.shopServiceList,(function(n,r){return e("li",{key:r},[e("div",{staticClass:"item-head"},["img"==n.icon.iconType?e("img",{attrs:{src:t.$img(n.icon.imageUrl),alt:""}}):e("span",{class:n.icon.icon})]),t._v(" "),e("div",{staticClass:"item-content"},[e("p",{staticClass:"name"},[t._v(t._s(n.service_name))]),t._v(" "),e("p",{staticClass:"desc"},[t._v(t._s(n.desc))])])])})),0)]):t._e(),t._v(" "),e("div",{staticClass:"footer-bot"},[e("copy-right")],1)])}),[],!1,null,"1f00941e",null).exports),at=n(151);function st(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var ct={props:{forceExpand:{type:Boolean,default:!1}},computed:function(t){for(var i=1;i3&&(e.isHide=!0)}})).catch((function(t){e.$message.error(t.message)}))},shopHover:function(){this.isShopHover=!0},shopLeave:function(){this.isShopHover=!1}}},ut=ct,lt=(n(422),Object(P.a)(ut,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"header"},[e("ns-header-top"),t._v(" "),e("ns-header-mid"),t._v(" "),e("div",{staticClass:"nav"},[e("div",{staticClass:"shop-list-content",class:t.forceExpand||t.isShopHover||t.isIndex&&t.is_show?"shop-list-active":"shadow"},[1==t.categoryConfig.category?e("div",{staticClass:"shop-list",on:{mouseover:t.shopHover,mouseleave:t.shopLeave}},t._l(t.goodsCategoryTree,(function(n,r){return e("div",{key:r,staticClass:"list-item",on:{mouseover:function(e){t.selectedCategory=n.category_id},mouseleave:function(e){t.selectedCategory=-1}}},[e("router-link",{attrs:{to:{path:"/goods/list",query:{category_id:n.category_id,level:n.level}},target:"_blank"}},[e("div",[1==t.categoryConfig.img&&n.image?e("img",{staticClass:"category-img",attrs:{src:t.$util.img(n.image)}}):t._e(),t._v(" "),e("p",{staticClass:"category-name"},[t._v(t._s(n.category_name))])]),t._v(" "),e("i",{staticClass:"el-icon-arrow-right",attrs:{"aria-hidden":"true"}})])],1)})),0):2==t.categoryConfig.category?e("div",{staticClass:"shop-list",class:t.forceExpand||t.isShopHover||t.isIndex&&t.is_show?"shop-list-active":"shadow",on:{mouseover:t.shopHover,mouseleave:t.shopLeave}},t._l(t.goodsCategoryTree,(function(n,r){return e("div",{key:r,staticClass:"list-item",on:{mouseover:function(e){t.selectedCategory=n.category_id},mouseleave:function(e){t.selectedCategory=-1}}},[e("router-link",{attrs:{to:{path:"/goods/list",query:{category_id:n.category_id,level:n.level}},target:"_blank"}},[e("div",[1==t.categoryConfig.img&&n.image?e("img",{staticClass:"category-img",attrs:{src:t.$util.img(n.image)}}):t._e(),t._v(" "),e("p",{staticClass:"category-name"},[t._v(t._s(n.category_name))])]),t._v(" "),e("i",{staticClass:"el-icon-arrow-right",attrs:{"aria-hidden":"true"}})]),t._v(" "),n.child_list?e("div",{staticClass:"cate-part",class:{show:t.selectedCategory==n.category_id}},[e("div",{staticClass:"cate-part-col1"},[e("div",{staticClass:"cate-detail"},[e("div",{staticClass:"cate-detail-item"},[e("div",{staticClass:"cate-detail-con"},t._l(n.child_list,(function(n,r){return e("router-link",{key:r,attrs:{target:"_blank",to:{path:"/goods/list",query:{category_id:n.category_id,level:n.level}}}},[1==t.categoryConfig.img?e("img",{staticClass:"cate-detail-img",attrs:{src:t.$util.img(n.image)}}):t._e(),t._v(" "),e("p",{staticClass:"category-name"},[t._v(t._s(n.category_name))])])})),1)])])])]):t._e()],1)})),0):3==t.categoryConfig.category?e("div",{staticClass:"shop-list",class:t.forceExpand||t.isShopHover||t.isIndex?"shop-list-active":"shadow",on:{mouseover:t.shopHover,mouseleave:t.shopLeave}},t._l(t.goodsCategoryTree,(function(n,r){return e("div",{key:r,staticClass:"list-item",on:{mouseover:function(e){t.selectedCategory=n.category_id},mouseleave:function(e){t.selectedCategory=-1}}},[e("router-link",{attrs:{to:{path:"/goods/list",query:{category_id:n.category_id,level:n.level}},target:"_blank"}},[e("div",{staticClass:"list-item-left"},[1==t.categoryConfig.img&&n.image?e("img",{staticClass:"category-img",attrs:{src:t.$util.img(n.image)}}):t._e(),t._v(" "),e("p",{staticClass:"category-name"},[t._v(t._s(n.category_name))])])]),t._v(" "),e("div",{staticClass:"item-itm",class:{"item-itm-img":1==t.categoryConfig.img}},t._l(n.child_list,(function(n,r){return e("router-link",{directives:[{name:"show",rawName:"v-show",value:r<3,expression:"second_index < 3"}],key:r,staticStyle:{display:"inline-block"},attrs:{to:{path:"/goods/list",query:{category_id:n.category_id,level:n.level}},target:"_blank"}},[t._v("\n "+t._s(n.short_name?n.short_name:n.category_name)+"\n ")])})),1),t._v(" "),n.child_list?e("div",{staticClass:"cate-part",class:{show:t.selectedCategory==n.category_id}},[e("div",{staticClass:"cate-part-col1"},[e("div",{staticClass:"cate-detail"},t._l(n.child_list,(function(n,r){return e("dl",{key:r,staticClass:"cate-detail-item"},[e("dt",{staticClass:"cate-detail-tit"},[e("router-link",{attrs:{target:"_blank",to:{path:"/goods/list",query:{category_id:n.category_id,level:n.level}}}},[t._v("\n "+t._s(n.category_name)+"\n ")])],1),t._v(" "),n.child_list?e("dd",{staticClass:"cate-detail-con"},t._l(n.child_list,(function(n,r){return e("router-link",{key:r,attrs:{target:"_blank",to:{path:"/goods/list",query:{category_id:n.category_id,level:n.level}}}},[1==t.categoryConfig.img?e("img",{staticClass:"cate-detail-img",attrs:{src:t.$util.img(n.image)}}):t._e(),t._v(" "),e("p",{staticClass:"category-name"},[t._v(t._s(n.category_name))])])})),1):t._e()])})),0)])]):t._e()],1)})),0):t._e()])])],1)}),[],!1,null,"2385f71c",null).exports),ft={name:"Layout",components:{NsHeader:lt,NsFooter:it,NsAside:et},created:function(){this.getAdList()},data:function(){return{loadingAd:!0,adList:[],is_show:!0,indexTopAdNum:0,adv_position:{}}},mounted:function(){},computed:{},watch:{},methods:{getAdList:function(){var t=this;if(this.$store.state.app.indexTopAdNum>=3)return this.loadingAd=!1,void(this.is_show=!1);Object(N.a)({keyword:"NS_PC_INDEX_TOP"}).then((function(e){t.adList=e.data.adv_list,t.adv_position=e.data.adv_position;for(var i=0;i=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},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 o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Object(j.h)(t.$route)).length){e.next=3;break}return e.abrupt("return");case 3:return t.$loading.start(),r=n.map((function(e){var p=[];if(e.$options.fetch&&e.$options.fetch.length&&p.push(Object(j.q)(e.$options.fetch,t.context)),e.$fetch)p.push(e.$fetch());else{var n,r=jt(Object(j.e)(e.$vnode.componentInstance));try{for(r.s();!(n=r.n()).done;){var component=n.value;p.push(component.$fetch())}}catch(t){r.e(t)}finally{r.f()}}return e.$options.asyncData&&p.push(Object(j.q)(e.$options.asyncData,t.context).then((function(t){for(var n in t)l.default.set(e.$data,n,t[n])}))),Promise.all(p)})),e.prev=5,e.next=8,Promise.all(r);case 8:e.next=15;break;case 10:e.prev=10,e.t0=e.catch(5),t.$loading.fail(e.t0),Object(j.k)(e.t0),t.error(e.t0);case 15:t.$loading.finish();case 16:case"end":return e.stop()}}),e,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var t=(A.options||A).layout;"function"==typeof t&&(t=t(this.context)),this.setLayout(t)}},setLayout:function(t){return t&&xt["_"+t]||(t="default"),this.layoutName=t,this.layout=xt["_"+t],this.layout},loadLayout:function(t){return t&&xt["_"+t]||(t="default"),Promise.resolve(xt["_"+t])}},components:{NuxtLoading:M}};n(107);l.default.use(d.a);var kt=["state","getters","actions","mutations"],Et={};Et.modules=Et.modules||{},$t(n(428),"app.js"),$t(n(429),"cart.js"),$t(n(430),"getters.js"),$t(n(431),"member.js"),$t(n(432),"order.js"),$t(n(516),"site.js"),$t(n(517),"wechat.js");var St=Et instanceof Function?Et:function(){return new d.a.Store(Object.assign({strict:!1},Et))};function Tt(t,e){if(t.state&&"function"!=typeof t.state){console.warn("'state' should be a method that returns an object in ".concat(e));var n=Object.assign({},t.state);t=Object.assign({},t,{state:function(){return n}})}return t}function $t(t,e){t=t.default||t;var n=e.replace(/\.(js|mjs)$/,"").split("/"),r=n[n.length-1],o="store/".concat(e);if(t="state"===r?function(t,e){if("function"!=typeof t){console.warn("".concat(e," should export a method that returns an object"));var n=Object.assign({},t);return function(){return n}}return Tt(t,e)}(t,o):Tt(t,o),kt.includes(r)){var c=r;Pt(It(Et,n,{isProperty:!0}),t,c)}else{"index"===r&&(n.pop(),r=n[n.length-1]);for(var l=It(Et,n),d=0,f=kt;d2&&void 0!==arguments[2]?arguments[2]:{},r=n.isProperty,o=void 0!==r&&r;if(!e.length||o&&1===e.length)return t;var c=e.shift();return t.modules[c]=t.modules[c]||{},t.modules[c].namespaced=!0,t.modules[c].modules=t.modules[c].modules||{},It(t.modules[c],e,{isProperty:o})}function Pt(t,e,n){e&&("state"===n?t.state=e||t.state:t[n]=Object.assign({},t[n],e))}n(132);var At=function(){return n.e(4).then(n.bind(null,632)).then((function(t){return Ft(t.default||t)}))},Rt=function(){return n.e(7).then(n.bind(null,529)).then((function(t){return Ft(t.default||t)}))},Lt=function(){return n.e(5).then(n.bind(null,798)).then((function(t){return Ft(t.default||t)}))},Dt=function(){return n.e(6).then(n.bind(null,799)).then((function(t){return Ft(t.default||t)}))},Mt=function(){return Promise.resolve().then(n.bind(null,310)).then((function(t){return Ft(t.default||t)}))},Nt=function(){return Promise.resolve().then(n.bind(null,311)).then((function(t){return Ft(t.default||t)}))},Ut=function(){return Promise.resolve().then(n.bind(null,210)).then((function(t){return Ft(t.default||t)}))};function Ft(t){if(!t||!t.functional)return t;var e=Array.isArray(t.props)?t.props:Object.keys(t.props||{});return{render:function(n){var r={},o={};for(var c in this.$attrs)e.includes(c)?o[c]=this.$attrs[c]:r[c]=this.$attrs[c];return n(t,{on:this.$listeners,attrs:r,props:o,scopedSlots:this.$scopedSlots},this.$slots.default)}}}for(var qt in r)l.default.component(qt,r[qt]),l.default.component("Lazy"+qt,r[qt]);var Bt=n(33),Ht=n.n(Bt),Gt=n(308);function Kt(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function Qt(t){for(var i=1;i=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},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 o,c=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function Yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i2&&void 0!==arguments[2]?arguments[2]:"common",o=Jt(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;e?this.defaults.headers[c][t]=e:delete this.defaults.headers[c][t]}}catch(t){o.e(t)}finally{o.f()}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use((function(e){return t(e)||e}))},onResponse:function(t){this.interceptors.response.use((function(e){return t(e)||e}))},onRequestError:function(t){this.interceptors.request.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onResponseError:function(t){this.interceptors.response.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onError:function(t){this.onRequestError(t),this.onResponseError(t)},create:function(t){return Zt(Object(Gt.a)(t,this.defaults))}},Xt=function(){var t=Vt[zt];Wt["$"+t]=function(){return this[t].apply(this,arguments).then((function(t){return t&&t.data}))}},zt=0,Vt=["request","delete","get","head","options","post","put","patch"];zt1&&(t=t.split(",")[0]),e&&t!=this.$store.getters.defaultGoodsImage){var n=t.split("."),r=n[n.length-1];n.pop(),n[n.length-1]=n[n.length-1]+"_"+e.size.toUpperCase(),n.push(r),t=n.join(".")}path=-1==t.indexOf("http://")&&-1==t.indexOf("https://")?re.a.imgDomain+"/"+t:t}return path},timeStampTurnTime:function(t){if(null!=t&&""!=t&&t>0){var e=new Date;e.setTime(1e3*t);var n=e.getFullYear(),r=e.getMonth()+1;r=r<10?"0"+r:r;var o=e.getDate();o=o<10?"0"+o:o;var c=e.getHours();c=c<10?"0"+c:c;var l=e.getMinutes(),d=e.getSeconds();return n+"-"+r+"-"+o+" "+c+":"+(l=l<10?"0"+l:l)+":"+(d=d<10?"0"+d:d)}return""},countDown:function(t){var e=0,n=0,r=0,o=0;return t>0&&(e=Math.floor(t/86400),n=Math.floor(t/3600)-24*e,r=Math.floor(t/60)-24*e*60-60*n,o=Math.floor(t)-24*e*60*60-60*n*60-60*r),{d:e,h:n,i:r,s:o}},unique:function(t,e){var n=new Map;return t.filter((function(a){return!n.has(a[e])&&n.set(a[e],1)}))},inArray:function(t,e){return null==e?-1:e.indexOf(t)},getDay:function(t){var e=new Date,n=e.getTime()+864e5*t;e.setTime(n);var r=function(t){var e=t;return 1==t.toString().length&&(e="0"+t),e},o=e.getFullYear(),c=e.getMonth(),l=e.getDate(),d=e.getDay();return{t:parseInt(e.getTime()/1e3),y:o,m:c=r(c+1),d:l=r(l),w:["周日","周一","周二","周三","周四","周五","周六"][d]}},copy:function(t,e){var n=document.createElement("input");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("Copy"),n.className="oInput",n.style.display="none",this.$message({message:"复制成功",type:"success"}),"function"==typeof e&&e()},deepClone:function(t){var e=function(t){return"object"==Object(ne.a)(t)};if(!e(t))throw new Error("obj 不是一个对象!");var n=Array.isArray(t)?[]:{};for(var r in t)n[r]=e(t[r])?this.deepClone(t[r]):t[r];return n},filterPrice:function(t){return t.toFixed(2)},pushToTab:function(t){if("string"==typeof t){var e=re.a.webDomain+t;window.open(e,"_blank")}else if("object"==Object(ne.a)(t)){var n=re.a.webDomain+t.path;t.qurey&&Object.keys(t.qurey).forEach((function(e,n){t.qurey+=(0==n?"?":"&")+e+"="+t.qurey[e]})),window.open(n,"_blank")}}};l.default.prototype.$util=oe,l.default.prototype.$img=oe.img,l.default.prototype.$timeStampTurnTime=oe.timeStampTurnTime,l.default.prototype.$copy=oe.copy;var ie=n(146),ae=n.n(ie),se=(n(514),null),ce=function(t){se&&se.close(),se=Object(ie.Message)(t)};function ue(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function le(t){for(var i=1;i has been deprecated and will be removed in Nuxt 3, please use instead")),_.a.render(t,e)}})),l.default.component(S.name,S),l.default.component("NChild",S),l.default.component(L.name,L),Object.defineProperty(l.default.prototype,"$nuxt",{get:function(){var t=this.$root.$options.$nuxt;return t||"undefined"==typeof window?t:window.$nuxt},configurable:!0}),l.default.use(f.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var de={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};d.a.Store.prototype.registerModule;function fe(t){return pe.apply(this,arguments)}function pe(){return pe=Object(o.a)(regeneratorRuntime.mark((function t(e){var n,r,c,d,f,m,path,h,v=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject('".concat(t,"', value) has no value provided"));d[t="$"+t]=e,d.context[t]||(d.context[t]=e),c[t]=d[t];var n="__nuxt_"+t+"_installed__";l.default[n]||(l.default[n]=!0,l.default.use((function(){Object.prototype.hasOwnProperty.call(l.default.prototype,t)||Object.defineProperty(l.default.prototype,t,{get:function(){return this.$root.$options[t]}})})))},n=v.length>1&&void 0!==v[1]?v[1]:{},t.next=4,E(0,n);case 4:return r=t.sent,(c=St(e)).$router=r,d=le({head:{title:"nuxt",htmlAttrs:{lang:"en"},meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:""},{name:"format-detection",content:"telephone=no"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"}],style:[],script:[]},store:c,router:r,nuxt:{defaultTransition:de,transitions:[de],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map((function(t){return t=t?"string"==typeof t?Object.assign({},de,{name:t}):Object.assign({},de,t):de})),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,d.context._errored=Boolean(t),t=t?Object(j.p)(t):null;var n=d.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},Ct),c.app=d,f=e?e.next:function(t){return d.router.push(t)},e?m=r.resolve(e.url).route:(path=Object(j.f)(r.options.base,r.options.mode),m=r.resolve(path).route),t.next=13,Object(j.t)(d,{store:c,route:m,next:f,error:d.nuxt.error.bind(d),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,ssrContext:e});case 13:h("config",n),window.__NUXT__&&window.__NUXT__.state&&c.replaceState(window.__NUXT__.state),d.context.enablePreview=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d.previewData=Object.assign({},t),h("preview",t)},t.next=19;break;case 19:return t.next=22,ee(d.context,h);case 22:t.next=25;break;case 25:if("function"!=typeof re.a){t.next=28;break}return t.next=28,Object(re.a)(d.context,h);case 28:t.next=31;break;case 31:return d.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},t.next=34,new Promise((function(t,e){if(!r.resolve(d.context.route.fullPath).route.matched.length)return t();r.replace(d.context.route.fullPath,t,(function(n){if(!n._isRouter)return e(n);if(2!==n.type)return t();var c=r.afterEach(function(){var e=Object(o.a)(regeneratorRuntime.mark((function e(n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(j.j)(n);case 3:d.context.route=e.sent,d.context.params=n.params||{},d.context.query=n.query||{},c(),t();case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}))}));case 34:return t.abrupt("return",{store:c,app:d,router:r});case 35:case"end":return t.stop()}}),t)}))),pe.apply(this,arguments)}},61:function(t,e,n){"use strict";n(34),n(173),n(25),n(24),n(23),n(8),n(29),n(17),n(30);var r=n(4),o=n(12),c=n(268),l=n(27);function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var f={props:{},data:function(){return{keyword:"",defaultSearchWords:"请输入您要查询的商品",cartTotalPrice:0,navList:[],navSelect:"",searchType:"goods"}},components:{},computed:function(t){for(var i=1;i