1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["app"],{0:function(e,t,n){n("db4d"),e.exports=n("56d7")},"0f9a":function(e,t,n){"use strict";n.r(t),n("96cf");var i=n("1da1"),u=n("5daa"),r=n("5f87"),a={};window.ajaxTimeout=2e4;var o=Object(i.a)(regeneratorRuntime.mark((function e(){var t,n,o,c,s,d,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=3<f.length&&void 0!==f[3]?f[3]:{},c=4<f.length&&void 0!==f[4]?f[4]:a,s=5<f.length?f[5]:void 0,n=(t=0<f.length&&void 0!==f[0]?f[0]:"").method.toLowerCase(),d={method:n,baseURL:"",url:u.a.baseURL+t.url,data:t.data,params:o,processData:!0,timeout:window.ajaxTimeout,headers:c,onUploadProgress:s},s&&"function"==typeof s&&(d.onUploadProgress=s),axios.interceptors.request.use((function(e){return e.data.token||(e.data.token=Object(r.d)()),e}),(function(e){return Promise.reject(new Error("服务器异常,请联系管理员!"))})),axios.interceptors.response.use(function(){var e=Object(i.a)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),(function(e){return Promise.reject(e.response.data)})),e.abrupt("return",new Promise((function(e,t){axios(d).then((function(t){e(t.data)})).catch((function(e){t(e)}))})));case 12:case"end":return e.stop()}}),e)})));n={token:Object(r.d)(),name:"",introduction:"",roles:["admin"],ad:Object(r.a)()?JSON.parse(Object(r.a)()):{},goodsNum:isNaN(Object(r.b)())?0:parseInt(Object(r.b)()),goodsUnit:isNaN(Object(r.c)())?0:parseInt(Object(r.c)())},t.default={namespaced:!0,state:n,mutations:{SET_TOKEN:function(e,t){e.token=t},SET_HAS:function(e,t){e.has=t},SET_INTRODUCTION:function(e,t){e.introduction=t},SET_NAME:function(e,t){e.name=t},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t},SET_AD:function(e,t){e.ad=t},SET_GOODSNUM:function(e,t){e.goodsNum=t},SET_GOODSUNIT:function(e,t){e.getGoodsUnit=t}},actions:{login:function(e,t){var n=e.commit,i=t.mobile,u=t.code;return new Promise((function(e,t){var a;a={username:i.trim(),password:u.trim()},o({url:"home/login",method:"post",data:a}).then((function(t){var i;0===t.code&&(i=t.data,n("SET_TOKEN",i.token),Object(r.l)(i.token),Object(r.e)(),n("SET_AD",{}),Object(r.f)(),n("SET_GOODSNUM",""),Object(r.g)(),n("SET_GOODSUNIT","")),e(t)})).catch((function(e){t(e)}))}))},logout:function(e){var t=e.commit,n=(e.state,e.dispatch);return new Promise((function(e,i){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(r.h)(),t("SET_HAS",""),Object(r.e)(),t("SET_AD",{}),Object(r.f)(),t("SET_GOODSNUM",""),Object(r.g)(),t("SET_GOODSUNIT",""),n("tagsView/delAllViews",null,{root:!0}),e()}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(r.h)(),e()}))},set_ad:function(e,t){var n=e.commit;return new Promise((function(e,i){var u=JSON.parse(JSON.stringify(t));Object(r.i)(u),n("SET_AD",u),e({code:0,data:{},message:"ok"})}))},set_goodsNum:function(e,t){var n=e.commit;return new Promise((function(e,i){var u=t;Object(r.j)(u),n("SET_GOODSNUM",u),e({code:0,data:{},message:"ok"})}))},set_goodsUnit:function(e,t){var n=e.commit;return new Promise((function(e,i){var u=t;Object(r.k)(u),n("SET_GOODSUNIT",u),e({code:0,data:{},message:"ok"})}))}}}},1:function(e,t){},"11f6":function(e,t,n){"use strict";n("408c")},2:function(e,t){},"408c":function(e,t,n){},"56d7":function(e,t,n){"use strict";n.r(t);var i={};n.r(i),n.d(i,"toThousandFilter",(function(){return Q})),n("a481"),n("456d"),n("ac6a"),n("433b");var u=n("d399"),r=(n("5a5c"),n("772a")),a=(n("9eda"),n("565f")),o=(n("c625"),n("b650")),c=(n("b342"),n("ad06")),s=(n("4391"),n("58e6")),d=(n("93b0"),n("2bdd")),f=(n("87d0"),n("e41f")),m=(n("d554"),n("ab2c")),h=(n("558f"),n("0b33")),l=(n("8990"),n("5e46")),b=(n("3ec1"),n("7744")),p=(n("2a53"),n("34e9")),w=(n("bf24"),n("44bf")),v=(n("01bb"),n("e27c")),V=(n("608d"),n("9f14")),E=(n("8e11"),n("f253")),S=(n("ef44"),n("473d")),O=(n("ec8c"),n("1125")),_=(n("d707"),n("8f80")),g=(n("47d1"),n("9ffb")),j=(n("4bc8"),n("d1e1")),I=(n("da02"),n("6b41")),T=(n("6e75"),n("343b")),D=(n("b204"),n("7d5e")),k=(n("578d"),n("ee83")),A=(n("47e2"),n("2241")),y=(n("8244"),n("dc0f")),C=(n("76aa"),n("510b")),N=(n("4071"),n("a3e2")),x=(n("9753"),n("417e")),L=(n("6370"),n("3acc")),P=(n("2591"),n("3104")),U=(n("81a6"),n("7bd9")),R=(n("a789"),n("c41f")),W=(n("1fe9"),n("d961")),G=(n("3cc4"),n("5596")),$=(n("8d12"),n("2bb1")),H=(n("7f9f"),n("efa0")),z=(n("fa08"),n("67bb")),M=(n("cadf"),n("551c"),n("f751"),n("097d"),{data:function(){return{}},mounted:function(){var e=sessionStorage.getItem("type");this.theme(e)},methods:{theme:function(e){sessionStorage.setItem("type",e),this.$store.commit("app/SET_TYPE",e),window.document.documentElement.setAttribute("data-theme",e)}}}),B=(n("5c0b"),n("2877")),J=Object(B.a)(M,(function(){var e=this.$createElement;e=this._self._c||e;return e("div",{attrs:{id:"app"}},[e("router-view")],1)}),[],!1,null,null,null).exports,K=VueRouter,F=new K({mode:"hash",base:"/",scrollBehavior:function(){return{y:0}},routes:[{path:"/",redirect:"/login"},{path:"/login",component:function(){return n.e("chunk-685bd93a").then(n.bind(null,"9ed6"))},hidden:!0},{path:"/reset",component:function(){return n.e("chunk-7c6ef186").then(n.bind(null,"44b4"))},hidden:!0},{path:"/home",component:function(){return n.e("chunk-5ece15b8").then(n.bind(null,"c1f7"))},redirect:"/paddy",children:[{path:"paddy",component:function(){return Promise.all([n.e("chunk-f1b92fb4"),n.e("chunk-d36c8790")]).then(n.bind(null,"f01a"))},name:"paddy",meta:{title:"稻田",noCache:!0,breadcrumb:!0}},{path:"product",component:function(){return Promise.all([n.e("chunk-f1b92fb4"),n.e("chunk-e0b01600"),n.e("chunk-a005cb7c")]).then(n.bind(null,"e6e2"))},name:"product",meta:{title:"产品",noCache:!0,breadcrumb:!0}},{path:"my",component:function(){return n.e("chunk-0fec4598").then(n.bind(null,"9639"))},name:"my",meta:{title:"我的",noCache:!0,breadcrumb:!0}}]},{path:"/orderRes",component:function(){return n.e("chunk-78b05d6c").then(n.bind(null,"0957"))},hidden:!0},{path:"/liveD",component:function(){return n.e("chunk-73ab7664").then(n.bind(null,"c288"))},hidden:!0},{path:"/address",component:function(){return n.e("chunk-802f3bf6").then(n.bind(null,"13b6"))},hidden:!0},{path:"/addressView",component:function(){return Promise.all([n.e("chunk-2d0e48cb"),n.e("chunk-419f8c6e")]).then(n.bind(null,"45b9"))},hidden:!0},{path:"/live",component:function(){return n.e("chunk-48fae926").then(n.bind(null,"1502"))},hidden:!0},{path:"/order",component:function(){return n.e("chunk-369547d9").then(n.bind(null,"634a"))},hidden:!0},{path:"/oDetail",component:function(){return n.e("chunk-341d3d5d").then(n.bind(null,"9dd3"))},hidden:!0},{path:"/aboutUs",component:function(){return n.e("chunk-58bf38b0").then(n.bind(null,"ffc5"))},hidden:!0},{path:"/referMenu",component:function(){return n.e("chunk-66d286c4").then(n.bind(null,"8481"))},hidden:!0},{path:"/introduce",component:function(){return Promise.all([n.e("chunk-f1b92fb4"),n.e("chunk-e0b01600"),n.e("chunk-c41b06d8")]).then(n.bind(null,"67df"))},hidden:!0},{path:"/goods",component:function(){return Promise.all([n.e("chunk-f1b92fb4"),n.e("chunk-e0b01600"),n.e("chunk-b56db8ba")]).then(n.bind(null,"7732"))},hidden:!0}]}),Y=K.prototype.push;K.prototype.push=function(e){return Y.call(this,e).catch((function(e){return e}))},Vue.use(K);var Z=F;t=n("2f62"),n("7f7f"),M={type:function(e){return e.app.type},type_jjnum:function(e){return e.app.type_jjnum},sidebar:function(e){return e.app.sidebar},size:function(e){return e.app.size},searchSize:function(e){return e.app.searchSize},tablebtnSize:function(e){return e.app.tablebtnSize},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},introduction:function(e){return e.user.introduction},roles:function(e){return e.user.roles},ad:function(e){return e.user.ad},goodsNum:function(e){return e.user.goodsNum},goodsUnit:function(e){return e.user.goodsUnit}};Vue.use(t.a);var q=n("c653");K=q.keys().reduce((function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1");t=q(t);return e[n]=t.default,e}),{}),F=new t.a.Store({modules:K,getters:M}),t=n("5f87"),K=n("d6d3"),M=n.n(K);function Q(e){return"-"===e?e:(+e||0).toString().replace(/^-?\d+/g,(function(e){return e.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}n("8e1f"),n("6b54"),n("c5f6"),n("96cf");K=n("1da1"),K={name:"inputNumber",props:["numb","max"],data:function(){return{num:this.numb?parseInt(this.numb):0,loading:!1,maxHeight:"0",tableData:[]}},created:(X=Object(K.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return X.apply(this,arguments)}),mounted:function(){},watch:{numb:function(e){this.num=e?parseInt(e):0}},methods:{isnumber:function(e){return/^[0-9]*$/.test(e)},numInput:function(){this.leix();for(var e="",t=this.num+"",n=0;n<t.length;n++)this.isnumber(t[n])&&(e+=t[n]);this.num=""===e?0:parseInt(e),this.num>this.max&&(this.num=this.max),this.num<0&&(this.num=0),this.$emit("backNum",this.num)},jian:function(){this.leix(),0<this.num&&(this.num-=Number(this.$store.getters.type_jjnum),this.$emit("backNum",this.num))},jia:function(){this.leix(),this.num=parseInt(this.num),this.num<this.max&&(this.num+=Number(this.$store.getters.type_jjnum),this.$emit("backNum",this.num))},leix:function(){isNaN(this.num)&&(this.num=0)}}};var X,ee=(n("11f6"),Object(B.a)(K,(function(){var e=this,t=e.$createElement;t=e._self._c||t;return t("div",{staticClass:"inputNumber"},[t("div",{staticClass:"jian",on:{click:e.jian}},[e._v("-")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.num,expression:"num"}],attrs:{type:"text",min:0,max:e.max},domProps:{value:e.num},on:{blur:e.numInput,input:function(t){t.target.composing||(e.num=t.target.value)}}}),t("div",{staticClass:"jia",on:{click:e.jia}},[e._v("+")])])}),[],!1,null,"f73b16d4",null).exports);B={install:function(e){e.component(ee.name,ee)}};n("451f"),n("fda2"),K=n("a151"),Vue.use(B),Vue.use(u.a).use(r.a).use(a.a).use(o.a).use(c.a).use(s.a).use(d.a).use(f.a).use(m.a).use(h.a).use(l.a).use(b.a).use(p.a).use(w.a).use(v.a).use(V.a).use(E.a).use(S.a).use(O.a).use(_.a).use(g.a).use(j.a).use(I.a).use(T.a).use(D.a).use(k.a).use(A.a).use(y.a).use(C.a).use(N.a).use(x.a).use(L.a).use(P.a).use(U.a).use(R.a).use(W.a).use(G.a).use($.a).use(H.a).use(z.a).use(M.a).use(K),Object.keys(i).forEach((function(e){Vue.filter(e,i[e])})),Vue.config.productionTip=!1,window.vm=new Vue({router:Z,store:F,render:function(e){return e(J)}}).$mount("#app"),null!==Object(t.d)()&&void 0!==Object(t.d)()&&""!==Object(t.d)()||(Object(t.h)(),"/login"!==window.vm.$route.path&&"/"!==window.vm.$route.path&&Z.replace({name:"/login"}))},"5c0b":function(e,t,n){"use strict";n("e332")},"5daa":function(e,t,n){"use strict";var i=n("f121");t.a={baseURL:i.baseApi}},"5f87":function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"l",(function(){return s})),n.d(t,"h",(function(){return d})),n.d(t,"a",(function(){return f})),n.d(t,"i",(function(){return m})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return l})),n.d(t,"j",(function(){return b})),n.d(t,"f",(function(){return p})),n.d(t,"c",(function(){return w})),n.d(t,"k",(function(){return v})),n.d(t,"g",(function(){return V}));t=n("a78e");var i=n.n(t),u="wuchang-h5-Token",r="wuchang-h5-Ad",a="wuchang-h5-goodsNum",o="wuchang-h5-goodsUnit";function c(){return i.a.get(u)}function s(e){return i.a.set(u,e)}function d(){return i.a.remove(u)}function f(){return i.a.get(r)}function m(e){return i.a.set(r,e)}function h(){return i.a.remove(r)}function l(){return i.a.get(a)}function b(e){return i.a.set(a,e)}function p(){return i.a.remove(a)}function w(){return i.a.get(o)}function v(e){return i.a.set(o,e)}function V(){return i.a.remove(o)}},7509:function(e,t,n){"use strict";n.r(t),n("ac4d"),n("8a81"),n("5df3"),n("1c4c"),n("6b54");var i=n("2909"),u=n("3835");function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0;t=function(){};return{s:t,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t}}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 u,r=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){o=!0,u=e},f:function(){try{r||null==n.return||n.return()}finally{if(o)throw u}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n("ac6a"),n("7f7f"),n("6762"),n("2fdb"),t.default={namespaced:!0,state:{visitedViews:[],cachedViews:[]},mutations:{ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var n,i=r(e.visitedViews.entries());try{for(i.s();!(n=i.n()).done;){var a=Object(u.a)(n.value,2),o=a[0];if(a[1].path===t.path){e.visitedViews.splice(o,1);break}}}catch(e){i.e(e)}finally{i.f()}},DEL_CACHED_VIEW:function(e,t){t=e.cachedViews.indexOf(t.name),-1<t&&e.cachedViews.splice(t,1)},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){t=e.cachedViews.indexOf(t.name),e.cachedViews=-1<t?e.cachedViews.slice(t,t+1):[]},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var n,i=r(e.visitedViews);try{for(i.s();!(n=i.n()).done;){var u=n.value;if(u.path===t.path){Object.assign(u,t);break}}}catch(e){i.e(e)}finally{i.f()}}},actions:{addView:function(e,t){e=e.dispatch,e("addVisitedView",t),e("addCachedView",t)},addVisitedView:function(e,t){(0,e.commit)("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){(0,e.commit)("ADD_CACHED_VIEW",t)},delView:function(e,t){var n=e.dispatch,u=e.state;return new Promise((function(e){n("delVisitedView",t),n("delCachedView",t),e({visitedViews:Object(i.a)(u.visitedViews),cachedViews:Object(i.a)(u.cachedViews)})}))},delVisitedView:function(e,t){var n=e.commit,u=e.state;return new Promise((function(e){n("DEL_VISITED_VIEW",t),e(Object(i.a)(u.visitedViews))}))},delCachedView:function(e,t){var n=e.commit,u=e.state;return new Promise((function(e){n("DEL_CACHED_VIEW",t),e(Object(i.a)(u.cachedViews))}))},delOthersViews:function(e,t){var n=e.dispatch,u=e.state;return new Promise((function(e){n("delOthersVisitedViews",t),n("delOthersCachedViews",t),e({visitedViews:Object(i.a)(u.visitedViews),cachedViews:Object(i.a)(u.cachedViews)})}))},delOthersVisitedViews:function(e,t){var n=e.commit,u=e.state;return new Promise((function(e){n("DEL_OTHERS_VISITED_VIEWS",t),e(Object(i.a)(u.visitedViews))}))},delOthersCachedViews:function(e,t){var n=e.commit,u=e.state;return new Promise((function(e){n("DEL_OTHERS_CACHED_VIEWS",t),e(Object(i.a)(u.cachedViews))}))},delAllViews:function(e,t){var n=e.dispatch,u=e.state;return new Promise((function(e){n("delAllVisitedViews",t),n("delAllCachedViews",t),e({visitedViews:Object(i.a)(u.visitedViews),cachedViews:Object(i.a)(u.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(i.a)(n.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(i.a)(n.cachedViews))}))},updateVisitedView:function(e,t){(0,e.commit)("UPDATE_VISITED_VIEW",t)}}}},"8bbf":function(e,t){e.exports=Vue},"8e1f":function(e,t,n){},c653:function(e,t,n){var i={"./app.js":"d9cd","./tagsView.js":"7509","./user.js":"0f9a"};function u(e){return e=r(e),n(e)}function r(e){if(n.o(i,e))return i[e];throw e=new Error("Cannot find module '"+e+"'"),e.code="MODULE_NOT_FOUND",e}u.keys=function(){return Object.keys(i)},u.resolve=r,(e.exports=u).id="c653"},d9cd:function(e,t,n){"use strict";n.r(t);var i=n("a78e"),u=n.n(i);i={sidebar:{opened:!u.a.get("sidebarStatus")||!!+u.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",searchSize:"medium",size:u.a.get("size")||"mini",tablebtnSize:"mini",type:sessionStorage.getItem("type"),type_jjnum:2};t.default={namespaced:!0,state:i,mutations:{SET_TYPE:function(e,t){e.type=t,e.type_jjnum="active1"==t?1:2},TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?u.a.set("sidebarStatus",1):u.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){u.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_SIZE:function(e,t){e.size=t,u.a.set("size",t)}},actions:{toggleSideBar:function(e){(0,e.commit)("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){(0,e.commit)("CLOSE_SIDEBAR",t.withoutAnimation)},toggleDevice:function(e,t){(0,e.commit)("TOGGLE_DEVICE",t)},setSize:function(e,t){(0,e.commit)("SET_SIZE",t)}}}},e332:function(e,t,n){},f121:function(e,t,n){n=n("f1e0"),e.exports=n},f1e0:function(e,t){e.exports={title:"藏金1745",baseApi:"http://five.fc.caixiao365.com/",fileURL:"https://api2.edu.futurelab.tv",appId:"wx5ac3a2c2d72b6f26",ding:{CorpId:"dingc78fa4301e1a424a35c2f4657eb6378f",AgentId:"1184953963"}}}},[[0,"runtime","chunk-libs"]]]);
|