require('./common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/points_mall/integral_goods_details"],{1369:function(t,e,i){"use strict";(function(t,e){var r=i("47a9");i("2ea2");r(i("3240"));var s=r(i("ffb8"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(s.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"1e4f":function(t,e,i){"use strict";var r=i("a225"),s=i.n(r);s.a},"43db":function(t,e,i){"use strict";(function(t){var r=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s,u=r(i("7ca3")),o=i("8f59"),n=i("d1dc"),a=(i("2e42"),i("d7f8")),c=(i("a05e"),r(i("0cf0"))),h=getApp(),l=t.getSystemInfoSync().statusBarHeight+"px",d=(s={computed:(0,o.mapGetters)(["isLogin"]),mixins:[c.default],data:function(){return{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("详情")],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:"",navActive:0,meunHeight:0,backH:"",posters:!1,weixinStatus:!1,posterImageStatus:!1,storeImage:"",PromotionCode:"",posterImage:"",actionSheetHidden:!1,cart_num:1,homeTop:20,returnShow:!0,H5ShareBox:!1,routineContact:0,skuArr:[],selectSku:{},currentPage:!1,sysHeight:l}},components:{productConSwiper:function(){i.e("components/productConSwiper/index").then(function(){return resolve(i("0019"))}.bind(null,i)).catch(i.oe)},productWindow:function(){i.e("pages/points_mall/component/productWindow").then(function(){return resolve(i("6bb2"))}.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)},"jyf-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)},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)},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)}}},(0,u.default)(s,"computed",(0,o.mapGetters)(["isLogin"])),(0,u.default)(s,"watch",{isLogin:{handler:function(t,e){t&&this.getIntegralProductDetail()},deep:!0}}),(0,u.default)(s,"onLoad",(function(e){var i=this,r=this,s=getCurrentPages();r.returnShow=1!==s.length,t.getSystemInfo({success:function(t){r.height=t.windowHeight,t.statusBarHeight}}),this.navH=h.globalData.navHeight;var u=t.getMenuButtonBoundingClientRect();if(this.meunHeight=u.height,this.backH=r.navH/2+this.meunHeight/2,e.scene){var o=this.$util.getUrlParams(decodeURIComponent(e.scene));if(!o.id)return this.$util.Tips({title:this.$t("缺少参数无法查看商品")},{tab:3,url:1});this.id=o.id,o.pid&&(h.globalData.spid=o.pid),o.time&&(this.datatime=o.time)}e.id&&(this.id=e.id,this.datatime=Number(e.time),this.status=e.status),this.isLogin?this.getIntegralProductDetail():(0,a.toLogin)(),this.$nextTick((function(){var e=t.getMenuButtonBoundingClientRect(),r=t.createSelectorQuery().in(i);r.select("#home").boundingClientRect((function(t){i.homeTop=2*e.top+e.height-t.height})).exec()}))})),(0,u.default)(s,"onNavigationBarButtonTap",(function(t){this.currentPage=!this.currentPage})),(0,u.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 t.navigateBack({delta:1})},onLoadFun:function(t){this.isAuto&&(this.isAuto=!1,this.isShowAuth=!1,this.getIntegralProductDetail())},getIntegralProductDetail:function(){var e=this,i=this;(0,n.getIntegralProductDetail)(i.id).then((function(r){e.dataShow=1;var s=r.data.storeInfo.title;for(var u in e.storeInfo=r.data.storeInfo,e.imgUrls=r.data.storeInfo.images,e.storeInfo.description=e.storeInfo.description.replace(/
0){e=this.attribute.productAttr.length?i.split(","):[];break}for(var r=0;r1?1:i,this.opacity=i,this.currentPage=!1,this.scrollY=e,this.lock)this.lock=!1;else for(var r=0;r0?this.topArr[e]-h.globalData.navHeight/2:this.topArr[e]},showImg:function(t){this.$refs.cusPreviewImg.open(this.selectSku.suk)},listenerActionSheet:function(){if(this.currentPage=!1,!1===this.isLogin)(0,a.toLogin)();else{if(this.posterImage)return void(this.posters=!0);this.downloadFilePromotionCode(),this.posters=!0}},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.unique),this.$set(this.attribute.productSelect,"vipPrice",e.vipPrice),this.$set(this,"attrTxt",this.$t("已选择")),this.$set(this,"attrValue",e.suk))},goCat:function(){this.currentPage=!1;var e=this.productValue[this.attrValue];return this.isOpen?this.attribute.cartAttr=!0:this.attribute.cartAttr=!this.attribute.cartAttr,!0===this.attribute.cartAttr&&0==this.isOpen?this.isOpen=!0:this.attribute.productAttr.length&&void 0===e&&1==this.isOpen?h.$util.Tips({title:this.$t("请选择属性")}):this.cart_num<=0?h.$util.Tips({title:this.$t("请选择数量")}):(this.isOpen=!1,void t.navigateTo({url:"/pages/points_mall/integral_order?unique=".concat(e.unique,"&num=").concat(this.cart_num||1)}))}}),s);e.default=d}).call(this,i("df3c")["default"])},"5c8e":function(t,e,i){"use strict";i.r(e);var r=i("43db"),s=i.n(r);for(var u in r)["default"].indexOf(u)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(u);e["default"]=s.a},a225:function(t,e,i){},e1e9:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return u})),i.d(e,"a",(function(){return r}));var r={jyfParser:function(){return Promise.all([i.e("common/vendor"),i.e("components/jyf-parser/jyf-parser")]).then(i.bind(null,"798d"))}},s=function(){var t=this,e=t.$createElement,i=(t._self._c,t.$t("积分")),r=t.storeInfo.num>0?t.$t("最多可兑换"):null,s=t.storeInfo.num>0?t.$t(t.storeInfo.unit_name):null,u=t.$t("限量"),o=t.$t("已兑换"),n=t.attribute.productAttr.length,a=n?t.skuArr.length:null,c=n&&a>1?t.skuArr.slice(0,4):null,h=n&&a>1?t.$t("共"):null,l=n&&a>1?t.skuArr.length:null,d=n&&a>1?t.$t("种规格可选"):null,p=t.$t("产品介绍"),f=t.$t("首页"),m=t.attribute.productSelect.quota>0&&t.attribute.productSelect.product_stock>0?t.$t("立即兑换"):null,b=t.attribute.productSelect.quota>0&&t.attribute.productSelect.product_stock>0?null:t.$t("无法兑换");t.$mp.data=Object.assign({},{$root:{m0:i,m1:r,m2:s,m3:u,m4:o,g0:n,g1:a,l0:c,m5:h,g2:l,m6:d,m7:p,m8:f,m9:m,m10:b}})},u=[]},ffb8:function(t,e,i){"use strict";i.r(e);var r=i("e1e9"),s=i("5c8e");for(var u in s)["default"].indexOf(u)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(u);i("1e4f");var o=i("828b"),n=Object(o["a"])(s["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);e["default"]=n.exports}},[["1369","common/runtime","common/vendor"]]]);