(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{618:function(t,e,o){var content=o(701);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(21).default)("109f9cd2",content,!0,{sourceMap:!1})},700:function(t,e,o){"use strict";o(618)},701:function(t,e,o){var r=o(20)((function(i){return i[1]}));r.push([t.i,".goods-details{padding:16px 0 44px}.goods-details .goods-info{align-items:flex-start}.goods-details .goods-info .goods-swiper{border-radius:4px;width:430px}.goods-details .goods-info .goods-swiper .swiper{margin:10px 0;padding:0 25px;--swiper-navigation-size:15px;--swiper-navigation-color:#888}.goods-details .goods-info .goods-swiper .swiper .swiper-button-next,.goods-details .goods-info .goods-swiper .swiper .swiper-button-prev{background-size:12px 22px;height:100%;margin-top:0;top:0;width:25px}.goods-details .goods-info .goods-swiper .swiper .swiper-button-prev{left:0}.goods-details .goods-info .goods-swiper .swiper .swiper-button-next{right:0}.goods-details .goods-info .goods-swiper .swiper .swiper-item{border:2px solid transparent;cursor:pointer;height:66px;width:66px}.goods-details .goods-info .goods-swiper .swiper .swiper-item~.swiper-item{margin-left:10px}.goods-details .goods-info .goods-swiper .swiper .swiper-item.active{border-color:#007b44}.goods-details .goods-info .goods-swiper .current-img{height:430px;padding:15px;width:100%}.goods-details .goods-info .info-wrap{border-radius:4px;flex:1;min-height:486px;padding:20px}.goods-details .goods-info .info-wrap .name{font-size:20px}.goods-details .goods-info .info-wrap .seckill{background-color:#007b44;padding:6px 10px}.goods-details .goods-info .info-wrap .seckill .count-down .item{background:rgba(0,0,0,.3);border-radius:4px;height:30px;line-height:30px;text-align:center;width:30px}.goods-details .goods-info .info-wrap .price-wrap{background:#f6f6f6;background-size:100%;padding:16px 16px 0}.goods-details .goods-info .info-wrap .price-wrap .coupon-list .coupon-item{border:1px solid;color:#007b44;padding:2px 6px}.goods-details .goods-info .info-wrap .price-wrap .member-price{background-color:#fde5b0;border-radius:4px;color:#63360e;line-height:20px;overflow:hidden;padding-right:6px}.goods-details .goods-info .info-wrap .price-wrap .member-price .member-tag{background-color:#141215;color:#ffe7b2;margin-right:6px;padding:0 6px}.goods-details .goods-info .info-wrap .sales-click{border-bottom:1px dashed hsla(0,0%,90%,.898);line-height:28px;padding:6px}.goods-details .goods-info .info-wrap .sales-click>div:first-of-type{border-right:1px solid hsla(0,0%,90%,.898)}.goods-details .goods-info .info-wrap .spec-wrap .spec{align-items:flex-start}.goods-details .goods-info .info-wrap .spec-wrap .spec .spec-name{flex:none;margin-right:20px;margin-top:6px}.goods-details .goods-info .info-wrap .spec-wrap .spec .spec-item{border:1px solid hsla(0,0%,90%,.898);border-radius:2px;cursor:pointer;line-height:32px;margin-bottom:10px;margin-right:10px;padding:0 20px}.goods-details .goods-info .info-wrap .spec-wrap .spec .spec-item.active{background-color:#e9faef;border-color:currentColor;color:#007b44}.goods-details .goods-info .info-wrap .goods-num{margin-bottom:30px}.goods-details .goods-info .info-wrap .goods-num .num{margin-right:20px}.goods-details .goods-info .info-wrap .goods-btns .btn{border:1px solid #007b44;border-radius:2px;cursor:pointer;line-height:42px;margin-right:14px;text-align:center;width:120px}.goods-details .goods-info .info-wrap .goods-btns .btn.addcart{background-color:#e9faef;border-color:currentColor;color:#007b44}.goods-details .goods-info .info-wrap .goods-btns .btn.collection{background-color:transparent;border-color:hsla(0,0%,90%,.898);color:#666;width:146px}.goods-details .goods-info .info-wrap .goods-btns .btn.collection .start-icon{height:18px;width:18.5px}.goods-details .details-wrap{align-items:stretch}.goods-details .details-wrap .details{overflow:hidden;padding:15px 10px}.goods-details .details-wrap .details .rich-text{overflow:hidden;padding:0 10px;width:100%}.goods-details .details-wrap .details .rich-text img{display:block;width:100%}.goods-details .details-wrap .details .rich-text p{margin:0}.goods-details .details-wrap .details .evaluation .evaluation-hd{background-color:#f2f2f2;height:80px;margin:0 10px}.goods-details .details-wrap .details .evaluation .evaluation-hd .rate{border-right:1px solid #e5e5e5;height:60px;margin-right:40px;padding-left:10px;width:220px}.goods-details .details-wrap .details .evaluation .evaluation-tab{margin:16px 20px}.goods-details .details-wrap .details .evaluation .evaluation-tab .item{background-color:#f2f2f2;border-radius:2px;color:#666;cursor:pointer;height:32px;margin-right:10px;padding:6px 20px}.goods-details .details-wrap .details .evaluation .evaluation-tab .item.active{background-color:#007b44;color:#fff}.goods-details .goods-like{border-right:1px solid hsla(0,0%,90%,.898);width:204px}.goods-details .goods-like .goods-list .item{display:block;padding:12px}.goods-details .goods-like .goods-list .item .goods-img{height:180px;margin-bottom:10px;width:180px}.goods-details .mobile-code{background-color:#fff;border-left:1px solid hsla(0,0%,90%,.898);width:200px}.goods-details .title{border-bottom:1px solid hsla(0,0%,90%,.898);height:55px}.goods-details .title>img{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}",""]),r.locals={},t.exports=r},746:function(t,e,o){"use strict";o.r(e);o(68),o(32),o(309),o(13);var r=o(515),n=o(10),d=o(7),c=(o(48),o(106),o(555),o(209),o(67),o(24),o(22),o(26),o(33),o(34),o(25),o(66),o(553)),l=o(503),m=o(14),v=o(101),f=o(145);function h(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function _(t){for(var e=1;ethis.goodsDetails.limit_value)return!0;break;case"buy":if(2===this.goodsDetails.limit_type&&this.goodsDetails.buy_num+this.goodsNum>this.goodsDetails.limit_value)return!0}}}),watch:{goodsSpec:{immediate:!0,handler:function(t){var e=this.goodsDetails.spec_value_list,o=[];if(t.forEach((function(t){t.spec_list&&t.spec_list.forEach((function(t){t.checked&&o.push(t.id)}))})),o.length){var r=o.join(","),n=e.findIndex((function(t){return t.spec_value_ids==r}));-1==n&&(n=0),this.checkedGoods=e[n],console.log(this.checkedGoods)}}},goodsDetails:{immediate:!0,handler:function(t){t.spec_value&&(t.spec_value.forEach((function(t){t.spec_list.forEach((function(t,e){t.checked=0==e?1:0}))})),this.goodsSpec=Object(r.a)(t.spec_value))}}},computed:_(_({countTime:function(){var t=this.activity.info;return t?t.end_time-Date.now()/1e3:0}},Object(m.e)(["token","publicData"])),{},{mobileLink:function(){var t;return"".concat(null===(t=this.publicData)||void 0===t||null===(t=t.shop)||void 0===t?void 0:t.mobile_uri,"/pages/goods_detail/goods_detail?id=").concat(this.id)}})},w=(o(700),o(9)),component=Object(w.a)(x,(function(){var t=this,e=t._self._c;return t.goodsDetails.id?e("div",{staticClass:"goods-details"},[e("div",{staticStyle:{width:"70%","margin-left":"15%"}},[e("div",{staticClass:"goods-info bg-white flex"},[e("div",{staticClass:"goods-swiper m-r-16 bg-white flex-col"},[e("el-image",{staticClass:"current-img",attrs:{"preview-src-list":t.goodsImage.map((function(t){return t})),src:t.goodsImage[t.swiperIndex]}}),t._v(" "),e("client-only",[e("swiper",{ref:"mySwiper",staticClass:"swiper",attrs:{options:t.swiperOptions}},[t._l(t.goodsImage,(function(o,r){return e("swiper-slide",{key:r,class:{"swiper-item":!0,active:r===t.swiperIndex}},[e("div",{staticStyle:{width:"100%",height:"100%"},on:{mouseover:function(e){t.swiperIndex=r}}},[e("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:o}})],1)])})),t._v(" "),e("div",{staticClass:"swiper-button-prev",attrs:{slot:"button-prev"},slot:"button-prev"}),t._v(" "),e("div",{staticClass:"swiper-button-next",attrs:{slot:"button-next"},slot:"button-next"})],2)],1)],1),t._v(" "),e("div",{staticClass:"info-wrap bg-white flex-1"},[e("div",{staticClass:"name bold m-b-16"},[t._v(t._s(t.goodsDetails.name))]),t._v(" "),1==t.activity.type?e("div",{staticClass:"seckill flex white"},[e("div",{staticClass:"xxl"},[t._v("限时秒杀")]),t._v(" "),e("div",{staticClass:"flex"},[e("div",{staticClass:"white m-r-16"},[t._v("距离结束还有")]),t._v(" "),e("count-down",{attrs:{time:t.countTime,"is-slot":!0},on:{change:t.onChangeDate}},[e("div",{staticClass:"flex row-center count-down xxl"},[e("div",{staticClass:"item white"},[t._v("\n "+t._s(t.timeData.hours)+"\n ")]),t._v(" "),e("div",{staticClass:"white",staticStyle:{margin:"0 4px"}},[t._v("\n :\n ")]),t._v(" "),e("div",{staticClass:"item white"},[t._v("\n "+t._s(t.timeData.minutes)+"\n ")]),t._v(" "),e("div",{staticClass:"white",staticStyle:{margin:"0 4px"}},[t._v("\n :\n ")]),t._v(" "),e("div",{staticClass:"item white"},[t._v("\n "+t._s(t.timeData.seconds)+"\n ")])])])],1)]):t._e(),t._v(" "),e("div",{staticClass:"price-wrap lighter"},[e("div",{staticClass:"flex row-between"},[e("div",{staticClass:"price"},[Number(t.checkedGoods.lineation_price||t.goodsDetails.lineation_price)?e("div",{staticClass:"flex"},[t._v("\n "+t._s(1==t.activity.type?"日常价":"原价")+"\n "),e("span",{staticClass:"m-l-20"},[e("price-formate",{attrs:{price:t.checkedGoods.lineation_price||t.goodsDetails.lineation_price,weight:400}})],1)]):t._e(),t._v(" "),e("div",{staticClass:"flex m-t-10"},[t._v("\n "+t._s(1==t.activity.type?"秒杀价":"价格")+"\n "),e("div",{staticClass:"primary m-l-20"},[e("price-formate",{attrs:{price:t.checkedGoods.sell_price||t.goodsDetails.sell_price,"subscript-size":16,"first-size":26,"second-size":16}})],1),t._v(" "),1!=t.activity.type&&(t.checkedGoods.member_price||t.goodsDetails.member_price)?e("div",{staticClass:"member-price m-l-10 flex xs"},[e("div",{staticClass:"member-tag"},[t._v("会员价")]),t._v(" "),e("price-formate",{attrs:{price:t.checkedGoods.member_price||t.goodsDetails.member_price,weight:400}})],1):t._e()])]),t._v(" "),e("div",{staticClass:"rate flex-col row-right"},[e("div",{staticClass:"primary",staticStyle:{"font-size":"20px"}},[t._v("\n "+t._s(t.comment.percent)+"\n ")]),t._v(" "),e("div",{staticClass:"lighter"},[t._v("好评率")])])]),t._v(" "),1!=t.activity.type?e("div",{staticClass:"m-t-10 p-b-16"},[e("nuxt-link",{staticClass:"flex row-between",attrs:{to:"/get_coupons?id=".concat(t.goodsDetails.id)}},[e("div",{staticClass:"flex col-top"},[e("div",{staticStyle:{flex:"none"}},[t._v("优惠")]),t._v(" "),e("div",{staticClass:"coupon-list m-l-20 flex flex-wrap"},t._l(t.couponLists,(function(o,r){return e("div",{directives:[{name:"show",rawName:"v-show",value:r<=3,expression:"index <= 3"}],key:o.id,staticClass:"coupon-item xs m-l-10"},[1==o.condition_type?e("span",[t._v("无门槛¥"+t._s(o.money))]):t._e(),t._v(" "),2==o.condition_type?e("span",[t._v("满¥"+t._s(o.condition_money)+"减¥"+t._s(o.money))]):t._e(),t._v(" "),3==o.condition_type?e("span",[t._v("满¥"+t._s(o.condition_money)+"打"+t._s(o.discount_ratio)+"折")]):t._e()])})),0)]),t._v(" "),e("i",{staticClass:"el-icon-arrow-right"})])],1):t._e()]),t._v(" "),e("div",{staticClass:"sales-click muted sm"},[[e("span",{staticClass:"m-6"},[t._v("\n 运费:"+t._s(t.goodsDetails.free_shipping_tips||"以提交订单时为准")+"\n ")]),t._v("\n |\n ")],t._v(" "),e("span",{staticClass:"m-6"},[t._v("\n 销量:"+t._s(t.goodsDetails.sales_num)+"件\n ")]),t._v("\n |\n "),e("span",{staticClass:"m-6"},[t._v("\n 浏览量:"+t._s(t.goodsDetails.click_num)+"次\n ")])],2),t._v(" "),e("div",{staticClass:"spec-wrap m-t-20"},t._l(t.goodsSpec,(function(o,r){return e("div",{key:r,staticClass:"spec flex m-b-16"},[e("div",{staticClass:"lighter spec-name"},[t._v(t._s(o.name))]),t._v(" "),e("div",{staticClass:"spec-list flex flex-wrap"},t._l(o.spec_list,(function(r,n){return e("div",{key:n,class:["spec-item lighter",{active:r.checked}],on:{click:function(e){return t.onChoseSpecItem(o.id,r.id)}}},[t._v("\n "+t._s(r.value)+"\n ")])})),0)])})),0),t._v(" "),e("div",{staticClass:"goods-num flex"},[e("div",{staticClass:"num lighter"},[t._v("数量")]),t._v(" "),e("number-box",{attrs:{min:1,max:t.goodsDetails.limit_value||t.checkedGoods.stock},model:{value:t.goodsNum,callback:function(e){t.goodsNum=e},expression:"goodsNum"}}),t._v(" "),e("div",{staticClass:"m-l-10 sm muted"},[t._v("\n 库存: "+t._s(t.checkedGoods.stock)+"\n ")]),t._v(" "),1!==t.goodsDetails.limit_type?e("div",{staticClass:"m-l-20 sm muted"},[3===t.goodsDetails.limit_type?e("span",[t._v("每笔限购\n "+t._s(t.goodsDetails.limit_value)+" 件")]):t._e(),t._v(" "),2===t.goodsDetails.limit_type?e("span",[t._v("每人限购\n "+t._s(t.goodsDetails.limit_value)+" 件")]):t._e()]):t._e()],1),t._v(" "),e("div",{staticClass:"goods-btns flex"},[e("div",{staticClass:"btn bg-primary white",on:{click:t.onBuyNow}},[t._v("\n 立即购买\n ")]),t._v(" "),1!=t.activity.type&&1==t.goodsDetails.type?e("div",{staticClass:"btn primary addcart",on:{click:t.onAddCart}},[t._v("\n 加入购物车\n ")]):t._e(),t._v(" "),e("div",{staticClass:"btn lighter collection flex row-center",on:{click:t.onCollectionGoods}},[e("img",{staticClass:"start-icon m-r-8",attrs:{src:t.goodsDetails.is_collect?o(615):o(616)}}),t._v(" "),e("div",[t._v("收藏该商品")])])])])]),t._v(" "),e("div",{staticClass:"details-wrap flex m-t-16"},[e("div",{staticClass:"goods-like"},[e("div",{staticClass:"title flex row-center bg-white"},[t._v("\n - 猜你喜欢 -\n ")]),t._v(" "),e("div",{staticClass:"goods-list"},[t._l(t.goodsDetails.recommend,(function(o,r){return[r<5?e("div",{key:r,staticClass:"item bg-white",on:{click:function(e){return t.toOther(o.id)}}},[e("el-image",{staticClass:"goods-img",attrs:{src:o.image}}),t._v(" "),e("div",{staticClass:"goods-name line2"},[t._v("\n "+t._s(o.name)+"\n ")]),t._v(" "),e("div",{staticClass:"price flex m-t-8"},[e("div",{staticClass:"primary m-r-8"},[e("price-formate",{attrs:{price:o.sell_price,"first-size":16}})],1),t._v(" "),Number(o.lineation_price)?e("div",{staticClass:"muted sm line-through"},[e("price-formate",{attrs:{price:o.lineation_price}})],1):t._e()])],1):t._e()]}))],2)]),t._v(" "),e("div",{staticClass:"details bg-white flex-1"},[e("el-tabs",{model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[e("el-tab-pane",{attrs:{label:"商品详情"}},[e("div",{staticClass:"rich-text",domProps:{innerHTML:t._s(t.goodsDetails.content)}})]),t._v(" "),e("el-tab-pane",{attrs:{label:"商品评价"}},[e("div",{staticClass:"evaluation"},[e("div",{staticClass:"evaluation-hd flex"},[e("div",{staticClass:"rate flex"},[e("div",{staticClass:"lighter m-r-8"},[t._v("好评率")]),t._v(" "),e("div",{staticClass:"primary",staticStyle:{"font-size":"30px"}},[t._v("\n "+t._s(t.comment.percent)+"\n ")])]),t._v(" "),e("div",{staticClass:"score lighter flex"},[e("span",{staticClass:"m-r-8"},[t._v("评分")]),t._v(" "),e("el-rate",{attrs:{disabled:"","allow-half":""},model:{value:t.comment.star,callback:function(e){t.$set(t.comment,"star",e)},expression:"comment.star"}})],1)]),t._v(" "),e("div",{staticClass:"evaluation-tab flex"},t._l(t.comment.comment,(function(o,r){return e("div",{key:r,class:["item",{active:t.commentActive==o.id}],on:{click:function(e){t.commentActive=o.id}}},[t._v("\n "+t._s(o.name)+"("+t._s(o.count)+")\n ")])})),0)]),t._v(" "),e("div",[t._l(t.comment.comment,(function(o,r){return[e("comment-list",{directives:[{name:"show",rawName:"v-show",value:t.commentActive==o.id,expression:"commentActive == item.id"}],key:r,attrs:{"goods-id":t.goodsDetails.id,type:o.id}})]}))],2)])],1)],1),t._v(" "),t._m(0)])])]):t._e()}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"mobile-code p-b-16"},[e("div",{staticClass:"title flex row-center"},[t._v("手机端访问")]),t._v(" "),e("div",{staticClass:"flex-col col-center m-t-20"},[e("img",{staticStyle:{width:"100px",height:"100px"},attrs:{src:"https://shop.gxsmlt.com/uploads/images/20250426/20250426200202048ff5820.jpg",alt:""}}),t._v(" "),e("div",{staticClass:"lighter m-t-10"},[t._v("微信小程序")])])])}],!1,null,null,null);e.default=component.exports;installComponents(component,{CountDown:o(503).default,PriceFormate:o(500).default,CommentList:o(585).default})}}]);