PageSourceSearch

https://www.ctfmall.com/js/554.7f90057c.js

js ctfmall.com collected 2026-10-09 22:40:54 UTC 38,402 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkdemo5_vue2"]=self["webpackChunkdemo5_vue2"]||[]).push([[554],{3863:function(t,e,s){s.r(e),s.d(e,{default:function(){return q}});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pay-box"},[t._m(0),e("div",{staticClass:"bd"},[e("PayOrderInfo",{ref:"PayOrderInfo",attrs:{pointsPrice:t.pointsPrice},on:{setOrderTotal:t.setOrderTotal,setPointLimit:t.setPointLimit,setMarketingIdList:t.setMarketingIdList,setMarketingData:t.setMarketingData,setCart:t.setCart,checkPointsUse:t.handleCheckPoinstUse,getPayment:t.getPayment,setSpecialPointsGoods:t.setSpecialPointsGoods}}),e("PayForm",{ref:"PayForm",attrs:{orderTotal:t.orderTotal,totalAmountBackup:t.totalAmountBackup,totalNotDerate:t.totalNotDerate,pointLimitRatio:t.pointLimitRatio,marketingIdList:t.marketingIdList,marketingData:t.marketingData,carts:t.carts,isUsePoints:t.isUsePoints,specialPointsGoods:t.specialPointsGoods},on:{changePoints:t.changePoints,gioFn:t.gioFn}})],1)])},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"tit"},[e("span",{staticClass:"font-title"},[t._v("订单提交")])])}],a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrapper border-all-1"},[e("div",{staticClass:"hd"},[e("div",{staticClass:"tit"},[t._v("购物清单")]),t.goodsList.length>0?e("div",{staticClass:"total"},[t._v("共"),e("span",[t._v(t._s(t.toatlNumber))]),t._v("件商品")]):t._e()]),t.goodsList.length>0?e("div",{staticClass:"list"},t._l(t.goodsList,function(s,i){return e("div",{key:i,staticClass:"item"},[e("div",{staticClass:"thumb"},[e("el-image",{staticClass:"img",attrs:{src:s.thumb,fit:"cover"}})],1),e("div",{staticClass:"detail"},[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.newTitle||s.title))])]),e("div",{staticClass:"category-wrap"},[s.category&&s.category.length>0?e("div",{staticClass:"category"},t._l(s.category,function(s,i){return e("div",{key:i,staticClass:"category-item"},[t._v(t._s(s))])}),0):t._e()]),e("div",{staticClass:"bot"},[t._v("数量:"+t._s(s.buyNum))])]),e("div",{staticClass:"price"},[e("div",{staticClass:"price-show"},[t.userInfo.staff?e("span",{staticClass:"staff"},[t._v("员工价")]):t._e(),e("span",{staticClass:"yen"},[t._v("¥")]),t._v(t._s(t.$utils.priceFormat(s.marketingPrice)[0])),e("span",[t._v("."+t._s(t.$utils.priceFormat(s.marketingPrice)[1]))])]),Number(s.marketingPrice)>0&&Number(s.marketingPrice)<Number(s.shopPrice)?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):t._e(),e("div",{staticClass:"pay-detail border-top-1"},[e("div",{staticClass:"row"},[t._m(0),e("div",{staticClass:"val"},[e("span",{staticClass:"yen"},[t._v("¥")]),t._v(t._s(t.$utils.priceFormat(t.totalPrice)[2]))])]),Number(t.fullMinusPrice)>0?e("div",{staticClass:"row"},[e("div",{staticClass:"label"},[e("div",{staticClass:"txt"},[t._v("满额优惠")]),t.allMarketingList&&t.allMarketingList.length>0?e("div",{staticClass:"tags"},[t._l(t.allMarketingList,function(s,i){return[6==s.type?e("div",{key:i,staticClass:"tags-item"},[t._v(t._s(s.customTagName))]):t._e()]})],2):t._e()]),e("div",{staticClass:"val color-1"},[t._v("-"),e("span",{staticClass:"yen"},[t._v("¥")]),t._v(t._s(t.$utils.priceFormat(t.fullMinusPrice)[2]))])]):t._e(),Number(t.FullNumberPrice)>0?e("div",{staticClass:"row"},[e("div",{staticClass:"label"},[e("div",{staticClass:"txt"},[t._v("满件优惠")]),t.allMarketingList&&t.allMarketingList.length>0?e("div",{staticClass:"tags"},[t._l(t.allMarketingList,function(s,i){return[10==s.type?e("div",{key:i,staticClass:"tags-item"},[t._v(t._s(s.customTagName))]):t._e()]})],2):t._e()]),e("div",{staticClass:"val color-1"},[t._v("-"),e("span",{staticClass:"yen"},[t._v("¥")]),t._v(t._s(t.$utils.priceFormat(t.FullNumberPrice)[2]))])]):t._e(),t.pointsPrice>0?e("div",{staticClass:"row"},[t._m(1),e("div",{staticClass:"val color-1"},[t._v("-"),e("span",{staticClass:"yen"},[t._v("¥")]),t._v(t._s(t.$utils.priceFormat(t.pointsPrice)[2]))])]):t._e(),e("div",{staticClass:"row"},[t._m(2),e("div",{staticClass:"val size-1 color-1"},[e("span",{staticClass:"yen"},[t._v("¥")]),t._v(t._s(t.$utils.priceFormat(Math.max(parseFloat(t.orderTotal)+parseFloat(t.totalNotDerateReal),0))[2]))])])])])},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"label"},[e("div",{staticClass:"txt"},[t._v("商品小计")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"label"},[e("div",{staticClass:"txt"},[t._v("周大福积分")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"label"},[e("div",{staticClass:"txt"},[t._v("合计")])])}],n=s(5353),l=s(805),c=s(7505),d={props:{pointsPrice:{type:[Number,String],default:0}},data(){return{carts:"",goodsList:[],totalPrice:0,fullMinusPrice:0,FullNumberPrice:0,orderTotal:0,totalNotDerate:0,totalNotDerateReal:0,pointLimitRatio:-1,allMarketingList:[],toatlNumber:null,specialPointsGoods:{integralSpecialFunds:!1,disabled:!1}}},computed:{...(0,n.L8)(["userInfo"])},watch:{pointsPrice:{handler(){this.getGoodsTotalPrice()},deep:!0}},mounted(){this.$route.query.carts&&(this.carts=JSON.parse(this.$route.query.carts),this.getgoodsdetailsbyidFn())},methods:{getgoodsdetailsbyidFn(){let t=[];
1this.carts.forEach(e=>{t.push({goodId:e.goodID,attribute:e.attribute})});let e={};e.cartGoods=t,e.uid=this.userInfo.uid,e.branchCode=0,this.toatlNumber=0,this.totalNotDerate=0,this.pointLimitRatio=-1,(0,c.X2)(e).then(t=>{if(1==t.retcode){let e=0,s=-1,i=0,o=0;this.goodsList=this.category2str({goodsList:t.data.productData}).goodsList;let a={};this.carts.forEach((t,e)=>{a[t.goodID]=t,a[t.goodID].index=e}),this.goodsList.forEach(t=>{a[t.goodsID]&&(t.buyNum=a[t.goodsID]["buyNum"],t.attribute=a[t.goodsID]["attribute"],this.carts[a[t.goodsID]["index"]].price=t.marketingPrice,t.stock&&null!=t.stock.usedPercentage&&t.stock.usedPercentage>=0&&t.stock.usedPercentage<100&&(i+=parseFloat((parseFloat(a[t.goodsID].buyNum)*parseFloat(t.shopPrice)).toFixed(2)),s=t.stock.usedPercentage)),this.toatlNumber=this.$utils.numAdd(this.toatlNumber,t.buyNum),1==t.isUsePoints&&this.$emit("checkPointsUse",1),t.integralSpecialFunds&&o++}),i>0&&s>0&&(e=parseFloat((i-parseInt(i*s/100)).toFixed(2))),this.totalNotDerate=e,this.pointLimitRatio=s,this.specialPointsGoods.integralSpecialFunds=o>0,this.specialPointsGoods.disabled=o>0&&o!=this.goodsList.length,this.userInfo.staff||this.loadProductMarkeings(),this.getGoodsTotalPrice(),this.$emit("setCart",this.carts),this.$emit("setSpecialPointsGoods",this.specialPointsGoods)}}).catch(t=>{console.log(t)})},loadProductMarkeings(t){let e=this.goodsList,s=[];e.forEach(t=>{s.push({goods_id:t.goodsID,buy_cnt:t.buyNum,goods_price:t.marketingPrice,attribute:t.attribute})});let i={};i.uid=this.userInfo.uid,i.CartItem=s,i.type=1,(0,l.n_)(i).then(t=>{if("[]"!=t[0].retmsg&&"Fail"!=t[0].retcode){let e=[],i=0;for(let a=0;a<t.length;a++){let o={};switch(t[a].MType){case 6:o=this.fullComputation(t[a],s),i+=o.derateMoney;break;case 10:o=this.fullComputationCount(t[a],s),this.FullNumberPrice=o.derateMoney;break;default:break}o.type=t[a].MType,o!={}&&e.push(o)}this.fullMinusPrice=i,this.allMarketingList=e;let o=[];this.allMarketingList.forEach(t=>{Number(t.derateMoney)>0&&o.push(t.mid)}),this.$emit("setMarketingIdList",o),this.$emit("setMarketingData",e),this.getGoodsTotalPrice()}})},fullComputation(t,e){let s=t.ProductInfo,i=0;s.forEach(t=>i+=t.Subtotal);let o=t.MarketingInfo,a=!1,r="",n=0,l=1,c="";this.allMarketingList.forEach(e=>{t.ID==e.mid&&(l=e.useMarketing)});for(let u=0;u<o.length;u++){let t=0;if(1==o[u].IsNoTop){i<o[u].Price?(t=(o[u].Price-i).toFixed(2),r="您还差"+t+"元可立减"+o[u].DerateMoney+"元"):(t=(o[u].Price-i%o[u].Price).toFixed(2),r="您还差"+t+"元可再减"+o[u].DerateMoney+"元"),n=parseInt(i/o[u].Price)*o[u].DerateMoney,c="每满"+o[u].Price+"减"+o[u].DerateMoney;break}if(i<o[u].Price){a=!1,t=o[u].Price-i,r=0==u?"您还差"+t.toFixed(2)+"元可立减"+o[u].DerateMoney+"元":"您还差"+t.toFixed(2)+"元可再减"+(o[u].DerateMoney-o[u-1].DerateMoney)+"元",c="满"+o[u].Price+"减"+o[u].DerateMoney;break}r="已为您优惠"+o[u].DerateMoney+"元",n=o[u].DerateMoney,a=!0,c="满"+o[u].Price+"减"+o[u].DerateMoney}let d={title:t.MTypeDesc,remake:r,isMaxDiscount:a,derateMoney:n,mid:t.ID,useMarketing:l,customTagName:c};return d},fullComputationCount(t,e){let s=t.ProductInfo,i=0,o=0;for(let h=0;h<s.length;h++){i+=s[h].Subtotal;for(let t=0;t<e.length;t++)e[t].goods_id==s[h].GoodsID&&(o+=e[t].buy_cnt)}let a=t.MarketingInfo,r=!1,n="",l=0,c=1,d=this.allMarketingList;for(let h=0;h<d.length;h++)t.ID==d[h].mid&&(c=d[h].useMarketing);for(let h=0;h<a.length;h++){let t=0;if(o<a[h].Price){r=!1,t=a[h].Price-o,n=0==h?"您还差"+t.toFixed(0)+"件商品可享"+a[h].DerateMoney+"折":"您还差"+t.toFixed(0)+"件商品可再享"+a[h].DerateMoney+"折";break}l=a[h].DerateMoney>9?this.$utils.keepDecimal(i*(100-a[h].DerateMoney)/100).toFixed(2):this.$utils.keepDecimal(i*(10-a[h].DerateMoney)/10).toFixed(2),n="已为您优惠"+l+"元",r=!0}let u={title:t.MTypeDesc,remake:n,isMaxDiscount:r,derateMoney:l,mid:t.ID,useMarketing:c,customTagName:t.marketingLabelName||t.ADWord};return u},getGoodsTotalPrice(){let t=0;this.goodsList.forEach(e=>t=this.$utils.numAdd(t,this.$utils.mul(e.marketingPrice,e.buyNum))),this.totalPrice=t,this.orderTotal=this.$utils.numSub(this.totalPrice,this.$utils.numAdd(parseFloat(this.fullMinusPrice),parseFloat(this.FullNumberPrice)));let e=0;this.totalNotDerate>0&&(e=this.orderTotal>this.totalNotDerate?this.totalNotDerate:this.orderTotal,this.orderTotal=this.orderTotal>e?parseFloat((this.orderTotal-e).toFixed(2)):0),this.pointsPrice>0&&(this.orderTotal-=parseFloat(this.pointsPrice)),this.totalNotDerateReal=e,this.$emit("setOrderTotal",[this.orderTotal,this.totalPrice]),this.$emit("setPointLimit",[this.totalNotDerateReal,this.pointLimitRatio]),this.$emit("getPayment",(parseFloat(this.orderTotal)+parseFloat(this.totalNotDerateReal)).toFixed(2))}}},u=d,h=s(1656),p=(0,h.A)(u,a,r,!1,null,"8c537e2a",null),m=p.exports,f=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrapper"},[e("div",{staticClass:"content border-top-1 address"},[e("div",{staticClass:"hd"},[e("div",{staticClass:"left"},[t._v("收货地址")]),e("div",{staticClass:"right"},[e("div",{staticClass:"btn cursor-pointer",on:{click:t.handleAddAddress}},[t._v("添加新地址")])])]),e("div",{staticClass:"bd"},[e("div",{staticClass:"info cursor-pointer",on:{click:t.handleChooseAddress}},[t.address.AddressID?[e("div",{staticClass:"name"},[e("span",[t._v(t._s(t.address.ReciverName))]),e("span",[t._v(t._s(t.address.MobilePhone))])]),e("div",{staticClass:"desc"},[t._v(t._s(t.address.ProvinceName?t.address.ProvinceName+" ":"")+t._s(t.address.CityName?t.address.CityName+" ":"")+t._s(t.address.DistrictName?t.address.DistrictName+" ":"")+t._s(t.address.Street))])]:e("div",{staticClass:"empty"},[t._v("选择收货地址")]),e("img",{staticClass:"arrow",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowr_v5.png",alt:""}})],2)])]),t.userPoint.availablePoint>=50&&0==t.isUsePoints?e("div",{staticClass:"content border-top-1 deduction"},[e("div",{staticClass:"hd",staticStyle:{display:"block"}},[e("div",{staticClass:"left"},[t._v("积分/预付卡")]),t.totalNotDerate>0?e("div",{staticClass:"subtitle"},[t._v("购买工艺金章金条类产品的,积分最高可抵现该笔订单中工艺金章金条类产品所对应的最终应付金额的"+t._s(t.pointLimitRatio)+"%。")]):t._e()]),e("div",{staticClass:"bd"},[e("div",{staticClass:"list"},[t.userPoint.availablePoint>=50?e("div",{staticClass:"row",on:{click:function(e){return e.stopPropagation(),t.changePointCheck.apply(null,arguments)}}},[e("div",{staticClass:"left"},[e("div",{staticClass:"name"}
1,[t._v("周大福积分")]),t.usePointExchangeMoney&&t.pointsProportionDetail?e("div",{staticClass:"txt"},[t._v("使用"+t._s(t.pointsProportionDetail.summary.totalUsedPoints)+"积分,抵扣 ¥ "+t._s(t.$utils.priceFormat(t.pointsProportionDetail.summary.totalUsedPointAmount)[2])+t._s(t.pointsProportionDetail.summary.totalExpansionAmount>0?",额外积分优惠 ¥ "+t.$utils.priceFormat(t.pointsProportionDetail.summary.totalExpansionAmount)[2]:""))]):e("div",{staticClass:"txt"},[t._v("可用"+t._s(t.userPoint.availablePoint)+"积分,抵扣 ¥ "+t._s(t.$utils.priceFormat(t.userPoint.availablePointPrice)[0]))])]),e("div",{staticClass:"right cursor-pointer"},[t.usePointExchangeMoney&&t.pointsProportionDetail?e("span",{staticClass:"color-red"},[t._v("-¥"+t._s(t.$utils.priceFormat(t.pointsProportionDetail.summary.totalUsedPointAmount+t.pointsProportionDetail.summary.totalExpansionAmount)[2]))]):t._e(),e("div",{class:["custom-checkbox",t.usePointExchangeMoney&&t.pointsProportionDetail?"checked":""]})])]):t._e()])])]):t._e(),t.userInfo.staff&&t.payTypeList&&t.payTypeList.length>0?e("div",{staticClass:"content border-top-1 payment"},[t._m(0),e("div",{staticClass:"bd"},[e("div",{staticClass:"list"},t._l(t.payTypeList,function(s,i){return e("div",{key:i,staticClass:"row cursor-pointer",on:{click:function(e){return e.stopPropagation(),t.hancleChoicePayment(s)}}},[e("div",{staticClass:"icon"},[s.icon?e("img",{attrs:{src:s.icon}}):e("img",{attrs:{src:`https://cdn.ctfmall.com/path/pc-pay-${s.enTitle}.png`,fit:"fill"}})]),e("div",{staticClass:"name"},[t._v(t._s(s.cnTitle))]),e("div",{class:["custom-radio",s.paymentId==t.form.payChannel?"checked":""]})])}),0)])]):t._e(),t.userInfo.staff?e("div",{staticClass:"content border-top-1 staff-tips"},[e("div",[t._v("注:员工内购订单不参与买赠活动及专属物料,且不支持开具发票、保证单及退货。")])]):e("div",{staticClass:"content border-top-1 invoice"},[t._m(1),e("div",{staticClass:"bd"},[e("div",{staticClass:"type"},[e("div",{staticClass:"item cursor-pointer",on:{click:function(e){return t.invoiceRadioChange(1)}}},[e("div",{class:["custom-radio",1==t.form.invoiceRadio?"checked":""]}),e("div",{staticClass:"txt"},[t._v("个人/非企业")])]),e("div",{staticClass:"item cursor-pointer",on:{click:function(e){return t.invoiceRadioChange(0)}}},[e("div",{class:["custom-radio",0==t.form.invoiceRadio?"checked":""]}),e("div",{staticClass:"txt"},[t._v("企业")])])]),e("div",{staticClass:"form"},[e("el-form",{ref:"form",attrs:{model:t.form}},[e("el-form-item",{attrs:{prop:"invoice"}},[e("div",{staticClass:"input-wrap"},[e("div",{class:{textplaceholder:!0,fixed:t.invoiceFocus||t.form.invoice.length>0}},[t._v("请填写发票抬头")]),e("el-input",{on:{focus:function(e){return t.handleFocus("invoice")},blur:function(e){return t.handleBlur("invoice")}},model:{value:t.form.invoice,callback:function(e){t.$set(t.form,"invoice",e)},expression:"form.invoice"}})],1)]),0===t.form.invoiceRadio?e("el-form-item",{attrs:{prop:"invoiceNum"}},[e("div",{staticClass:"input-wrap"},[e("div",{class:{textplaceholder:!0,fixed:t.invoiceNumFocus||t.form.invoiceNum.length>0}},[t._v("纳税人识别号/统一社会信用代码")]),e("el-input",{on:{input:function(e){return t.handleInput(e,"invoiceNum")},focus:function(e){return t.handleFocus("invoiceNum")},blur:function(e){return t.handleBlur("invoiceNum")}},model:{value:t.form.invoiceNum,callback:function(e){t.$set(t.form,"invoiceNum",e)},expression:"form.invoiceNum"}})],1)]):t._e()],1)],1),t._m(2)])]),t.userInfo.staff?t._e():e("div",{staticClass:"content border-top-1 remark"},[t._m(3),e("div",{staticClass:"bd"},[e("div",{staticClass:"textarea"},[e("el-input",{attrs:{type:"textarea",resize:"none",rows:3,maxlength:200,placeholder:"如有其他需求,请您在此填写"},model:{value:t.form.remarks,callback:function(e){t.$set(t.form,"remarks",e)},expression:"form.remarks"}}),e("div",{staticClass:"total"},[e("span",{class:{bold:t.form.remarks.length>0}},[t._v(t._s(t.form.remarks.length))]),t._v(" / 200")])],1)])]),e("div",{staticClass:"content border-top-1 submit"},[e("div",{staticClass:"bd"},[!t.userInfo.staff&&t.specialPointsGoods.integralSpecialFunds&&!t.specialPointsGoods.disabled&&t.userPoint.availablePoint<50?e("div",{staticClass:"btn common-btn common-btn-outlined-gray-2"},[t._v("积分不足")]):e("div",{staticClass:"common-btn common-btn-fill-red-3",on:{click:function(e){return e.stopPropagation(),t.gotoOrder.apply(null,arguments)}}},[t._v("提交订单")])])]),e("addressListPop",{ref:"addressListPop"}),e("addAddressDialog",{ref:"addAddressDialog"}),e("points-verify",{ref:"pointsVerify"}),e("custom-popup-v5",{ref:"customPopup"})],1)},v=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"hd"},[e("div",{staticClass:"left"},[t._v("支付方式")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"hd"},[e("div",{staticClass:"left"},[t._v("发票信息")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"tips"},[e("span",[t._v("温馨提示:")]),t._v("电子发票是税局认可的有效凭证,其法律效力、基本用途及使用规定同纸质发票,如需纸质票可自行下载打印。查看发票须知本店默认开具电子发票,部分门店发货订单开具纸质发票。(不支持指定由门店发货)预售订单均由电商发货。")])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"hd"},[e("div",{staticClass:"left"},[t._v("备注")])])}],P=s(2681),g=s(3756),y=function(){var t=this,e=t._self._c;return e("div",[e("custom-popup-v5",{ref:"verifyPopup",attrs:{optionTitle:"积分支付验证",width:720,slotContent:!0,slotFooter:!0,optionBottomBtn:!1}},[e("div",{staticClass:"verify-point-password",attrs:{slot:"content"},slot:"content"},[1==t.type?e("div",{staticClass:"tips"},[e("div",[t._v("本次交易涉及"),e("text",[t._v("积分消费")]),t._v(",为保障用户权益,")]),"sms"==t.pattern?e("div",[t._v("需进行即时验证,验证码将
1发送至您的手机")]):e("div",[t._v("请输入积分密码验证")]),"sms"==t.pattern?e("div",[t._v(t._s(t.phone))]):t._e()]):e("div",{staticClass:"tips"},[e("div",[t._v(t._s(t.tips))])]),e("div",{staticClass:"password"},[e("div",{staticClass:"array"},t._l(6,function(s,i){return e("div",{key:i,class:["dot",t.pointPwdValue.length>=i?"focus":"",t.pointPwdValue.length>i&&"sms"!=t.pattern?"fill":""]},[t._v(t._s("sms"==t.pattern?t.getNumber(t.pointPwdValue,i):""))])}),0),e("el-input",{ref:"pointsInput",attrs:{maxlength:6,autofocus:t.inputFocusStatus},on:{input:t.pointPwdInput},model:{value:t.pointPwdValue,callback:function(e){t.pointPwdValue=e},expression:"pointPwdValue"}})],1)]),e("div",{staticClass:"popup-footer-btn",attrs:{slot:"footer"},slot:"footer"},["sms"==t.pattern?e("div",{class:["btn",t.countdown.disabled?"btn-cancel disabled":"btn-confirm"],on:{click:function(e){return e.stopPropagation(),t.handleSend.apply(null,arguments)}}},[t._v(t._s(t.countdown.text))]):e("div",{staticClass:"btn btn-confirm",on:{click:function(e){return e.stopPropagation(),t.handleConfirmPwd.apply(null,arguments)}}},[t._v("确认")])])]),e("custom-popup-v5",{ref:"setPointsPassword",attrs:{slotContent:!0}},[e("div",{staticClass:"set-password-popup",attrs:{slot:"content"},slot:"content"},[e("img",{attrs:{src:t.passwordPageUrl,alt:""}}),e("div",[t._v("使用微信扫一扫")]),e("div",[t._v("进入小程序设置积分密码")])])])],1)},_=[],C=s(8314);const b=(t={})=>(0,C.kN)("get","/ctfmall-common2-server/api/v1/user/getPointpwdinfo",t),k=(t={})=>(0,C.kN)("post","/ctfmall-common2-server/api/v1/user/checkUserPointPwd",t),N=(t={})=>(0,C.kN)("post","/ctfmall-common2-server/points/useCheck",t),D=(t={})=>(0,C.kN)("post","/ctfmall-common2-server/points/sendCode",t),I=(t={})=>(0,C.kN)("post","/ctfmall-common2-server/points/checkCode",t);var w=s(5928),M=s.n(w),$=s(7967),F={props:{operationType:{type:String,default:"27"}},data(){return{pattern:"sms",type:1,phone:"",inputFocusStatus:!1,pointPwdValue:"",countdown:{num:60,timer:null,text:"发送验证码",disabled:!1},isSend:!1,cb:null,isSet:!1,passwordPass:!1,passwordMd5:"",passwordPageUrl:$.RJ+"1&page=userPackages/pages/user/pointpassword&isHyaline=true"}},computed:{...(0,n.L8)(["userInfo"])},created(){this.phone=this.userInfo.phone},beforeDestroy(){clearTimeout(this.countdown.timer)},methods:{check(t={}){if(this.pattern="sms",this.type=1,this.tips="",this.pointPwdValue="",this.inputFocusStatus=!1,this.cb=t.success||null,this.passwordPass)return this.pattern="password","function"==typeof this.cb&&this.cb({type:"password",value:this.passwordMd5}),!1;N().then(t=>{t.data?t.data.cryKey?"function"==typeof this.cb&&this.cb({type:"sms",value:t.data.cryKey}):t.data.sendSms?(this.$refs.verifyPopup&&this.$refs.verifyPopup.showModal({title:"积分支付验证",isClickMask:!1,success:t=>{"close"!=t&&"cancel"!=t||"function"==typeof this.cb&&this.cb(null)}}),this.$nextTick(()=>{this.inputFocusStatus=!0,this.$refs.pointsInput&&this.$refs.pointsInput.focus()}),this.isSend):"function"==typeof this.cb&&this.cb(null):"function"==typeof this.cb&&this.cb(null)}).catch(()=>{"function"==typeof this.cb&&this.cb(null)})},handleSend(){if(this.countdown.disabled)return!1;this.countdown.disabled=!0,this.countdown.text="发送中",this.isSend=!0,D({phoneNumber:this.userInfo.phone2,operationType:this.operationType}).then(t=>{t?200==t.code?(this.$toast("发送验证码成功"),this.handleCountdonw()):(this.$toast("发送失败"+(t.msg?":"+t.msg:",请稍后再试")),this.countdown.disabled=!1,this.countdown.text="再次发送"):(this.$toast("发送失败,请稍后再试"),this.countdown.disabled=!1,this.countdown.text="再次发送")}).catch(()=>{this.$toast("发送失败,请稍后再试"),this.countdown.disabled=!1,this.countdown.text="再次发送"})},handleCountdonw(){let t=this.countdown.num;t--,t<=0?(this.countdown.num=60,this.countdown.disabled=!1,this.countdown.text="再次发送"):(this.countdown.num=t,this.countdown.text=t+"s",this.countdown.timer=setTimeout(()=>{this.handleCountdonw()},1e3))},pointPwdInput(){"string"==typeof this.pointPwdValue&&this.pointPwdValue.length>=6&&("sms"==this.pattern?this.remoteCheck():this.handleConfirmPwd())},getNumber(t,e){let s=(""+t).split("");return s[e]||""},handleChangePattern(){this.pattern="password",this.pointPwdValue="",this.inputFocusStatus=!1,this.$nextTick(()=>{this.inputFocusStatus=!0,this.$refs.pointsInput&&this.$refs.pointsInput.focus()})},remoteCheck(){const t=this.$loading({lock:!0});I({phoneNumber:this.userInfo.phone2,code:this.pointPwdValue}).then(e=>{t.close(),200==e.code&&e.data&&e.data.cryKey?(this.$refs.verifyPopup&&this.$refs.verifyPopup.hideModal(),"function"==typeof this.cb&&this.cb({type:"sms",value:e.data.cryKey})):(this.pointPwdValue="",this.type=2,this.tips=e.msg||"验证码错误,请重新输入")}).catch(()=>{t.close(),this.pointPwdValue="",this.$toast("网络异常")})},handleConfirmPwd(){if(this.pointPwdValue.length<6)return void this.$toast("请输入6位密码");const t=this.$loading({lock:!0});this.checkPointPwdInfo().then(e=>{e?k({uid:this.userInfo.uid,pointPwd:M().md5(this.pointPwdValue)}).then(e=>{t.close(),200==e.code?(this.$refs.verifyPopup&&this.$refs.verifyPopup.hideModal(),this.passwordPass=!0,this.passwordMd5=M().md5(this.pointPwdValue),"function"==typeof this.cb&&this.cb({type:"password",value:M().md5(this.pointPwdValue)})):(this.pointPwdValue="",this.type=2,this.tips=e.msg||"积分密码错误,请重新输入")}).catch(()=>{t.close(),this.pointPwdValue="",this.$toast("网络异常!")}):(this.pointPwdValue="",t.close())})},checkPointPwdInfo(){return new Promise(t=>{if(this.isSet)return t(!0),!1;b({uid:this.userInfo.uid}).then(e=>{200==e.code?e.data.ispointpwd?(this.isSet=!0,t(!0)):(this.$refs.setPointsPassword&&this.$refs.setPointsPassword.showModal({title:"设置积分密码"}),t(!1)):t(!0)}).catch(()=>{t(!0)})})}}},x=F,T=(0,h.A)(x,y,_,!1,null,"08ee1ecb",null),L=T.exports,A=s(3712),S=s(6776),O=s(3269),E={name:"",components:{addressListPop:P.A,addAddressDialog:g.A,pointsVerify:L},props:{orderTotal:{type:[Number,String],default:0},totalAmountBackup:{type:[Number,String],default:0},totalNotDerate:{type:[Number,String],default:0},pointLimitRatio:{type:[Number,String],default:-1},marketingIdList:{type:Array,default:()=>[]},marketingData:{type:Array,default:()=>[]},carts:{type:Array,default:()=>[]},isUsePoints:{type:[Number,String],default:0},specialPointsGoods:{type:Object,default:()=>({})}},data(){return{userPoint:{availablePoint:0,availablePointPrice:0,needPointPwd:1,isOverflowSecretLine:0,secretLine:5e3,pointPwd:"",pointRatio:50,cardLevel:0},userPointPay:{usePoint:0,usePointPrice:0}
1,usePointExchangeMoney:!1,form:{remarks:"",invoice:"",invoiceRadio:1,payChannel:"0",invoiceNum:""},rules:{invoice:[{required:!0,message:"请填写发票抬头",trigger:"blur"}],invoiceNum:[{required:!0,message:"请输入纳税人识别号/统一社会信用代码",trigger:"blur"}]},invoiceFocus:!1,invoiceNumFocus:!1,address:{},isDialogDelete:!1,payTypeList:[],isCreatedOrder:!1,isFullReduction:0,orderType:0,orderType:0,royaltyPassword:{visible:!1,isPass:!1,input:"",isFocus:!1},cartsList:[],totalActualAmount:-1,pointsProportionDetail:null}},computed:{...(0,n.L8)(["userInfo"]),...(0,n.aH)(["branchMall"])},watch:{carts:{handler(t){this.cartsList=t||[],this.totalActualAmount>=0&&this.payTypeList.length<=0&&this.getPaymentList(this.totalActualAmount)},deep:!0,immediate:!0},specialPointsGoods:{handler(t){!this.userInfo.staff&&this.userPoint&&this.userPoint.availablePoint>50&&t.integralSpecialFunds&&!t.disabled&&!this.usePointExchangeMoney&&this.changePointCheck(!1)},deep:!0,immediate:!0},marketingData:{handler(t){this.usePointExchangeMoney&&this.getPointsProportionDetailFn().then(()=>{this.calcOrderTotal()})},deep:!0}},created(){this.$route.query.orderType&&(this.orderType=this.$route.query.orderType)},async mounted(){this.getAddressDefault(),this.userInfo.staff||(0,S.mR)({cardNo:this.userInfo.cardNo,sourceSystem:"OFFICIAL_MALL_WEB"}).then(t=>{this.userPoint=t,!this.userInfo.staff&&this.userPoint&&this.userPoint.availablePoint>50&&this.specialPointsGoods.integralSpecialFunds&&!this.specialPointsGoods.disabled&&!this.usePointExchangeMoney&&this.changePointCheck(!1)})},methods:{getAddressDefault(){(0,A.GA)({uid:this.userInfo.uid,addressId:0}).then(t=>{if(200==t.code&&t.data&&t.data.length>0){let e=t.data.find(t=>1==t.IsDefault);e&&(this.address=e)}})},getPaymentList(t=0){if(this.totalActualAmount=t,!this.carts||this.carts.length<=0)return!1;let e={};e.uid=this.userInfo.uid,e.products=[],e.totalActualAmount=this.totalActualAmount,this.carts.forEach(t=>{e.products.push({goodID:t.goodID,buyNum:t.buyNum,price:t.price,attribute:t.attribute})}),(0,c.PC)(e).then(t=>{if(200==t.code&&t.data&&t.data.length>0){let e=-1;this.form.payChannel&&(e=t.data.findIndex(t=>t.paymentId==this.form.payChannel)),e<0&&(e=t.data.findIndex(t=>1==t.isDefault)),e<0&&(e=0),this.payTypeList=t.data,this.form.payChannel=t.data[e].paymentId}})},handleAddAddress(){this.$refs.addAddressDialog&&this.$refs.addAddressDialog.showModal({success:(t,e)=>{"success"==t&&(this.address=e)}})},handleChooseAddress(){this.$refs.addressListPop&&this.$refs.addressListPop.showModal({success:(t,e)=>{"success"==t&&(this.address=e)}})},changePointCheck(t=!0){if(this.usePointExchangeMoney){if(this.specialPointsGoods.integralSpecialFunds&&!this.specialPointsGoods.disabled)return this.$toast("积分专享商品必须使用积分"),!1;this.usePointExchangeMoney=!1,this.calcOrderTotal()}else{let e=parseFloat(this.orderTotal);if(e<1)return t&&this.$toast("订单金额不符合使用积分抵现哦!"),!1;this.usePointExchangeMoney=!0,this.getPointsProportionDetailFn().then(()=>{this.calcOrderTotal()})}},getPointsProportionDetailFn(){let t=this.cartsList.map(t=>({goodsId:t.goodID,price:t.price,attribute:t.attribute,buyCount:t.buyNum,isMutex:0,fromBranchCode:this.branchMall})),e={uid:this.uid,goods:t,source:this.$localStorage.getItem("source")?this.$localStorage.getItem("source"):1,branchCode:this.branchMall};return this.marketingData.forEach(t=>{6==t.type&&1==t.useMarketing&&parseFloat(t.derateMoney)>0&&(e.fullReduceId=t.mid,e.fullReducePrice=parseFloat(t.derateMoney)),10==t.type&&1==t.useMarketing&&parseFloat(t.derateMoney)>0&&(e.fullId=t.mid,e.fullPrice=parseFloat(t.derateMoney))}),new Promise(t=>{(0,c.ny)(e).then(e=>{200==e.code&&e.data&&e.data.summary&&(e.data.summary.totalExpansionAmount>=0||e.data.summary.totalUsedPointAmount>=0)?this.pointsProportionDetail=e.data:this.pointsProportionDetail=null,t()}).catch(()=>{this.pointsProportionDetail=null,t()})})},calcOrderTotal(){if(this.usePointExchangeMoney)if(this.pointsProportionDetail){let t=this.pointsProportionDetail.summary.totalUsedPointAmount+this.pointsPro
1portionDetail.summary.totalExpansionAmount;t>=0?this.$emit("changePoints",{type:"points",value:t}):(this.usePointExchangeMoney=!1,this.$emit("changePoints",{type:"points",value:0}))}else this.usePointExchangeMoney=!1,this.$emit("changePoints",{type:"points",value:0});else this.$emit("changePoints",{type:"points",value:0})},verificationPoints(){return new Promise(t=>{this.$refs.pointsVerify&&this.$refs.pointsVerify.check({success:e=>{t(e)}})})},handleFocus(t){this[t+"Focus"]=!0},handleInput(t,e){"invoiceNum"==e&&this.$nextTick(()=>{this.form.invoiceNum=t.replace(/[^a-zA-Z0-9]/g,"")})},handleBlur(t){this[t+"Focus"]=!1},hancleChoicePayment(t){this.form.payChannel=t.paymentId},invoiceRadioChange(t){this.form.invoiceRadio=t,this.form.invoiceNum=""},async gotoOrder(t){if(this.userInfo.uid&&!this.userInfo.staff&&"FROZEN"==this.userPoint.status)return this.$root.$emit("memberFreezeChcek"),!1;if(!this.userInfo.staff&&this.specialPointsGoods.integralSpecialFunds&&this.specialPointsGoods.disabled)return this.$toast("积分专享商品不能与普通商品同时购买,请分开下单");if(!this.userInfo.staff&&!this.usePointExchangeMoney&&this.specialPointsGoods.integralSpecialFunds&&!this.specialPointsGoods.disabled)return this.$toast("积分专享商品必须使用积分");let e=parseFloat((parseFloat(this.orderTotal)+parseFloat(this.totalNotDerate)).toFixed(2));if(e>0&&this.userInfo.staff&&(!this.form.payChannel||0==this.form.payChannel))return this.$toast("请选择支付方式");if(this.isCreatedOrder)return;if(!this.address.AddressID)return this.$toast("请选择收货地址");let s=null;if(this.usePointExchangeMoney&&(s=await this.verificationPoints(),!s))return!1;this.isCreatedOrder=!0;let i=JSON.parse(JSON.stringify(this.cartsList)),o=0,a=0;this.usePointExchangeMoney&&this.pointsProportionDetail&&(this.pointsProportionDetail.summary&&(this.pointsProportionDetail.summary.totalUsedPoints>0&&(o=this.pointsProportionDetail.summary.totalUsedPoints),this.pointsProportionDetail.summary.totalExpansionAmount>0&&(a=this.pointsProportionDetail.summary.totalExpansionAmount)),this.pointsProportionDetail.goods&&this.pointsProportionDetail.goods.length>0&&i.forEach(t=>{t.cardExpansion=0;let e=this.pointsProportionDetail.goods.find(e=>e.goodsId==t.goodID);e&&(t.usedPoints=e.usedPoints,t.usedPointAmount=e.usedPointAmount,t.cardExpansion=e.expansionAmount)}));let r={uid:this.userInfo.uid,recipientName:this.address.ReciverName||"",recipientMobileNo:this.address.MobilePhone||"",recipientAddress:this.address.ProvinceName+"-"+this.address.CityName+"-"+this.address.DistrictName+"-"+this.address.Street,recipientPostcode:this.address.ZipCode||"0",invoiceType:void 0==this.form.invoiceRadio?0:0==this.form.invoiceRadio?4:3,invoiceTitle:void 0==this.form.invoice?"":this.form.invoice,taxNumber:void 0==this.form.invoiceNum?"0":this.form.invoiceNum,remark:this.form.remarks,staffCode:"",storePay:0,qtyFrom:1,receiveType:1,payChannel:0,orderType:this.orderType,avatarUrl:this.userInfo.avatarUrl,nickName:encodeURIComponent(this.userInfo.nickname)||"",isFullReduction:this.marketingIdList.length>0?1:0,totalPrice:e,marketingID:this.marketingIdList.join(",")||"",sourceId:1,paymentMethod:this.getPaymentMethod(),products:i};this.userInfo.staff?(r.createOrderType=1,r.couponId=0,r.couponMoney=0):(s&&("sms"==s.type?r.pointsCrypto=s.value:r.usePointPwd=s.value),r.usePoint=o,r.cardExpansionAmount=a,r.useKPoint=0,r.useKPointPrice=0,r.cloudSource="");let n=this.userInfo.staff?c.fk:c.fS;n(r).then(t=>{if(this.isCreatedOrder=!1,this.userInfo.staff&&(t.retmsg=t.msg),"1"==t.retcode||this.userInfo.staff&&200==t.code){let e;if(this.userInfo.staff?(e=t.data,e.retmsg=t.msg||t.data.msg):e=JSON.parse(t.data)[0],this.$emit("gioFn",e),this.delectCartGoodsFn(),0==e.actualOrderAccount)this.toView("/paySuccess",{orderNo:e["orderNo"]});else{let t={orderNo:e["orderNo"],actualOrderAccount:e["actualOrderAccount"]};this.$localStorage.setItem({name:"addOrder",value:this.$utils.compile(JSON.stringify(t))}),this.toView("/submitSuccess")}}else t.retmsg.indexOf("BuyLimit_")>=0?this.$refs.customPopup&&this.$refs.customPopup.showModal({title:"温馨提示",content:t.retmsg.split("BuyLimit_")[1],showCancel:!0,
1cancelText:"确定",confirmText:"联系客服",success:t=>{"confirm"==t&&((0,O.X)().catch(()=>{this.$sessionStorage.setItem({name:"redirect",value:this.$route.fullPath}),this.$root.$emit("loginDialog")}),that.$gioReport("ModuleClick",{page_var:"订单填写",module_var:"限制购买弹窗",position_var:3,positonName_var:"联系客服"}))}}):10==t.code||20==t.code||30==t.code?this.$refs.customPopup&&this.$refs.customPopup.showModal({title:10==t.code?"超出购买数量限制":30==t.code?"不支持员工内购":"自购额度不足",content:t.retmsg,confirmText:"确认"}):this.$toast(t.retmsg)}).catch(()=>{this.$toast("系统异常,请稍后再试")})},getPaymentMethod(){return this.userInfo.staff?this.form.payChannel:this.payTypeList.find(t=>30054===t.paymentId)?30054:this.payTypeList.find(t=>30154===t.paymentId)?30154:30006},delectCartGoodsFn(){let t=[];this.cartsList.forEach(e=>t.push(e.goodID));let e=t.join(",");this.$store.dispatch("cart/removeCartGoodsVuex",e)},async getCurrentServerTimeFn(){let t=(new Date).getTime();getCurrentServerTime().then(e=>{if(200==e.code){let s=(new Date).getTime(),i=/^.*(([+-]+)\d{2}:\d{2})$/;if(e.data&&i.test(e.data)){let o=(s-t)/2,a=this.getNewDate(e.data).getTime(),r=a-s+o;Math.abs(r)>800?this.timezone.range=r:this.timezone.range=0,this.timezone.zone=e.data.match(i)[1],this.timezone.serverTime=a}}})},getNewDate(t=null){if(t)return/^.*(([+-]+)\d{2}:\d{2})$/.test(t)?new Date(t.replace(/\//g,"-").replace(" ","T")):new Date(t.replace(/\//g,"-").replace(" ","T")+this.timezone.zone);{let t=(new Date).getTime();return new Date(t+this.timezone.range)}}}},R=E,G=(0,h.A)(R,f,v,!1,null,"fa9e79a8",null),V=G.exports,U={components:{PayOrderInfo:m,PayForm:V},data(){return{input:"",radio:0,textarea:"",carts:"",orderTotal:0,totalAmountBackup:0,totalNotDerate:0,pointLimitRatio:-1,marketingIdList:[],marketingData:[],isShow:!1,carts:[],isUsePoints:0,pointsPrice:0,specialPointsGoods:{integralSpecialFunds:!1,disabled:!1}}},methods:{setOrderTotal(t){this.orderTotal=t[0],this.totalAmountBackup=t[1]},setPointLimit(t){this.totalNotDerate=t[0],this.pointLimitRatio=t[1]},setMarketingIdList(t){this.marketingIdList=t},setMarketingData(t){this.marketingData=t},setToatlNumber(t){this.toatlNumber=t},setCart(t){this.carts=t},handleCheckPoinstUse(t){this.isUsePoints=t},changePoints(t){"points"==t.type&&(this.pointsPrice=t.value)},getPayment(t){this.$refs.PayForm&&this.$refs.PayForm.getPaymentList(t)},setSpecialPointsGoods(t={}){this.specialPointsGoods.integralSpecialFunds=t.integralSpecialFunds||!1,this.specialPointsGoods.disabled=t.disabled||!1},gioFn(t){this.gioCreateOrder(t)},gioCreateOrder(t){try{let e="无",s=this.$refs.PayOrderInfo.allMarketingList,i=this.$refs.PayOrderInfo.totalPrice,o=this.$refs.PayOrderInfo.toatlNumber;s.length>0&&(4==s[0]["mType"]?e="满减":6!=s[0]["mType"]&&10!=s[0]["mType"]||(e="满件"));let a={orderId_var:t.orderNo||"",price_var:i||0,PaymentAmount_var:t.actualOrderAccount,quantity_var:o||0,orderType_var:"立即购买型",ifCouponUsed_var:"",couponType_var:"",couponID_var:"",couponName_var:"",activityType_var:e,activityID_var:this.marketingIdList.join(",")||"",activityName_var:s.length>0?s[0]["title"]:"",discountAmount_var:Number(i)-Number(t.actualOrderAccount),actualPaymentIntegral_var:0,pickupMethod_var:"邮寄"},r=this.$utils.compile(JSON.stringify(a));this.$sessionStorage.setItem({name:"gioDataStr",value:r}),this.$gioReport("createOrder",a)}catch(e){console.log(this.$route.path+" --- createOrder --- 数据上报失败",e)}},gioCreateOrderProduct(t){try{let e="无",s=this.$refs.PayOrderInfo.goodsList,i=this.$refs.PayOrderInfo.allMarketingList,o=[];i.length>0&&(4==i[0]["mType"]?e="满减":6!=i[0]["mType"]&&10!=i[0]["mType"]||(e="满件")),s.forEach(s=>{let a={productNo_var:s.mouldNo||"",productID_var:s.goodsID||"",quantity_var:s.buyNum,productName_var:s.title||"",price_var:s.shopPrice,PaymentAmount_var:s.marketingPrice||"",productMaterial_var:s.texture,productStyle_var:s.pStyle,priceMode_var:s.valuation,orderId_var:t.orderNo,orderType_var:"立即购买型",activityType_var:e,activityID_var:this.marketingIdList.join(",")||"",activityName_var:i.length>0?i[0]["title"]:"",discountAmount_var:Number(s.shopPrice)-Number(s.marketingPrice),actualPaymentIntegral_var:0};o.push(a),this.$gioReport("createOrderProduct",a)});let a=this.$utils.compile(JSON.stringify(o));this.$sessionStorage.setItem({name:"gioGoodsDataStr",value:a})}catch(e){console.log(this.$route.path+" --- createOrderProduct --- 数据上报失败",e)}}}},B=U,z=(0,h.A)(B,i,o,!1,null,"756a891b",null),q=z.exports},7505:function(t,e,s){s.d(e,{Lh:function(){return c},PC:function(){return a},X2:function(){return o},fS:function(){return r},fk:function(){return n},kS:function(){return l},ny:function(){return d}});var i=s(8314);const o=(t={})=>(0,i.kN)("post","/ctfmall-goods-server/product/shoppingCart/getGoodsDetail
1s",t),a=(t={})=>(0,i.kN)("post","/ctfmall-order-server/api/payment/getPaymentList",t),r=(t={})=>(0,i.Em)("post","/api/order/createOrder",t),n=(t={})=>(0,i.kN)("post","/ctfmall-order-server/order/createOrder",t),l=(t={})=>(0,i.kN)("post","/ctfmall-order-server/api/order/payment/requestPay",t),c=(t={})=>(0,i.Em)("post","/api/order/checkPaymentStatus",t),d=(t={})=>(0,i.kN)("post","/ctfmall-marketing-server/api/v1/orderPage/goodsShareAmountPlus",t)}}]);

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.