(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-miaosha"],{"07f1":function(t,e,o){"use strict";o.r(e);var a=o("5def"),i=o("6a79");for(var n in i)"default"!==n&&function(t){o.d(e,t,(function(){return i[t]}))}(n);o("24f1");var s,c=o("f0c5"),r=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,"29751b8c",null,!1,a["a"],s);e["default"]=r.exports},"1b2c":function(t,e,o){var a=o("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/\n/* 弹出层 */.popup[data-v-29751b8c]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:99}.popup.show[data-v-29751b8c]{display:block}.popup.show .mask[data-v-29751b8c]{-webkit-animation:showPopup-data-v-29751b8c .2s linear both;animation:showPopup-data-v-29751b8c .2s linear both}.popup.show .layer[data-v-29751b8c]{-webkit-animation:showLayer-data-v-29751b8c .2s linear both;animation:showLayer-data-v-29751b8c .2s linear both}.popup.hide .mask[data-v-29751b8c]{-webkit-animation:hidePopup-data-v-29751b8c .2s linear both;animation:hidePopup-data-v-29751b8c .2s linear both}.popup.hide .layer[data-v-29751b8c]{-webkit-animation:hideLayer-data-v-29751b8c .2s linear both;animation:hideLayer-data-v-29751b8c .2s linear both}.popup.none[data-v-29751b8c]{display:none}.popup .mask[data-v-29751b8c]{position:fixed;top:0;width:100%;height:100%;z-index:1;background-color:rgba(0,0,0,.4)}.popup .layer[data-v-29751b8c]{position:fixed;z-index:99;bottom:0;width:100%;min-height:30vh;border-radius:%?10?% %?10?% 0 0;background-color:#fff}.popup .layer .btn[data-v-29751b8c]{height:%?66?%;line-height:%?66?%;border-radius:%?100?%;background:#ff4c4c;font-size:%?30?%;color:#fff;margin:%?30?% auto %?20?%}@-webkit-keyframes showPopup-data-v-29751b8c{0%{opacity:0}100%{opacity:1}}@keyframes showPopup-data-v-29751b8c{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes hidePopup-data-v-29751b8c{0%{opacity:1}100%{opacity:0}}@keyframes hidePopup-data-v-29751b8c{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes showLayer-data-v-29751b8c{0%{-webkit-transform:translateY(120%);transform:translateY(120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes showLayer-data-v-29751b8c{0%{-webkit-transform:translateY(120%);transform:translateY(120%)}100%{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes hideLayer-data-v-29751b8c{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(120%);transform:translateY(120%)}}@keyframes hideLayer-data-v-29751b8c{0%{-webkit-transform:translateY(0);transform:translateY(0)}100%{-webkit-transform:translateY(120%);transform:translateY(120%)}}\n/* 规格选择弹窗 */.attr-content[data-v-29751b8c]{padding:%?10?% %?30?%}.attr-content .a-t[data-v-29751b8c]{display:flex}.attr-content .a-t uni-image[data-v-29751b8c]{width:%?170?%;height:%?170?%;flex-shrink:0;border-radius:%?8?%}.attr-content .a-t .right[data-v-29751b8c]{display:flex;flex-direction:column;padding-left:%?24?%;font-size:%?26?%;color:#606266;line-height:%?42?%}.attr-content .a-t .right .good-name[data-v-29751b8c]{padding-top:%?20?%;max-width:%?320?%;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#1d2023;line-height:%?42?%;margin-bottom:%?15?%}.attr-content .a-t .right .price[data-v-29751b8c]{font-size:%?60?%;font-family:PingFang SC;font-weight:700;color:#ff6f0f}.attr-content .a-t .right .selected-text[data-v-29751b8c]{margin-right:%?10?%}.attr-content .attr-list[data-v-29751b8c]{display:flex;flex-direction:column;font-size:%?30?%;color:#606266;padding-top:%?30?%;padding-left:%?10?%}.attr-content .item-list[data-v-29751b8c]{padding:%?20?% 0 0;display:flex;flex-wrap:wrap}.attr-content .item-list .tit[data-v-29751b8c]{display:flex;align-items:center;justify-content:center;background:#eee;margin-right:%?20?%;margin-bottom:%?20?%;border-radius:%?100?%;min-width:%?60?%;height:%?60?%;padding:0 %?20?%;font-size:%?28?%;color:#303133}.attr-content .item-list .selected[data-v-29751b8c]{background:#fceff1;border:1px solid #ef041f;color:#ef041f}.goodsBottom[data-v-29751b8c]{height:%?160?%}uni-page-body[data-v-29751b8c]{background:#f0f0f0}.contentBottomHeight[data-v-29751b8c]{height:%?110?%}.goodsBottom[data-v-29751b8c]{height:%?160?%}[data-v-29751b8c] .iconenter{font-size:%?30?%;color:#888}[data-v-29751b8c] .con_image{width:%?130?%;height:%?130?%;display:inline-block;padding:%?15?%}[data-v-29751b8c] .con_image uni-image{width:100%;height:100%}\n/* 商品详情中限制图片大小 */[data-v-29751b8c] .rich-img{width:100%!important;height:auto}.c-list[data-v-29751b8c]{margin-top:%?20?%;font-size:%?26?%;color:#606266;background:#fff}.c-list .c-row[data-v-29751b8c]{display:flex;align-items:center;padding:%?20?% %?30?%;position:relative}.c-list .tit[data-v-29751b8c]{width:%?140?%}.c-list .con[data-v-29751b8c]{flex:1;color:#303133}.c-list .con .selected-text[data-v-29751b8c]{margin-right:%?10?%}.c-list .bz-list[data-v-29751b8c]{height:%?40?%;font-size:%?26?%;color:#303133}.c-list .bz-list uni-text[data-v-29751b8c]{display:inline-block;margin-right:%?30?%}.c-list .con-list[data-v-29751b8c]{flex:1;display:flex;flex-direction:column;color:#303133;line-height:%?40?%}.c-list .red[data-v-29751b8c]{color:#5dbc7c}body.?%PAGE?%[data-v-29751b8c]{background:#f0f0f0}',""]),t.exports=e},"24f1":function(t,e,o){"use strict";var a=o("7a55"),i=o.n(a);i.a},"30b5":function(t,e,o){"use strict";var a=o("4ea4");o("a4d3"),o("e01a"),o("4160"),o("07ac"),o("ac1f"),o("5319"),o("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(o("5530"));o("96cf");var n=a(o("1da1")),s=a(o("ccc2")),c=o("64ab"),r=o("26cb"),d=(a(o("8ab5")),o("7eca")),l=o("5f30"),u=o("0c67"),p=a(o("d456")),g=a(o("e6f8")),f=a(o("6022")),v=a(o("584d")),b=a(o("bb67")),h=a(o("73be")),m=a(o("4db4")),y=a(o("3315")),w=(o("b19f"),{components:{uniNumberBox:s.default,guessLike:m.default,topSwiper:p.default,productContent:g.default,discounts:f.default,freshDetail:v.default,contentText:b.default,productBottom:h.default,estimate:y.default},data:function(){return{product_id:0,goodsStore:0,specList:[],buys_show:!0,buys_shows:!1,specSelected:[],specClass:"none",many:1,reply:"",list:"",type:1,goodsType:0,goodsNumber:1,goodsid:"",description:"",goodsObjact:{percent:1},imgList:[],actionPrice:0,actionImage:"",good_list:"",goodsNumberMax:0,seckillObj:{stopTime:0,stop:!1,stopTimeH:0,stopTimeM:0,stopTimeS:0,stopTimeD:0,upTime:0},pink:{id:"",uid:"",people:"",price:"",stop_time:"",nickname:"",avatar:"",count:"",h:"",i:"",s:""},userInfo:"",isVip:"0"}},filters:{parseIntTo:function(t){return t=100*+t,t%1===0||(t=t.toFixed(1)),t}},onLoad:function(t){var e=this;return(0,n.default)(regeneratorRuntime.mark((function o(){var a,i;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:console.log(e.options),a=e,(0,d.userinfo)({}).then((function(t){var e=t.data;a.userInfo=e,console.log(e,"123456")})),e.goodsid=t.id,e.goodsType=t.type,t.spread&&uni.setStorageSync("puid",t.spread),t.isVip&&(a.isVip=t.isVip,console.log(t,"isVip")),console.log(a.isVip,"vip"),(0,l.saveUrl)(),e.seckillGoods(),i=uni.getStorageSync("weichatBrowser")||"",i&&(0,u.weixindata)();case 12:case"end":return o.stop()}}),o)})))()},onShow:function(){var t=uni.getStorageSync("puid");t&&(0,d.spread)({spread:t}).then((function(t){console.log(t)}))},computed:(0,i.default)({},(0,r.mapState)(["weichatObj","baseURL","urlFile"])),methods:{toFavorite:function(t){var e=this;t.userCollect=!t.userCollect,t.userCollect?collectAdd({id:e.goodsid,category:"product"}).then((function(t){uni.showToast({title:"成功加入收藏",type:"top",duration:1500})})):collectDel({id:e.goodsid,category:"product"}).then((function(t){uni.showToast({title:"成功取消收藏",type:"top",duration:1500})}))},selectSpec:function(t,e,o){e.attr_value.forEach((function(t){t.check=!1})),t.check=!0;var a=this;a.specSelected[o]=t.attr;var i=a.specSelected.join(",");a.productValue[i]?(a.buys_show=!0,a.buys_shows=!1,a.actionPrice=a.productValue[i].price,a.goodsNumberMax=a.productValue[i].stock,a.actionImage=a.productValue[i].image,a.uniqueId=a.productValue[i].unique,a.goodsStore=a.productValue[i].stock):(a.buys_show=!1,a.buys_shows=!0),0==a.goodsStore&&(a.buys_show=!1,a.buys_shows=!0),a.specSelected[o]=t.attr},specOPne:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=this;e.specClass="show",e.type=t},toggleSpec:function(t){var e=this;"show"===this.specClass?(this.specClass="hide",setTimeout((function(){e.specClass="none"}),250)):"none"===this.specClass&&(this.specClass="show"),this.type=t},Getcoupon:function(){uni.navigateTo({url:"/pages/coupon/getcoupon"})},numberChange:function(t){this.goodsNumber=t.number},shareDate:function(){var t=this,e=t.$store.state.baseURL+"/index/#/pages/product/miaosha?id="+t.goodsid+"&type="+t.goodsType+"&spread="+t.userInfo.uid+"&isVip="+t.isVip,o=uni.getStorageSync("weichatBrowser")||"";if(o){e=e.replace(/[\?,&]from=singlemessage/g,"");var a={link:e,imgUrl:t.goodsObjact.image,desc:t.goodsObjact.info,title:t.goodsObjact.title,success:function(t){console.log(t)}};(0,u.shareLoad)(a)}},navToDetailPage:function(t){var e=t.id;uni.navigateTo({url:"/pages/product/product?id="+e})},navTo:function(t){uni.navigateTo({url:"/pages/product/reply?id="+this.goodsid})},Addcar:function(t){var e=this;(0,c.cartAdd)({cartNum:"1",uniqueId:"",new:0,mer_id:"",productId:t.id}).then((function(t){uni.showToast({title:"成功加入购物车",type:"top",duration:500,icon:"none"}),e.seckillGoods()})).catch((function(t){console.log(t)}))},seckillGoods:function(){var t=this;(0,c.seckillGoods)({},this.goodsid).then((function(e){var o=e.data;if(t.list=o,console.log(t.list,"list"),o.productValue["默认"])t.product_id=o.productValue["默认"].product_id;else{var a=o.productValue,i=Object.values(a);console.log(o.productValue,"data.productValue"),console.log(i,"arr"),t.product_id=i[0],console.log(t.product_id,"product_id后加的")}console.log(t.product_id,"obj.product_id"),t.good_list=o.good_list,t.reply=o.reply;var n=o.storeInfo;if(t.goodsObjact=n,console.log(n,"商品信息"),console.log(o.storeInfo,"基本商品"),null!=t.goodsObjact.description&&(t.description=t.goodsObjact.description.replace(/\