PageSourceSearch

https://www.ctfmall.com/js/575.f8613188.js

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

1"use strict";(self["webpackChunkdemo5_vue2"]=self["webpackChunkdemo5_vue2"]||[]).push([[575],{3551:function(t,e,s){s.d(e,{KU:function(){return r},Mm:function(){return i},it:function(){return c},vR:function(){return a},zR:function(){return l}});var o=s(8314);const i=(t={})=>(0,o.Em)("post","/api/rightsGold/list",t),a=(t={})=>(0,o.Em)("post","/api/rightsGold/QueryGoodsDetails",t),r=(t={})=>(0,o.Em)("post","/api/rightsGold/GetGoodsPriceStock",t),l=(t={})=>(0,o.Em)("get","/api/rightsGold/queryEquity",t),c=(t={})=>(0,o.Em)("get","/api/rightsGold/orderdetail",t)},5575:function(t,e,s){s.r(e),s.d(e,{default:function(){return q}});var o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"goods_box"},[e("GoodsHead",{ref:"goodsHead",attrs:{goodsData:t.goodsData},on:{loginPopupShowFn:t.loginPopupShowFn}}),e("GoodsProductParameters",{attrs:{itemData:t.goodsData.itemData}}),e("GoodsDetail",{attrs:{productId:t.mouldNo}}),e("GoodsMoreProducts",{attrs:{productData:t.goodsData.productData}}),e("ConfirmDialog",{attrs:{"dialog-visible":t.isDialogError,title:"提示",width:"300px",closeOnPressEscape:!1,confirmText:"确认",showFooter:!1,showCancel:!1,showClose:!1},on:{handleCancel:function(e){t.isDialogError=!1},handleConfirm:t.ConformError}},[e("template",{slot:"default"},[e("p",{staticClass:"login_error_tips"},[t._v(t._s(t.dialogErrorText))]),e("div",{staticClass:"error_dialog_btn",on:{click:t.ConformError}},[t._v("确认")])])],2)],1)},i=[],a=s(5353),r=s(3551),l=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,o){return e("div",{key:o,on:{click:function(e){return t.selectGoodsImgItemFn(o)}}},["image"==s.type?e("div",{staticClass:"goods_img_list_item_img_box"},[e("el-image",{class:["goods_img_list_item_img",t.selectGoodsImgIndex==o?"select_goods_img":""],attrs:{id:"goods_img_list_item_img"+o,src:s.src,alt:""}}),t.isShowWatermark&&s.isFirst?e("div",{staticClass:"watermark"},t._l(t.watermark,function(s,o){return e("div",{key:o,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"+o,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,o){return e("div",{key:o,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.itemData.name))]),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_price_content"},[t.productParamter.stockty>0?e("div",{staticClass:"goods_info_price_box"},[e("span",{staticClass:"goods_info_price"},[t._v(t._s(t.$utils.priceFormat(t.productParamter.price)[2])+"权益金")]),e("span",{staticClass:"goods_info_price_text"},[t._v("èµ·")])]):e("div",{staticClass:"goods_info_price_box"},[e("span",{staticClass:"goods_info_price_two"},[t._v("--")])])]),t._l(t.category,function(s,o){return e("div",{key:"goods_info_specs_box"+o,staticClass:"goods_info_specs_box"}
1,[e("div",{staticClass:"goods_info_specs_title_box"},[e("div",{staticClass:"goods_info_specs_title"},[t._v(t._s(s.cName))]),e("div",{staticClass:"goods_info_specs_title_explain"})]),e("div",{ref:`goods_info_specs_body_housing${o}`,refInFor:!0,staticClass:"goods_info_specs_body_housing",style:s.allShow?"max-height: 10000px;":""},[e("div",{ref:`goods_info_specs_body_box${o}`,refInFor:!0,staticClass:"goods_info_specs_body_box"},t._l(s.cType,function(i,a){return e("div",{key:a,class:["goods_info_specs_body_item",s.selectItem==i?"goods_info_specs_body_item_select":"",i.isShow&&0!=t.itemData.enabled?"":"no_show_specs_popup_item"],on:{click:function(e){return t.selectSpecsItemFn(i,o,s)}}},[t._v(t._s("金重"==s.cName||"克重"==s.cName||"货重"==s.cName?i.pName+"克":i.pName))])}),0)]),s.openBtnShow?e("div",{staticClass:"open_btn_box"},[s.allShow?e("div",{staticClass:"open_btn",on:{click:function(e){return t.setAllShowFn(o)}}},[e("div",{staticClass:"open_btn_value"},[t._v("收起")]),e("img",{staticClass:"open_btn_icon",attrs:{src:"https://cdn.ctfmall.com/path/pc-goods-head-no-open-icon.png",alt:""}})]):e("div",{staticClass:"open_btn",on:{click:function(e){return t.setAllShowFn(o)}}},[e("div",{staticClass:"open_btn_value"},[t._v("展开全部")]),e("img",{staticClass:"open_btn_icon",attrs:{src:"https://cdn.ctfmall.com/path/pc-goods-head-open-icon.png",alt:""}})])]):t._e()])}),t.combinationData.Describe?e("div",{staticClass:"goods_info_specs_box"},[e("div",{staticClass:"goods_info_specs_title_box"},[e("div",{staticClass:"goods_info_specs_title"},[t._v(t._s(t.combinationData.Describe))]),e("div",{staticClass:"goods_info_specs_title_explain"})]),e("div",{staticClass:"goods_info_specs_body_housing"},[e("div",{staticClass:"goods_info_specs_body_box"},t._l(t.combinationData.ListData,function(s,o){return e("div",{key:o,class:["goods_info_specs_body_item",s.MouldNo==t.combinationDataSelect.MouldNo?"goods_info_specs_body_item_select":""],on:{click:function(e){return t.combinationSelectFn(s.MouldNo)}}},[t._v(t._s(s.Title))])}),0)])]):t._e(),e("div",{staticClass:"buy_num_stock_box"},[e("div",{staticClass:"buy_num_title"},[t._v("购买数量")]),e("div",{staticClass:"buy_num_body"},[e("div",{staticClass:"stock_num"},[t._v(t._s(t.productParamter.stockty<=0?"库存0ä»¶":t.productParamter.stockty>5?"有货":"库存紧张"))]),e("div",{staticClass:"buy_num_select"},[t.goodsSum>1&&t.isGoodsBtn&&t.productParamter.stockty>0&&200!=t.goodsStatus?e("div",{staticClass:"buy_num_reduce",on:{click:t.reduceGoodsFn}},[e("img",{staticClass:"buy_num_reduce_icon",attrs:{src:"https://cdn.ctfmall.com/path/[email protected]",alt:""}})]):e("div",{staticClass:"buy_num_reduce"},[e("img",{staticClass:"buy_num_reduce_icon",attrs:{src:"https://cdn.ctfmall.com/path/[email protected]",alt:""}})]),e("el-input",{staticClass:"buy_num_reduce_num",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"}}),t.goodsSum<Number(t.productParamter.stockty)&&t.isGoodsBtn&&t.productParamter.stockty>0&&200!=t.goodsStatus?e("div",{staticClass:"buy_num_add",on:{click:t.addGoodsFn}},[e("img",{staticClass:"buy_num_add_icon",attrs:{src:"https://cdn.ctfmall.com/path/[email protected]",alt:""}})]):e("div",{staticClass:"buy_num_add"},[e("img",{staticClass:"buy_num_add_icon",attrs:{src:"https://cdn.ctfmall.com/path/[email protected]",alt:""}})])],1)])]),t.productParamter.stockty>0?e("div",{staticClass:"goods_info_btn_box"},[e("div",{staticClass:"buy_now_btn",on:{click:t.goodsPay}},[t._v("立即购买")])]):e("div",{staticClass:"goods_info_btn_two_box"},[e("div",{staticClass:"sell_out_btn"},[t._v("已售罄")])]),"0+"!=t.itemData.salesNum?e("div",{staticClass:"sales_num"},[t._v("季销"+t._s(t.itemData.salesNum))]):t._e()],2),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)},c=[],n=s(805),d=s(7967),m=s(9118),h=s.n(m),g={props:{goodsData:{type:Object,default:()=>({})}},data(){return{bannerList:[],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},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:[],centerDialogVisible:!1,QRcodeUrl:d.yK+"/subpages/royalty/product/detail?productId=",endTime:"",mouldNo:"",watermark:[],isShowWatermark:!1,addcartChecked:!1,combinationData:[],combinationDataSelect:{},goodsStatus:0}},watch:{goodsData:{handler:function(t){t.itemData&&(t.category=this.handleCategory(t.category),t.status&&(this.goodsStatus=t.status),this.setBannerListFn(t),this.itemData=t.itemData,this.QRcodeUrl+=t.itemData.mouldNo,this.setPriceFn(t),this.setCategoryFn(t),4==t.itemData.productType&&(this.endTime=new Date(t.itemData.endDate.replace(/-/g,"/")),this.countDown()),this.getWatermarkFn(t.itemData.mouldNo),this.setCombinationData(t))},immediate:!0},$route:{handler:function(t,e){t.query.mouldNo&&(this.mouldNo=t.query.mouldNo,this.goodsSum=1)},immediate:!0}},computed:{...(0,a.L8)(["userInfo"])},mounted(){window.selectGoodsImgItemFn=this.selectGoodsImgItemFn},methods:{handleCategory(t){if(t&&t.length>0){let e=[],s={},o=0;return t.forEach(t=>{void 0===e[s[t.cEnglishName]]&&(s[t.cEnglishName]=o,o++,e.push({cEnglishName:t.cEnglishName,cName:t.cName,cid:o+1,cType:[]})),e[s[t.cEnglishName]].cType.push({checked:t.checked,disabled:t.disabled,pName:t.pName,pid:t.pid,remark:t.remark})}),e}return t},getWatermarkFn(t){let e={mouldNo:t,source:1,userType:this.userInfo&&this.userInfo.staff?3:0};(0,n.PY)(e).then(t=>{200==t.code&&t.data.length>0&&(this.watermark=t.data,this.isShowWatermark=!0)})},setCombinationData(t){let e=t.combinationData||[],s={};var o={};if(e.length){o={Describe:e[0].Describe,ListData:[]};var i=e[0].MouldNos.split(";"),a=e[0].ProductsTitle.split(";");if(i.length==a.length)for(let t=0;t<i.length;t++)i[t]&&a[t]&&o.ListData.push({MouldNo:i[t],Title:a[t]})}o.ListData&&o.ListData.length>0&&o.ListData.forEach(t=>{this.mouldNo==t.MouldNo&&(s=t)}),this.combinationData=o,this.combinationDataSelect=s},setBannerListFn(t){let e=[];
1if(t.bannerItem&&t.bannerItem.length>0){let s="";t.bannerItem.forEach((t,o)=>{s||(s=t),e.push({type:"image",src:t,isFirst:0==o})}),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.KU)(s).then(t=>{let e=t.data;e.category=this.handleCategory(e.category),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.rightsGoldPrice,this.productParamter.shopPrice=t.itemData.rightsGoldPrice},countDown(){let t,e=(new Date).getTime(),s=this.endTime.getTime();if(s-e>0){t=s-e;let o=this.$utils.formatTimeAll(t,2,"",!0),i=this.overTimeStrSplit,a=o.split("天"),r=a[1].split(":");i.day=a[0],i.hour=r[0],i.min=r[1],i.second=r[2],this.overTime=t,this.overTimeStr=o,this.overTimeStrSplit=i,setTimeout(this.countDown,1e3)}else{t=0;let e=this.$utils.formatTimeAll(t,2,"",!0),s=this.overTimeStrSplit,o=e.split("天"),i=o[1].split(":");s.day=o[0],s.hour=i[0],s.min=i[1],s.second=i[2],this.overTime=t,this.overTimeStr=e,this.overTimeStrSplit=s}},goView(t){this.$router.push({path:"/goodsList",query:{keyword:t[0]["title"],mid:t[0]["mid"]}})},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,o=0){let i=document.querySelector(t);o<=e&&setTimeout(()=>{i.scrollTop=1===s?i.scrollTop+1:i.scrollTop-1,o++,this.setGoodsImgScrollTop(t,e,s,o)},1)},combinationSelectFn(t){window.location.href=window.location.origin+window.location.pathname+"?mouldNo="+t},setCategorySort(t){let e=[];return t.forEach(t=>{switch(t.cEnglishName){case"ringSize":case"length":e.unshift(t);break;case"goldWeight":let s=0;e.forEach((t,e)=>{"ringSize"!=t.cEnglishName&&"length"!=t.cEnglishName||(s=e)}),e.splice(s,0,t);break;case"money":e.push(t);break;case"regularLabour":let o=null;e.forEach((t,e)=>{"money"==t.cEnglishName&&(o=e)}),null!=o?e.splice(o,0,t):e.push(t);break;default:let i=0;e.forEach((t,e)=>{"ringSize"!=t.cEnglishName&&"length"!=t.cEnglishName&&"goldWeight"!=t.cEnglishName||(i=e)}),e.splice(i,0,t);break}}),e},reduceGoodsFn(){this.goodsSum>1&&this.goodsSum--,this.$forceUpdate()},addGoodsFn(){this.goodsSum<this.productParamter.stockty&&this.goodsSum++,this.$forceUpdate()},setCategoryFn(t){let e=t.category;e.forEach(t=>{t.cType.forEach(t=>{t.isShow=!0})}),this.category=this.setCategorySort(e),0!=t.itemData.enabled&&this.setCategoryItemFn(0),this.$nextTick(()=>
1{this.category.forEach((t,e)=>{if(this.$refs[`goods_info_specs_body_housing${e}`]){let s=this.$refs[`goods_info_specs_body_housing${e}`][0].offsetHeight,o=this.$refs[`goods_info_specs_body_box${e}`][0].offsetHeight;t.openBtnShow=s<o}}),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.KU)(s).then(e=>{let s=e.data;
1s.category=this.handleCategory(s.category),this.judgeType(s),this.setGoodsItemPrice(s),t++,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]="0"):(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 o="";o="length"==s.cEnglishName||"ringSize"==s.cEnglishName?t.remark:t.pName;let i={...this.selectGoodsTypeItem};i.uid=this.userInfo.uid,i.click=s.cEnglishName,i.clickValue=o,i.mouldNo=this.itemData.mouldNo,(0,r.KU)(i).then(t=>{let e=t.data;e.category=this.handleCategory(e.category),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,o)=>{s[t.cEnglishName][e.pName]?e.isShow=!0:e.isShow=!1})}),this.category=e,this.setIsGoodsBtn(),this.$forceUpdate()},setIsGoodsBtn(){this.isGoodsBtn=this.category.every(t=>t.selectItem&&1==t.selectItem.isShow),this.$forceUpdate()},setGoodsSumFn(t){t<0&&(this.goodsSum=0),t>this.productParamter.stockty&&(this.goodsSum=this.productParamter.stockty)},setGoodsItemPrice(t){this.productParamter.stockty=t.stockQtyWeb,this.productParamter.stocktystore=t.stocktystore,this.productParamter.price=t.minPrice,"[]"!=t.thatGoods&&t.thatGoods.length>0&&(this.productParamter.goodsId=t.thatGoods[0].gid,this.productParamter.shopPrice=t.thatGoods[0].rightsGoldPrice,this.productParamter.attribute=t.thatGoods[0].attribute||"")},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("请选择规格");this.gioDirectOrder();let t=[{goodID:this.productParamter.goodsId,buyNum:this.goodsSum,stockQtyStore:this.productParamter.stocktystore,stockQtyWeb:this.productParamter.stockty,attribute:this.productParamter.attribute||""}],e=0;window.location.href=window.location.origin+"/pay?carts="+JSON.stringify(t)+"&orderType="+e+"&isRights=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(h())("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 o=t.toDataURL("image/png"),i=document.createElement("img");i.src=o,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)})},gioDirectOrder(){try{let t={productNo_var:this.itemData?this.itemData.mouldNo:"",productID_var:this.productParamter.goodsId,price_var:this.productParamter.price,quantity_var:this.goodsSum,productName_var:this.itemData?this.itemData.name:"",productMaterial_var:this.itemData.texture||"",productStyle_var:this.itemData.pStyle||"",priceMode_var:this.itemData.valuation||""};this.$gioReport("directOrder",t)}catch(t){console.log(this.$route.path+" --- directOrder --- 数据上报失败",t)}}}},u=g,_=s(1656),p=(0,_.A)(u,l,c,!1,null,"3c865d0b",null),y=p.exports,b=function(){var t=this,e=t._self._c;return t.itemData?e("div",{staticClass:"product_parameters_box"},[e("h3",{staticClass:"product_parameters_title"},[t._v("商品参数")]),t.itemData.sizeImage?e("div",{staticClass:"product_parameters_body"},[e("div",{staticClass:"product_parameters_left"},[e("img",{staticClass:"product_parameters_left_img",attrs:{src:t.itemData.sizeImage,alt:""}}),e("div",{staticClass:"product_parameters_left_title"},[t._v("产品尺寸图")])]),e("div",{staticClass:"product_parameters_right"},[t._l(t.newParameter.type1,function(s,o){return e("ul",{key:o,staticClass:"product_parameters_right_table"},t._l(s,function(s,i){return e("li",{key:o+"-"+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,o){return e("ul",{key:o,staticClass:"product_parameters_right_table"},t._l(s,function(s,i){return e("li",{key:o+"-"+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()},v=[],f={props:{itemData:{type:Object,default:()=>{}}},data(){return{materialRemark:"",newParameter:{type1:[],type2:[]}}},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="因物料差异,实际货品的重量可能存在略微误差,请以实际货重为准;价格随钻石颜色、净度、重量波动。";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.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,o=0,i=0,a=0;for(let r=0;r<e.length;r++)0==o&&this.newParameter.type1.push([]),this.newParameter.type1[s].push(e[r]),o++,o>=3&&(o=0,s++),0==a&&this.newParameter.type2.push([]),this.newParameter.type2[i].push(e[r]),a++,a>=4&&(a=0,i++)}}},C=f,k=(0,_.A)(C,b,v,!1,null,"771cb3e5",null),I=k.exports,S=function(){var t=this,e=t._self._c;return t.productId?e("div",[e("div",{staticClass:"goods_detail_box"},[e("div",{staticClass:"goods_detail_body"},[t.otherDetail.length>0?t._l(t.otherDetail,function(t,s){return e("el-image",{key:s,staticClass:"goods_detail_img",attrs:{src:t.imageUrl}})}):e("el-image",{staticClass:"goods_detail_img",attrs:{src:"https://cdn.ctfmall.com/goodsother/260415xqy-1.jpg"}})],2)])]):t._e()},w=[],D={props:{productId:{type:String,default:""}},watch:{productId:{handler(t){this.getOtherDetail(t)},immediate:!0}}
1,data(){return{otherDetail:[]}},methods:{getOtherDetail(t){(0,n.QQ)({mouldNo:t}).then(t=>{t.data&&t.data.length>0&&(this.otherDetail=t.data)})}}},N=D,G=(0,_.A)(N,S,w,!1,null,"5660cd20",null),P=G.exports,x=function(){var t=this,e=t._self._c;return t.productData.length>0?e("div",{staticClass:"more_products_box"},[e("h3",{staticClass:"more_products_title"},[t._v("更多商品")]),e("div",{staticClass:"more_products_body"},[e("GoodsList",{attrs:{list:t.productData,title:"更多商品"}})],1)]):t._e()},T=[],L=s(7406),E={props:{productData:{type:Array,default:()=>[]}},components:{GoodsList:L.A},data(){return{}}},$=E,F=(0,_.A)($,x,T,!1,null,"6a310fd6",null),R=F.exports,M=s(2865),z={components:{GoodsHead:y,GoodsProductParameters:I,GoodsDetail:P,GoodsMoreProducts:R,ConfirmDialog:M.A},data(){return{mouldNo:"",orderNo:"",goodsData:{},addCartShow:!1,dialogErrorText:"",isDialogError:!1}},computed:{...(0,a.L8)(["userInfo"])},watch:{$route:{handler(){this.mouldNo=this.$route.query.mouldNo||"",this.orderNo=this.$route.query.orderNo||"",this.querygoodsdetailsFn()},immediate:!0}},beforeRouteLeave(t,e,s){t.meta.keepAlive=!0,t.meta.isGoods=!0,s(0)},beforedestroy(){this.$bus.$emit("getGoodsDetail",null)},methods:{querygoodsdetailsFn(){let t={branchSelfCode:0,isStoreInventory:0};t.mouldNo=this.mouldNo,t.orderNo=this.orderNo||"",t.staffcode=this.userInfo.staffCode||0,t.source=this.$localStorage.getItem("source")?this.$localStorage.getItem("source"):1,t.stock=-1,t.uid=this.userInfo.uid||0,(0,r.vR)(t).then(t=>{1==t.retcode?(this.goodsData=t.data,this.gioGoodsDetail(),this.$bus.$emit("getGoodsDetail",this.goodsData)):(this.dialogErrorText=t["retmsg"],this.isDialogError=!0)})},loginPopupShowFn(){this.$root.$emit("loginDialog")},alertRegisterDialog(){this.$root.$emit("registerDialog")},ConformError(){window.history.length>1?this.$router.back():window.location.href=window.location.origin+"/home"},gioGoodsDetail(){try{this.$gioReport("royaltyDetailPageView",{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)}}}},W=z,U=(0,_.A)(W,o,i,!1,null,"b7d901bc",null),q=U.exports},7406:function(t,e,s){s.d(e,{A:function(){return n}});var o=function(){var t=this,e=t._self._c;return e("ul",{staticClass:"home_new_arrival_list",class:["home_new_arrival_list_"+t.col]},t._l(t.goodsList,function(s,o){return e("li",{key:o,staticClass:"home_new_arrival_list_item",on:{click:function(e){return t.navigateTo(s,o)}}},[e("img",{staticClass:"home_new_arrival_list_item_img",attrs:{src:s.thumbHD||s.thumb,alt:""}}),s.watermark&&s.watermark.length>0?e("div",{staticClass:"watermark"},t._l(s.watermark,function(s,o){return e("div",{key:o,staticClass:"shop_topbox"},[s.topLink?e("div",{staticClass:"shop_top"},[e("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:s.topLink}})],1):t._e(),s.rightLink?e("div",{staticClass:"shop_top"},[e("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:s.rightLink}})],1):t._e(),s.bottomLink?e("div",{staticClass:"shop_top"},[e("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:s.bottomLink}})],1):t._e(),s.leftLink?e("div",{staticClass:"shop_top"},[e("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:s.leftLink}})],1):t._e()])}),0):t._e(),e("div",{staticClass:"home_new_arrival_list_item_title"},[t._v(t._s(s.title||s.name))]),e("div",{staticClass:"home_new_arrival_list_item_price"},[e("span",{staticClass:"home_new_arrival_list_item_integer"},[t._v(t._s(s.stPrices[2])+"权益金")]),e("span",{staticClass:"home_new_arrival_list_item_text"},[t._v("起")])])])}),0)},i=[],a={props:{list:{type:Array,default:()=>[]},col:{type:Number,default:4}},data(){return{goodsList:[]}},watch:{list:{handler:function(t,e){this.goodsList=this.setPriceFormat(t)},immediate:!0}},methods:{setPriceFormat(t){return t.forEach(t=>{t.stPrices=this.$utils.priceFormat(t.rightsGoldPrice)}),t},navigateTo(t,e){this.gioReport(t,e),this.toPageBlank(`/royalty/goods?mouldNo=${t.mouldNo}`),"权益金商品列表"==this.$route.meta.title&&this.gioSearchResultClick()},gioReport(t,e){try{let s={page_var:this.$route.meta.title||"",module_var:"权益金商城",position_var:e,productNo_var:t.mouldNo,productName_var:t.title||t.name||""};
1this.$gioReport("productEntranceClick",s)}catch(s){console.log(this.$route.path+" --- productEntranceClick --- 数据上报失败",s)}},gioSearchResultClick(){try{let t={searchWord_var:"权益金商城",searchType_var:"进入列表页"};this.$gioReport("searchResultClick",t)}catch(t){console.log(this.$route.path+" --- searchResultClick --- 数据上报失败",t)}}}},r=a,l=s(1656),c=(0,l.A)(r,o,i,!1,null,"63383049",null),n=c.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.