store-page-goodsDetail-index.590b5abe.js 57 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["store-page-goodsDetail-index"],{"0807":function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"tn-badge-class tn-badge",class:[t.backgroundColorClass,t.fontColorClass,t.badgeClass],style:[t.badgeStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleClick.apply(void 0,arguments)}}},[t.dot?t._e():t._t("default")],2)},n=[]},"1fbf":function(t,e,o){"use strict";o.r(e);var i=o("6197"),n=o("84ae");for(var s in n)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("47c3");var a=o("828b"),r=Object(a["a"])(n["default"],i["b"],i["c"],!1,null,"ef46d0a4",null,!1,i["a"],void 0);e["default"]=r.exports},"25cb":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return s})),o.d(e,"a",(function(){return i}));var i={tnBadge:o("af4b").default,newSpecifications:o("1858").default},n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("custom-page",{attrs:{"custom-navbar":!0,"wrapper-bg-color":"#FFFFFF",rightSlot:!0},scopedSlots:t._u([{key:"right",fn:function(){return[o("v-uni-view",{staticClass:"shopping-cart-btn tn-flex-center",staticStyle:{"font-size":"48rpx"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.navPage("/order-page/shopping-cart/index")}}},[o("v-uni-text",{staticClass:"tn-icon-cart"})],1)]},proxy:!0}])},[t.goods?o("v-uni-view",{staticClass:"bigBox"},[o("v-uni-view",{staticClass:"swiper-box"},[o("v-uni-swiper",{staticClass:"card-swiper time",style:{height:t.swiperList[t.cardCur]&&"video"===t.swiperList[t.cardCur].type?"750rpx":t.currentImageHeight+"rpx"},attrs:{current:t.cardCur,circular:!0,vertical:!1,autoplay:!1,duration:"500",interval:"5000"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.cardSwiper.apply(void 0,arguments)}}},t._l(t.swiperList,(function(e,i){return o("v-uni-swiper-item",{key:i},["video"===e.type?o("v-uni-video",{staticStyle:{width:"100%",height:"750rpx"},attrs:{src:e.url,controls:!0,"show-play-btn":!0,"enable-progress-gesture":!1,id:"video-"+i},on:{error:function(e){arguments[0]=e=t.$handleEvent(e),t.videoError.apply(void 0,arguments)}}}):o("v-uni-image",{attrs:{src:e.url,mode:"widthFix"},on:{load:function(e){arguments[0]=e=t.$handleEvent(e),t.onImageLoad(i,e)}}})],1)})),1),o("v-uni-view",{staticClass:"time",staticStyle:{position:"absolute",top:"0",width:"100%"},style:{marginTop:t.swiperList[t.cardCur]&&"video"===t.swiperList[t.cardCur].type?"760rpx":t.currentImageHeight+10+"rpx"}},[o("v-uni-view",{staticClass:"indication"},[t._l(t.swiperList,(function(e,i){return[o("v-uni-view",{key:i+"_0",staticClass:"spot",class:t.cardCur==i?"active":""})]}))],2)],1)],1),o("v-uni-view",{staticClass:"goodsContent",style:t.options.type&&t.goods.seckillInfo&&!1!==t.goods.seckillInfo&&!1!==t.goods.seckillInfo.status&&"seckill"===t.options.type?"padding-top: 135rpx":""},[t.goods.seckillInfo&&!1!==t.goods.seckillInfo&&!0===t.goods.seckillInfo.status?o("v-uni-view",{staticClass:"bgPrice"},[o("v-uni-view",{staticClass:"contain"},[o("v-uni-view",{staticClass:"left"},[o("v-uni-view",[t._v("限时秒杀")]),o("v-uni-view",{staticClass:"price"},[t._v(t._s(t.CurrencyUnit)),o("v-uni-text",[t._v(t._s(t.goods.seckill_price))]),o("v-uni-text",{staticClass:"del"},[t._v(t._s(t.CurrencyUnit)+t._s(t.goods.price))])],1)],1),o("v-uni-view",{staticClass:"right"},[o("v-uni-view",[t._v("距离活动结束")]),o("v-uni-view",{staticClass:"price"},[o("v-uni-text",{staticClass:"wbig"},[t._v(t._s(t.countDownTime.hours))]),o("v-uni-text",[t._v("时")]),o("v-uni-text",{staticClass:"wbig"},[t._v(t._s(t.countDownTime.minutes))]),o("v-uni-text",[t._v("分")]),o("v-uni-text",{staticClass:"wbig"},[t._v(t._s(t.countDownTime.seconds))]),o("v-uni-text",[t._v("秒")])],1)],1)],1)],1):t._e(),o("v-uni-view",{staticClass:"card amountBox",staticStyle:{position:"relative","z-index":"1"}},[o("v-uni-view",{staticClass:"amountNums flexContentCenter"},[o("v-uni-view",{staticClass:"left"},[o("v-uni-text",[t._v(t._s(t.CurrencyUnit))]),o("v-uni-text",{staticClass:"amount"},[t._v(t._s(t.goods.seckillInfo&&!1!==t.goods.seckillInfo&&!0===t.goods.seckillInfo.status?t.goods.seckill_price:t.goods.price))])],1),o("v-uni-view",{staticClass:"right"},[t.goods.seckillInfo&&t.goods.seckillInfo.status&&-1!==t.goods.total?[o("v-uni-text",{staticClass:"info-item"},[t._v("库存"),o("v-uni-text",{staticClass:"num"},[t._v(t._s(t.goods.total))])],1),o("v-uni-text",{staticClass:"divider"},[t._v("|")])]:t._e(),o("v-uni-text",{staticClass:"info-item"},[t._v("销量"),o("v-uni-text",{staticClass:"num"},[t._v(t._s(t.goods.sailed))])],1)],2)],1),o("v-uni-view",{staticClass:"goodsTitle"},[t._v(t._s(t.goods.title))]),o("v-uni-view",{staticClass:"amountNums flexContentCenter",staticStyle:{"justify-content":"flex-end"}},[t.goods.seckillInfo&&t.goods.seckillInfo.status?t._e():o("v-uni-view",{staticClass:"btn",staticStyle:{position:"relative"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addGoodsList(2)}}},[t._v("加入购物车"),t.number?o("tn-badge",{attrs:{backgroundColor:"#ff0004",fontColor:"#ffffff",absolute:"true",top:"6",right:"12",radius:"32"}},[t._v(t._s(t.number))]):t._e()],1)],1),t.goods.content?o("v-uni-view",{staticClass:"goodsTips"},[t._v(t._s(t.goods.content))]):t._e()],1),t.goods.options.length>1?o("v-uni-view",{staticClass:"card skuBox"},[t.goods.options.length>1||t.specification.attrs.length>0||t.specification.materials.length>1?o("v-uni-view",{staticClass:"col flexContentCenter",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openSku()}}},[o("v-uni-view",{staticClass:"left flexCenter"},[o("v-uni-text",{staticClass:"text"},[t._v("可选")]),t.goods.options.length>1?o("v-uni-view",{staticClass:"selectLists flexCenter"},[t._l(t.goods.options,(function(e){return o("v-uni-view",{staticClass:"list"},[t._v(t._s(e.name))])})),o("v-uni-view",{staticClass:"list"},[t._v("共"+t._s(t.goods.options.length)+"种")])],2):t.specification.attrs.length>0?o("v-uni-view",{staticClass:"selectLists flexCenter"},[t._l(t.specification.attrs,(function(e,i){return o("v-uni-view",[i<4?o("v-uni-view",{staticClass:"list"},[t._v(t._s(e.name))]):t._e()],1)})),t.specification.materials.length>3?o("span",[t._v("•••")]):t._e(),o("v-uni-view",{staticClass:"list tn-margin-left-xs"},[t._v("共"+t._s(t.specification.attrs.length)+"种")])],2):t.specification.materials.length>1?o("v-uni-view",{staticClass:"selectLists flexCenter"},[t._l(t.specification.materials,(function(e,i){return o("v-uni-view",[i<4?o("v-uni-view",{staticClass:"list"},[t._v(t._s(e.name))]):t._e()],1)})),t.specification.materials.length>3?o("span",[t._v("•••")]):t._e(),o("v-uni-view",{staticClass:"list tn-margin-left-xs"},[t._v("共"+t._s(t.specification.materials.length)+"种")])],2):t._e()],1),o("v-uni-view",{staticClass:"right"},[o("v-uni-image",{staticClass:"rightIcon",attrs:{src:"http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/rightIcon.png"}})],1)],1):t._e(),t._l(t.goods.other_desc,(function(e,i){return[o("v-uni-view",{staticClass:"col flexContentCenter"},[o("v-uni-view",{staticClass:"left flexCenter"},[o("v-uni-text",{staticClass:"text"},[t._v(t._s(e.title))]),o("v-uni-view",{staticClass:"tips"},[o("v-uni-text",[t._v(t._s(e.detail))])],1)],1),o("v-uni-view",{staticClass:"right"})],1)]}))],2):t._e(),o("v-uni-view",{staticClass:"card shopBox"},[o("v-uni-view",{staticClass:"shopInfo flexCenter"},[o("v-uni-image",{staticClass:"shopLogo",attrs:{src:t.store.logo}}),o("v-uni-view",{staticClass:"info"},[o("v-uni-text",{staticClass:"shopName"},[t._v(t._s(t.store.title))])],1),o("v-uni-view")],1),o("v-uni-view",{staticClass:"btnBox flexCenterCenter"},[t.concernStatus?o("v-uni-view",{staticClass:"btn flexCenter tn-text-md",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.favoriteStore(t.store.id)}}},[o("v-uni-image",{staticClass:"btnIcon",attrs:{src:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/like-fill.png"}}),o("v-uni-text",{staticClass:"text"},[t._v("取消关注")])],1):o("v-uni-view",{staticClass:"btn flexCenter tn-text-md",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.favoriteStore(t.store.id)}}},[o("v-uni-image",{staticClass:"btnIcon",attrs:{src:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/like.png"}}),o("v-uni-text",{staticClass:"text"},[t._v("关注店铺")])],1),o("v-uni-view",{staticClass:"btn flexCenter tn-text-md",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.nP(t.store.id,t.store.pageShowType)}}},[o("v-uni-image",{staticClass:"btnIcon",attrs:{src:"https://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/xcx/shop.png"}}),o("v-uni-text",{staticClass:"text"},[t._v("进店逛逛")])],1)],1)],1)],1),o("v-uni-view",{staticClass:"imgDetail"},[o("v-uni-view",{staticClass:"title"},[o("v-uni-text",{staticClass:"text"},[t._v("图文详情")])],1),o("u-parse",{attrs:{content:t.goods.description}})],1),o("v-uni-view",{staticClass:"footerBox flexContentCenter"},[o("v-uni-view",{staticClass:"left flexCenter"},[o("v-uni-view",{staticClass:"iconBox flexColumnCenter",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.nP(t.store.id,t.store.pageShowType)}}},[o("v-uni-text",{staticClass:"tn-icon-shop",staticStyle:{"font-size":"50rpx","padding-bottom":"2rpx"}}),o("v-uni-text",{staticClass:"text tn-text-xs"},[t._v("店铺")])],1),o("v-uni-button",{staticClass:"iconBox flexColumnCenter",staticStyle:{padding:"0 50rpx 0 0","line-height":"1.2","font-size":"30rpx",display:"flex","justify-content":"center","align-items":"center",border:"none",background:"none"},attrs:{"open-type":"share"}},[o("v-uni-text",{staticClass:"tn-icon-share-triangle",staticStyle:{"font-size":"48rpx"}}),o("v-uni-text",{staticClass:"text tn-text-xs"},[t._v("分享")])],1),1==t.store.custom_service_type?o("v-uni-view",{staticClass:"iconBox flexColumnCenter",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.callPhone(t.store.telephone)}}},[o("v-uni-text",{staticClass:"tn-icon-service",staticStyle:{"font-size":"50rpx","padding-bottom":"2rpx"}}),o("v-uni-text",{staticClass:"text tn-text-xs"},[t._v("客服")])],1):t._e(),2==t.store.custom_service_type?o("v-uni-view",{staticClass:"iconBox flexColumnCenter"},["mobile"!==t.contactType||t.scene_icon?t._e():o("v-uni-view",{staticClass:"customer-service-btn tn-flex-center flexColumnCenter",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.callMobileContact.apply(void 0,arguments)}}},[o("v-uni-text",{staticClass:"tn-icon-service",staticStyle:{"font-size":"50rpx","padding-bottom":"2rpx"}}),o("v-uni-text",{staticClass:"text tn-text-xs"},[t._v("客服")])],1),"mobile"===t.contactType&&t.scene_icon?o("v-uni-view",{staticClass:"customer-service-btn tn-flex-center flexColumnCenter",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.callMobileContact.apply(void 0,arguments)}}},[o("v-uni-image",{staticClass:"customer-service-icon",attrs:{src:t.scene_icon}}),o("v-uni-text",{staticClass:"text tn-text-xs"},[t._v("客服")])],1):t._e()],1):t._e()],1),o("v-uni-view",{staticClass:"footBtnBox flexCenter",style:{width:t.goods.seckillInfo&&t.goods.seckillInfo.status?"60%":"auto"}},[t.goods.seckillInfo&&t.goods.seckillInfo.status?t._e():o("v-uni-view",{staticClass:"btn",staticStyle:{position:"relative"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addGoodsList(2)}}},[t._v("加入购物车"),t.number?o("tn-badge",{attrs:{backgroundColor:"#ff0004",fontColor:"#ffffff",absolute:"true",top:"6",right:"8",radius:"32"}},[t._v(t._s(t.number))]):t._e()],1),o("v-uni-view",{staticClass:"btn btn2",style:{color:t.$isTheme()?"var(--general-color-text)":"#fff",borderRadius:t.goods.seckillInfo&&t.goods.seckillInfo.status?"60rpx":"0rpx 60rpx 60rpx 0rpx",flex:t.goods.seckillInfo&&t.goods.seckillInfo.status?"1":"unset",width:t.goods.seckillInfo&&t.goods.seckillInfo.status?"90%":"auto",margin:t.goods.seckillInfo&&t.goods.seckillInfo.status?"0 auto":"0"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addGoodsList(1,!0)}}},[t._v(t._s(t.goods.seckillInfo&&t.goods.seckillInfo.status?"立即秒杀":"去结算"))])],1)],1)],1):t._e(),t.specification.options||t.specification.attrs||t.specification.materials?o("v-uni-view",{staticClass:"skuSelectBox",class:{show:t.isShowSkuSelectBox}},[o("v-uni-view",{staticClass:"mask",class:{show:t.isShowSkuSelectBox},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.isShowSkuSelectBox=!1,t.chooseCount=1}}}),o("div",{staticClass:"content"},[o("v-uni-view",{staticClass:"topContent"},[o("v-uni-view",{staticClass:"amountBox"},[o("v-uni-view",{staticClass:"price-info"},[o("v-uni-text",[t._v(t._s(t.CurrencyUnit))]),t.specification.options.length>0?o("v-uni-text",{staticClass:"amount"},[t._v(t._s(t.selePrice))]):o("v-uni-text",{staticClass:"amount"},[t._v(t._s(t.goods.price))]),t.goods.seckillInfo&&t.goods.seckillInfo.status&&-1!==t.currentStock?o("v-uni-view",{staticClass:"stock-info"},[o("v-uni-text",{staticClass:"label"},[t._v("库存")]),o("v-uni-text",{staticClass:"value"},[t._v(t._s(t.currentStock))])],1):t._e()],1)],1),o("v-uni-scroll-view",{staticStyle:{"min-height":"150rpx","max-height":"540rpx"},attrs:{"scroll-y":"true"}},[o("v-uni-view",[t.specification.options.length>0?o("v-uni-view",{staticClass:"selectLists"},[o("v-uni-view",{staticClass:"title"},[t._v("规格")]),o("v-uni-view",{staticClass:"selectBox flexCenter"},t._l(t.specification.options,(function(e,i){return o("v-uni-view",{staticClass:"list",class:{active:i===t.chooseIndex},on:{click:function(o){o.stopPropagation(),arguments[0]=o=t.$handleEvent(o),t.seleOptions(i,e)}}},[t._v(t._s(e.name)+" "+t._s(e.price)+"元")])})),1)],1):t._e(),t.specification.attrs.length>0?o("v-uni-view",{staticClass:"selectLists"},t._l(t.specification.attrs,(function(e,i){return o("v-uni-view",{key:i},[o("v-uni-view",{staticClass:"title"},[t._v(t._s(e.name))]),o("v-uni-view",{staticClass:"selectBox flexCenter"},t._l(e.label,(function(n,s){return o("v-uni-view",{key:s,staticClass:"list",class:{active:s===e.seleidx},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.setItemIdx(s,i)}}},[t._v(t._s(n))])})),1)],1)})),1):t._e(),t.specification.materials.length>0?o("v-uni-view",{staticClass:"selectLists"},[o("v-uni-view",{staticClass:"title"},[t._v("加料")]),o("v-uni-view",{staticClass:"selectBox flexCenter"},t._l(t.specification.materials,(function(e,i){return o("v-uni-view",{staticClass:"list",class:{active:!0===e.select},on:{click:function(o){o.stopPropagation(),arguments[0]=o=t.$handleEvent(o),t.setItemArr(e,i)}}},[t._v(t._s(e.name)+" "+t._s(e.price)+"元")])})),1)],1):t._e()],1)],1),o("v-uni-view",{staticClass:"numsBox flexContentCenter"},[o("v-uni-view",{staticClass:"left"},[t._v("数量")]),o("v-uni-view",{staticClass:"right flexCenter"},[o("v-uni-view",{staticClass:"reduce",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.chooseCount>1?t.chooseCount--:t.chooseCount=t.chooseCount}}},[t._v("-")]),o("v-uni-view",{staticClass:"nums"},[t._v(t._s(t.chooseCount))]),o("v-uni-view",{staticClass:"add",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.chooseCount<99?t.chooseCount++:t.chooseCount=t.chooseCount}}},[t._v("+")])],1)],1)],1),o("v-uni-view",{staticClass:"footBtnBox flexCenter"},[t.goods.seckillInfo&&t.goods.seckillInfo.status?t._e():o("v-uni-view",{staticClass:"btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addGoodsList(2)}}},[t._v("加入购物车")]),o("v-uni-view",{staticClass:"btn btn2",style:{borderRadius:t.goods.seckillInfo&&t.goods.seckillInfo.status?"60rpx":"0rpx 60rpx 60rpx 0rpx",flex:t.goods.seckillInfo&&t.goods.seckillInfo.status?"1":"unset",width:t.goods.seckillInfo&&t.goods.seckillInfo.status?"100%":"auto"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addGoodsList(1,!0)}}},[t._v(t._s(t.goods.seckillInfo&&t.goods.seckillInfo.status?"立即秒杀":"去结算"))])],1)],1)],1):t._e(),o("newSpecifications",{attrs:{show:t.showNewSpecifications,goodId:t.options.id,sid:t.options.sid,goodPrice:t.goodPrice,parent_not_need_choose_productList:t.not_need_choose_productList,parent_need_choose_productList:t.need_choose_productList,good_old_price:t.good_old_price},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.closePup.apply(void 0,arguments)},addCart:function(e){arguments[0]=e=t.$handleEvent(e),t.closePup.apply(void 0,arguments)}}})],1)},s=[]},4527:function(t,e,o){var i=o("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.bigBox[data-v-18e4fe86]{position:relative;padding-bottom:%?120?%}\n/* flex相关 */.flex[data-v-18e4fe86]{width:100%;display:flex}.flexCenter[data-v-18e4fe86]{display:flex;align-items:center}.flexContentCenter[data-v-18e4fe86]{display:flex;justify-content:space-between;align-items:center}.flexCenterCenter[data-v-18e4fe86]{display:flex;justify-content:center;align-items:center}.flexColumnCenter[data-v-18e4fe86]{display:flex;align-items:center;flex-direction:column}.swiperBox[data-v-18e4fe86]{text-align:center}.swiperBox .img[data-v-18e4fe86]{width:100vw}.goodsContent[data-v-18e4fe86]{background:#f2f4f7;padding:%?50?% %?24?% %?16?% %?24?%;font-family:Source Han Sans CN-Regular,Source Han Sans CN;position:relative}.goodsContent .bgPrice[data-v-18e4fe86]{background:linear-gradient(180deg,#f94d4b,#faa9a8);position:absolute;top:0;left:0;right:0;height:%?200?%;color:#fff;z-index:0}.goodsContent .bgPrice .contain[data-v-18e4fe86]{display:flex;justify-content:space-between;font-size:%?28?%;padding:%?30?%}.goodsContent .bgPrice .contain .left .price[data-v-18e4fe86]{font-size:%?42?%;font-weight:700;padding-top:%?10?%}.goodsContent .bgPrice .contain .left .price .del[data-v-18e4fe86]{text-decoration:line-through;color:#fff;margin:0 %?10?%;font-size:%?28?%;font-weight:400}.goodsContent .bgPrice .contain .right[data-v-18e4fe86]{text-align:center}.goodsContent .bgPrice .contain .right .price[data-v-18e4fe86]{padding-top:%?10?%}.goodsContent .bgPrice .contain .right .wbig[data-v-18e4fe86]{border-radius:%?5?%;background:#fff;display:inline-block;padding:%?2?%;margin:0 %?8?%;color:#fd2d3b}.goodsContent .card[data-v-18e4fe86]{border-radius:%?20?% %?20?% %?20?% %?20?%;background:#fff;padding:%?25?% %?38?%;margin-bottom:%?24?%}.goodsContent .card .rightIcon[data-v-18e4fe86]{width:%?40?%;height:%?40?%}.goodsContent .card .avatar[data-v-18e4fe86]{width:%?50?%;height:%?50?%;border-radius:50%}.goodsContent .card .shopLogo[data-v-18e4fe86]{width:%?96?%;height:%?96?%;border-radius:%?16?%}.goodsContent .card .xing[data-v-18e4fe86]{width:%?17?%;height:%?17?%}.goodsContent .card .halfXing[data-v-18e4fe86]{width:%?9?%;height:%?17?%}.goodsContent .card .btnIcon[data-v-18e4fe86]{width:%?36?%;height:%?36?%;margin-right:%?8?%}.goodsContent .card .selectLists .list[data-v-18e4fe86]{font-size:%?24?%;color:#7d818f;padding:%?16?% %?14?%;border-radius:%?6?% %?6?% %?6?% %?6?%;background:#f4f4f4;display:inline-block;margin-right:%?14?%}.goodsContent .card.amountBox .amountNums[data-v-18e4fe86]{font-size:%?28?%;color:#7d818f}.goodsContent .card.amountBox .amountNums .left[data-v-18e4fe86]{color:red}.goodsContent .card.amountBox .amountNums .left .amount[data-v-18e4fe86]{font-size:%?54?%}.goodsContent .card.amountBox .amountNums .btn[data-v-18e4fe86]{background:linear-gradient(241deg,#ffd264,#faa320);border-radius:%?60?%;font-size:%?24?%;padding:%?10?% %?14?%;text-align:center;min-width:%?200?%;color:#fff}.goodsContent .card.amountBox .goodsTitle[data-v-18e4fe86]{padding:%?30?% 0 %?15?%;font-size:%?30?%;color:#222;line-height:%?50?%}.goodsContent .card.amountBox .goodsTips[data-v-18e4fe86]{font-size:%?24?%;color:#7d818f;padding:%?10?% %?20?%;border-radius:%?6?% %?6?% %?6?% %?6?%;background:#f4f4f4;display:inline-block}.goodsContent .card.skuBox[data-v-18e4fe86]{padding:%?34?% %?19?%;font-size:%?26?%;color:#7d818f}.goodsContent .card.skuBox .col[data-v-18e4fe86]{padding-bottom:%?25?%}.goodsContent .card.skuBox .col[data-v-18e4fe86]:last-of-type{padding-bottom:0}.goodsContent .card.skuBox .text[data-v-18e4fe86]{padding-right:%?40?%}.goodsContent .card.skuBox .tips[data-v-18e4fe86]{color:#222}.goodsContent .card.evaluateBox[data-v-18e4fe86]{padding:%?38?% %?20?%}.goodsContent .card.evaluateBox .evaluateLists[data-v-18e4fe86]{border-bottom:1px solid #ededed;padding-top:%?40?%}.goodsContent .card.evaluateBox .evaluateLists .evaluateList[data-v-18e4fe86]{padding-bottom:%?40?%}.goodsContent .card.evaluateBox .title[data-v-18e4fe86]{font-size:%?24?%;color:#999;padding-bottom:%?18?%}.goodsContent .card.evaluateBox .title .left[data-v-18e4fe86]{font-size:%?32?%;color:#222}.goodsContent .card.evaluateBox .userInfo[data-v-18e4fe86]{padding-bottom:%?18?%}.goodsContent .card.evaluateBox .userInfo .name[data-v-18e4fe86]{color:#222;font-size:%?22?%;padding-left:%?8?%}.goodsContent .card.evaluateBox .evaluateText[data-v-18e4fe86]{font-size:%?27?%;color:#222}.goodsContent .card.evaluateBox .imgEvaluateLists[data-v-18e4fe86]{padding-top:%?40?%}.goodsContent .card.evaluateBox .imgEvaluateLists .imgsLists .evaluateIcon[data-v-18e4fe86]{width:%?160?%;height:%?160?%;margin-right:%?7?%}.goodsContent .card.shopBox[data-v-18e4fe86]{font-size:%?20?%;color:#555}.goodsContent .card.shopBox .shopName[data-v-18e4fe86]{color:#222;font-size:%?30?%}.goodsContent .card.shopBox .info[data-v-18e4fe86]{padding-left:%?17?%;flex:1}.goodsContent .card.shopBox .shopData[data-v-18e4fe86]{padding-top:%?12?%}.goodsContent .card.shopBox .shopData .ty[data-v-18e4fe86]{padding:%?8?% %?18?%;border-radius:%?30?% %?30?% %?30?% %?30?%;background:#f4f4f4;margin-right:%?14?%}.goodsContent .card.shopBox .shopData .ty uni-text[data-v-18e4fe86]{padding-right:%?8?%}.goodsContent .card.shopBox .shopData .ty .xing[data-v-18e4fe86]{margin-right:4px}.goodsContent .card.shopBox .shopData .fsAndGoods[data-v-18e4fe86]{color:#555}.goodsContent .card.shopBox .shopData .fsAndGoods .fs[data-v-18e4fe86]{position:relative;padding-right:%?12?%;margin-right:%?12?%}.goodsContent .card.shopBox .shopData .fsAndGoods .fs[data-v-18e4fe86]::after{content:"";position:absolute;right:0;top:50%;margin-top:%?-5?%;width:1px;height:%?11?%;background:#7d818f}.goodsContent .card.shopBox .btnBox[data-v-18e4fe86]{font-size:%?20?%;color:#333;padding-top:%?27?%}.goodsContent .card.shopBox .btnBox .btn[data-v-18e4fe86]{padding:%?20?% %?70?%;border-radius:%?40?%;background:#f4f4f4}.goodsContent .card.shopBox .btnBox .btn[data-v-18e4fe86]:first-child{margin-right:%?27?%}.imgDetail .title[data-v-18e4fe86]{text-align:center;font-size:%?20?%;color:#707070;padding:%?12?% 0 %?38?%;background:#f2f4f7}.imgDetail .title .text[data-v-18e4fe86]{position:relative}.imgDetail .title .text[data-v-18e4fe86]::before, .imgDetail .title .text[data-v-18e4fe86]::after{content:"";position:absolute;left:%?-110?%;top:50%;width:%?90?%;height:1px;background:#000}.imgDetail .title .text[data-v-18e4fe86]::after{left:unset;right:%?-110?%}.imgDetail .img[data-v-18e4fe86]{width:100%;display:block}.footerBox[data-v-18e4fe86]{position:fixed;bottom:0;left:0;width:100%;background:#fff;padding:%?16?% %?24?%}.footerBox .iconBox[data-v-18e4fe86]{padding-right:%?50?%}.footerBox .iconBox[data-v-18e4fe86]:last-of-type{padding-right:0}.footerBox .img[data-v-18e4fe86]{width:%?40?%;height:%?40?%}.footBtnBox[data-v-18e4fe86]{color:#fff;font-size:%?28?%}.footBtnBox .btn[data-v-18e4fe86]{background:linear-gradient(241deg,#ffd264,#faa320);border-radius:%?60?% %?0?% %?0?% %?60?%;padding:%?20?% %?35?%;text-align:center;\n /* 确保文字居中 */min-width:%?200?%\n /* 设置最小宽度 */}.footBtnBox .btn[data-v-18e4fe86]:last-of-type{border-radius:%?0?% %?60?% %?60?% %?0?%;background:var(--theme-general-color)}.footBtnBox .btn[data-v-18e4fe86]:last-of-type:only-child{\n /* 当按钮是唯一子元素时的样式 */border-radius:%?60?%;margin:0 %?30?%\n /* 两边留出间距 */}.skuSelectBox[data-v-18e4fe86]{position:fixed;width:100%;top:0;left:0;right:0;bottom:0;z-index:999;-webkit-transform:translateY(100%);transform:translateY(100%);transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s}.skuSelectBox .mask[data-v-18e4fe86]{position:absolute;width:100%;height:100%;background:rgba(0,0,0,.32);opacity:0}.skuSelectBox .mask.show[data-v-18e4fe86]{-webkit-animation:maskShow-data-v-18e4fe86 .5s forwards;animation:maskShow-data-v-18e4fe86 .5s forwards}@-webkit-keyframes maskShow-data-v-18e4fe86{0%{opacity:0}50%{opacity:0}100%{opacity:1}}@keyframes maskShow-data-v-18e4fe86{0%{opacity:0}50%{opacity:0}100%{opacity:1}}.skuSelectBox.show[data-v-18e4fe86]{-webkit-transform:translate(0);transform:translate(0)}.skuSelectBox .content[data-v-18e4fe86]{position:absolute;width:100%;bottom:0;left:0;box-sizing:border-box;box-shadow:%?0?% %?-3?% %?20?% %?1?% rgba(0,0,0,.1);border-radius:%?20?% %?20?% %?0?% %?0?%;background:#fff}.skuSelectBox .content .topContent[data-v-18e4fe86]{padding:%?39?% %?24?% %?150?%}.skuSelectBox .content .amountBox .price-info[data-v-18e4fe86]{display:flex;align-items:center;color:red}.skuSelectBox .content .amountBox .price-info .amount[data-v-18e4fe86]{font-size:%?54?%;color:red;margin-left:%?4?%}.skuSelectBox .content .amountBox .price-info .stock-info[data-v-18e4fe86]{font-size:%?24?%;color:#666;margin-left:auto;min-width:%?120?%;text-align:right}.skuSelectBox .content .amountBox .price-info .stock-info .label[data-v-18e4fe86]{color:#999;margin-right:%?8?%}.skuSelectBox .content .amountBox .price-info .stock-info .value[data-v-18e4fe86]{font-weight:500}.skuSelectBox .content .selectLists[data-v-18e4fe86]{font-size:%?28?%;color:#333}.skuSelectBox .content .selectLists .title[data-v-18e4fe86]{padding-bottom:%?20?%}.skuSelectBox .content .selectLists .selectBox[data-v-18e4fe86]{flex-wrap:wrap}.skuSelectBox .content .selectLists .selectBox .list[data-v-18e4fe86]{font-size:%?24?%;color:#222;border-radius:%?6?% %?6?% %?6?% %?6?%;padding:%?20?%;margin-right:%?20?%;border:1px solid transparent;background:#f4f4f4;margin-bottom:%?20?%}.skuSelectBox .content .selectLists .selectBox .list.disabled[data-v-18e4fe86]{color:#7d818f}.skuSelectBox .content .selectLists .selectBox .list.active[data-v-18e4fe86]{color:#fc791a;border-color:#fc791a;background:#ffebdd}.skuSelectBox .content .numsBox[data-v-18e4fe86]{padding-top:%?22?%}.skuSelectBox .content .numsBox .right[data-v-18e4fe86]{font-size:%?28?%;color:#333;border:%?1?% solid #dbdbdb;border-radius:%?8?% %?8?% %?8?% %?8?%;height:%?50?%;line-height:%?50?%}.skuSelectBox .content .numsBox .right .reduce[data-v-18e4fe86],\n.skuSelectBox .content .numsBox .right .add[data-v-18e4fe86]{color:#a9afb4;width:%?53?%;text-align:center}.skuSelectBox .content .numsBox .right .nums[data-v-18e4fe86]{width:%?76?%;color:#222;border-left:1px solid #dbdbdb;border-right:1px solid #dbdbdb;text-align:center}.skuSelectBox .content .footBtnBox[data-v-18e4fe86]{padding:%?20?% %?44?%;box-shadow:%?0?% %?-3?% %?20?% %?1?% rgba(0,0,0,.1);border-top:1px solid #e8e8e8}.skuSelectBox .content .footBtnBox .btn[data-v-18e4fe86]{flex:1;text-align:center}.amountNums .right[data-v-18e4fe86]{display:flex;align-items:center;color:#999;font-size:%?24?%}.amountNums .right .info-item[data-v-18e4fe86]{display:flex;align-items:center}.amountNums .right .info-item .num[data-v-18e4fe86]{color:#666;font-weight:500;margin-left:%?4?%}.amountNums .right .divider[data-v-18e4fe86]{margin:0 %?16?%;color:#ddd}.customer-service-icon[data-v-18e4fe86]{width:%?50?%;height:%?50?%;padding-bottom:%?2?%}.btn2[data-v-18e4fe86]{background:#fc6401!important}.swiper-box[data-v-18e4fe86]{\n /* 轮播指示点 start*/}.swiper-box uni-image[data-v-18e4fe86]{display:block;width:100vw;heigh:%?750?%}.swiper-box .indication[data-v-18e4fe86]{z-index:9999;width:100%;height:%?36?%;position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center}.swiper-box .spot[data-v-18e4fe86]{background-color:#333;opacity:.3;width:%?20?%;height:%?20?%;border-radius:%?20?%;margin:0 %?8?%!important;position:relative}.swiper-box .spot.active[data-v-18e4fe86]{opacity:.8;width:%?20?%;background-color:#ffca28}.swiper-box .time[data-v-18e4fe86]{transition:all .6s ease-in-out;overflow:hidden}.card-swiper[data-v-18e4fe86]{width:100%}',""]),t.exports=e},"45b3":function(t,e,o){var i=o("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-popup[data-v-ef46d0a4]{display:block;position:fixed;top:0;left:0;right:0;bottom:0;overflow:hidden}.tn-popup__content[data-v-ef46d0a4]{display:block;position:absolute;transition:all .25s linear}.tn-popup__content--visible[data-v-ef46d0a4]{-webkit-transform:translateZ(0)!important;transform:translateZ(0)!important}.tn-popup__content--visible.tn-popup--center[data-v-ef46d0a4]{-webkit-transform:scale(1);transform:scale(1);opacity:1}.tn-popup__content__center_box[data-v-ef46d0a4]{min-width:%?100?%;min-height:%?100?%;display:block;position:relative}.tn-popup__content__scroll-view[data-v-ef46d0a4]{width:100%;height:100%}.tn-popup__content__center--animation-zoom[data-v-ef46d0a4]{-webkit-transform:scale(1.15);transform:scale(1.15)}.tn-popup__scroll_view[data-v-ef46d0a4]{width:100%;height:100%}.tn-popup--left[data-v-ef46d0a4]{top:0;bottom:0;left:0;background-color:#fff}.tn-popup--right[data-v-ef46d0a4]{top:0;bottom:0;right:0;background-color:#fff}.tn-popup--top[data-v-ef46d0a4]{left:0;right:0;top:0;background-color:#fff}.tn-popup--bottom[data-v-ef46d0a4]{left:0;right:0;bottom:0;background-color:#fff}.tn-popup--center[data-v-ef46d0a4]{display:flex;flex-direction:column;bottom:0;top:0;left:0;right:0;justify-content:center;align-items:center;opacity:0}.tn-popup__close[data-v-ef46d0a4]{position:absolute}.tn-popup__close--top-left[data-v-ef46d0a4]{top:%?30?%;left:%?30?%}.tn-popup__close--top-right[data-v-ef46d0a4]{top:%?30?%;right:%?30?%}.tn-popup__close--bottom-left[data-v-ef46d0a4]{bottom:%?30?%;left:%?30?%}.tn-popup__close--bottom-right[data-v-ef46d0a4]{bottom:%?30?%;right:%?30?%}.tn-popup__mask[data-v-ef46d0a4]{width:100%;height:100%;position:fixed;top:0;left:0;right:0;border:0;background-color:rgba(0,0,0,.4);transition:.25s linear;transition-property:opacity;opacity:0}.tn-popup__mask--show[data-v-ef46d0a4]{opacity:1}',""]),t.exports=e},"47c3":function(t,e,o){"use strict";var i=o("a547"),n=o.n(i);n.a},"4a58":function(t,e,o){"use strict";var i=o("b5f9"),n=o.n(i);n.a},5328:function(t,e,o){"use strict";o("6a54");var i=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("64aa");var n=i(o("74ff")),s={mixins:[n.default],name:"tn-badge",props:{index:{type:[Number,String],default:"0"},radius:{type:Number,default:0},padding:{type:String,default:""},margin:{type:String,default:""},dot:{type:Boolean,default:!1},absolute:{type:Boolean,default:!1},top:{type:[String,Number],default:""},right:{type:[String,Number],default:""},translateCenter:{type:Boolean,default:!0}},computed:{badgeClass:function(){var t="";return this.dot&&(t+=" tn-badge--dot"),this.absolute&&(t+=" tn-badge--absolute",this.translateCenter&&(t+=" tn-badge--center-position")),t},badgeStyle:function(){var t={};return 0!==this.radius&&(t.width=this.radius+"rpx",t.height=this.radius+"rpx",t.lineHeight=this.radius+"rpx"),this.padding&&(t.padding=this.padding),this.margin&&(t.margin=this.margin),this.fontColorStyle&&(t.color=this.fontColorStyle),this.fontSize&&(t.fontSize=this.fontSize+this.fontUnit),this.backgroundColorStyle&&(t.backgroundColor=this.backgroundColorStyle),this.top&&(t.top=this.$tn.string.getLengthUnitValue(this.top)),this.right&&(t.right=this.$tn.string.getLengthUnitValue(this.right)),t}},data:function(){return{}},methods:{handleClick:function(){this.$emit("click",{index:Number(this.index)}),this.$emit("tap",{index:Number(this.index)})}}};e.default=s},"583f":function(t,e,o){"use strict";o("6a54");var i=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(o("2634")),s=i(o("2fdc")),a=i(o("9b1b"));o("c223"),o("bf0f"),o("2797"),o("5ef2"),o("aa9c"),o("5c47"),o("64aa"),o("bd06"),o("fd3c"),o("f7a5"),o("795c"),o("c9b5"),o("ab80");var r=o("cf41"),c=o("6286"),l=o("ba1f"),d=o("b43b"),u=i(o("0853")),f=o("419c"),p=o("815c"),g=i(o("dc1f")),h=i(o("1858")),v={components:{uParse:u.default,newSpecifications:h.default},mixins:[g.default],data:function(){return{options:null,isShowSkuSelectBox:!1,goods:null,store:null,number:0,chooseIndex:0,chooseIndex2:0,chooseCount:1,hasAddCart:!1,currIndex:0,swiperHeight:150,strogInfo:"",selePrice:0,concernStatus:!1,specification:{materials:"",attrs:""},showSkeleton:!0,is_api:0,showNewSpecifications:!1,not_need_choose_productList:[],need_choose_productList:[],goodPrice:"",good_old_price:"",countDownTime:{hours:"00",minutes:"00",seconds:"00"},timer:null,currentStock:0,contactType:"none",mobile:"",plugid:"",alipayContactConfig:{tntInstId:"",scene:""},scene_icon:"",imageHeights:[],imageWidths:[],cardCur:0,currentImageHeight:750,currentImageWidth:0,swiperList:[],currentVideoContext:null}},onLoad:function(t){console.log(t,"optionsoptions"),t&&(this.options=t),this.getDetails(),this.getNumber()},onShareAppMessage:function(t){return{title:this.goods.title,path:"/store-page/goodsDetail/index?sid=".concat(this.options.sid,"&id=").concat(this.options.id,"&activity_id=").concat(this.options.activity_id||"","&type=").concat(this.options.type||""),imageUrl:this.goods.thumb||"",success:function(t){uni.showToast({title:"分享成功"}),wx.showShareMenu({withShareTicket:!0})}}},mounted:function(){var t=this;this.swiperList.forEach((function(e,o){t.$set(t.imageHeights,o,0),t.$set(t.imageWidths,o,0)}))},methods:{onImageLoad:function(t,e){var o=e.detail.height,i=e.detail.width;this.$set(this.imageHeights,t,o),this.$set(this.imageWidths,t,i),t===this.cardCur&&this.swiperList[t]&&"image"===this.swiperList[t].type&&(this.currentImageHeight=750*o/i)},cardSwiper:function(t){var e=t.detail.current,o=this.cardCur;if(this.cardCur=e,this.swiperList[o]&&"video"===this.swiperList[o].type){var i=uni.createVideoContext("video-"+o,this);i&&i.pause()}this.swiperList[e]&&"image"===this.swiperList[e].type&&(this.currentImageHeight=750*this.imageHeights[e]/this.imageWidths[e]||750)},getNumber:function(){var t=this;(0,l.getStoreShoppingCartSpecGoodNumApi)({sid:this.options.sid,goodsId:this.options.id,table_id:""}).then((function(e){e.cartOptions&&e.cartOptions.length>0&&(t.number=e.cartOptions[0].num)}))},callMobileContact:function(){uni.makePhoneCall({phoneNumber:this.mobile})},removeThumbnail:function(t){if(!t)return"";var e=t.indexOf("?imageMogr2/thumbnail/");return-1!==e?t.substring(0,e):t},initMaterial:function(){var t=this;(0,r.initMaterialApi)({sid:this.options.sid,goods_id:this.options.id}).then((function(e){console.log(e),e.data&&t.getMaterial()})).catch((function(t){console.log(t)}))},getMaterial:function(){var t=this;(0,r.getMaterialApi)({goods_id:this.options.id}).then((function(e){console.log(e),e.forEach((function(e){1==e.type?t.not_need_choose_productList.push(e):(1==e.max_quantity?e.choose_text="单选":e.choose_text="选"+e.max_quantity+"份",e.comboProducts.forEach((function(t){1==e.comboProducts.length?t.class="avctMod2":t.class=""})),t.need_choose_productList.push(e))})),console.log("not_need_choose_productList",t.not_need_choose_productList),console.log("need_choose_productList",t.need_choose_productList),t.good_old_price=t.goods.old_price,t.goodPrice=t.goods.price,console.log(t.good_old_price,t.goodPrice,t.goods),t.showNewSpecifications=!0})).catch((function(t){console.log(t)}))},openSku:function(){console.log(this.goods),1==this.is_api?this.initMaterial():this.isShowSkuSelectBox=!0},changeSwiper:function(t){var e=this;this.currIndex=t.detail.current,this.$nextTick((function(){e.setSwiperHeight()}))},setSwiperHeight:function(){var t=this,e="#wrap"+this.currIndex,o="";o=uni.createSelectorQuery().in(this),o.select(e).boundingClientRect(),o.exec((function(i){console.log("轮播图信息",e,o,i),i&&i[0]&&(t.swiperHeight=i[0].height),t.showSkeleton=!1}))},seleOptions:function(t,e){if(this.chooseIndex=t,this.selePrice=e.price,this.currentStock=e.total||0,this.specification.options.length>0){for(var o=Number(this.selePrice),i=0;i<this.specification.materials.length;i++)if(1==this.specification.materials[i].select){var n=Number(this.specification.materials[i].price);o+=n}this.selePrice=o}},setItemIdx:function(t,e){this.specification.attrs[e].seleidx=t},setItemArr:function(t,e){this.specification.materials[e].select=!this.specification.materials[e].select;var o=Number(this.selePrice),i=Number(t.price);this.specification.options.length>0&&(1==this.specification.materials[e].select?this.selePrice=o+i:this.selePrice-=i)},chooseAttrEvent:function(t,e){var o=this.specification.attrs[t].label,i=o.findIndex((function(t){return!0===t.select}));i!==e&&this.specification.attrs[t].label.map((function(t,o){t.select=o===e}))},specOptionId:function(){var t="";return this.goods.options.length>0?t+="".concat(this.goods.options[this.chooseIndex].id):t+=" ",this.specification.attrs.length>0&&(t.length>0&&(t+="_"),this.specification.attrs.forEach((function(e,o){t+="".concat(o,"s").concat(e.seleidx,"v")})),t=t.slice(0,t.length-1)),this.specification.materials.length>0&&(t.length>0&&(t+="_"),this.specification.materials.forEach((function(e,o){!0===e.select&&(t+="".concat(e.id,"m1n"))})),t=t.slice(0,t.length-1)),0===this.options.length&&t.length>0&&(t="0_"+t),t},getDetails:function(){var t=this,e=this.options,o=e.sid,i=e.id,n=e.type,s=e.activity_id;(0,r.getGoodsDetailsApi)({sid:o,id:i,type:n,activity_id:s}).then((function(e){var n=e.goodsDetail,s=e.store,c=e.scene;t.goods=(0,a.default)((0,a.default)({},n),{},{options:[]}),console.log(t.goods,"goods"),t.swiperList=[],n.video&&t.swiperList.push({type:"video",url:n.video}),n.slides&&n.slides.length>0?n.slides.forEach((function(e){t.swiperList.push({type:"image",url:e})})):n.thumb&&t.swiperList.push({type:"image",url:n.thumb}),t.store=s,t.is_api=e.goodsDetail.is_api,console.log("scene",c),t.scene_icon=c.icon||"",c.is_scene>=1||(t.contactType="none"),t.$nextTick((function(){t.startCountDown()})),t.currentStock=t.goods.total||0,(0,r.getGoodSpecInfoApi)({sid:o,goodsId:i,type:t.goods.seckillInfo&&t.goods.seckillInfo.status?"seckill":"",activity_id:t.goods.seckillInfo&&t.goods.seckillInfo.info?t.goods.seckillInfo.info.activity_id:""}).then((function(o){var i=o.options,n=void 0===i?[]:i,s=o;t.goods.options=n,t.selePrice=n.length>0?n[0].price:0,n.length>0&&(t.currentStock=n[0].total||0);for(var a=0;a<s.attrs.length;a++)s.attrs[a].seleidx=0;for(var r=0;r<s.materials.length;r++)s.materials[r].select=!1;t.specification=s,console.log(e,"ssssssssssssss",t.specification,t.goods.options,"this.goods.options")})),t.getFavi(),setTimeout((function(){t.$nextTick((function(){t.setSwiperHeight()}))}),300),0==t.store.other_desc.length&&(t.store.other_desc=[{title:"配送",detail:"付款后24小时内发货 | 包邮"},{title:"保障",detail:"退货包运费 · 假一赔十 · 七天无理由"}]),console.log("this.goods",t.goods),t.goods.other_desc.length>0&&(t.goods.other_desc[0].title||(t.goods.other_desc[0].title=t.store.other_desc[0].title||"配送"),t.goods.other_desc[0].detail||(t.goods.other_desc[0].detail=t.store.other_desc[0].detail||"付款后24小时内发货 | 包邮")),t.goods.other_desc.length>1&&(t.goods.other_desc[1].title||(t.goods.other_desc[1].title=t.store.other_desc[1].title||"保障"),t.goods.other_desc[1].detail||(t.goods.other_desc[1].detail=t.store.other_desc[1].detail||"退货包运费 · 假一赔十 · 七天无理由")),t.startCountDown()}))},getFavi:function(){var t=this;(0,c.getFaviatePageDataApi)().then((function(e){console.log("收藏店铺",e,t.store);for(var o=0;o<e.stores.length;o++){if(console.log(e.stores[o].title==t.store.title),e.stores[o].title==t.store.title){t.concernStatus=!0;break}t.concernStatus=!1}}))},favoriteStore:function(t){var e=this;(0,c.favoriteStoreDataApi)({sid:t,type:this.concernStatus?2:1}).then((function(t){console.log(t),e.getFavi(),uni.showModal({title:"提示",content:e.concernStatus?"已取消收藏":"收藏功",showCancel:!1})}))},closePup:function(){console.log("cccclose"),this.showNewSpecifications=!1,this.need_choose_productList=[],this.not_need_choose_productList=[]},addGoodsList:function(t,e){var o=this;return(0,s.default)((0,n.default)().mark((function i(){var s,a,r,c,u,f;return(0,n.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(1!=o.store.is_rest){i.next=3;break}return uni.showModal({title:"提示",content:"店铺休息中!",showCancel:!1}),i.abrupt("return");case 3:if(console.log("选择的规格",o.specOptionId()),s=o,1!=s.goods.is_attrs||o.isShowSkuSelectBox){i.next=8;break}return s.openSku(),i.abrupt("return");case 8:if(uni.showLoading({}),a=o.options,r=a.sid,c=a.id,1!=t||o.hasAddCart||(t=2),!e||!o.hasAddCart){i.next=14;break}return o.navSubmitOrderPage(),i.abrupt("return");case 14:if(!(o.chooseCount>0&&2===t)){i.next=28;break}return i.prev=15,i.next=18,(0,l.addGoodToCartApi)({goodsId:c,sid:r,num:o.chooseCount,optionId:o.specOptionId(),sign:"+",spellrice_id:"",table_id:"",type:o.goods.seckillInfo&&o.goods.seckillInfo.status?"seckill":"",activity_id:o.goods.seckillInfo&&o.goods.seckillInfo.info?o.goods.seckillInfo.info.activity_id:"",miniProgramPath:""});case 18:u=i.sent,u&&(o.hasAddCart=!0,e?s.navSubmitOrderPage():o.getNumber()),i.next=25;break;case 22:i.prev=22,i.t0=i["catch"](15),uni.showToast({icon:"none",title:i.t0.msg});case 25:uni.hideLoading(),i.next=39;break;case 28:return i.prev=28,i.next=31,(0,d.getAddBargainApi)({sid:r,goods_id:c,option_id:"",sign:"+"});case 31:f=i.sent,f&&(o.hasAddCart=!0,e?s.navSubmitOrderPage():uni.showModal({title:"提示",content:"添加购物车成功!",showCancel:!1})),i.next=38;break;case 35:i.prev=35,i.t1=i["catch"](28),uni.showToast({icon:"error",title:i.t1.msg});case 38:uni.hideLoading();case 39:case"end":return i.stop()}}),i,null,[[15,22],[28,35]])})))()},navSubmitOrderPage:function(){if(1===+this.store.isRest||0===+this.store.isInBusiness)return showToast({title:"店铺休息中..."});var t="/order-page/submit-order/index?sid=".concat(this.store.id).concat(this.goods.seckillInfo&&this.goods.seckillInfo.status?"&type=seckill":"");(0,f.navPage)(t,"redirect")},navPage:f.navPage,callPhone:p.callPhone,startCountDown:function(){var t,e,o,i,n,s,a=this;if(this.timer&&clearInterval(this.timer),console.log("倒计时数据:",null===(t=this.goods)||void 0===t||null===(e=t.seckillInfo)||void 0===e||null===(o=e.info)||void 0===o?void 0:o.remaining_seconds),(null===(i=this.goods)||void 0===i||null===(n=i.seckillInfo)||void 0===n||null===(s=n.info)||void 0===s?void 0:s.remaining_seconds)>0){var r=Number(this.goods.seckillInfo.info.remaining_seconds);this.calculateTime(r),this.timer=setInterval((function(){if(r--,r<=0)return clearInterval(a.timer),void a.getDetails();a.calculateTime(r)}),1e3)}},calculateTime:function(t){var e=Math.floor(t/3600),o=Math.floor(t%3600/60),i=t%60;this.countDownTime={hours:e.toString().padStart(2,"0"),minutes:o.toString().padStart(2,"0"),seconds:i.toString().padStart(2,"0")}},nP:function(t,e){(0,f.navPage)("/store-page/product-showcase/template-1?sid="+t)},onHide:function(){if(this.swiperList[this.cardCur]&&"video"===this.swiperList[this.cardCur].type){var t=uni.createVideoContext("video-"+this.cardCur,this);t&&t.pause()}this.timer&&clearInterval(this.timer)},onShow:function(){var t,e,o;this.getDetails(),(null===(t=this.goods)||void 0===t||null===(e=t.seckillInfo)||void 0===e||null===(o=e.info)||void 0===o?void 0:o.remaining_seconds)>0&&this.startCountDown()},videoError:function(t){console.log("视频播放错误:",t),uni.showToast({title:"视频加载失败",icon:"none"})},onVideoPlay:function(t){this.currentVideoContext=uni.createVideoContext("video-"+t,this)}},onUnmounted:function(){this.timer&&clearInterval(this.timer)}};e.default=v},5852:function(t,e,o){"use strict";var i=o("703c"),n=o.n(i);n.a},"5e75":function(t,e,o){"use strict";o.r(e);var i=o("583f"),n=o.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},6197:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return n})),o.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return t.visibleSync?o("v-uni-view",{staticClass:"tn-popup-class tn-popup",style:[t.customStyle,t.popupStyle,{zIndex:t.elZIndex-1}],attrs:{"hover-stop-propagation":!0}},[o("v-uni-view",{staticClass:"tn-popup__mask",class:[{"tn-popup__mask--show":t.showPopup&&t.mask}],style:{zIndex:t.elZIndex-2},attrs:{"hover-stop-propagation":!0},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),function(){}.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.maskClick.apply(void 0,arguments)}}}),o("v-uni-view",{staticClass:"tn-popup__content",class:["center"!==t.mode?t.backgroundColorClass:"",t.safeAreaInsetBottom?"tn-safe-area-inset-bottom":"","tn-popup--"+t.mode,t.showPopup?"tn-popup__content--visible":"",t.zoom&&"center"===t.mode?"tn-popup__content__center--animation-zoom":""],style:[t.contentStyle],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:[function(e){arguments[0]=e=t.$handleEvent(e),t.modeCenterClose.apply(void 0,arguments)},function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)}]}},["center"===t.mode?o("v-uni-view",{staticClass:"tn-popup__content__center_box",class:[t.backgroundColorClass],style:[t.centerStyle],on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)},click:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e)}}},[t.closeBtn?o("v-uni-view",{staticClass:"tn-popup__close",class:["tn-icon-"+t.closeBtnIcon,"tn-popup__close--"+t.closeBtnPosition],style:[t.closeBtnStyle,{zIndex:t.elZIndex}],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),o("v-uni-scroll-view",{staticClass:"tn-popup__content__scroll-view"},[t._t("default")],2)],1):o("v-uni-scroll-view",{staticClass:"tn-popup__content__scroll-view",attrs:{"scroll-y":!0}},[t._t("default")],2),"center"!==t.mode&&t.closeBtn?o("v-uni-view",{staticClass:"tn-popup__close",class:["tn-popup__close--"+t.closeBtnPosition],style:{zIndex:t.elZIndex},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[o("v-uni-view",{class:["tn-icon-"+t.closeBtnIcon],style:[t.closeBtnStyle]})],1):t._e()],1)],1):t._e()},n=[]},6286:function(t,e,o){"use strict";o("6a54");var i=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getFavoriteGoodsApi=e.getFaviateStoreCodeApi=e.getFaviatePageDataApi=e.favoriteStoreDataApi=void 0;var n=i(o("7653"));e.getFaviatePageDataApi=function(t){return n.default.get("api/user.member.favorite/list",t)};e.favoriteStoreDataApi=function(t){return n.default.get("api/user.member.favorite/operate",t)};e.getFaviateStoreCodeApi=function(t){return n.default.get("api/user.member.favorite/getStoreCode",t)};e.getFavoriteGoodsApi=function(t){return n.default.get("api/user.member.goods_favorite/list",t)}},"65c2":function(t,e,o){"use strict";o("6a54");var i=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("64aa"),o("c223");var n=i(o("74ff")),s={mixins:[n.default],name:"tn-popup",props:{value:{type:Boolean,default:!1},mode:{type:String,default:"left"},mask:{type:Boolean,default:!0},length:{type:[Number,String],default:"auto"},width:{type:String,default:""},height:{type:String,default:""},zoom:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseable:{type:Boolean,default:!0},customStyle:{type:Object,default:function(){return{}}},borderRadius:{type:Number,default:0},zIndex:{type:Number,default:0},closeBtn:{type:Boolean,default:!1},boxBg:{type:String,default:"#ffffff"},closeBtnIcon:{type:String,default:"close"},closeBtnPosition:{type:String,default:"top-right"},closeIconColor:{type:String,default:"#AAAAAA"},closeIconSize:{type:Number,default:30},negativeTop:{type:Number,default:0},marginTop:{type:Number,default:0},popup:{type:Boolean,default:!0}},computed:{popupStyle:function(){var t={};return"top"!==this.mode&&"left"!==this.mode&&"right"!==this.mode||!this.marginTop||(t.marginTop=this.$tn.string.getLengthUnitValue(this.marginTop,"px")),t},contentStyle:function(){var t={};if("left"===this.mode||"right"===this.mode?t={width:this.width?this.$tn.string.getLengthUnitValue(this.width):this.$tn.string.getLengthUnitValue(this.length),height:"100%",transform:"translate3D(".concat("left"===this.mode?"-100%":"100%",", 0px, 0px)")}:"top"!==this.mode&&"bottom"!==this.mode||(t={width:"100%",height:this.height?this.$tn.string.getLengthUnitValue(this.height):this.$tn.string.getLengthUnitValue(this.length),transform:"translate3D(0px, ".concat("top"===this.mode?"-100%":"100%",", 0px)")}),t.zIndex=this.elZIndex,this.borderRadius){switch(this.mode){case"left":t.borderRadius="0 ".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx 0");break;case"top":t.borderRadius="0 0 ".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx");break;case"right":t.borderRadius="".concat(this.borderRadius,"rpx 0 0 ").concat(this.borderRadius,"rpx");break;case"bottom":t.borderRadius="".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx 0 0");break}t.overflow="hidden"}return this.backgroundColorStyle&&"center"!==this.mode&&(t.backgroundColor=this.backgroundColorStyle),t},centerStyle:function(){var t={};return t.width=this.width?this.$tn.string.getLengthUnitValue(this.width):this.$tn.string.getLengthUnitValue(this.length),t.height=this.height?this.$tn.string.getLengthUnitValue(this.height):"auto",t.zIndex=this.elZIndex,t.backgroundColor=this.boxBg,this.negativeTop&&(t.marginTop="-".concat(this.$tn.string.getLengthUnitValue(this.negativeTop))),this.borderRadius&&(t.borderRadius="".concat(this.borderRadius,"rpx"),t.overflow="hidden"),this.backgroundColorStyle&&(t.backgroundColor=this.backgroundColorStyle),t},closeBtnStyle:function(){var t={};return this.closeIconColor&&(t.color=this.closeIconColor),this.closeIconSize&&(t.fontSize=this.closeIconSize+"rpx"),t},elZIndex:function(){return this.zIndex?this.zIndex:this.$tn.zIndex.popup}},data:function(){return{timer:null,visibleSync:!1,showPopup:!1,closeFromInner:!1}},watch:{value:function(t){if(t){if(this.visibleSync)return void(this.visibleSync=!1);this.open()}else this.closeFromInner||this.close();this.closeFromInner=!1}},mounted:function(){this.value&&this.open()},methods:{maskClick:function(){this.maskCloseable&&this.close()},open:function(){this.change("visibleSync","showPopup",!0)},close:function(){this.closeFromInner=!0,this.change("showPopup","visibleSync",!1)},modeCenterClose:function(){"center"==this.mode&&this.maskCloseable&&this.close()},change:function(t,e,o){var i=this;!0===this.popup&&this.$emit("input",o),this[t]=o,this.timer=o?setTimeout((function(){i[e]=o,i.$emit(o?"open":"close"),clearTimeout(i.timer)}),10):setTimeout((function(){i[e]=o,i.$emit(o?"open":"close"),clearTimeout(i.timer)}),250)}}};e.default=s},"6b78":function(t,e,o){var i=o("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-badge[data-v-24d7672c]{width:auto;height:auto;box-sizing:border-box;display:flex;align-items:center;justify-content:center;z-index:10;font-size:%?20?%;background-color:#fff;border-radius:%?100?%;padding:%?4?% %?8?%;line-height:normal}.tn-badge--dot[data-v-24d7672c]{width:%?8?%;height:%?8?%;border-radius:50%;padding:0}.tn-badge--absolute[data-v-24d7672c]{position:absolute;top:0;right:0}.tn-badge--center-position[data-v-24d7672c]{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}',""]),t.exports=e},"703c":function(t,e,o){var i=o("6b78");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("967d").default;n("7f7eeb16",i,!0,{sourceMap:!1,shadowMode:!1})},"73e1":function(t,e,o){"use strict";var i=o("29d8");t.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(i)},"74ff":function(t,e,o){o("64aa"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$tn.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$tn.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$tn.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$tn.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$tn.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},"795c":function(t,e,o){"use strict";var i=o("8bdb"),n=o("db04").start,s=o("73e1");i({target:"String",proto:!0,forced:s},{padStart:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},"84ae":function(t,e,o){"use strict";o.r(e);var i=o("65c2"),n=o.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},a547:function(t,e,o){var i=o("45b3");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("967d").default;n("02fcab87",i,!0,{sourceMap:!1,shadowMode:!1})},af4b:function(t,e,o){"use strict";o.r(e);var i=o("0807"),n=o("b718");for(var s in n)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("5852");var a=o("828b"),r=Object(a["a"])(n["default"],i["b"],i["c"],!1,null,"24d7672c",null,!1,i["a"],void 0);e["default"]=r.exports},b43b:function(t,e,o){"use strict";o("6a54");var i=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getBargainSettingByAgentApi=e.getBargainGodsInfoApi=e.getBargainGodsApi=e.getAddBargainApi=void 0;var n=i(o("7653"));e.getBargainGodsApi=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.default.get("api/user.bargain.goods/index",t)};e.getBargainGodsInfoApi=function(t){return n.default.get("api/user.bargain.goods/index",t)};e.getAddBargainApi=function(t){return n.default.post("api/user.bargain.goods/cart",t)};e.getBargainSettingByAgentApi=function(){return n.default.get("api/user.bargain.goods/getBargainSettingByAgent")}},b5f9:function(t,e,o){var i=o("4527");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=o("967d").default;n("43a44b20",i,!0,{sourceMap:!1,shadowMode:!1})},b718:function(t,e,o){"use strict";o.r(e);var i=o("5328"),n=o.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},db04:function(t,e,o){"use strict";var i=o("bb80"),n=o("c435"),s=o("9e70"),a=o("f298"),r=o("862c"),c=i(a),l=i("".slice),d=Math.ceil,u=function(t){return function(e,o,i){var a,u,f=s(r(e)),p=n(o),g=f.length,h=void 0===i?" ":s(i);return p<=g||""===h?f:(a=p-g,u=c(h,d(a/h.length)),u.length>a&&(u=l(u,0,a)),t?f+u:u+f)}};t.exports={start:u(!1),end:u(!0)}},dc1f:function(t,e,o){"use strict";o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={data:function(){return{}},computed:{themeBgColor:function(){return this.$isTheme()?"--theme-general-color":this.vuex_themeBgColor||""},themeOpacityBgColor:function(){return this.vuex_themeBgColor?"".concat(this.vuex_themeBgColor,"7F"):""},themeFontColor:function(){return this.$isTheme()?"--general-color-text":this.vuex_themeFontColor||""},themeBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.backgroundColor=this.vuex_themeBgColor),this.vuex_themeFontColor&&(t.color=this.vuex_themeFontColor),this.$isTheme()&&(t.backgroundColor="var(--theme-general-color)",t.color="--general-color-text"),t},themeLineBtnStyle:function(){var t={};return this.vuex_themeBgColor&&(t.border="1rpx solid ".concat(this.vuex_themeBgColor),t.color=this.vuex_themeBgColor),this.$isTheme()&&(t.border="1rpx solid var(--theme-general-color)",t.color="var(--theme-general-color)"),t}}}},e121:function(t,e,o){"use strict";o.r(e);var i=o("25cb"),n=o("5e75");for(var s in n)["default"].indexOf(s)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(s);o("4a58");var a=o("828b"),r=Object(a["a"])(n["default"],i["b"],i["c"],!1,null,"18e4fe86",null,!1,i["a"],void 0);e["default"]=r.exports},f298:function(t,e,o){"use strict";var i=o("497b"),n=o("9e70"),s=o("862c"),a=RangeError;t.exports=function(t){var e=n(s(this)),o="",r=i(t);if(r<0||r===1/0)throw new a("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(e+=e))1&r&&(o+=e);return o}}}]);