shop-detail.95b28c23.js 22 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["shop-detail"],{"0ffe":function(t,e,s){"use strict";var a=s("c7eb"),i=s("1da1"),n=s("d4ec"),r=s("bee2"),o=s("8f33"),c=s("262e"),d=s("ff2d"),l=s("bc3a"),u=s.n(l),p=s("f121"),m=s.n(p),h=function(t){function e(){var t;return Object(n["a"])(this,e),t=Object(o["a"])(this,e),u.a.defaults.baseURL=m.a.HostShop,t}return Object(c["a"])(e,t),Object(r["a"])(e,[{key:"getShopToken",value:function(){var t=Object(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("Host80","/shop/custom/info/loginByCId",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/custom/balance",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/custom/integral/search/list",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/commodity/type/search/list",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/commodity/search/list",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/commodity/search/single",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/order/add",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/order/update",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/order/cancel",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/order/complete",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/order/search/list",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/order/search/single",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/custom/address/add",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/custom/address/delete",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/custom/address/update",e);case 3:return s=t.sent,t.abrupt("return",s);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(i["a"])(Object(a["a"])().mark((function t(){var e,s,i=arguments;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=i.length>0&&void 0!==i[0]?i[0]:{},t.next=3,this.postAll("HostShop","/custom/address/search/list",e);case 3:return s=t.sent,t.abrupt("return",s);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()}])}(d["a"]);e["a"]=new h},5967:function(t,e,s){"use strict";s("b378")},b378:function(t,e,s){},ee2f:function(t,e,s){"use strict";s.r(e);s("b0c0");var a=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],attrs:{id:"ShopListDetail","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[e("div",{staticClass:"promotion-box"},[e("div",{staticClass:"container"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"promotion-box-white mt-2"},[e("span",{staticClass:"point"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Global.Points",expression:"'Shop.Global.Points'"}]}),t._v(": "+t._s(t._f("NumberFormat1")(t.point))+" ")])])])])])]),e("div",{staticClass:"main-content"},[e("el-row",{staticClass:"recommend"},[e("el-col",{staticClass:"left",attrs:{span:24}},[e("div",{staticClass:"section"},[e("div",{staticClass:"head"},[e("i",{staticClass:"el-icon-menu"}),e("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Index.ProductClassification",expression:"'Shop.Index.ProductClassification'"}]})]),e("div",{staticClass:"body"},t._l(t.typeList,(function(s){return e("div",{key:s.id,staticClass:"item",on:{click:function(e){return t.toList(s.id)}}},[e("i",{staticClass:"iconfont",class:[s.icon?s.icon:"iconzuanshi"]}),e("span",{staticClass:"text"},[t._v(t._s(-1!=["cn","zhHant"].indexOf(t.Session.Get("lang"))?s.name:s.nameEn))]),e("i",{staticClass:"i-right el-icon-arrow-right"})])})),0)])]),e("el-col",{staticClass:"right",attrs:{span:24}},[e("div",{staticClass:"section"},[e("div",{staticClass:"title",attrs:{"data-txt":t.titleName}}),e("div",{staticClass:"body"},[e("el-row",{staticClass:"section",staticStyle:{width:"100%"}},[e("el-col",{staticClass:"left",attrs:{span:24}},[e("el-image",{staticClass:"img",attrs:{src:t.imgUrl,"preview-src-list":t.imgUrlList}}),e("el-carousel",{attrs:{interval:0,type:"card","indicator-position":"none",autoplay:!1,arrow:"always",height:"50px"}},t._l(t.commodityOptions,(function(s){return e("el-carousel-item",{key:s.id,nativeOn:{click:function(e){return t.switchImg(s.path)}}},[e("div",{staticClass:"medium",staticStyle:{height:"100%",margin:"auto",display:"block"}},[e("img",{staticStyle:{height:"100%",margin:"auto",display:"block"},attrs:{src:t.url+s.path,alt:""}})])])})),1)],1),e("el-col",{staticClass:"right",attrs:{span:24}},[e("div",{staticClass:"g-title"},[t._v(t._s(t.productsName))]),e("div",{staticClass:"point"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Index.PointsExchanged",expression:"'Shop.Index.PointsExchanged'"}]}),e("span",{staticClass:"color"},[t._v(t._s(t._f("NumberFormat")(t.productsIntegral)))])]),t.commodityList.commodityOptions&&t.commodityList.commodityOptions.length?e("div",{staticClass:"switchProducts"},[e("div",{staticStyle:{width:"100%","margin-bottom":"10px"}},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Label.item1",expression:"'Label.item1'"}]}),t._v(":")]),t._l(t.commodityList.commodityOptions,(function(s){return e("div",{key:s.id,staticClass:"products",class:{active:t.commodityOptionId==s.id},on:{click:function(e){return t.switchProducts(s)}}},[e("img",{attrs:{src:t.isBanner(s.files),alt:""}}),e("div",{staticClass:"conTitle"},[t._v(" "+t._s(s.name)+" ")])])}))],2):t._e(),t.commodityList.queueName?t._e():e("div",{staticClass:"addr"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Index.To",expression:"'Shop.Index.To'"}],staticClass:"txt"}),e("el-select",{staticClass:"select",attrs:{placeholder:t.$t("placeholder.choose")},model:{value:t.addressId,callback:function(e){t.addressId=e},expression:"addressId"}},t._l(t.addressList,(function(s){return e("el-option",{key:s.id,attrs:{label:s.address,value:s.id},nativeOn:{click:function(e){return t.selectAddress(s)}}},[e("span",{staticStyle:{float:"left"}},[t._v(t._s(s.address))]),e("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(s.name))])])})),1)],1),t.commodityList.queueName?t._e():e("div",{staticClass:"addr addr1"},[e("div",{staticClass:"add-btn",on:{click:t.openAddBankCard}},[t._v(" + "),e("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Address.AddAddress",expression:"'Shop.Address.AddAddress'"}]})])]),e("div",{staticClass:"addr"},[e("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Index.Remark",expression:"'Shop.Index.Remark'"}],staticClass:"txt"}),e("el-input",{staticClass:"select",attrs:{type:"textarea",rows:2},model:{value:t.remark,callback:function(e){t.remark=e},expression:"remark"}})],1),e("div",{staticClass:"submit"},[e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Shop.Index.RedeemNow",expression:"'Shop.Index.RedeemNow'"}],staticClass:"sub-btn",attrs:{type:t.orderType},on:{click:t.openoOrderAdd}})],1)])],1)],1),e("div",{staticClass:"introduction"},[e("el-tabs",{model:{value:t.tab,callback:function(e){t.tab=e},expression:"tab"}},[e("el-tab-pane",{attrs:{label:t.$t("Shop.Index.ProductIntroduction"),name:"introduce"}},[e("div",{staticClass:"content detail-con-img",staticStyle:{overflow:"auto"},domProps:{innerHTML:t._s(t.commodityList.content)}})]),e("el-tab-pane",{attrs:{label:t.$t("Shop.Index.AfterSaleGuarantee"),name:"safety"}},[e("div",{staticClass:"content"},[e("div",{staticClass:"AfterSales"},[e("div",{staticClass:"item"},[e("i",{staticClass:"iconfont iconanquan"}),e("div",{staticClass:"com"},[e("p",{directives:[{name:"t",rawName:"v-t",value:"Shop.Sales.Item1",expression:"'Shop.Sales.Item1'"}],staticClass:"tit"}),e("p",{directives:[{name:"t",rawName:"v-t",value:"Shop.Sales.Item11",expression:"'Shop.Sales.Item11'"}],staticClass:"con"}),e("p",{directives:[{name:"t",rawName:"v-t",value:"Shop.Sales.Item12",expression:"'Shop.Sales.Item12'"}],staticClass:"con"})])]),e("div",{staticClass:"item"},[e("i",{staticClass:"iconfont iconanquan"}),e("div",{staticClass:"com"},[e("p",{directives:[{name:"t",rawName:"v-t",value:"Shop.Sales.Item2",expression:"'Shop.Sales.Item2'"}],staticClass:"tit"}),e("p",{directives:[{name:"t",rawName:"v-t",value:"Shop.Sales.Item21",expression:"'Shop.Sales.Item21'"}],staticClass:"con"})])]),e("div",{staticClass:"item"},[e("i",{staticClass:"iconfont iconanquan"}),e("div",{staticClass:"com"},[e("p",{directives:[{name:"t",rawName:"v-t",value:"Shop.Sales.Item3",expression:"'Shop.Sales.Item3'"}],staticClass:"tit"}),e("p",{directives:[{name:"t",rawName:"v-t",value:"Shop.Sales.Item31",expression:"'Shop.Sales.Item31'"}],staticClass:"con"}),e("p",{directives:[{name:"t",rawName:"v-t",value:"Shop.Sales.Item32",expression:"'Shop.Sales.Item32'"}],staticClass:"con"}),e("p",{directives:[{name:"t",rawName:"v-t",value:"Shop.Sales.Item5",expression:"'Shop.Sales.Item5'"}],staticClass:"con"})])])]),e("div",{staticClass:"AfterSales"},[e("div",{staticClass:"item1"},[e("p",{directives:[{name:"t",rawName:"v-t",value:"Shop.Sales.Item4",expression:"'Shop.Sales.Item4'"}],staticClass:"tit"}),e("p",{directives:[{name:"t",rawName:"v-t",value:"Shop.Sales.Item41",expression:"'Shop.Sales.Item41'"}],staticClass:"con"}),e("p",{directives:[{name:"t",rawName:"v-t",value:"Shop.Sales.Item42",expression:"'Shop.Sales.Item42'"}],staticClass:"con"})])])])])],1)],1)])])],1)],1),e("el-dialog",{attrs:{visible:t.dialogOrderAdd,center:"",title:t.$t("Shop.Index.RedeemNow"),"custom-class":"dialog_header_w dialog_header_blue"},on:{"update:visible":function(e){t.dialogOrderAdd=e}}},[e("div",{staticClass:"dia-content"},[e("div",{staticClass:"content",staticStyle:{"font-size":"14px","text-align":"left"}},[e("el-form",{ref:"dialogOrderAddInfo",attrs:{model:t.dialogOrderAddInfo}},[e("el-row",[e("el-col",{staticClass:"col-l",attrs:{span:24,xs:24,sm:24,md:24,lg:24}},[e("div",{staticClass:"fllow-content"},[e("div",{staticClass:"tit"},[e("span",{directives:[{name:"t",rawName:"v-t",value:t.$t("Shop.Address.Consignee"),expression:"$t('Shop.Address.Consignee')"}]})]),e("div",{staticClass:"con"},[t._v(t._s(t.dialogOrderAddInfo.name||"--"))])]),e("div",{staticClass:"fllow-content"},[e("div",{staticClass:"tit"},[e("span",{directives:[{name:"t",rawName:"v-t",value:t.$t("Shop.Address.MobilePhone"),expression:"$t('Shop.Address.MobilePhone')"}]})]),e("div",{staticClass:"con"},[t._v(t._s(t.dialogOrderAddInfo.contact||"--"))])]),e("div",{staticClass:"fllow-content"},[e("div",{staticClass:"tit"},[e("span",{directives:[{name:"t",rawName:"v-t",value:t.$t("Shop.Address.DetailedAddress"),expression:"$t('Shop.Address.DetailedAddress')"}]}),t._v(":")]),e("div",{staticClass:"con"},[t._v(t._s(t.dialogOrderAddInfo.address||"--"))])])])],1)],1),e("div",{staticClass:"dialog-footer",staticStyle:{display:"flex","justify-content":"center"},attrs:{slot:"footer"},slot:"footer"},[e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Shop.Order.ConfirmationExchange",expression:"'Shop.Order.ConfirmationExchange'"}],attrs:{type:"primary"},on:{click:t.orderAdd}}),e("el-button",{directives:[{name:"t",rawName:"v-t",value:"Shop.Order.ModifyInformation",expression:"'Shop.Order.ModifyInformation'"}],on:{click:t.toSetDress}})],1)],1)])])],1)},i=[],n=s("c7eb"),r=s("1da1"),o=(s("4de4"),s("14d9"),s("a9e3"),s("b64b"),s("d3b7"),s("0643"),s("2382"),s("4e3e"),s("159b"),s("0ffe")),c=s("f121"),d=s.n(c),l=d.a.Code,u={name:"ShopList",components:{},data:function(){return{pictLoading:!1,user:"--",point:"--",tab:"introduce",imgUrl:"",imgUrlList:[],addressId:"",remark:"",color:"",cities:["asd","sdd"],mock_colors:["红色","黑色","蓝色","紫色"],titleName:"",titleType:null,titleId:null,commodityOptionId:null,commodityOptions:[],productsName:"",productsIntegral:"",typeList:[],commodityList:[],addressList:[],url:d.a.HostShopImg,orderType:"info",dialogInfoTradingAdd:!1,dialogOrderAdd:!1,dialogOrderAddInfo:{},pagerInfo:{row:100,current:1,pageTotal:0,rowTotal:0}}},computed:{lang:function(){return this.Session.Get("lang")}},methods:{toBank:function(){this.$router.push({path:"/shop/list",query:{type:this.titleType}}).catch((function(t){return t}))},handleType:function(t){var e=this;this.typeList.forEach((function(s){s.id==t&&(e.titleName=-1!=["cn","zhHant"].indexOf(e.Session.Get("lang"))?s.name:s.nameEn)}))},toList:function(t){this.$router.push({path:"/shop/list",query:{type:t}}).catch((function(t){return t}))},switchImg:function(t){this.imgUrl=this.url+t},openAddBankCard:function(){this.$router.push({path:"/shop/address/add"}).catch((function(t){return t}))},selectAddress:function(t){this.dialogOrderAddInfo=t},openoOrderAdd:function(){"info"!=this.orderType?this.addressId||this.commodityList.queueName?this.commodityList.commodityOptions&&this.commodityList.commodityOptions.length&&!this.commodityOptionId?this.$pigeon.MessageWarning(this.$i18n.t("Label.item2")):this.dialogOrderAdd=!0:this.$pigeon.MessageWarning(this.$i18n.t("Shop.Index.SelectDaaress")):this.$pigeon.MessageWarning(this.$i18n.t("Shop.Index.InsufficientPoints"))},orderAdd:function(){var t=this;return Object(r["a"])(Object(n["a"])().mark((function e(){var s;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.dialogOrderAdd=!1,t.pictLoading=!0,e.next=4,o["a"].orderAdd({commodityOptionId:t.commodityOptionId||null,commodityId:t.titleId,addressId:t.addressId||null,remark:t.remark,number:1});case 4:s=e.sent,s.code==l.StatusOK?(t.addressId=null,t.remark="",t.$pigeon.MessageOK(s.msg),t.getPoint()):t.$pigeon.MessageError(s.msg),t.pictLoading=!1;case 7:case"end":return e.stop()}}),e)})))()},toSetDress:function(){this.dialogOrderAdd=!1,this.$router.push({path:"/shop/address"}).catch((function(t){return t})),this.$store.commit("isActiveTab","3")},getTypeInfo:function(){var t=this;return Object(r["a"])(Object(n["a"])().mark((function e(){var s;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o["a"].commodityTypeList();case 2:s=e.sent,s.code==l.StatusOK?(t.typeList=s.data,t.handleType(t.titleType)):t.$pigeon.MessageError(s.msg);case 4:case"end":return e.stop()}}),e)})))()},getCommdityInfo:function(){var t=this;return Object(r["a"])(Object(n["a"])().mark((function e(){var s;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.pictLoading=!0,e.next=3,o["a"].commoditySingle({id:t.titleId});case 3:s=e.sent,s.code==l.StatusOK?(t.commodityList=s.data,t.imgUrlList=[],s.data.files.forEach((function(e){e.banner&&(t.imgUrl=t.url+e.path),t.imgUrlList.push(t.url+e.path)})),t.orderType=Number(t.point)>Number(s.data.integral)?"primary":"info",t.commodityOptions=t.commodityList.files,t.productsName=t.commodityList.name,t.productsIntegral=t.commodityList.integral,t.pictLoading=!1):(t.$pigeon.MessageError(s.msg),t.pictLoading=!1);case 5:case"end":return e.stop()}}),e)})))()},switchProducts:function(t){var e=this;if(this.commodityOptionId==t.id)return this.commodityOptionId=null,this.commodityList.files.forEach((function(t){t.banner&&(e.imgUrl=e.url+t.path),e.imgUrlList.push(e.url+t.path)})),this.commodityOptions=this.commodityList.files,this.productsName=this.commodityList.name,this.productsIntegral=this.commodityList.integral,void this.$forceUpdate();this.commodityOptionId=t.id,t.files.forEach((function(t){t.banner&&(e.imgUrl=e.url+t.path),e.imgUrlList.push(e.url+t.path)})),this.commodityOptions=t.files,this.productsName=t.name,this.productsIntegral=t.integral,this.$forceUpdate()},isBanner:function(t){var e=t.filter((function(t){return t.banner}))[0].path||"";return this.url+e},getAddressList:function(){var t=this;return Object(r["a"])(Object(n["a"])().mark((function e(){var s;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o["a"].addressList({page:{current:t.pagerInfo.current,row:t.pagerInfo.row}});case 2:s=e.sent,s.code==l.StatusOK?t.addressList=s.data:t.$pigeon.MessageError(s.msg);case 4:case"end":return e.stop()}}),e)})))()},getPoint:function(){var t=this;return Object(r["a"])(Object(n["a"])().mark((function e(){var s;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o["a"].customBalance();case 2:s=e.sent,s.code==l.StatusOK?(t.point=s.data,t.getCommdityInfo()):t.$pigeon.MessageError(s.msg);case 4:case"end":return e.stop()}}),e)})))()}},mounted:function(){this.user=JSON.parse(this.Session.Get("user",!0)).customInfo.cId,this.titleType=Number(this.$route.query.type),this.titleId=Number(this.$route.query.id),this.getPoint(),this.getTypeInfo(),this.getAddressList()}},p=u,m=(s("5967"),s("2877")),h=Object(m["a"])(p,a,i,!1,null,null,null);e["default"]=h.exports}}]);