You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
40 KiB
1 line
40 KiB
10 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-goods_seckill_details-index"],{"04ba":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(i("ade3"));i("a9e3"),i("a4d3"),i("e01a"),i("ac1f"),i("5319"),i("14d9"),i("a434"),i("d401"),i("d3b7"),i("25f0"),i("c975");var s,n=i("26cb"),r=i("84d8"),c=i("2a39"),u=a(i("bffb")),d=a(i("fd5e")),l=a(i("6cd4")),h=a(i("ab5b")),p=a(i("138b")),v=a(i("80f6")),f=(i("4e39"),i("86eb")),g=i("d1ea"),b=a(i("19b6")),m=a(i("141a")),w=a(i("47fd")),x=a(i("3a6e")),_=i("5bb2"),y=i("00a0"),C=a(i("3d2e")),S=getApp(),A=uni.getSystemInfoSync().statusBarHeight+"px",k=(s={computed:(0,n.mapGetters)(["isLogin"]),mixins:[b.default,_.sharePoster],components:{productConSwiper:u.default,productWindow:l.default,userEvaluation:h.default,kefuIcon:p.default,menuIcon:m.default,countDown:v.default,cusPreviewImg:x.default,swiperPrevie:d.default,parser:w.default,homeList:C.default},data:function(){return{imgHost:y.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:A}}},(0,o.default)(s,"computed",(0,n.mapGetters)(["isLogin"])),(0,o.default)(s,"watch",{isLogin:{handler:function(t,e){t&&this.getSeckillDetail()},deep:!0}}),(0,o.default)(s,"onLoad",(function(t){var e=this,i=getCurrentPages();t.id&&(this.id=t.id,t.pid&&(S.globalData.spid=t.pid)),e.returnShow=1!==i.length,uni.getSystemInfo({success:function(t){e.height=t.windowHeight,t.statusBarHeight}}),e.navH=96,this.isLogin?this.getSeckillDetail():(0,f.toLogin)(),this.$nextTick((function(){}))})),(0,o.default)(s,"onNavigationBarButtonTap",(function(t){this.currentPage=!this.currentPage})),(0,o.default)(s,"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 history.back()},onLoadFun:function(t){this.isAuto&&(this.isAuto=!1,this.isShowAuth=!1,this.getSeckillDetail())},getSeckillDetail:function(){var t=this,e=this;(0,r.getSeckillDetail)(e.id,{}).then((function(i){t.dataShow=1,t.status=i.data.storeInfo.status;var a=i.data.storeInfo.title;for(var o in t.storeInfo=i.data.storeInfo,t.datatime=Number(i.data.storeInfo.last_time),t.imgUrls=i.data.storeInfo.images,t.storeInfo.description=t.storeInfo.description.replace(/<img/gi,'<img style="max-width:100%;height:auto;float:left;display:block" '),t.storeInfo.description=t.storeInfo.description.replace(/<video/gi,'<video style="width:100%;height:300px;display:block" '),e.$set(e.attribute,"productAttr",i.data.productAttr),t.productValue=i.data.productValue,t.attribute.productSelect.num=i.data.storeInfo.num,t.attribute.productSelect.once_num=i.data.storeInfo.once_num,t.replyCount=i.data.replyCount,t.reply=i.data.reply?[i.data.reply]:[],t.replyChance=i.data.replyChance,e.routineContact=Number(i.data.routine_contact_type),uni.setNavigationBarTitle({title:a.substring(0,7)+"..."}),i.data.productValue){var s=i.data.productValue[o];e.skuArr.push(s)}t.$set(t,"selectSku",e.skuArr[0]);var n=[e.$t("商品"),e.$t("详情")];i.data.replyCount&&n.splice(1,0,
|