(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/goods_seckill_details/index"],{"06f7":function(t,e,i){"use strict";var s=i("0a9c"),o=i.n(s);o.a},"0a9c":function(t,e,i){},"85a0":function(t,e,i){"use strict";(function(t,s){var o=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,u=o(i("7ca3")),n=i("8f59"),a=i("d1dc"),c=i("c302"),h=(i("2e42"),i("d7f8")),l=i("a05e"),d=o(i("0cf0")),p=i("a4a4"),f=i("9ad6"),m=getApp(),g=t.getSystemInfoSync().statusBarHeight+"px",$=(r={computed:(0,n.mapGetters)(["isLogin"]),mixins:[d.default,p.sharePoster],components:{productConSwiper:function(){i.e("components/productConSwiper/index").then(function(){return resolve(i("0019"))}.bind(null,i)).catch(i.oe)},productWindow:function(){i.e("components/productWindow/index").then(function(){return resolve(i("1b6b"))}.bind(null,i)).catch(i.oe)},userEvaluation:function(){i.e("components/userEvaluation/index").then(function(){return resolve(i("c1fd"))}.bind(null,i)).catch(i.oe)},kefuIcon:function(){Promise.all([i.e("common/vendor"),i.e("components/kefuIcon/index")]).then(function(){return resolve(i("4063"))}.bind(null,i)).catch(i.oe)},menuIcon:function(){i.e("components/menuIcon").then(function(){return resolve(i("6458"))}.bind(null,i)).catch(i.oe)},countDown:function(){i.e("components/countDown/index").then(function(){return resolve(i("0ac8"))}.bind(null,i)).catch(i.oe)},cusPreviewImg:function(){i.e("components/cusPreviewImg/index").then(function(){return resolve(i("a26b"))}.bind(null,i)).catch(i.oe)},swiperPrevie:function(){i.e("components/cusPreviewImg/swiperPrevie").then(function(){return resolve(i("38a3"))}.bind(null,i)).catch(i.oe)},parser:function(){Promise.all([i.e("common/vendor"),i.e("components/jyf-parser/jyf-parser")]).then(function(){return resolve(i("798d"))}.bind(null,i)).catch(i.oe)},homeList:function(){i.e("components/homeList/index").then(function(){return resolve(i("f4fc"))}.bind(null,i)).catch(i.oe)},authorize:function(){i.e("components/Authorize").then(function(){return resolve(i("636c"))}.bind(null,i)).catch(i.oe)}},data:function(){return{imgHost:f.HTTP_REQUEST_URL,showMenuIcon:!1,dataShow:0,id:0,time:0,countDownHour:"00",countDownMinute:"00",countDownSecond:"00",storeInfo:[],imgUrls:[],parameter:{navbar:"1",return:"1",title:this.$t("抢购详情页"),color:!1},attribute:{cartAttr:!1,productAttr:[],productSelect:{}},productValue:[],isOpen:!1,attr:this.$t("请选择"),attrValue:"",status:1,isAuto:!1,isShowAuth:!1,iShidden:!1,limitNum:1,iSplus:!1,replyCount:0,reply:[],replyChance:0,navH:"",navList:[this.$t("商品"),this.$t("评价"),this.$t("详情")],opacity:0,scrollY:0,topArr:[],toView:"",height:0,heightArr:[],lock:!1,scrollTop:0,tagStyle:{img:"width:100%;display:block;",table:"width:100%",video:"width:100%"},datatime:0,navActive:0,meunHeight:0,backH:"",posters:!1,weixinStatus:!1,posterImageStatus:!1,canvasStatus:!1,storeImage:"",PromotionCode:"",posterImage:"",posterbackgd:"/static/images/posterbackgd.png",actionSheetHidden:!1,cart_num:"",homeTop:20,returnShow:!0,H5ShareBox:!1,routineContact:0,skuArr:[],selectSku:{},currentPage:!1,sysHeight:g,time_id:0}}},(0,u.default)(r,"computed",(0,n.mapGetters)(["isLogin"])),(0,u.default)(r,"watch",{isLogin:{handler:function(t,e){t&&this.getSeckillDetail()},deep:!0}}),(0,u.default)(r,"onLoad",(function(e){var i=this,s=this,o=getCurrentPages();e.id&&(this.id=e.id,e.pid&&(m.globalData.spid=e.pid),e.time_id&&(this.time_id=e.time_id)),s.returnShow=1!==o.length,t.getSystemInfo({success:function(t){s.height=t.windowHeight,t.statusBarHeight}}),this.navH=m.globalData.navHeight;var r=t.getMenuButtonBoundingClientRect();if(this.meunHeight=r.height,this.backH=s.navH/2+this.meunHeight/2,e.scene){var u=this.$util.getUrlParams(decodeURIComponent(e.scene));if(!u.id)return this.$util.Tips({title:this.$t("缺少参数无法查看商品")},{tab:3,url:1});this.id=u.id,u.pid&&(m.globalData.spid=u.pid),u.time_id&&(this.time_id=u.time_id)}this.isLogin?this.getSeckillDetail():(0,h.toLogin)(),this.$nextTick((function(){var e=t.getMenuButtonBoundingClientRect(),s=t.createSelectorQuery().in(i);s.select("#home").boundingClientRect((function(t){i.homeTop=2*e.top+e.height-t.height})).exec()}))})),(0,u.default)(r,"onNavigationBarButtonTap",(function(t){this.currentPage=!this.currentPage})),(0,u.default)(r,"methods",{moreNav:function(){this.currentPage=!this.currentPage},iptCartNum:function(t){this.$set(this.attribute.productSelect,"cart_num",t),this.$set(this,"cart_num",t)},returns:function(){return t.navigateBack({delta:1})},onLoadFun:function(t){this.isAuto&&(this.isAuto=!1,this.isShowAuth=!1,this.getSeckillDetail())},getSeckillDetail:function(){var e=this,i=this;(0,a.getSeckillDetail)(i.id,{time_id:this.time_id}).then((function(s){e.dataShow=1,e.status=s.data.storeInfo.status;var o=s.data.storeInfo.title;for(var r in e.storeInfo=s.data.storeInfo,e.datatime=Number(s.data.storeInfo.last_time),e.imgUrls=s.data.storeInfo.images,e.storeInfo.description=e.storeInfo.description.replace(/0){e=this.attribute.productAttr.length?i.split(","):[];break}for(var s=0;s=a&&(this.$set(this.attribute.productSelect,"cart_num",a||1),this.$set(this,"cart_num",a||1)),this.$set(this,"cart_num",o.cart_num),this.$set(this.attribute.productSelect,"cart_num",o.cart_num)}else o.cart_num--,o.cart_num<1&&(this.$set(this.attribute.productSelect,"cart_num",1),this.$set(this,"cart_num",1)),this.$set(this,"cart_num",o.cart_num),this.$set(this.attribute.productSelect,"cart_num",o.cart_num)}},attrVal:function(t){this.attribute.productAttr[t.indexw].index=this.attribute.productAttr[t.indexw].attr_values[t.indexn]},ChangeAttr:function(t){this.$set(this,"cart_num",1);var e=this.productValue[t];this.$set(this,"selectSku",e),e?(this.$set(this.attribute.productSelect,"image",e.image),this.$set(this.attribute.productSelect,"price",e.price),this.$set(this.attribute.productSelect,"stock",e.stock),this.$set(this.attribute.productSelect,"unique",e.unique),this.$set(this.attribute.productSelect,"cart_num",1),this.$set(this.attribute.productSelect,"quota",e.quota),this.$set(this.attribute.productSelect,"quota_show",e.quota_show),this.$set(this,"attrValue",t),this.attrTxt=this.$t("已选择")):(this.$set(this.attribute.productSelect,"image",this.storeInfo.image),this.$set(this.attribute.productSelect,"price",this.storeInfo.price),this.$set(this.attribute.productSelect,"stock",0),this.$set(this.attribute.productSelect,"unique",""),this.$set(this.attribute.productSelect,"cart_num",0),this.$set(this.attribute.productSelect,"quota",0),this.$set(this.attribute.productSelect,"quota_show",0),this.$set(this,"attrValue",""),this.attrTxt=this.$t("已选择"))},scroll:function(t){var e=t.detail.scrollTop,i=e/200;if(i=i>1?1:i,this.opacity=i,this.scrollY=e,this.currentPage=!1,this.$set(this,"showMenuIcon",!1),this.lock)this.lock=!1;else for(var s=0;s0?this.topArr[e]-m.globalData.navHeight/2:this.topArr[e]},infoScroll:function(){for(var t=this,e=[],i=[],o=0;o-1?t:t.replace("http://","https://")},goFriend:function(){this.posters=!1},savePosterPath:function(){var e=this;t.getSetting({success:function(i){i.authSetting["scope.writePhotosAlbum"]?t.saveImageToPhotosAlbum({filePath:e.posterImage,success:function(t){e.posterImageClose(),e.$util.Tips({title:e.$t("保存成功"),icon:"success"})},fail:function(t){e.$util.Tips({title:e.$t("保存失败")})}}):t.authorize({scope:"scope.writePhotosAlbum",success:function(){t.saveImageToPhotosAlbum({filePath:e.posterImage,success:function(t){e.posterImageClose(),e.$util.Tips({title:e.$t("保存成功"),icon:"success"})},fail:function(t){e.$util.Tips({title:e.$t("保存失败")})}})}})}})},setShareInfoStatus:function(){var t=this,e=this.storeInfo,i=location.href;this.$wechat.isWeixin()&&(this.posters=!0,(0,l.getUserInfo)().then((function(s){i=-1===i.indexOf("?")?i+"?spread="+s.data.uid:i+"&spread="+s.data.uid;var o={desc:e.store_info,title:e.store_name,link:i,imgUrl:e.image};t.$wechat.wechatEvevt(["updateAppMessageShareData","updateTimelineShareData"],o)})))},showImg:function(t){this.$refs.cusPreviewImg.open(this.selectSku.suk)},changeSwitch:function(t){var e=this.skuArr[t];this.$set(this,"selectSku",e);var i=e.suk.split(",");this.$set(this.attribute.productAttr[0],"index",i[0]),2==i.length?(this.$set(this.attribute.productAttr[0],"index",i[0]),this.$set(this.attribute.productAttr[1],"index",i[1])):3==i.length?(this.$set(this.attribute.productAttr[0],"index",i[0]),this.$set(this.attribute.productAttr[1],"index",i[1]),this.$set(this.attribute.productAttr[2],"index",i[2])):4==i.length&&(this.$set(this.attribute.productAttr[0],"index",i[0]),this.$set(this.attribute.productAttr[1],"index",i[1]),this.$set(this.attribute.productAttr[2],"index",i[2]),this.$set(this.attribute.productAttr[3],"index",i[3])),e&&(this.$set(this.attribute.productSelect,"image",e.image),this.$set(this.attribute.productSelect,"price",e.price),this.$set(this.attribute.productSelect,"stock",e.stock),this.$set(this.attribute.productSelect,"unique",e.id),this.$set(this.attribute.productSelect,"vipPrice",e.vipPrice),this.$set(this,"attrTxt",this.$t("已选择")),this.$set(this,"attrValue",e.suk))},showSwiperImg:function(t){this.$refs.cusSwiperImg.open(t)}}),(0,u.default)(r,"onShareAppMessage",(function(){return{title:this.storeInfo.title,path:"/pages/activity/goods_seckill_details/index?id="+this.id+"&spid="+this.$store.state.app.uid+"&time_id="+this.time_id,imageUrl:this.storeInfo.image}})),r);e.default=$}).call(this,i("df3c")["default"],i("3223")["default"])},a791:function(t,e,i){"use strict";(function(t,e){var s=i("47a9");i("2ea2");s(i("3240"));var o=s(i("d74d"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(o.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},d74d:function(t,e,i){"use strict";i.r(e);var s=i("d78d"),o=i("e7d5");for(var r in o)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(r);i("06f7");var u=i("828b"),n=Object(u["a"])(o["default"],s["b"],s["c"],!1,null,null,null,!1,s["a"],void 0);e["default"]=n.exports},d78d:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var s=function(){var t=this,e=t.$createElement,i=(t._self._c,t.$t("¥")),s=t.attribute.productAttr.length&&(t.attribute.productAttr.length?t.attribute.productAttr[0].attr_values.length:0)>1,o=s?t.$t("起"):null,r=t.$t("¥"),u=1==t.status?t.$t("距秒杀结束仅剩"):null,n=t.$t("累计销售"),a=t.$t(t.storeInfo.unit_name)||"",c=t.$t("限量剩余"),h=t.$t(t.storeInfo.unit_name)||"",l=t.attribute.productAttr.length,d=l?t.skuArr.length:null,p=l&&d>1?t.skuArr.slice(0,4):null,f=l&&d>1?t.$t("共"):null,m=l&&d>1?t.skuArr.length:null,g=l&&d>1?t.$t("种规格可选"):null,$=t.replyCount?t.$t("用户评价"):null,b=t.replyCount?t.$t("好评率"):null,S=t.$t("产品介绍"),_=t.$t("首页"),v=t.$t("收藏"),I=1==t.status&&t.attribute.productSelect.quota>0&&t.attribute.productSelect.product_stock>0&&t.storeInfo.product_is_show?t.$t("单独购买"):null,w=1==t.status&&t.attribute.productSelect.quota>0&&t.attribute.productSelect.product_stock>0?t.$t("立即购买"):null,A=(1==t.status&&t.attribute.productSelect.quota<=0||3==t.status&&t.attribute.productSelect.quota<=0||1==t.status&&t.attribute.productSelect.product_stock<=0||3==t.status&&t.attribute.productSelect.product_stock<=0)&&t.storeInfo.product_is_show?t.$t("单独购买"):null,k=1==t.status&&t.attribute.productSelect.quota<=0||3==t.status&&t.attribute.productSelect.quota<=0||1==t.status&&t.attribute.productSelect.product_stock<=0||3==t.status&&t.attribute.productSelect.product_stock<=0?t.$t("已售罄"):null,x=!t.dataShow&&1==t.status&&t.storeInfo.product_is_show?t.$t("单独购买"):null,C=t.dataShow||1!=t.status?null:t.$t("立即购买"),P=2==t.status&&t.storeInfo.product_is_show?t.$t("单独购买"):null,y=2==t.status?t.$t("未开始"):null,q=0==t.status&&t.storeInfo.product_is_show?t.$t("单独购买"):null,T=0==t.status?t.$t("已结束"):null,D=t.$t("发送给朋友"),V=t.$t("生成海报"),H=t.posterImageStatus?t.$t("保存到手机"):null;t._isMounted||(t.e0=function(e){t.H5ShareBox=!1}),t.$mp.data=Object.assign({},{$root:{m0:i,g0:s,m1:o,m2:r,m3:u,m4:n,m5:a,m6:c,m7:h,g1:l,g2:d,l0:p,m8:f,g3:m,m9:g,m10:$,m11:b,m12:S,m13:_,m14:v,m15:I,m16:w,m17:A,m18:k,m19:x,m20:C,m21:P,m22:y,m23:q,m24:T,m25:D,m26:V,m27:H}})},o=[]},e7d5:function(t,e,i){"use strict";i.r(e);var s=i("85a0"),o=i.n(s);for(var r in s)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(r);e["default"]=o.a}},[["a791","common/runtime","common/vendor"]]]);