PageSourceSearch

https://www.ctfmall.com/js/311.7abddd85.js

js ctfmall.com collected 2026-10-09 22:40:41 UTC 57,419 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkdemo5_vue2"]=self["webpackChunkdemo5_vue2"]||[]).push([[311],{7067:function(t,e,s){s.d(e,{A:function(){return n}});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrapper"},[e("div",{staticClass:"container"},[t.itemData.title&&1!=t.itemData.isHideTitle?e("div",{staticClass:"headline"},[e("h3",{staticClass:"font-title"},[t._v(t._s(t.itemData.title))])]):t._e(),e("div",{staticClass:"products"},[e("el-carousel",{ref:"carousel",attrs:{autoplay:!1,arrow:"never","indicator-position":"none",height:"469px"}},t._l(t.productsList,function(s,i){return e("el-carousel-item",{key:i},[e("div",{staticClass:"list"},t._l(s,function(s,a){return e("div",{key:i+"_"+a,staticClass:"item cursor-pointer",on:{click:function(e){return t.toGoodsDetail(s)}}},[e("div",{staticClass:"top"},[e("div",{staticClass:"tags"},[1==s.isHot?e("div",{staticClass:"tags-txt"},[t._v("热卖")]):t._e(),1==s.isNew?e("div",{staticClass:"tags-txt"},[t._v("新品")]):t._e()])]),e("div",{staticClass:"thumb"},[e("el-image",{attrs:{src:s.thumb,fit:"cover"}})],1),e("div",{staticClass:"caption"},[s.brandName||s.seriesName?e("div",{staticClass:"brand"},[t._v(t._s(s.brandName||"")+t._s(s.seriesName?(s.brandName?" ":"")+s.seriesName:""))]):t._e(),e("div",{staticClass:"title"},[t._v(t._s(s.title))])]),e("div",{staticClass:"tag-wrap"},[s.labels&&s.labels.length>0?[t._l(s.labels,function(s,i){return[s.Price?e("span",[t._v("满"+t._s(s.Price)+"件"+t._s(parseInt((10*parseFloat(s.DerateMoney)).toFixed(2)))+"折")]):s.tag?e("span",[t._v(t._s(s.tag))]):t._e()]})]:t._e()],2),e("div",{staticClass:"price"},[s._isPointsGoods?e("div",{staticClass:"point"},[e("span",{staticClass:"bigger"},[t._v(t._s(s._points))]),e("span",[t._v("积分")]),e("span",{staticClass:"plus"},[t._v("+")])]):t._e(),e("div",{staticClass:"price-show"},[e("span",{staticClass:"yen"},[t._v("¥")]),t._v(t._s(t.$utils.priceFormat(s.price_show)[0])),e("span",[t._v("."+t._s(t.$utils.priceFormat(s.price_show)[1]))]),e("span",{staticClass:"qi"},[t._v("起")])]),s.scribePriceShow&&!s._isPointsGoods?e("div",{staticClass:"price-shop"},[e("span",{staticClass:"yen"},[t._v("¥")]),e("span",{staticClass:"line-throungh"},[t._v(t._s(t.$utils.priceFormat(s.shopPrice)[2]))])]):t._e()])])}),0)])}),1),t.productsList.length>1?e("div",{staticClass:"swiper-arrow-2 swiper-arrow-2-left",on:{click:function(e){return e.stopPropagation(),t.handleChange("prev")}}}):t._e(),t.productsList.length>1?e("div",{staticClass:"swiper-arrow-2 swiper-arrow-2-right",on:{click:function(e){return e.stopPropagation(),t.handleChange("next")}}}):t._e()],1),t.itemData.moreLink?e("div",{staticClass:"btn-more common-btn common-btn-outlined-red-1 is-hover",on:{click:function(e){return t.handleNavClick({jumpLink:t.itemData.moreLink})}}},[t._v(t._s(t.itemData.moreName||"查看更多"))]):t._e()])])},a=[],o={props:{itemData:{type:Object,default:()=>{}}},data(){return{productsList:[]}},watch:{itemData:{handler(t){if(this.resetData(),t&&t.floorData&&t.floorData.length>0){let e=parseInt(t._points/50);t.floorData.forEach(t=>{let s=!1;if(e>0&&t.integralSpecialFunds&&(s=!0,t._isPointsGoods=!0),Number(t.marketingPrice)>0&&Number(t.marketingPrice)<Number(t.shopPrice)){if(t.scribePriceShow=!0,t.price_show=Number(t.marketingPrice),s){let s=Math.min(e,parseInt(t.marketingPrice));t._points=parseInt(50*s),t.price_show=this.$utils.keepDecimal(parseFloat(t.marketingPrice)-s)}}else if(t.price_show=Number(t.shopPrice),s){let s=Math.min(e,parseInt(t.shopPrice));t._points=parseInt(50*s),t.price_show=this.$utils.keepDecimal(parseFloat(t.shopPrice)-s)}});let s=4,i=Math.ceil(t.floorData.length/s),a=[];for(let o=0;o<i;o++)a.push(t.floorData.slice(o*s,o*s+s));this.productsList=a}},immediate:!0,deep:!0}},methods:{resetData(){this.productsList=[]},handleChange(t){this.$refs.carousel&&this.$refs.carousel[t]()},toGoodsDetail(t){this.toPageBlank(`/goods?mouldNo=${t.mouldNo}`)}}},r=o,l=s(1656),c=(0,l.A)(r,i,a,!1,null,"beeb9422",null),n=c.exports},9311:function(t,e,s){s.r(e),s.d(e,{default:function(){return U}});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrapper"},[t.isLoad?e("GoodsHead",{ref:"goodsHead",attrs:{goodsData:t.goodsData,seckillInfo:t.seckillInfo,showStock:t.showStock},on:{loginPopupShowFn:t.loginPopupShowFn}}):t._e(),t.goodsData.itemData?e("div",{staticClass:"ceiling",style:`top:${t.navHeight}px;`},[e("div",{staticClass:"ceiling-hd border-bottom-1"},t._l(t.tabList,function(s,i){return e("div",{key:i,class:["item cursor-pointer",t.tabCurrent==i?"active":""],on:{click:function(e){return t.handleChangeTab(i)}}},[t._v(t._s(s.name))])}
1),0)]):t._e(),t.isLoad?e("div",{ref:"anchor",staticClass:"anchor"}):t._e(),t.isLoad?e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.tabCurrent,expression:"tabCurrent == 0"}]},[e("GoodsProductParameters",{attrs:{itemData:t.goodsData.itemData}}),e("goodsWorkDesc",{attrs:{itemData:t.goodsData.itemData}})],1):t._e(),t.isLoad?e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.tabCurrent,expression:"tabCurrent == 1"}]},[e("GoodsDetail",{attrs:{productId:t.mouldNo}})],1):t._e(),t.recommend?e("div",{staticClass:"recommend"},[e("products",{attrs:{itemData:t.recommend}})],1):t._e(),t.isLoad?e("div",{staticClass:"gap"}):t._e(),t.goodsDetailBottomAd&&t.goodsDetailBottomAd.mainImgPath?e("div",{staticClass:"goods_detail_bottom_ad",on:{click:t.advImgClick}},[e("el-image",{staticClass:"goods_detail_bottom_ad_img",attrs:{src:t.goodsDetailBottomAd.mainImgPath}})],1):t._e(),e("custom-popup-v5",{ref:"customPopup"})],1)},a=[],o=s(5353),r=s(805),l=s(6776),c=function(){var t=this,e=t._self._c;return e("div",[t.breadcrumbList.length>0?e("div",{staticClass:"breadcrumb"},[e("div",{staticClass:"breadcrumb-cont"},[t._l(t.breadcrumbList,function(s,i){return[s.jumpLink?e("div",{staticClass:"item is-link",on:{click:function(e){return t.navClickFn(s,i)}}},[t._v(t._s(s.title))]):e("div",{staticClass:"item"},[t._v(t._s(s.title))]),i<t.breadcrumbList.length-1?e("div",{staticClass:"separator"},[t._v("/")]):t._e()]})],2)]):e("div",{staticClass:"breadcrumb"}),t.itemData.mouldNo?e("div",{staticClass:"goods"},[e("div",{staticClass:"goods-img"},[e("div",{staticClass:"small"},[e("div",{staticClass:"scroll-view"},[e("div",{staticClass:"scroll-wrap",attrs:{id:"smallImgScrollView"}},[e("div",{staticClass:"list"},t._l(t.bannerList,function(s,i){return e("div",{key:i,class:["item cursor-pointer",t.selectGoodsImgIndex==i?"active":""],on:{click:function(e){return t.selectGoodsImgItemFn(i)}}},["image"==s.type?e("div",{staticClass:"pic"},[e("el-image",{attrs:{src:s.src,alt:""}},[e("div",{staticClass:"image-slot",attrs:{slot:"error"},slot:"error"},[e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_addpicture_v5.png",alt:""}})])]),t.isShowWatermark&&s.isFirst?e("div",{staticClass:"watermark"},t._l(t.watermark,function(s,i){return e("div",{key:i,staticClass:"watermark-box"},[s.topLink?e("el-image",{staticClass:"el-imag",attrs:{src:s.topLink}}):t._e(),s.rightLink?e("el-image",{staticClass:"el-imag",attrs:{src:s.rightLink}}):t._e(),s.bottomLink?e("el-image",{staticClass:"el-imag",attrs:{src:s.bottomLink}}):t._e(),s.leftLink?e("el-image",{staticClass:"el-imag",attrs:{src:s.leftLink}}):t._e()],1)}),0):t._e()],1):e("div",{staticClass:"video-box"},[e("el-image",{attrs:{src:s.poster,alt:""}})],1)])}),0)])])]),e("div",{staticClass:"bigger"},["image"==t.selectGoodsImg.type?e("div",{staticClass:"pic"},[e("imageZoom",{attrs:{imgSrc:t.selectGoodsImg.src}}),t.isShowWatermark&&t.selectGoodsImg.isFirst?e("div",{staticClass:"watermark"},t._l(t.watermark,function(s,i){return e("div",{key:i,staticClass:"watermark-box"},[s.topLink?e("el-image",{staticClass:"el-imag",attrs:{src:s.topLink}}):t._e(),s.rightLink?e("el-image",{staticClass:"el-imag",attrs:{src:s.rightLink}}):t._e(),s.bottomLink?e("el-image",{staticClass:"el-imag",attrs:{src:s.bottomLink}}):t._e(),s.leftLink?e("el-image",{staticClass:"el-imag",attrs:{src:s.leftLink}}):t._e()],1)}),0):t._e()],1):e("div",{staticClass:"video-box"},[e("video",{attrs:{controls:"",src:t.selectGoodsImg.src,poster:t.selectGoodsImg.poster}})])])]),e("div",{staticClass:"goods-info"},[e("div",{staticClass:"qrcode"},[e("el-popover",{attrs:{placement:"bottom",width:"196",trigger:"hover","popper-class":"qrcode-popover","append-to-body":!1,"popper-options":{boundariesElement:"body"}},on:{show:t.showQRcodePopupFn}},[e("div",{staticClass:"qrcode-wrap"},[e("div",{staticClass:"name"},[t._v("手机购买")]),e("div",{staticClass:"goodsQrcode"},[e("img",{attrs:{src:t.qrcodeUrl,alt:""}})]),e("div",{staticClass:"tips"},[t._v("打开微信,使用扫一扫,"),e("br"),t._v("进入手机购买")])]),e("div",{staticClass:"qrcode-img cursor-pointer",attrs:{slot:"reference"},slot:"reference"},[e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_qrcode2_v5.png",alt:"二ç
1»´ç "}})])])],1),e("div",{staticClass:"caption"},[t.itemData.brandName||t.itemData.seriesName?e("div",{staticClass:"brand"},[t._v(t._s(t.itemData.brandName||"")+t._s(t.itemData.seriesName?(t.itemData.brandName?" ":"")+t.itemData.seriesName:""))]):t._e(),e("div",{class:["title font-title",t.itemData.brandName||t.itemData.seriesName?"":"not"]},[t._v(t._s(t.itemData.newTitle||t.itemData.title||""))]),t.itemData.descriptionSellWord?e("div",{staticClass:"sub_wrok"},[t._v(t._s(t.itemData.descriptionSellWord))]):t._e(),t.itemData.subTitle?e("div",{staticClass:"sub"},[t._v(t._s(t.itemData.subTitle))]):t._e()]),"0+"!=t.itemData.salesNum?e("div",{staticClass:"sales"},[t._v("季销:"+t._s(t.itemData.salesNum))]):t._e(),4==t.itemData.productType?e("div",{staticClass:"panel"},[e("div",{staticClass:"name"},[t._v("限时抢购")]),e("div",{staticClass:"count-down"},[e("div",[t._v("距结束剩余")]),e("div",{staticClass:"num"},[t._v(t._s(t.overTimeStrSplit.day))]),e("div",[t._v("天")]),e("div",{staticClass:"num"},[t._v(t._s(t.overTimeStrSplit.hour))]),e("div",[t._v(":")]),e("div",{staticClass:"num"},[t._v(t._s(t.overTimeStrSplit.min))]),e("div",[t._v(":")]),e("div",{staticClass:"num"},[t._v(t._s(t.overTimeStrSplit.second))])])]):t._e(),10==t.itemData.productType?e("div",{staticClass:"panel style-2"},[e("div",{staticClass:"name"},[t._v("满件促销")]),e("div",{staticClass:"count-down"},[e("div",[t._v("距结束剩余")]),e("div",{staticClass:"num"},[t._v(t._s(t.fullPieceSplit.day))]),e("div",[t._v("天")]),e("div",{staticClass:"num"},[t._v(t._s(t.fullPieceSplit.hour))]),e("div",[t._v(":")]),e("div",{staticClass:"num"},[t._v(t._s(t.fullPieceSplit.min))]),e("div",[t._v(":")]),e("div",{staticClass:"num"},[t._v(t._s(t.fullPieceSplit.second))])])]):t._e(),10==t.itemData.productType?e("div",{staticClass:"price time"},[t.specialPointsGoods.integralSpecialFunds&&t.specialPointsGoods.deduction>0&&t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price-t.productParamter.shopPrice<0&&t.fullPieceCurrent>=0&&t.fullPieceList[t.fullPieceCurrent].price<=1?t.productParamter.price:t.fullPieceCurrent>=0?t.productParamter.shopPrice:t.productParamter.price,"points")>0?e("div",{staticClass:"special-points"},[t._v(t._s(t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price-t.productParamter.shopPrice<0&&t.fullPieceCurrent>=0&&t.fullPieceList[t.fullPieceCurrent].price<=1?t.productParamter.price:t.fullPieceCurrent>=0?t.productParamter.shopPrice:t.productParamter.price,"points"))),e("span",[t._v("积分")]),e("span",{staticClass:"plus"},[t._v("+")])]):t._e(),e("div",{staticClass:"price-show"},[t.userInfo.staff?e("span",{staticClass:"staff-txt"},[t._v("员工价")]):t._e(),e("span",{staticClass:"yen"},[t._v("Â¥")]),t._v(t._s(t.$utils.priceFormat(t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price-t.productParamter.shopPrice<0&&t.fullPieceCurrent>=0&&t.fullPieceList[t.fullPieceCurrent].price<=1?t.productParamter.price:t.fullPieceCurrent>=0?t.productParamter.shopPrice:t.productParamter.price))[0])),e("span",[t._v("."+t._s(t.$utils.priceFormat(t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price-t.productParamter.shopPrice<0&&t.fullPieceCurrent>=0&&t.fullPieceList[t.fullPieceCurrent].price<=1?t.productParamter.price:t.fullPieceCurrent>=0?t.productParamter.shopPrice:t.productParamter.price))[1]))]),e("span",{staticClass:"qi"},[t._v("èµ·")])]),t.productParamter.price-t.productParamter.shopPrice<0&&t.fullPieceCurrent>=0&&t.fullPieceList[t.fullPieceCurrent].price<=1?e("div",{staticClass:"price-shop"},[e("span",{staticClass:"yen"},[t._v("Â¥")]),e("span",{staticClass:"line-throungh"},[t._v(t._s(t.$utils.priceFormat(t.productParamter.shopPrice)[2]))])]):t.fullPieceCurrent>=0?e("div",{staticClass:"price-full"},[e("span",[t._v("满"+t._s(t.fullPieceList[t.fullPieceCurrent].price)+"件单价 Â¥"+t._s(t.$utils.priceFormat(t.productParamter.shopPrice*t.fullPieceList[t.fullPieceCurrent].derateMoney)[0])+"."+t._s(t.$utils.priceFormat(t.productParamter.shopPrice*t.fullPieceList[t.fullPieceCurrent].derateMoney)[1]))]),e("span",{staticClass:"qi"},[t._v("èµ·")])]):t._e()]):t._e(),4!=t.itemData.productType&&10!=t.itemData.productType?e("div",{staticClass:"price"},[t.specialPointsGoods.integralSpecialFunds&&t.specialPointsGoods.deduction>0&&t.productParamter.stockty>0&&t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price,"points")>0?e("div",{staticClass:"special-points"},[t._v(t._s(t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price,"points"))),e("span",[t._v("积分")]),e("span",{staticClass:"plus"},[t._v("+")])]):t._e(),t.productParamter.stockty>0?e("div",{staticClass:"price-show"},[t.userInfo.staff?e("span",{staticClass:"staff-txt"}
1,[t._v("员工价")]):t._e(),e("span",{staticClass:"yen"},[t._v("¥")]),t._v(t._s(t.$utils.priceFormat(t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price))[0])),e("span",[t._v("."+t._s(t.$utils.priceFormat(t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price))[1]))]),e("span",{staticClass:"qi"},[t._v("起")])]):e("div",{staticClass:"price-show"},[e("span",{staticClass:"yen"},[t._v("¥")]),e("span",[t._v("--")])]),Number(t.productParamter.price)<Number(t.productParamter.shopPrice)&&t.productParamter.stockty>0?e("div",{staticClass:"price-shop"},[e("span",{staticClass:"yen"},[t._v("¥")]),e("span",{staticClass:"line-throungh"},[t._v(t._s(t.$utils.priceFormat(t.productParamter.shopPrice)[2]))])]):t._e()]):t._e(),4==t.itemData.productType?e("div",{staticClass:"seckill"},[e("div",{staticClass:"seckill-hd"},[e("div",{staticClass:"price"},[t.specialPointsGoods.integralSpecialFunds&&t.specialPointsGoods.deduction>0&&t.productParamter.stockty>0&&t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price,"points")>0?e("div",{staticClass:"special-points"},[t._v(t._s(t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price,"points"))),e("span",[t._v("积分")]),e("span",{staticClass:"plus"},[t._v("+")])]):t._e(),t.productParamter.stockty>0?e("div",{staticClass:"price-show"},[t.userInfo.staff?e("span",{staticClass:"staff-txt"},[t._v("员工秒杀价")]):e("span",[t._v("秒杀价")]),e("span",{staticClass:"yen"},[t._v("¥")]),t._v(t._s(t.$utils.priceFormat(t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price))[0])),e("span",[t._v("."+t._s(t.$utils.priceFormat(t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price))[1]))]),e("span",{staticClass:"qi"},[t._v("起")])]):e("div",{staticClass:"price-show"},[e("span",{staticClass:"yen"},[t._v("¥")]),e("span",[t._v("--")])])]),e("div",{staticClass:"num"},[t._v("已抢"),e("span",[t._v(t._s(t.itemData.activitySales))]),t._v("件")])]),e("div",{staticClass:"seckill-bd"},[e("div",{staticClass:"left"},[t.productParamter.stockty>0?[t._v("¥"),e("span",{staticClass:"line-throungh"},[t._v(t._s(t.$utils.priceFormat(t.productParamter.shopPrice)[2]))])]:[t._v("¥--")]],2),t.seckillInfo&&t.seckillInfo.membershiplevel?e("div",{staticClass:"level"},[t._v(t._s(t.seckillInfo.membershiplevel)+"参与")]):t._e()])]):t._e(),t.allMarketingList.length>0&&!t.userInfo.staff?e("div",{staticClass:"market-tags"},[t._l(t.allMarketingList,function(s,i){return[e("div",{staticClass:"row cursor-pointer",on:{click:function(e){return t.goView(i)}}},[e("div",{staticClass:"label"},[t._v(t._s(6==s.mType?"满额优惠":"满件优惠"))]),e("div",{staticClass:"val"},[t._v(t._s(s.marketingLabelName||s.title||s.remake))]),e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowr2_v5.png",alt:""}})])]})],2):t._e(),t.productParamter.stockty>0?e("div",{staticClass:"specification border-top-1"},[t.combinationData&&t.combinationData.ListData&&t.combinationData.ListData.length>0?e("div",{staticClass:"category"},[e("div",{staticClass:"range"},[e("div",{staticClass:"name"},[e("div",{staticClass:"label"},[t._v(t._s(t.combinationData.Describe))]),1==t.combinationData.storage||2==t.combinationData.storage?e("div",{class:["storage cursor-pointer",1==t.combinationData.storage?"open":""],on:{click:function(e){return e.stopPropagation(),t.handleCombinationStorage.apply(null,arguments)}}},[t._v(t._s(2==t.combinationData.storage?"展开":"收起")),e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowd_v5.png"}})]):t._e()]),e("div",{class:["range-wrap",1==t.combinationData.storage?"open":""]},[e("div",{ref:"combination",staticClass:"range-box list list-2"},t._l(t.combinationData.ListData,function(s,i){return e("div",{key:i,class:["item cursor-pointer",s.MouldNo==t.combinationDataSelect.MouldNo?"checked":""],attrs:{"data-index":i,"data-title":"组合购买"},on:{click:function(e){return e.stopPropagation(),t.combinationSelectFn(s,i)}}},[t._v(t._s(s.Title))])}),0)])])]):t._e(),e("div",{staticClass:"category"},[t.sizeGuide?e("div",{staticClass:"range"},[e("div",{staticClass:"name"},[e("div",{staticClass:"label"}),e("div",{staticClass:"storage size cursor-pointer",on:{click:t.toSizeguide}},[t._v("查看尺寸指南")])])]):t._e(),t._l(t.category,function(s,i){return e("div",{key:i,staticClass:"range"},[e("div",{staticClass:"name"},[e("div",{staticClass:"label"},[t._v(t._s(s.cName)),"金重"==s.cName||"克重"==s.cName||"货重"==s.cName?e("span",[t._v("/ 单位(克)")]):t._e()]),s.openBtnShow?e("div",{class:["storage cursor-pointer",s.allShow?"open":""],on:{click:function(e){return e.stopPropagation(),t.setAllShowFn(i)}}},[t._v(t._s(s.allShow?"收起":"展开")),e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowd_v5.png"}})]):t._e()]),e("div",{class:["range-wrap",s.allShow?"open":""]},[e("div",{ref:`goods_info_specs_body_box${i}`,refInFor:!0,staticClass:"range-box list"},t._l(s.cType,function(a,o){return e("div",{key:i+"_"+o,class:["item cursor-pointer","计价类"==t.itemData.pType&&12==t.itemData.productType?"":"money"==s.cEnglishName?"item-2":"item-1",s.selectItem==a?"checked":a.isShow&&0!=t.itemData.enabled?"":"disabled"],on:{click:function(e){return e.stopPropagation(),t.selectSpecsItemFn(a,i,s)}}},[t._v(t._s(a.pName))])}),0)])])})],2)]):t._e(),t.goodsData.branchInvestmentCapital&&t.goodsData.branchInvestmentCapital.branchCode?e("div",{staticClass:"branch border-top-1"},[e("div",{staticClass:"left cursor-pointer",on:{click:function(e){return e.stopPropagation(),t.showGoldBranchTips.apply(null,arguments)}}},[e("img",{attrs:{src:"https://cdn.ctfmall.com/path/pdp_cloud365_v5.png",alt:""}}),e("span",[t._v("服务门店")]),e("img",{staticClass:"tips",attrs:{src:"https://cdn.ctfmall.com/goodsother/order_tip_v5.png",alt:""}})]),e("div",{staticClass:"right"},[e("div",{staticClass:"txt"},[t._v(t._s(t.goodsData.branchInvestmentCapital.branchCode)+"-"+t._s(t.goodsData.branchInvestmentCapital.branchName))])])]):t._e(),t.ediInfo?e("div",{staticClass:"goods_edi_box"},[e("div",{staticClass:"goods_edi_left",on:{click:t.showQualificationImages}},[e("el-image",{staticClass:"goods_edi_left_icon",attrs:{src:"https://cdn.ctfmall.com/goodsother/order_pickup1_v5.png"}}),e("div",{staticClass:"goods_edi_left_title"},[t._v(t._s(t.ediInfo.showText?t.ediInfo.showText:0==t.ediInfo.id?"自营商家":"经营商家"))])],1),e("div",{staticClass:"goods_edi_right",on:{click:t.toEdiGoodsListClick}},[e("div",{staticClass:"goods_edi_right_text"},[t._v(t._s(t.ediInfo.merchantName||""))]),e("el-image",{staticClass:"goods_edi_right_icon",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowd_v5.png"}})],1)]):t._e(),e("div",{staticClass:"buynum border-top-1"},[e("div",{staticClass:"txt"},[t._v("购买数量")]),e("div",{staticClass:"right"},[t.showStock?e("div",{staticClass:"stockty"},[t._v(t._s(4==t.itemData.productType&&t.seckillInfo&&!t.userInfo.staff?"限购"+(t.seckillInfo.allowAmount<t.productParamter.stockty?t.seckillInfo.allowAmount:t.productParamter.stockty):"库存"+t.productParamter.stockty)+"件")]):e("div",{staticClass:"stockty"},[t._v(t._s(t.productParamter.stockty<=0?"库存0件":t.productParamter.stockty>5?"有货":"库存紧张"))]),e("div",{staticClass:"input-box"},[e("div",{staticClass:"minus cursor-pointer",on:{click:function(e){return e.stopPropagation(),t.reduceGoodsFn.apply(null,arguments)}}},[t.goodsSum>1&&t.isGoodsBtn&&t.productParamter.stockty>0&&200!=t.goodsStatus?e("img",{attrs:{src:"https://cdn.ctfmall.com/path/editreduce_v5.png"}}):e("img",{attrs:{src:"https://cdn.ctfmall.com/path/editreduce1_v5.png"}})]),e("el-input",{attrs:{disabled:!t.isGoodsBtn||0==t.productParamter.stockty||200==t.goodsStatus},on:{input:t.setGoodsSumFn},model:{value:t.goodsSum,callback:function(e){t.goodsSum=e},expression:"goodsSum"}}),e("div",{staticClass:"add cursor-pointer",on:{click:function(e){return e.stopPropagation(),t.addGoodsFn.apply(null,arguments)}}},[t.goodsSum<Number(t.productParamter.stockty)&&t.isGoodsBtn&&t.productParamter.stockty>0&&200!=t.goodsStatus?e("img",{attrs:{src:"https://cdn.ctfmall.com/path/editplus_v5.png"}}):e("img",{attrs:{src:"https://cdn.ctfmall.com/path/editplus1_v5.png"}})])],1)])]),t.productParamter.stockty>0?e("div",{staticClass:"opera"},[!t.userInfo.staff&&t.userInfo.uid>0&&t.specialPointsGoods.integralSpecialFunds&&t.specialPointsGoods.deduction<=0?[e("div",{staticClass:"common-btn common-btn-outlined-gray-1"},[t._v("积分不足")])]:t.goodsPayOk?[4!=t.itemData.productType?e("div",{staticClass:"common-btn common-btn-outlined-red-3",on:{click:t.addCartFn}},[t._v("加入购物袋")]):t._e(),4!=t.itemData.productType?e("div",{staticClass:"common-btn common-btn-fill-red-7",on:{click:t.goodsPay}},[t._v("立即购买")]):e("div",{staticClass:"common-btn common-btn-fill-red-8",on:{click:t.goodsPay}},[t._v("立即购买")])]:[e("div",{staticClass:"common-btn common-btn-outlined-gray-1",on:{click:t.noGoodsPayOkClick}},[t._v("暂不支持员工内购")])]],2):e("div",{staticClass:"opera"},[e("div",{staticClass:"common-btn common-btn-outlined-gray-1"},[t._v("已售罄")])])])]):t._e(),t.addCartShow&&t.productParamter.stockty>0&&200!=t.goodsStatus&&t.goodsPayOk?e("div",{staticClass:"add-cart-pop border-top-1"},[e("div",{staticClass:"cont"},[e("div",{staticClass:"detail"},[e("div",{staticClass:"thumb"},[e("img",{attrs:{src:t.itemData.thumbHD||t.itemData.thumb,alt:""}})]),e("div",{staticClass:"caption"},[t.itemData.brandName||t.itemData.seriesName?e("div",{staticClass:"brand"},[t._v(t._s(t.itemData.brandName||"")+t._s(t.itemData.seriesName?(t.itemData.brandName?" ":"")+t.itemData.seriesName:""))]):t._e(),e("div",{class:["title",t.itemData.brandName||t.itemData.seriesName?"":"not"]},[t._v(t._s(t.itemData.newTitle||t.itemData.title||""))])])]),e("div",{staticClass:"right"},[4!=t.itemData.productType?e("div",{staticClass:"price"},[t.specialPointsGoods.integralSpecialFunds&&t.productParamter.stockty>0&&t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price,"points")>0?e("div",{staticClass:"special-points"},[t._v(t._s(t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price,"points"))),e("span",[t._v("积分")]),e("span",{staticClass:"plus"},[t._v("+")])]):t._e(),e("div",{staticClass:"price-show"},[e("span",{staticClass:"yen"},[t._v("¥")]),t._v(t._s(t.$utils.priceFormat(t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price))[0])),e("span",[t._v("."+t._s(t.$utils.priceFormat(t.getSpecialDetail(t.specialPointsGoods,t.productParamter.price))[1]))]),e("span",{staticClass:"qi"},[t._v("起")])]),Number(t.productParamter.price)<Number(t.productParamter.shopPrice)&&t.productParamter.stockty>0?e("div",{staticClass:"price-shop"},[e("span",{staticClass:"yen"},[t._v("¥")]),e("span",{staticClass:"line-throungh"},[t._v(t._s(t.$utils.priceFormat(t.productParamter.shopPrice)[2]))])]):t._e()]):t._e(),t.isGoodsBtn?e("div",{staticClass:"btn common-btn common-btn-fill-red-7",on:{click:t.addCartFn}},[t._v("加入购物袋")]):e("div",{staticClass:"btn common-btn common-btn-fill-red-7",on:{click:t.toTop}},[t._v("加入购物袋")])])])]):t._e(),e("el-drawer",{attrs:{visible:t.sizeGuideVisible,"append-to-body":"",direction:"rtl","show-close":!1,withHeader:!1,size:"528px"},on:{"update:visible":function(e){t.sizeGuideVisible=e}}},[e("div",{staticClass:"size-guide-pop"},[e("div",{staticClass:"size-guide-hd"},[e("div",{staticClass:"tit font-title"},[t._v("尺寸指南")]),e("div",{staticClass:"close cursor-pointer",on:{click:t.closeSizeguide}},[e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_close_v5.png",alt:""}})])]),e("div",{staticClass:"size-guide-bd"},[e("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[e("div",{staticClass:"img"},[e("img",{attrs:{src:t.sizeGuide,alt:""}}
1)])])],1)])]),e("custom-popup-v5",{ref:"customPopup"})],1)},n=[],d=s(7967),m=function(){var t=this,e=t._self._c;return e("div",{staticClass:"image-zoom",style:`width:${t.width}px;height:${t.height}px;`},[t.imgSrc?e("div",{ref:"wrapper",staticClass:"img-box",on:{mouseenter:t.handleMouseEnter,mousemove:t.handleMouseMove,mouseleave:t.handleMouseLeave}},[e("img",{attrs:{src:t.imgSrc,alt:""}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],ref:"mask",staticClass:"mask",style:`width:${t.width/t.zoom}px;height:${t.height/t.zoom}px;`},[e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_amplify_v5.png",alt:""}})])]):e("div",{staticClass:"error"},[e("img",{staticClass:"error-img",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_addpicture_v5.png",alt:""}})]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"preview",style:`left:${t.width}px;width:${t.width}px;height:${t.height}px;`},[e("div",{ref:"box",staticClass:"box"},[e("img",{attrs:{src:t.imgSrc,alt:""}})])])])},u=[],p={props:{imgSrc:{type:String,default:""},width:{type:Number|String,default:592},height:{type:Number|String,default:592},zoom:{type:Number,default:4}},data(){return{show:!1}},methods:{handleMouseEnter(t){this.show=!0,this.handleMouseMove(t)},handleMouseMove(t){const e=this.$refs.wrapper,s=this.$refs.mask,i=this.$refs.box;let a=t.clientX-e.getBoundingClientRect().left-.5*s.offsetWidth,o=t.clientY-e.getBoundingClientRect().top-.5*s.offsetHeight;a<0&&(a=0),a>=e.offsetWidth-s.offsetWidth&&(a=e.offsetWidth-s.offsetWidth),o<0&&(o=0),o>=e.offsetHeight-s.offsetHeight&&(o=e.offsetHeight-s.offsetHeight),s&&(s.style.left=a+"px",s.style.top=o+"px"),i&&(i.style.width=e.offsetWidth*(e.offsetWidth/s.offsetWidth)+"px",i.style.height=e.offsetHeight*(e.offsetHeight/s.offsetHeight)+"px",i.style.marginLeft=-a*(e.offsetWidth/s.offsetWidth)+"px",i.style.marginTop=-o*(e.offsetHeight/s.offsetHeight)+"px")},handleMouseLeave(){this.show=!1}}},h=p,g=s(1656),v=(0,g.A)(h,m,u,!1,null,"508fd73b",null),f=v.exports,_={props:{goodsData:{type:Object,default:()=>({})},seckillInfo:{type:Object,default:()=>null},showStock:{type:Boolean|Number|String,default:!1}},components:{imageZoom:f},data(){return{breadcrumbStr:"",breadcrumbList:[],bannerList:[],allMarketingList:[],selectGoodsImgIndex:0,goodsId:0,selectGoodsImg:{src:""},itemData:{},goodsSum:1,productParamter:{price:0,stockty:0,shopPrice:0,goodsId:0,attribute:"",stocktystore:0},overTimeStrSplit:{day:0,hour:0,min:0,second:0},fullPieceSplit:{day:0,hour:0,min:0,second:0},fullPieceList:[],fullPieceCurrent:-1,fullPieceEndTime:"",selectGoodsTypeItem:{detailCount:"",detailShap:"",detailSize:"",goldWeight:"0",isStoreInventory:0,length:"0",money:"0",productType:"0",ringSize:"0",stock:-1,totalWeight:"0",regularLabour:0},isGoodsBtn:!1,category:[],cartStatusDefault:!1,centerDialogVisible:!1,qrcodeUrl:"",addCartShow:!1,endTime:"",mouldNo:"",watermark:[],isShowWatermark:!1,addcartChecked:!1,combinationData:[],combinationDataSelect:{},goodsStatus:0,sizeGuide:"",sizeGuideVisible:!1,goodsPayOk:!0,specialPointsGoods:{integralSpecialFunds:!1,deduction:0},ediInfo:null}},watch:{goodsData:{handler:function(t){if(t.itemData){if(t.status&&(this.goodsStatus=t.status),this.setBannerListFn(t),this.itemData=t.itemData,this.merchantInfoByMouldNoFn(),this.qrcodeUrl=d.RJ+t.itemData.mouldNo+"&page=subpages/product/detail&isHyaline=true",this.setPriceFn(t),this.setCategoryFn(t),4==t.itemData.productType&&(this.endTime=new Date(t.itemData.endDate.replace(/-/g,"/")),this.countDown()),t.itemData&&10==t.itemData.productType&&t.itemData.fullCutEndTime&&t.itemData.fullCatStr&&t.itemData.fullCatStr.length>0){let e=-1,s=9999;for(let i=0;i<t.itemData.fullCatStr.length;i++){if(t.itemData.fullCatStr[i].price<=1){e=i;break}t.itemData.fullCatStr[i].isMarketingLabel&&t.itemData.fullCatStr[i].derateMoney<s&&(e=i,s=t.itemData.fullCatStr[i].derateMoney)}this.fullPieceList=t.itemData.fullCatStr,this.fullPieceCurrent=e,this.fullPieceEndTime=new Date(t.itemData.fullCutEndTime.replace(/-/g,"/")),this.fullPieceCountDown()}this.getproductmarkeingsFn(),this.getWatermarkFn(t.itemData.mouldNo),this.setCombinationData(t),this.setBreadcrumbData(),this.userInfo.staff?1==t.itemData.employeesPurchasesLimit&&(this.goodsPayOk=!1):this.userInfo.uid>0&&(0,l.Gf)({cardNo:this.userInfo.cardNo,sourceSystem:"OFFICIAL_MALL_WEB"}).then(e=>{this.specialPointsGoods.integralSpecialFunds=t.itemData.integralSpecialFunds||!1,this.specialPointsGoods.deduction=parseInt(e.availablePoint/50)})}else this.itemData.mouldNo="none",this.bannerList=[{type:"image"}],this.selectGoodsImg={type:"image"};t.cProductSizeGuides&&t.cProductSizeGuides.imgUrl?this.sizeGuide=t.cProductSizeGuides.imgUrl:this.sizeGuide=""},immediate:!0},$route:{handler:function(t,e){t.query.mouldNo&&(this.mouldNo=t.query.mouldNo,this.goodsSum=1),t.query.breadcrumb&&(this.breadcrumbStr=t.query.breadcrumb)},immediate:!0},tabList:{handler(){this.setBreadcrumbData()},immediate:!0,deep:!0}},computed:{...(0,o.L8)(["userInfo"]),cartList(){return this.$store.state.cart.cartList}
1,tabList(){return this.$store.state.indexTabList}},mounted(){window.addEventListener("scroll",this.scrollChinge,!0)},beforeDestroy(){window.removeEventListener("scroll",this.scrollChinge,!0)},methods:{setBreadcrumbData(){if(this.tabList.length>0&&this.breadcrumbStr){let t=this.breadcrumbStr.split(",");if(t.length>0){let e=[];e.push({title:"首页",jumpLink:"/home",srcLink:"",breadcrumb:""});let s=0,i=this.tabList[parseInt(t[s])];while(i)e.push({title:i.title,jumpLink:i.jumpLink,srcLink:i.srcLink,breadcrumb:t.slice(0,s+1).join()}),s<t.length-1?(s++,i=i.children[parseInt(t[s])]):((i.bgLink||i.bgColor)&&(this.sloganInfo={bgLink:i.bgLink,bgColor:i.bgColor,isVideo:i.isBgVideo}),i.children&&i.children.length>0&&(this.navList=i.children,this.$nextTick(()=>{this.$refs.navScrollBox&&this.$refs.navScrollBox.offsetWidth>1400&&(this.navShowArrow=!0)})),i=null);e.length>1&&(this.breadcrumbList=e)}}else if(this.itemData&&this.itemData.seriesName){let t=[];t.push({title:"首页",jumpLink:"/home",srcLink:"",breadcrumb:""}),t.push({title:"系列",jumpLink:"",srcLink:"",breadcrumb:""}),t.push({title:this.itemData.seriesName,jumpLink:"",srcLink:"",breadcrumb:""}),this.breadcrumbList=t}else this.breadcrumbList=[]},getWatermarkFn(t){let e={mouldNo:t,source:1,userType:this.userInfo&&this.userInfo.staff?3:0};(0,r.PY)(e).then(t=>{200==t.code&&t.data.length>0&&(this.watermark=t.data,this.isShowWatermark=!0)})},getproductmarkeingsFn(){let t=[{goods_id:0,buy_cnt:1,goods_price:0,attribute:this.itemData.mouldNo}],e={};e.uid=this.userInfo.uid,e.CartItem=t,e.type=2,(0,r.n_)(e).then(t=>{if("成功"==t[0].Msg&&"1"==t[0].Status){for(var e=[],s=0;s<t.length;s++){var i=!0,a=t[s].ADWord+t[s].ProductLimitTypeDesc;switch(t[s].MType){case 10:a=t[s].ADWord;break;default:break}i||(a=t[s].ADWord);var o={title:t[s].MTypeDesc,MNamce:t[s].MNamce,remake:a,mid:t[s].ID,mType:t[s].MType,isMarketingLabel:t[s].isMarketingLabel,marketingLabelName:t[s].marketingLabelName};e.push(o)}this.allMarketingList=e}})},setCombinationData(t){let e=t.combinationData||[],s={};var i={};if(e.length){i={Describe:e[0].Describe,ListData:[]};var a=e[0].MouldNos.split(";"),o=e[0].ProductsTitle.split(";");if(a.length==o.length)for(let t=0;t<a.length;t++)a[t]&&o[t]&&i.ListData.push({MouldNo:a[t],Title:o[t]})}i.ListData&&i.ListData.length>0&&i.ListData.forEach(e=>{t.itemData.mouldNo==e.MouldNo&&(s=e)}),i.storage=0,this.combinationData=i,this.combinationDataSelect=s,this.$nextTick(()=>{if(this.$refs["combination"]){let t=this.$refs["combination"].offsetHeight;t>115&&(this.combinationData.storage=2)}})},handleCombinationStorage(){1==this.combinationData.storage?this.combinationData.storage=2:this.combinationData.storage=1},setBannerListFn(t){let e=[];
1if(t.bannerItem&&t.bannerItem.length>0){let s="";t.bannerItem.forEach((t,i)=>{s||(s=t),e.push({type:"image",src:t,isFirst:0==i})}),t.vedioItem&&t.vedioItem.length>0&&e.unshift({type:"video",src:t.vedioItem[0],poster:s}),this.bannerList=e}else t.vedioItem&&t.vedioItem.length>0?this.bannerList.push({type:"video",src:t.vedioItem[0],poster:t.itemData&&t.itemData.thumb}):this.bannerList=[{type:"image",src:t.itemData&&t.itemData.thumb,isFirst:!0}];this.selectGoodsImg=this.bannerList[0]},getCategoryItemFn(){let t=this.$sessionStorage.getItem("loginReturnGoods");if(t&&0!=this.userInfo.uid){t=JSON.parse(this.$utils.uncompile(t)),this.selectGoodsTypeItem=t.selectGoodsTypeItem,this.category=t.category,this.goodsSum=t.goodsSum,this.$sessionStorage.removeItem("loginReturnGoods");let e="";e="length"==this.category[this.category.length-1].cEnglishName||"ringSize"==this.category[this.category.length-1].cEnglishName?this.category[this.category.length-1]["selectItem"].remark:this.category[this.category.length-1]["selectItem"].pName;let s={...this.selectGoodsTypeItem};s.uid=this.userInfo.uid,s.click=this.category[this.category.length-1].cEnglishName,s.clickValue=e,s.mouldNo=this.itemData.mouldNo,(0,r.Ug)(s).then(t=>{let e=t;e&&"0"==e.retcode&&(this.judgeType(e),this.setGoodsItemPrice(e),"addCartFn"==s.fnName&&this.addCartFn(),"goodsPay"==s.fnName&&this.goodsPay())})}},setPriceFn(t){this.productParamter.stockty=t.itemData.stockty,0==t.itemData.enabled&&(this.productParamter.stockty=0),this.productParamter.stocktystore=t.itemData.stocktystore,this.productParamter.price=t.itemData.marketingPrice>0?t.itemData.marketingPrice:t.itemData.promoPrice,t.itemData&&4==t.itemData.productType&&t.itemData.derateMoneyPrice>0&&(this.productParamter.price=t.itemData.derateMoneyPrice),this.productParamter.shopPrice=t.itemData.shopPrice},scrollChinge(t){document.documentElement.scrollTop>600&&4!=this.itemData.productType?this.addCartShow=!0:this.addCartShow=!1},countDown(){let t,e=(new Date).getTime(),s=this.endTime.getTime();if(s-e>0){t=s-e;let i=this.$utils.formatTimeAll(t,2,"",!0),a=this.overTimeStrSplit,o=i.split("天"),r=o[1].split(":");a.day=o[0],a.hour=r[0],a.min=r[1],a.second=r[2],this.overTime=t,this.overTimeStr=i,this.overTimeStrSplit=a,setTimeout(this.countDown,1e3)}else{t=0;let e=this.$utils.formatTimeAll(t,2,"",!0),s=this.overTimeStrSplit,i=e.split("天"),a=i[1].split(":");s.day=i[0],s.hour=a[0],s.min=a[1],s.second=a[2],this.overTime=t,this.overTimeStr=e,this.overTimeStrSplit=s}},fullPieceCountDown(){let t,e=(new Date).getTime(),s=this.fullPieceEndTime.getTime();if(s-e>0){t=s-e;let i=this.$utils.formatTimeAll(t,2,"",!0),a=this.fullPieceSplit,o=i.split("天"),r=o[1].split(":");a.day=o[0],a.hour=r[0],a.min=r[1],a.second=r[2],this.fullPieceSplit=a,setTimeout(this.fullPieceCountDown,1e3)}else{t=0;let e=this.$utils.formatTimeAll(t,2,"",!0),s=this.fullPieceSplit,i=e.split("天"),a=i[1].split(":");s.day=i[0],s.hour=a[0],s.min=a[1],s.second=a[2],this.fullPieceSplit=s}},goView(t){this.$router.push({path:"/goodsList",query:{keyword:this.allMarketingList[t]["title"],mid:this.allMarketingList[t]["mid"]}})},navClickFn(t,e){let s=[];if(this.breadcrumbStr&&(s=this.breadcrumbStr.split(",").slice(0,e)),!t.jumpLink||0!=t.jumpLink.indexOf("/goodsList")&&0!=t.jumpLink.indexOf("goodsList"))this.handleNavClick(t,!0);else{let e=JSON.parse(JSON.stringify(t));e.jumpLink.indexOf("?")>=0?e.jumpLink=e.jumpLink+(s.length>0?"&breadcrumb="+s.join():""):e.jumpLink=e.jumpLink+(s.length>0?"?breadcrumb="+s.join():""),this.handleNavClick(e,!0)}},selectGoodsImgItemFn(t){let e=document.querySelector("#smallImgScrollView");e.scrollTop=106*t,this.selectGoodsImgIndex=t,this.selectGoodsImg=this.bannerList[this.selectGoodsImgIndex]},setGoodsImgUp(){this.selectGoodsImgIndex>0&&(this.selectGoodsImgIndex--,this.setGoodsImgScrollTop(".goods_img_list_item_box",108,-1),this.selectGoodsImg=this.bannerList[this.selectGoodsImgIndex])},setGoodsImgNext(){this.selectGoodsImgIndex<this.bannerList.length-1&&(this.selectGoodsImgIndex++,this.setGoodsImgScrollTop(".goods_img_list_item_box",108,1),this.selectGoodsImg=this.bannerList[this.selectGoodsImgIndex])},setGoodsImgScrollTop(t,e,s=1,i=0){let a=document.querySelector(t);i<=e&&setTimeout(()=>{a.scrollTop=1===s?a.scrollTop+1:a.scrollTop-1,i++,this.setGoodsImgScrollTop(t,e,s,i)},1)},combinationSelectFn(t,e){window.location.href=`${window.location.origin}${window.location.pathname}?mouldNo=${t.MouldNo}`,this.gioProductEntranceClick({module_var:"款式",module2_var:"-",position_var:e,productNo_var:t.MouldNo,productName_var:t.Title})},reduceGoodsFn(){this.goodsSum>1&&this.goodsSum--,this.$forceUpdate()},addGoodsFn(){let t=this.productParamter.stockty;4==this.itemData.productType&&this.seckillInfo&&this.seckillInfo.allowAmount>0&&!this.userInfo.staff&&(t=Math.min(this.seckillInfo.allowAmount,this.productParamter.stockty)),this.goodsSum<t&&this.goodsSum++,this.$forceUpdate()},setCategoryFn(t){let e=t.category;e.forEach(t=>{t.cType.forEach(t=>{t.isShow=!0}
1)}),this.category=e,this.$nextTick(()=>{this.setIsGoodsBtn(),this.category.forEach((t,e)=>{if(this.$refs[`goods_info_specs_body_box${e}`]){let s=this.$refs[`goods_info_specs_body_box${e}`][0].offsetHeight;t.openBtnShow=s>115}}),this.$forceUpdate()})},setAllShowFn(t){this.category[t].allShow=!this.category[t].allShow,this.$forceUpdate()},setCategoryItemFn(t){if(t<this.category.length){this.category[t]["selectItem"]=this.category[t]["cType"].find(t=>1==t.isShow),this.selectGoodsTypeItem[this.category[t].cEnglishName]="length"===this.category[t].cEnglishName||"ringSize"===this.category[t].cEnglishName?this.category[t]["selectItem"].remark:this.category[t]["selectItem"].pName;let e="";e="length"==this.category[t].cEnglishName||"ringSize"==this.category[t].cEnglishName?this.category[t]["selectItem"].remark:this.category[t]["selectItem"].pName;let s={...this.selectGoodsTypeItem};s.uid=this.userInfo.uid,s.click=this.category[t].cEnglishName,s.clickValue=e,s.mouldNo=this.itemData.mouldNo,(0,r.Ug)(s).then(e=>{let s=e;t++,s&&"0"==s.retcode&&(this.judgeType(s),this.setGoodsItemPrice(s),this.setCategoryItemFn(t))})}else this.getCategoryItemFn()},selectSpecsItemFn(t,e,s){if(1==t.disabled)return;if(!t.isShow)return;if(0==this.itemData.enabled)return;this.category[e]["selectItem"]==t?(this.category[e]["selectItem"]={},this.selectGoodsTypeItem[s.cEnglishName]=""):(this.category[e]["selectItem"]=t,this.category[e]["isShow"]=!this.category[e]["isShow"],this.selectGoodsTypeItem[s.cEnglishName]="length"===s.cEnglishName||"ringSize"===s.cEnglishName?t.remark:t.pName),this.setAddCartNumFn();let i="";i="length"==s.cEnglishName||"ringSize"==s.cEnglishName?t.remark:t.pName;let a={...this.selectGoodsTypeItem};a.uid=this.userInfo.uid,a.click=s.cEnglishName,a.clickValue=i,a.mouldNo=this.itemData.mouldNo,(0,r.Ug)(a).then(t=>{let e=t;e&&"0"==e.retcode&&(this.judgeType(e),this.setGoodsItemPrice(e))})},setAddCartNumFn(){let t=this.category.every(t=>t.selectItem&&t.selectItem.pName);this.goodsSum=t&&""!=this.goodsSum?this.goodsSum:1},judgeType(t){let e=this.category,s={};t.category.forEach(t=>{s[t.cEnglishName]={},t.cType.forEach(e=>{s[t.cEnglishName][e.pName]=e})}),e.forEach(t=>{s[t.cEnglishName]&&t.cType.forEach((e,i)=>{s[t.cEnglishName][e.pName]?e.isShow=!0:e.isShow=!1})}),this.category=e,this.setIsGoodsBtn(),this.$forceUpdate()},setIsGoodsBtn(){let t=!0;for(let e=0;e<this.category.length;e++)if(this.category[e].cType.findIndex(t=>t==this.category[e].selectItem)<0){t=!1;break}this.isGoodsBtn=t,this.$forceUpdate()},setGoodsSumFn(t){t<0&&(this.goodsSum=0);let e=this.productParamter.stockty;4==this.itemData.productType&&this.seckillInfo&&this.seckillInfo.allowAmount>0&&!this.userInfo.staff&&(e=Math.min(this.seckillInfo.allowAmount,this.productParamter.stockty)),t>e&&(this.goodsSum=e)},setGoodsItemPrice(t){this.productParamter.stockty=t.stockQtyWeb,this.productParamter.stocktystore=t.stocktystore,this.userInfo.staff?this.productParamter.price=Number(t.thatGoods[0]["marketingPrice"]).toFixed(2):this.productParamter.price=t.minPrice.toFixed(2),"[]"!=t.thatGoods&&t.thatGoods.length>0&&(this.productParamter.goodsId=t.thatGoods[0].gid,this.productParamter.shopPrice=t.thatGoods[0].shopPrice,this.productParamter.attribute=t.thatGoods[0].attribute||"")},getSpecialDetail(t,e,s){var i={points:0,price:e},a=s||"price";if(!t||t.deduction<=0||!t.integralSpecialFunds)return i[a];var o=(""+e).split("."),r=Math.min(t.deduction,parseInt(o[0]));return r<=0||(i.points=parseInt(50*r),i.price=parseFloat(parseInt(o[0])-r+"."+o[1])),i[a]},addCartFn(){let t=this;if(0==this.userInfo.uid){let t={selectGoodsTypeItem:this.selectGoodsTypeItem,category:this.category,goodsSum:this.goodsSum,fnName:"addCartFn",mouldNo:this.mouldNo};return this.$sessionStorage.setItem({name:"loginReturnGoods",value:this.$utils.compile(JSON.stringify(t))}),void this.$emit("loginPopupShowFn")}if(!this.isGoodsBtn)return this.$toast("请选择规格");if(this.addcartChecked)return;this.addcartChecked=!0;let e=this.cartList?this.cartList:[],s=[];if(e.forEach(t=>{let e={};e.goodID=t.goodID,e.buyNum=t.buyNum,e.price=t.promotionPrice,e.attribute=t.attribute,e.isPointProduct=t.isPointProduct,e.cartValid=t.cartValid,s.push(e)}),0==s.length){let t={};t.goodID=this.productParamter.goodsId,t.buyNum=this.goodsSum,t.price=this.productParamter.price,t.attribute=this.productParamter.attribute||"",s.push(t)}else s.some(t=>
1this.productParamter.goodsId==t.goodID)?s.forEach(t=>{this.productParamter.goodsId==t.goodID&&(t.goodID=this.productParamter.goodsId,t.buyNum=t.buyNum+this.goodsSum>this.productParamter.stockty?this.productParamter.stockty:t.buyNum+this.goodsSum,t.price=this.productParamter.price,t.attribute=this.productParamter.attribute||"")}):s.push({goodID:this.productParamter.goodsId,buyNum:this.goodsSum,price:this.productParamter.price,attribute:this.productParamter.attribute||""});this.$store.dispatch("cart/addSyncusercartVuex",{goodsList:s,success:()=>{t.addcartChecked=!1,t.$toast("商品已加入购物袋")}})},noGoodsPayOkClick(){this.$toast("该商品目前不支持员工内购")},showGoldBranchTips(){this.$refs.customPopup&&this.$refs.customPopup.showModal({content:"自2026年1月6日起,产生的订单由周大福珠宝金行(深圳)有限公司销售、发货、开具发票及提供售后服务。<br>2026年1月6日前支付订单,销售、开票、退款及换货仍由深圳周大福在线传媒有限公司负责。<br>主体调整不会影响您的会员权益、积分、优惠券及已购商品的售后服务。",confirmText:"我知道了",textAlign:"left"})},goodsPay(){if(0==this.userInfo.uid){let t={selectGoodsTypeItem:this.selectGoodsTypeItem,category:this.category,goodsSum:this.goodsSum,fnName:"goodsPay",mouldNo:this.mouldNo};return this.$sessionStorage.setItem({name:"loginReturnGoods",value:this.$utils.compile(JSON.stringify(t))}),void this.$emit("loginPopupShowFn")}if(!this.isGoodsBtn)return this.$toast("请选择规格");let t=[{goodID:this.productParamter.goodsId,buyNum:this.goodsSum,stockQtyStore:this.productParamter.stocktystore,stockQtyWeb:this.productParamter.stockty,attribute:this.productParamter.attribute||""}],e=0;4==this.itemData.productType&&(t[0].attribute="@QG_PRODUCT",e=4),window.location.href=window.location.origin+"/pay?carts="+JSON.stringify(t)+"&orderType="+e},showQRcodePopupFn(){this.centerDialogVisible||(this.centerDialogVisible=!0),this.gioProductCodeClickFn()},toSizeguide(){this.sizeGuideVisible=!0},closeSizeguide(){this.sizeGuideVisible=!1},gioProductCodeClickFn(){this.gioProductCodeClick({productNo_var:this.mouldNo,productID_var:this.productParamter.goodsId,productName_var:this.itemData?this.itemData.name:"-",productMaterial_var:this.itemData.texture,productStyle_var:this.itemData.pStyle,priceMode_var:this.itemData.valuation})},toTop(){this.$toast("请选择规格"),this.$root.$emit("toTop")},toEdiGoodsListClick(){this.$router.push({path:"/goodsList",query:{merchantId:this.ediInfo.id}})},async merchantInfoByMouldNoFn(){try{let t={mouldNo:this.itemData.mouldNo},e=await(0,r.mQ)(t);console.log("获取经营商家信息",e),e&&200==e.code?this.ediInfo=e.data:(this.ediInfo=null,this.$toast(e.msg))}catch(t){this.ediInfo=null,console.log("获取经营商家信息失败",t)}},showQualificationImages(){let t=`由${this.ediInfo.merchantName||""}提供商品,发货开票及售后服务`;this.$refs.customPopup&&this.$refs.customPopup.showModal({title:"经营主体说明",content:t,success:()=>{}})}}},b=_,C=(0,g.A)(b,c,n,!1,null,"c98e4246",null),y=C.exports,P=function(){var t=this,e=t._self._c;return t.itemData?e("div",{staticClass:"parameters"},[t.itemData.sizeImage?e("div",{staticClass:"parameters-left"},[e("img",{attrs:{src:t.itemData.sizeImage,alt:"产品尺寸图"}}),e("p",[t._v("产品尺寸图")])]):t._e(),e("div",{class:["parameters-right",t.itemData.sizeImage?"":"parameters-right-2"]},[e("div",{class:["tit",t.itemData.sizeImage?"top":""]},[t._v("规格参数")]),e("div",{staticClass:"list"},t._l(t.newParameter,function(s,i){return e("div",{key:i,staticClass:"item"},[e("div",{staticClass:"row"},[e("div",{staticClass:"label"},[t._v(t._s(s.label))]),s.copy?e("div",{staticClass:"val cursor-pointer",on:{click:function(e){return e.stopPropagation(),t.handleCopy(s.value)}}},[e("span",{domProps:{innerHTML:t._s(s.value)}}),e("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_copy_v5.png"}})]):e("div",{staticClass:"val",domProps:{innerHTML:t._s(s.value)}})])])}),0),e("div",{staticClass:"remark"},[t._v(t._s(t.materialRemark))])])]):t._e()},k=[],D={props:{itemData:{type:Object,default:()=>{}}},data(){return{materialRemark:"",newParameter:[]}},watch:{itemData:{handler:function(t){t&&(this.materialRemark=this.inifMaterialRemark(t.productTypeID),this.handlerNewParameter(t))},immediate:!0}},methods:{inifMaterialRemark(t){let e="";switch(t){case"1":e="因物料差异,实际货品的重量可能存在略微误差,请以实际货重为准;货品价格随钻石颜色、净度、重量波动;货品
1图片为同款货品中随机选取拍摄,钻石颜色、净度、重量以实际收到为准,如有任何疑问,请联系客服咨询。";break;case"3":e="因物料差异,实际货品的重量可能存在略微误差,请以实际货重为准;因珍珠特殊性,货品存在略微差异,请以实物为准。";break;case"6":e="因物料差异,实际货品的重量可能存在略微误差,请以实际货重为准;因宝石特殊性,货品存在略微差异,请以实物为准。";break;case"11":e="因物料差异,实际货品的重量可能存在略微误差,请以实际货重为准;因玉类特殊性,货品存在略微差异,请以实物为准。";break;default:e="因物料差异,实际货品的重量可能存在略微误差,请以实际货重为准。";break}return e},handlerNewParameter(t){let e=[];t.mouldNo&&"0"!=t.mouldNo&&e.push({label:"模号",value:t.mouldNo,copy:!0}),t.pStyle&&"0"!=t.pStyle&&e.push({label:"款式",value:t.pStyle}),t.chain&&"0"!=t.chain&&e.push({label:"配链/配绳",value:t.chain}),t.minWeightManual&&"0"!=t.minWeightManual&&e.push({label:"金重",value:t.minWeightManual}),t.colour&&"0"!=t.colour&&e.push({label:"成色",value:t.colour}),t.labor&&"0"!=t.labor&&e.push({label:"工费",value:t.labor}),t.series&&"0"!=t.series&&e.push({label:"系列",value:t.series}),t.newWeight&&"0"!=t.newWeight?e.push({label:"重量",value:t.newWeight}):t.icsMinWeight&&"0"!=t.icsMinWeight&&e.push({label:"重量",value:t.icsMinWeight}),t.hollowSolid&&"0"!=t.hollowSolid&&e.push({label:"空心/实心",value:t.hollowSolid}),t.aperture&&"0"!=t.aperture&&e.push({label:"孔径",value:t.aperture}),t.tailchainLength&&"0"!=t.tailchainLength&&e.push({label:"尾链长度",value:t.tailchainLength}),t.pearlColor&&"0"!=t.pearlColor&&e.push({label:"珍珠颜色",value:t.pearlColor}),t.pearlSize&&"0"!=t.pearlSize&&e.push({label:"珍珠大小",value:decodeURIComponent(t.pearlSize).replace(/\n/g,"<br>")}),t.mainDrillSize&&"0"!=t.mainDrillSize&&e.push({label:"主钻大小",value:decodeURIComponent(t.mainDrillSize).replace(/\n/g,"<br>")}),t.slaveDrillSize&&"0"!=t.slaveDrillSize&&e.push({label:"副钻大小",value:decodeURIComponent(t.slaveDrillSize).replace(/\n/g,"<br>")}),t.drillSize&&"0"!=t.drillSize&&e.push({label:"钻石大小",value:decodeURIComponent(t.drillSize).replace(/\n/g,"<br>")}),t.rawMaterialType&&"0"!=t.rawMaterialType&&e.push({label:"原料类型",value:decodeURIComponent(t.rawMaterialType).replace(/\n/g,"<br>")}),t.rawMaterialSize&&"0"!=t.rawMaterialSize&&e.push({label:"原料大小",value:decodeURIComponent(t.rawMaterialSize).replace(/\n/g,"<br>")}),t.rawMaterialWeight&&"0"!=t.rawMaterialWeight&&e.push({label:"原料重量",value:decodeURIComponent(t.rawMaterialWeight).replace(/\n/g,"<br>")}),t.shellWeight&&"0"!=t.shellWeight&&e.push({label:"贝壳重量",value:decodeURIComponent(t.shellWeight).replace(/\n/g,"<br>")}),t.inlay&&"0"!=t.inlay&&e.push({label:"镶法",value:t.inlay}),t.polish&&"0"!=t.polish&&e.push({label:"打磨方法",value:t.polish}),t.letter&&"0"!=t.letter&&e.push({label:"可刻字",value:t.letter}),t.valuation&&"0"!=t.valuation&&e.push({label:"计价方式",value:t.valuation}),t.pType&&"0"!=t.pType&&e.push({label:"类型",value:t.pType}),t.texture&&"0"!=t.texture&&e.push({label:"材质",value:t.texture}),t.userPeople&&"0"!=t.userPeople&&e.push({label:"适用人群",value:t.userPeople}),t.certificate&&"0"!=t.certificate&&e.push({label:"有无证书",value:t.certificate}),t.intro&&"0"!=t.intro&&e.push({label:"产品说明",value:t.intro}),this.newParameter=e},handleCopy(t){let e=document.createElement("input");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("Copy"),this.$toast("复制成功"),e.remove()}}},w=D,S=(0,g.A)(w,P,k,!1,null,"4d48363d",null),I=S.exports,N=function(){var t=this,e=t._self._c;return t.show?e("div",[e("div",{staticClass:"goods_detail_box"},[e("div",{staticClass:"goods_detail_body"},[t.otherDetail.length>0?[t._l(t.otherDetail,function(s,i){return[s.pieList&&s.pieList.length>0?t._l(s.pieList,function(t,s){return e("el-image",{key:i+"_"+s,staticClass:"goods_detail_img",attrs:{src:t.imageUrl}})}):t._e()]})]:e("el-image",{staticClass:"goods_detail_img",attrs:{src:"https://cdn.ctfmall.com/goodsother/260415xqy-1.jpg"}})],2)])]):t._e()},L=[],T={props:{productId:{type:String,default:""}},watch:{productId:{handler(t){this.getOtherDetail(t)},immediate:!0}}
1,data(){return{show:!1,otherDetail:[]}},methods:{getOtherDetail(t){(0,r.QQ)({mouldNo:t}).then(t=>{t.data&&t.data.length>0&&(this.otherDetail=t.data),this.show=!0}).catch(()=>{this.show=!0})}}},G=T,$=(0,g.A)(G,N,L,!1,null,"4cbfa9ae",null),F=$.exports,x=function(){var t=this,e=t._self._c;return t.itemData&&t.itemData.descriptionWorkContent?e("div",{staticClass:"wrok_desc_box"},[e("div",{class:["wrok_desc_right"]},[e("div",{class:["tit","top"]},[t._v("作品描述")]),e("div",{staticClass:"list"},t._l(t.descriptionWorkContentList,function(s,i){return e("div",{key:i,staticClass:"wrok_desc_item"},[t._v(t._s(s))])}),0)])]):t._e()},M=[],z={props:{itemData:{type:Object,default:()=>{}}},data(){return{descriptionWorkContentList:[]}},watch:{itemData:{handler:function(t){t&&(this.descriptionWorkContentList=this.getDescriptionWorkContentList(t.descriptionWorkContent))},immediate:!0}},methods:{getDescriptionWorkContentList(t){if(!t)return[];let e=t.split("<br>"),s=[];for(let i=0;i<e.length;i++)e[i]&&s.push(e[i]);return s}}},E=z,W=(0,g.A)(E,x,M,!1,null,"58ec5b21",null),A=W.exports,B=s(7067),H={props:{navHeight:{type:Number|String,default:0}},components:{GoodsHead:y,GoodsProductParameters:I,goodsWorkDesc:A,GoodsDetail:F,products:B.A},data(){return{isLoad:!1,mouldNo:"",isARProduct:"",goodsData:{},addCartShow:!1,seckillInfo:null,showStock:!1,tabList:[{name:"商品详情"},{name:"图文详情"}],tabCurrent:0,recommend:null,anchorTop:0,windowHeight:0,scrollTop:0,goodsDetailBottomAd:null}},computed:{...(0,o.L8)(["userInfo"])},watch:{$route:{handler(){this.isLoad=!1,this.mouldNo=this.$route.query.mouldNo||"",this.isARProduct=this.$route.query.IsARProduct||"",this.showStock=!1,this.$localStorage.getItem("showStock")&&(this.showStock=!0),this.mouldNo&&this.querygoodsdetailsFn()},immediate:!0,deep:!0}},beforeRouteLeave(t,e,s){t.meta.keepAlive=!0,t.meta.isGoods=!0,s(0)},mounted(){this.handleScrollFn(),window.addEventListener("scroll",this.handleScrollFn,!0),this.handleWindowResize(),window.addEventListener("resize",this.handleWindowResize,!0)},beforedestroy(){window.removeEventListener("scroll",this.handleScrollFn),window.removeEventListener("resize",this.handleWindowResize),this.$bus.$emit("getGoodsDetail",null)},methods:{querygoodsdetailsFn(){(0,r.VN)({branchSelfCode:0,isStoreInventory:0,mouldNo:this.mouldNo,arProductSign:this.isARProduct,orderNo:"",staffcode:this.userInfo.staffCode||0,source:this.$localStorage.getItem("source")?this.$localStorage.getItem("source"):1,stock:-1,uid:this.userInfo.uid||0}).then(t=>{if(this.isLoad=!0,t&&t.code&&2e4===t.code)this.$refs.customPopup&&this.$refs.customPopup.showModal({title:"温馨提示",content:t.msg,isClickMask:!1,showClose:!1,success:()=>{this.$router.push("/")}});else if(t[0]&&0==t[0].retcode){if(this.goodsData=t[0],this.getRecommendData(),this.gioGoodsDetail(),this.getGoodsDetailBottomAdFn(),this.$bus.$emit("getGoodsDetail",this.goodsData),this.seckillInfo=null,t[0].itemData&&4==t[0].itemData.productType){let e={};t[0].allowAmount>0&&(e.allowAmount=t[0].allowAmount),t[0].amountLower>0&&(e.amountLower=parseInt(60*parseFloat(t[0].amountLower))),this.seckillInfo=e,t[0].membershiplevel&&"string"==typeof t[0].membershiplevel&&(0,l.PD)().then(s=>{e.membershiplevel=this.$utils.getShowUserFromLevel(t[0].membershiplevel,s),this.seckillInfo=e})}this.userInfo.uid&&(0,r.Ly)({mouldNo:this.mouldNo,uid:this.userInfo.uid||0,type:1})}else this.$refs.customPopup&&this.$refs.customPopup.showModal({title:"温馨提示",content:t[0]&&t[0]["retmsg"]?t[0]["retmsg"]:"网络异常",success:()=>{this.$router.push("/")}})}).catch(()=>{this.isLoad=!0})}
1,getRecommendData(){(0,r.w)({mouldNo:this.mouldNo}).then(t=>{if(t.data&&t.data.length>0){let e={id:1,floorId:1,floorType:2,moreName:"",moreLink:"",isHideTitle:0,isAutoSwiper:0,swiperDuration:0,goodsType:1,imgLocation:0,floorData:[],title:"更多商品推荐"};t.data.forEach(t=>{e.floorData.push({pid:0,floorId:2,floorType:2,srcLink:"",jumpLink:"",videoCoverLink:"",mouldNo:t.mouldNo,thumb:t.thumbHD||t.thumb,brandName:t.brandName,seriesName:t.seriesName,title:t.newTitle||t.title||"",name:"更多商品推荐",isVideo:0,isHot:t.IsHot,isNew:t.IsNew,shopPrice:t.shopPrice,marketingPrice:t.marketingPrice,goodsType:1,tags:"",content:"",goodsImages:null,labels:null,mtype:0})}),this.recommend=e}})},handleChangeTab(t){if(this.tabCurrent!=t){if(this.tabCurrent=t,this.anchorTop<=0){let t=this.$refs.anchor.offsetTop,e=this.$refs.anchor.offsetParent;while(e)t+=e.offsetTop,e=e.offsetParent;this.anchorTop=t-56}document.documentElement.scrollTop=this.anchorTop-this.navHeight,setTimeout(()=>{document.documentElement.scrollTop=this.anchorTop-this.navHeight},100)}},handleWindowResize(){this.windowHeight=window.innerHeight},handleScrollFn(){let t=document.documentElement.scrollTop||document.body.scrollTop;this.scrollTop=t,this.handleAutoChange()},handleAutoChange(){let t=document.documentElement.scrollHeight||document.body.scrollHeight;this.scrollTop+this.windowHeight+Math.max(this.windowHeight/4,100)>t&&this.tabCurrent<this.tabList.length-1&&this.handleChangeTab(this.tabCurrent+1)},loginPopupShowFn(){this.$root.$emit("loginDialog")},alertRegisterDialog(){this.$root.$emit("registerDialog")},gioGoodsDetail(){try{this.gioProductDetailPageView({productNo_var:this.goodsData.itemData?this.goodsData.itemData.mouldNo:"",productName_var:this.goodsData.itemData?this.goodsData.itemData.name:""})}catch(t){console.log(this.$route.path+"---数据上报失败",t)}},getGoodsDetailBottomAdFn(){(0,r.a8)({mouldNo:this.mouldNo}).then(t=>{200==t.code&&t.data&&(this.goodsDetailBottomAd=t.data)})},advImgClick(){if(!this.goodsDetailBottomAd.linkUrl)return!1;this.toPageBlank(this.goodsDetailBottomAd.linkUrl)}}},R=H,j=(0,g.A)(R,i,a,!1,null,"07e241c8",null),U=j.exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.