| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["shop-list"],{"0ffe":function(t,e,r){"use strict";r("96cf");var n=r("1da1"),a=r("d4ec"),s=r("bee2"),i=r("262e"),o=r("2caf"),c=r("ff2d"),u=r("bc3a"),l=r.n(u),p=r("f121"),h=r.n(p),d=function(t){Object(i["a"])(r,t);var e=Object(o["a"])(r);function r(){var t;return Object(a["a"])(this,r),t=e.call(this),l.a.defaults.baseURL=h.a.HostShop,t}return Object(s["a"])(r,[{key:"getShopToken",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("Host80","/shop/custom/info/loginByCId",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"customBalance",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/custom/balance",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"customLntegralList",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/custom/integral/search/list",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"commodityTypeList",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/commodity/type/search/list",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"commodityList",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/commodity/search/list",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"commoditySingle",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/commodity/search/single",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"orderAdd",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/order/add",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"orderUpdate",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/order/update",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"orderCancel",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/order/cancel",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"orderComplete",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/order/complete",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"orderList",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/order/search/list",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"orderSingle",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/order/search/single",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"addressAdd",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/custom/address/add",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"addressDelete",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/custom/address/delete",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"addressUpdate",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/custom/address/update",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"addressList",value:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var e,r,n=arguments;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:{},t.next=3,this.postAll("HostShop","/custom/address/search/list",e);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}]),r}(c["a"]);e["a"]=new d},3009:function(t,e,r){},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,r){var n=r("1d80"),a=r("5899"),s="["+a+"]",i=RegExp("^"+s+s+"*"),o=RegExp(s+s+"*$"),c=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(i,"")),2&t&&(r=r.replace(o,"")),r}};t.exports={start:c(1),end:c(2),trim:c(3)}},"665f":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],attrs:{id:"ShopList","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[r("div",{staticClass:"crm-title-box"},[r("div",{staticClass:"header"},[r("span",{staticClass:"user"},[r("i",{staticClass:"iconfont iconyonghu1"}),r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Global.CID",expression:"'Shop.Global.CID'"}]}),t._v(": "+t._s(t.user)+" ")]),r("span",{staticClass:"point"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Global.Points",expression:"'Shop.Global.Points'"}]}),t._v(": "+t._s(t._f("NumberFormat1")(t.point)))])])]),r("div",{staticClass:"main-content"},[r("el-row",{staticClass:"recommend",attrs:{gutter:20}},[r("el-col",{staticClass:"left",attrs:{span:6}},[r("div",{staticClass:"section"},[r("div",{staticClass:"head"},[r("i",{staticClass:"el-icon-menu"}),t._v(" "),r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Index.ProductClassification",expression:"'Shop.Index.ProductClassification'"}]})]),r("div",{staticClass:"body"},t._l(t.typeList,(function(e){return r("div",{key:e.id,staticClass:"item",on:{click:function(r){return t.handleType(e.id)}}},[r("i",{staticClass:"iconfont",class:[e.icon?e.icon:"iconzuanshi"]}),t._v(" "),r("span",{staticClass:"text"},[t._v(t._s("cn"==t.lang?e.name:e.nameEn))]),r("i",{staticClass:"i-right el-icon-arrow-right"})])})),0)])]),r("el-col",{staticClass:"right",attrs:{span:18}},[r("div",{staticClass:"section"},[r("div",{staticClass:"title"},[r("span",[t._v(t._s(t.titleName))]),t._v(" "),r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Index.Bank",expression:"'Shop.Index.Bank'"}],staticClass:"back",on:{click:t.toBank}})]),r("div",{staticClass:"search-box"},[r("div",{staticClass:"sort-btn"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Index.LaunchTime",expression:"'Shop.Index.LaunchTime'"}],staticClass:"txt"}),r("i",{staticClass:"i-up el-icon-caret-top",class:{"i-select":"add_time"==t.sortName&&1==t.sortType},on:{click:function(e){return t.isSelect(1)}}}),r("i",{staticClass:"i-down el-icon-caret-bottom",class:{"i-select":"add_time"==t.sortName&&2==t.sortType},on:{click:function(e){return t.isSelect(2)}}})]),r("div",{staticClass:"sort-btn"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Index.IntegralRanking",expression:"'Shop.Index.IntegralRanking'"}],staticClass:"txt"}),r("i",{staticClass:"i-up el-icon-caret-top",class:{"i-select":"integral"==t.sortName&&1==t.sortType},on:{click:function(e){return t.isSelect(3)}}}),r("i",{staticClass:"i-down el-icon-caret-bottom",class:{"i-select":"integral"==t.sortName&&2==t.sortType},on:{click:function(e){return t.isSelect(4)}}})]),r("div",{staticClass:"total"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Index.Total",expression:"'Shop.Index.Total'"}]}),t._v(" "),r("span",[t._v(t._s(this.pagerInfo.rowTotal))]),t._v(" "),r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Index.Items",expression:"'Shop.Index.Items'"}]})])]),r("div",{staticClass:"body"},[r("el-row",{staticStyle:{"flex-wrap":"wrap","justify-content":"initial"},attrs:{type:"flex",gutter:20,justify:"space-around"}},t._l(t.commodityList,(function(e,n){return r("el-col",{key:n,staticClass:"item",attrs:{md:6}},[r("div",{staticClass:"good"},[t._l(e.files,(function(n){return r("img",{directives:[{name:"show",rawName:"v-show",value:n.banner,expression:"item1.banner"}],key:n.id,staticClass:"img crm-cursor",attrs:{src:t.url+n.path,alt:"",srcset:""},on:{click:function(r){return t.toDetail(e.id)}}})})),r("div",{staticClass:"name crm-tow-font"},[t._v(t._s(e.name))]),r("div",{staticClass:"point"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Index.Points",expression:"'Shop.Index.Points'"}]}),t._v(t._s(t._f("NumberFormat")(e.integral)))])],2)])})),1),t.pagerInfo.rowTotal?r("div",{staticClass:"crm_pagination"},[r("el-pagination",{staticClass:"page",attrs:{background:"",layout:"prev, pager, next","page-size":t.pagerInfo.row,total:t.pagerInfo.rowTotal},on:{"current-change":t.handleCurrentChange}})],1):t._e()],1)])])],1)],1)])},a=[],s=(r("4160"),r("b0c0"),r("a9e3"),r("159b"),r("96cf"),r("1da1")),i=r("0ffe"),o=r("f121"),c=r.n(o),u=c.a.Code,l={name:"ShopList",data:function(){return{pictLoading:!1,user:"--",point:"--",titleName:"",titleType:null,sortName:null,sortType:null,typeList:[],commodityList:[],url:c.a.HostShopImg,pagerInfo:{row:12,current:1,pageTotal:0,rowTotal:0}}},computed:{lang:function(){return this.Session.Get("lang")}},methods:{handleType:function(t){var e=this;this.titleType=t,this.typeList.forEach((function(r){r.id==t&&(e.titleName="cn"==e.lang?r.name:r.nameEn)}))},toDetail:function(t){this.$router.push({path:"/shop/detail",query:{id:t,type:this.titleType}}).catch((function(t){return t}))},toBank:function(){this.$router.push({path:"/shop/home"}).catch((function(t){return t}))},isSelect:function(t){switch(t){case 1:this.sortName="add_time",this.sortType=1;break;case 2:this.sortName="add_time",this.sortType=2;break;case 3:this.sortName="integral",this.sortType=1;break;case 4:this.sortName="integral",this.sortType=2;break}this.getCommdityInfo()},getTypeInfo:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,i["a"].commodityTypeList();case 2:r=e.sent,r.code==u.StatusOK?(t.typeList=r.data,t.handleType(t.titleType)):t.$pigeon.MessageError(r.msg);case 4:case"end":return e.stop()}}),e)})))()},getCommdityInfo:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.pictLoading=!0,e.next=3,i["a"].commodityList({show:1,recommender:null,lang:t.lang,typeId:t.titleType,sortName:t.sortName,sortType:t.sortType,page:{current:t.pagerInfo.current,row:t.pagerInfo.row}});case 3:r=e.sent,r.code==u.StatusOK?(t.commodityList=r.data,null!=r.page?(t.pagerInfo.rowTotal=r.page.rowTotal,t.pagerInfo.pageTotal=r.page.pageTotal):t.pagerInfo.rowTotal=0,t.$pigeon.MessageOK(t.$i18n.t("Msg.SearchSuccess")),t.pictLoading=!1):(t.$pigeon.MessageError(r.msg),t.pictLoading=!1);case 5:case"end":return e.stop()}}),e)})))()},getPoint:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,i["a"].customBalance();case 2:r=e.sent,r.code==u.StatusOK?t.point=r.data:t.$pigeon.MessageError(r.msg);case 4:case"end":return e.stop()}}),e)})))()},handleSizeChange:function(t){this.pagerInfo.row=t,this.getCommdityInfo()},handleCurrentChange:function(t){this.pagerInfo.current=t,this.getCommdityInfo()}},mounted:function(){this.user=JSON.parse(this.Session.Get("user",!0)).customInfo.cId,this.titleType=Number(this.$route.query.type)?Number(this.$route.query.type):0,this.getPoint(),this.getTypeInfo()},watch:{titleType:function(){this.sortName=null,this.sortType=null,this.getCommdityInfo()}}},p=l,h=(r("bcde"),r("2877")),d=Object(h["a"])(p,n,a,!1,null,null,null);e["default"]=d.exports},7156:function(t,e,r){var n=r("861d"),a=r("d2bb");t.exports=function(t,e,r){var s,i;return a&&"function"==typeof(s=e.constructor)&&s!==r&&n(i=s.prototype)&&i!==r.prototype&&a(t,i),t}},a9e3:function(t,e,r){"use strict";var n=r("83ab"),a=r("da84"),s=r("94ca"),i=r("6eeb"),o=r("5135"),c=r("c6b6"),u=r("7156"),l=r("c04e"),p=r("d039"),h=r("7c73"),d=r("241c").f,m=r("06cf").f,f=r("9bf2").f,v=r("58a8").trim,g="Number",y=a[g],w=y.prototype,b=c(h(w))==g,x=function(t){var e,r,n,a,s,i,o,c,u=l(t,!1);if("string"==typeof u&&u.length>2)if(u=v(u),e=u.charCodeAt(0),43===e||45===e){if(r=u.charCodeAt(2),88===r||120===r)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:n=2,a=49;break;case 79:case 111:n=8,a=55;break;default:return+u}for(s=u.slice(2),i=s.length,o=0;o<i;o++)if(c=s.charCodeAt(o),c<48||c>a)return NaN;return parseInt(s,n)}return+u};if(s(g,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var k,I=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof I&&(b?p((function(){w.valueOf.call(r)})):c(r)!=g)?u(new y(x(e)),r,I):x(e)},S=n?d(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;S.length>C;C++)o(y,k=S[C])&&!o(I,k)&&f(I,k,m(y,k));I.prototype=w,w.constructor=I,i(a,g,I)}},bcde:function(t,e,r){"use strict";var n=r("3009"),a=r.n(n);a.a}}]);
|