|
|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesB/pages/activity/SeckillDetails/index"],{2932:function(t,e,r){"use strict";var s;r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return s}));var i=function(){var t=this,e=t.$createElement,r=(t._self._c,t.formatPrice(t.storeInfo.price,0)),s=t.formatPrice(t.storeInfo.price,1);t.$mp.data=Object.assign({},{$root:{m0:r,m1:s}})},o=[]},"2e00":function(t,e,r){"use strict";var s=r("9c12"),i=r.n(s);i.a},"4cb3":function(t,e,r){},"5d4d":function(t,e,r){"use strict";(function(t){r("0371");s(r("66fd"));var e=s(r("b594"));function s(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,r("543d")["createPage"])},"9c12":function(t,e,r){},b594:function(t,e,r){"use strict";r.r(e);var s=r("2932"),i=r("cd28");for(var o in i)"default"!==o&&function(t){r.d(e,t,(function(){return i[t]}))}(o);r("2e00"),r("c32d");var c,a=r("f0c5"),n=Object(a["a"])(i["default"],s["b"],s["c"],!1,null,"7dc1dd6a",null,!1,s["a"],c);e["default"]=n.exports},c32d:function(t,e,r){"use strict";var s=r("4cb3"),i=r.n(s);i.a},cd28:function(t,e,r){"use strict";r.r(e);var s=r("fc48"),i=r.n(s);for(var o in s)"default"!==o&&function(t){r.d(e,t,(function(){return s[t]}))}(o);e["default"]=i.a},fc48:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=r("8c03"),i=r("fc49"),o=(r("63e5"),r("6e63")),c=function(){r.e("components/ProductConSwiper").then(function(){return resolve(r("61db"))}.bind(null,r)).catch(r.oe)},a=function(){r.e("components/CountDown").then(function(){return resolve(r("7e6d"))}.bind(null,r)).catch(r.oe)},n=function(){r.e("components/ProductWindow").then(function(){return resolve(r("70c8"))}.bind(null,r)).catch(r.oe)},u=function(){r.e("components/StorePoster").then(function(){return resolve(r("39fd"))}.bind(null,r)).catch(r.oe)},l={name:"SeckillDetails",components:{ProductConSwiper:c,CountDown:a,ProductWindow:n,StorePoster:u},props:{},data:function(){return{seckillStatus:"",domStatus:!1,posterData:{image:"",title:"",price:"",code:""},posterImageStatus:!1,action:"",imgUrls:[],storeInfo:[],replyCount:0,reply:[],cartNum:1,attrTxt:"请选择",productValue:[],attrValue:"",attr:{cartAttr:!1,productAttr:[],productSelect:{}},datatime:0,userCollect:!1}},onShow:function(){this.mountedStart()},methods:{formatPrice:function(t,e){return console.log(t),t?t.split(".")[e]:""},onShareAppMessage:function(){return{title:this.storeInfo.title,imageUrl:this.storeInfo.image,path:"pages/activity/GoodsSeckill/index?id="+this.storeInfo.id+"&spread="+t.getStorageSync("uid")+"&pageType=good&codeType=routine",success:function(e){t.showToast({title:"分享成功"})},fail:function(e){t.showToast({title:"分享失败",icon:"none"})}}},openAlone:function(){this.$yrouter.push({path:"/pages/shop/GoodsCon/index",query:{id:this.storeInfo.productId}})},routerGo:function(t){this.$yrouter.push({path:"/pages/user/CustomerList/index"})},setCollect:function(){var t=this,e=t.storeInfo.id,r="product";t.userCollect?(0,o.getCollectDel)(e,r).then((function(){t.userCollect=!t.userCollect})):(0,o.getCollectAdd)(e,r).then((function(){t.userCollect=!t.userCollect}))},mountedStart:function(){var t=this;console.log(this);var e=t.$yroute.query.id;this.seckillStatus=t.$yroute.query.status,t.datatime=parseInt(t.$yroute.query.time),(0,s.getSeckillDetail)(e).then((function(e){t.userCollect=e.data.userCollect,e.data.storeInfo.description=e.data.storeInfo.description.replace(/\<img/gi,'<img style="max-width:100%;height:auto;"'),t.$set(t.attr,"productAttr",e.data.productAttr),t.$set(t,"productValue",e.data.productValue),t.$set(t,"storeInfo",e.data.storeInfo),t.$set(t,"imgUrls",e.data.storeInfo.sliderImageArr),t.$set(t,"replyCount",e.data.replyCount),t.$set(t,"reply",e.data.reply),t.posterData.image=t.storeInfo.image_base,t.updateTitle(),t.storeInfo.title.length>30?t.posterData.title=t.storeInfo.title.substring(0,30)+"...":t.posterData.title=t.storeInfo.title,t.posterData.price=t.storeInfo.price,t.posterData.code=t.storeInfo.code_base,t.domStatus=!0,t.
|