1"use strict";(self["webpackChunkdemo5_vue2"]=self["webpackChunkdemo5_vue2"]||[]).push([[302],{6921:function(t,e,s){s.r(e),s.d(e,{default:function(){return M}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"goods_box"},[e("div",{staticClass:"snapshot_tips_box"},[e("div",{staticClass:"snapshot_tips_value"},[t._v("å½å页é¢å
容为订åå¿«ç
§ï¼å
å«è®¢åå建æ¶çååæè¿°åä¸åä¿¡æ¯ï¼ä¹°ååæ¹å¨åç交æäºè®®æ¶ï¼è¯¥é¡µé¢ä½ä¸ºå¤å®ä¾æ®ã")]),e("div",{staticClass:"snapshot_tips_btn",on:{click:function(e){return t.toGoodsDetailClick(t.attributes)}}},[t._v("ç¹æ¤æ¥çææ°åå详æ
")])]),e("SnapshotHead",{ref:"goodsHead",attrs:{params:{thumbs:t.thumbs,attributes:t.attributes,category:t.category}}}),e("SnapshotParameters",{attrs:{parameters:t.parameters}}),e("SnapshotDetail",{attrs:{parameters:t.parameters,images:t.images}})],1)},i=[],o=s(5353),r=s(8314);const l=(t={})=>(0,r.kN)("get","/ctfmall-order-server/cSnapshots/getPccSnapshot",t);var c=function(){var t=this,e=t._self._c;return e("div",{staticClass:"goods_head_box"},[e("div",{staticClass:"goods_img_box"},[e("div",{staticClass:"goods_img_list"},[t.bannerList.length>6?e("div",{staticClass:"goods_img_list_btn_top",on:{click:t.setGoodsImgUp}},[e("img",{staticClass:"goods_img_list_btn_top_icon",attrs:{src:"https://cdn.ctfmall.com/path/[email protected]",alt:""}})]):t._e(),e("div",{staticClass:"goods_img_list_item_box"},t._l(t.bannerList,function(s,a){return e("div",{key:a,on:{click:function(e){return t.selectGoodsImgItemFn(a)}}},["image"==s.type?e("div",{staticClass:"goods_img_list_item_img_box"},[e("el-image",{class:["goods_img_list_item_img",t.selectGoodsImgIndex==a?"select_goods_img":""],attrs:{id:"goods_img_list_item_img"+a,src:s.src,alt:""}}),t.isShowWatermark&&s.isFirst?e("div",{staticClass:"watermark"},t._l(t.watermark,function(s,a){return e("div",{key:a,staticClass:"goods_Watermark_small_box"},[s.topLink?e("el-image",{staticClass:"watermark_topLink_img_small",attrs:{src:s.topLink}}):t._e(),s.rightLink?e("el-image",{staticClass:"watermark_topLink_img_small",attrs:{src:s.rightLink}}):t._e(),s.bottomLink?e("el-image",{staticClass:"watermark_topLink_img_small",attrs:{src:s.bottomLink}}):t._e(),s.leftLink?e("el-image",{staticClass:"watermark_topLink_img_small",attrs:{src:s.leftLink}}):t._e()],1)}),0):t._e()],1):e("div",{staticClass:"video_box"},[e("video",{class:["goods_img_list_item_img",(t.selectGoodsImgIndex,"select_goods_img")],attrs:{crossorigin:"anonymous",preload:"auto",id:"goods_img_list_item_img"+a,src:t.selectGoodsImg.src,poster:t.selectGoodsImg.poster},on:{loadeddata:function(e){return t.createPreImg(e)}}})])])}),0),t.bannerList.length>6?e("div",{staticClass:"goods_img_list_btn_bottom",on:{click:t.setGoodsImgNext}},[e("img",{staticClass:"goods_img_list_btn_bottom_icon",attrs:{src:"https://cdn.ctfmall.com/path/pc-goods-img-bottom-icon.png",alt:""}})]):t._e()]),e("div",{staticClass:"goods_img_big_picture_box"},["image"==t.selectGoodsImg.type?e("div",{staticClass:"goods_img_big_picture_img_box"},[e("el-image",{staticClass:"goods_img_big_picture_img",attrs:{src:t.selectGoodsImg.src,alt:""}}),t.isShowWatermark&&t.selectGoodsImg.isFirst?e("div",{staticClass:"watermark"},t._l(t.watermark,function(s,a){return e("div",{key:a,staticClass:"goods_Watermark_box"},[s.topLink?e("el-image",{staticClass:"watermark_topLink_img",attrs:{src:s.topLink}}):t._e(),s.rightLink?e("el-image",{staticClass:"watermark_topLink_img",attrs:{src:s.rightLink}}):t._e(),s.bottomLink?e("el-image",{staticClass:"watermark_topLink_img",attrs:{src:s.bottomLink}}):t._e(),s.leftLink?e("el-image",{staticClass:"watermark_topLink_img",attrs:{src:s.leftLink}}):t._e()],1)}),0):t._e()],1):e("video",{staticClass:"goods_img_big_picture_img",attrs:{controls:"",src:t.selectGoodsImg.src,poster:t.selectGoodsImg.poster}})])]),e("div",{staticClass:"goods_info_box"},[e("div",{staticClass:"goods_info_title"},[e("div",{staticClass:"goods_info_title_text"},[t._v(t._s(t.attributes.title))]),e("img",{staticClass:"goods_info_title_qrcode_icon",attrs:{src:"https://cdn.ctfmall.com/path/[email protected]",alt:""},on:{click:t.showQRcodePopupFn}})]),e("div",{staticClass:"goods_info_types_box"},[t._l(t.category,function(s,a){return e("div",{key:a,staticClass:"goods_info_types_item"},[e("div",{staticClass:"goods_info_types_item_title"},[t._v(t._s(s.name))]),e("div",{staticClass:"goods_info_types_item_value"},[t._v(t._s(s.value))])])}),e("div",{staticClass:"goods_info_types_item"},[e("div",{staticClass:"goods_info_types_item_title"},[t._v("æ°éï¼")]),e("div",{staticClass:"goods_info_types_item_value"},[t._v(t._s(t.attributes.quantity))])]),e("div",{staticClass:"goods_info_types_item"},[e("div",{staticClass:"goods_info_types_item_title"},[t._v("ä»·æ ¼ï¼")]),e("div",{staticClass:"goods_info_types_item_price"},[t._v("Â¥"+t._s(t.$utils.priceFormat(t.attributes.shopPrice)[2]))])])],2),t._m(0)]),e("el-dialog",{attrs:{visible:t.centerDialogVisible,width:"500px",center:""},on:{"update:visible":function(e){t.centerDialogVisible=e},closed:t.doalogClosed}},[e("div",{staticClass:"qrcode_box"},[e("h3",{staticClass:"qrcode_title"},[t._v("ææºè´ä¹°")]),e("div",{ref:"goodsQrcode",attrs:{id:"goodsQrcode"}}),e("p",{staticClass:"qrcode_tips"},[t._v("æå¼å¾®ä¿¡ï¼ä½¿ç¨æ«ä¸æ«ï¼è¿å
¥ææºè´ä¹°")])])])],1
1)},n=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"promise_img_box"},[e("img",{staticClass:"promise_img",attrs:{src:"https://cdn.ctfmall.com/path/ctfzlbz.png",alt:""}})])}],d=s(7967),m=s(9118),p=s.n(m),u={props:{params:{type:Object,default:()=>({})}},data(){return{bannerList:[],selectGoodsImgIndex:0,selectGoodsImg:{src:""},attributes:{},category:[],thumbs:{},centerDialogVisible:!1,QRcodeUrl:d.yK+"/pages/product/detail?productId=",mouldNo:"",watermark:[],isShowWatermark:!1,addcartChecked:!1}},watch:{params:{handler:function(t){t&&t.attributes&&(this.setBannerListFn(t.thumbs,t.attributes.thumb),this.attributes=t.attributes,this.category=t.category,this.thumbs=t.thumbs,this.QRcodeUrl+=t.attributes.mouldNo,t.thumbs&&t.thumbs.waterMark&&t.thumbs.waterMark.length>0&&(this.watermark=t.thumbs.waterMark,this.isShowWatermark=!0))},immediate:!0},$route:{handler:function(t,e){t.query.mouldNo&&(this.mouldNo=t.query.mouldNo,this.goodsSum=1)},immediate:!0}},computed:{...(0,o.L8)(["userInfo"]),cartList(){return this.$store.state.cart.cartList}},mounted(){window.selectGoodsImgItemFn=this.selectGoodsImgItemFn},methods:{setBannerListFn(t,e){let s=[];if(t.bannerItem&&t.bannerItem.length>0){let e="";t.bannerItem.forEach((t,a)=>{e||(e=t),s.push({type:"image",src:t,isFirst:0==a})}),t.vedioItem&&t.vedioItem.length>0&&s.unshift({type:"video",src:t.vedioItem[0],poster:e}),this.bannerList=s}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:e,isFirst:!0}];this.selectGoodsImg=this.bannerList[0]},selectGoodsImgItemFn(t){let e=document.querySelector(".goods_img_list_item_box"),s=document.querySelector("#goods_img_list_item_img"+t);e.scrollTop=s.offsetTop,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,a=0){let i=document.querySelector(t);a<=e&&setTimeout(()=>{i.scrollTop=1===s?i.scrollTop+1:i.scrollTop-1,a++,this.setGoodsImgScrollTop(t,e,s,a)},1)},showQRcodePopupFn(){this.centerDialogVisible=!0,this.payOrder()},doalogClosed(){this.$refs.goodsQrcode&&(this.$refs.goodsQrcode.innerHTML="")},payOrder(){this.innerVisible=!0,this.qrcode=this.QRcodeUrl,this.$nextTick(()=>{this.crateQrcode()})},crateQrcode(){this.qr=new(p())("goodsQrcode",{width:160,height:160,text:this.qrcode,render:"canvas"})},createPreImg(t){const e=t.target;e.currentTime=1,e.addEventListener("canplay",function(){const t=document.createElement("canvas"),s=.8;t.width=e.videoWidth*s,t.height=e.videoHeight*s,t.getContext("2d").drawImage(e,0,0,t.width,t.height);const a=t.toDataURL("image/png"),i=document.createElement("img");i.src=a,i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.width="88px",i.style.height="88px",i.style.objectFit="cover",i.style.cursor="pointer",e.parentNode&&e.parentNode.appendChild(i)})}}},_=u,g=s(1656),h=(0,g.A)(_,c,n,!1,null,"5d84dc63",null),b=h.exports,v=function(){var t=this,e=t._self._c;return t.parameters?e("div",{staticClass:"product_parameters_box"},[e("h3",{staticClass:"product_parameters_title"},[t._v("åååæ°")]),t.parameters.sizeImage?e("div",{staticClass:"product_parameters_body"},[e("div",{staticClass:"product_parameters_left"},[e("img",{staticClass:"product_parameters_left_img",attrs:{src:t.parameters.sizeImage,alt:""}}),e("div",{staticClass:"product_parameters_left_title"},[t._v("产å尺寸å¾")])]),e("div",{staticClass:"product_parameters_right"},[t._l(t.newParameter.type1,function(s,a){return e("ul",{key:a,staticClass:"product_parameters_right_table"},t._l(s,function(s,i){return e("li",{key:a+"-"+i,staticClass:"product_parameters_right_table_item"},[e("span",{staticClass:"product_parameters_right_table_item_title"},[t._v(t._s(s.label))]),e("span",{staticClass:"product_parameters_right_table_item_value",domProps:{innerHTML:t._s(s.value)}})])}),0)}),e("p",{staticClass:"product_parameters_right_tips",domProps:{innerHTML:t._s(t.materialRemark)}})],2)]):e("div",{staticClass:"product_parameters_body_two"},[e("div",{staticClass:"product_parameters_right_two"},[t._l(t.newParameter.type2,function(s,a){return e("ul",{key:a,staticClass:"product_parameters_right_table"},t._l(s,function(s,i){return e("li",{key:a+"-"+i,staticClass:"product_parameters_right_table_item"},[e("span",{staticClass:"product_parameters_right_table_item_title"},[t._v(t._s(s.label))]),e("span",{staticClass:"product_parameters_right_table_item_value",domProps:{innerHTML:t._s(s.value)}})])}),0)}),e("p",{staticClass:"product_parameters_right_tips",domProps:{innerHTML:t._s(t.materialRemark)}})],2)])]):t._e()},C=[],y={props:{parameters:{type:Object,default:()=>{}}},data(){return{materialRemark:"",newParameter:{type1:[],type2:[]}}},watch:{parameters:{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="å ç©æå·®å¼ï¼å®é
è´§åçééå¯è½åå¨ç¥å¾®è¯¯å·®ï¼è¯·ä»¥å®é
è´§é为åï¼ä»·æ ¼éé»ç³é¢è²ãå度ãééæ³¢å¨ã";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}),t.pStyle&&"0"!=t.pStyle&&e.push({label:"款å¼ï¼",value:t.pStyle}),t.pType&&"0"!=t.pType&&e.push({label:"ç±»åï¼",value:t.pType}),t.texture&&"0"!=t.texture&&e.push({label:"æè´¨ï¼",value:t.texture}),t.series&&"0"!=t.series&&e.push({label:"ç³»åï¼",value:t.series}),t.colour&&"0"!=t.colour&&e.push({label:"æè²ï¼",value:t.colour}),t.newWeight&&"0"!=t.newWeight?e.push({label:"ééï¼",value:t.newWeight}):t.icsMinWeight&&"0"!=t.icsMinWeight&&e.push({label:"ééï¼",value:t.icsMinWeight}),t.minWeightManual&&"0"!=t.minWeightManual&&e.push({label:"ééï¼",value:t.minWeightManual}),t.polish&&"0"!=t.polish&&e.push({label:"æç£¨æ¹æ³ï¼",value:t.polish}),t.inlay&&"0"!=t.inlay&&e.push({label:"é¶æ³ï¼",value:t.inlay}),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.shellWeight&&"0"!=t.shellWeight&&e.push({label:"è´å£³ééï¼",value:decodeURIComponent(t.shellWeight).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.rawMaterialType&&"0"!=t.rawMaterialType&&e.push({label:"åæç±»åï¼",value:decodeURIComponent(t.rawMaterialType).replace(/\n/g,"<br>")}),t.rawMaterialWeight&&"0"!=t.rawMaterialWeight&&e.push({label:"åæééï¼",value:decodeURIComponent(t.rawMaterialWeight).replace(/\n/g,"<br>")}),t.rawMaterialSize&&"0"!=t.rawMaterialSize&&e.push({label:"åæå¤§å°ï¼",value:decodeURIComponent(t.rawMaterialSize).replace(/\n/g,"<br>")}),t.drillSize&&"0"!=t.drillSize&&e.push({label:"é»ç³å¤§å°ï¼",value:decodeURIComponent(t.drillSize).replace(/\n/g,"<br>")}),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.chain&&"0"!=t.chain&&e.push({label:"é
é¾/é
绳ï¼",value:t.chain}),t.letter&&"0"!=t.letter&&e.push({label:"å¯å»åï¼",value:t.letter}),t.valuation&&"0"!=t.valuation&&e.push({label:"计价æ¹å¼ï¼",value:t.valuation}),t.userPeople&&"0"!=t.userPeople&&e.push({label:"éç¨äººç¾¤ï¼",value:t.userPeople}),t.labor&&"0"!=t.labor&&e.push({label:"工费ï¼",value:t.labor}),t.intro&&"0"!=t.intro&&e.push({label:"产å说æï¼",value:t.intro});let s=0,a=0,i=0,o=0;for(let r=0;r<e.length;r++)0==a&&this.newParameter.type1.push([]),this.newParameter.type1[s].push(e[r]),a++,a>=3&&(a=0,s++),0==o&&this.newParameter.type2.push([]),this.newParameter.type2[i].push(e[r]),o++,o>=4&&(o=0,i++)}}},f=y,I=(0,g.A)(f,v,C,!1,null,"10261e9a",null),k=I.exports,w=function(){var t=this,e=t._self._c;return e("div",{staticClass:"goods_detail_box"},[e("h3",{staticClass:"goods_detail_title"},[t._v("徿å±ç¤º")]),t.parameters?e("div",{staticClass:"goods_detail_body"},[t.images&&t.images.length>0?t._l(t.images,function(t,s){return e("el-image",{key:s,staticClass:"goods_detail_img",attrs:{src:t}}
1)}):e("el-image",{staticClass:"goods_detail_img",attrs:{src:"https://cdn.ctfmall.com/goodsother/260415xqy-1.jpg"}})],2):t._e()])},L=[],S={props:{parameters:{type:Object,default:()=>({})},images:{type:Array,default:()=>[]}},data(){return{}}},x=S,G=(0,g.A)(x,w,L,!1,null,"0d18d79f",null),z=G.exports,N={components:{SnapshotHead:b,SnapshotParameters:k,SnapshotDetail:z},data(){return{goodsId:"",orderNo:"",parameters:{},attributes:{},category:{},thumbs:{},images:[]}},computed:{...(0,o.L8)(["userInfo"])},watch:{$route:{handler(){this.goodsId=this.$route.query.goodsId||"",this.orderNo=this.$route.query.orderNo||"",this.getcSnapshotFn()},immediate:!0}},methods:{getcSnapshotFn(){let t={};t.orderNo=this.orderNo||"",t.goodsId=this.goodsId||"",l(t).then(t=>{if(t&&200==t.code){let e=this.category2str(t.data[0]);this.attributes=e.attributes,this.category=e.category,this.thumbs=e.thumbs,this.parameters=e.parameters,this.parameters.mouldNo=this.attributes.mouldNo,this.images=e.images}})},category2str(t){let e=[],s="",a="";if(void 0!=t.attributes){let i=t.attributes;if(s=i.productTypeID,a=i.productGroupID,9!=s&&4!=s||0==i.totalWeight?10==s&&0!=i.goldWeight?e.push({name:"éé:",value:i.goldWeight+"å
"}):1==s&&(""!=i.detailShape&&e.push({name:"å度:",value:i.detailShape}),""!=i.detailSize&&e.push({name:"é¢è²:",value:i.detailSize}),0!=i.detailCount&&e.push({name:"å
æ:",value:i.detailCount})):e.push({name:"å
é:",value:i.totalWeight+"å
"}),1==a&&0!=i.ringSize?e.push({name:"åå£:",value:i.ringSize}):2!=a&&4!=a&&5!=a&&6!=a&&34!=a||!i.actualLenth||""==i.actualLenth||0==i.actualLenth||(5==a?e.push({name:"å
å¾:",value:i.actualLenth}):e.push({name:"é¾é¿:",value:i.actualLenth})),i.customizedSize&&0!=i.customizedSize){let t=i.customizedSize.split("约");e.push("尺寸ï¼"+t[0]+"ï¼"),t[1]&&e.push("ééï¼"+t[1]+"ï¼")}i.customizedStyle&&0!=i.customizedStyle&&e.push("款å¼ï¼"+i.customizedStyle+"ï¼"),i.customizedDirection&&0!=i.customizedDirection&&e.push("æ¹åï¼"+i.customizedDirection+"ï¼"),e==[]&&0!=i.shopPrice&&e.push({name:"ä»·æ ¼:",value:i.shopPrice}),t.category=e}return t},toGoodsDetailClick(t){this.toView(`/goods?mouldNo=${t.mouldNo}`),this.gioProductEntranceClick({module_var:"ç¹å»æ¥çææ°åå详æ
",module2_var:"-",position_var:"-",productNo_var:t.mouldNo,productName_var:t.title})}}},P=N,W=(0,g.A)(P,a,i,!1,null,"0a5dfec0",null),M=W.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.