PageSourceSearch

https://www.ctfmall.com/js/index.4587a40b.js

js ctfmall.com collected 2026-10-09 22:40:31 UTC 196,568 bytes, 33 lines download raw bytes

1(function(){var e={283:function(e,t,a){"use strict";a.d(t,{F9:function(){return l},MT:function(){return s},Oh:function(){return n},VX:function(){return c},lj:function(){return i}});var o=a(8314),r=a(2571);const i=(e={},t=!0)=>new Promise(a=>{let i=r.p.getItem("crmMemberInfo");if(i&&t)a(i);else{var s={cardLevel:1,cardLevelDesc:"",nextCardLevel:1,nextCardLevelName:"",upgradeAdditionalAmount:0,renewalAdditionalAmount:0,joinDays:0,chineseFamilyName:"",memberTitleDesc:"",consumeAmount:0,reConsumeAmount:0,membershipExpirationDate:"",birthday:"",status:"ACTIVE"};(0,o.SI)("post","crm-member-api/member/info",{...e,useCache:!0}).then(e=>{200==e.code?(s.cardLevel=e.data.cardLevel,s.cardLevelDesc=e.data.cardLevelName,s.nextCardLevel=e.data.nextCardLevel,s.nextCardLevelName=e.data.nextCardLevelName,s.upgradeAdditionalAmount=parseFloat(e.data.upgradeAdditionalAmount),s.renewalAdditionalAmount=parseFloat(e.data.renewalAdditionalAmount),s.joinDays=parseInt((Date.parse(new Date)-Date.parse(e.data.firstJoinDate.replace(/-/g,"/")))/864e5),s.chineseFamilyName=e.data.chineseFamilyName,s.memberTitleDesc=e.data.memberTitleDesc,s.consumeAmount=e.data.consumeAmount,s.reConsumeAmount=e.data.reConsumeAmount,s.membershipExpirationDate=e.data.membershipExpirationDate,s.birthday=e.data.birthday,"string"==typeof e.data.status&&(s.status=e.data.status.toUpperCase()),r.p.setItem({name:"crmMemberInfo",value:s,expired:(new Date).getTime()+3e5}),a(s)):a(s)}).catch(()=>{a(s)})}}),s=(e={})=>(0,o.Em)("post","/api/user/membershipConsumeRecord",e),n=(e={})=>(0,o.Em)("post","/api/user/membershipRecord",e),c=(e={})=>(0,o.SI)("post","crm-member-api/member/freeze/record",e),l=(e={})=>(0,o.SI)("post","crm-member-api/member/unfreeze",e)},366:function(e,t,a){"use strict";a.d(t,{NL:function(){return d},Oz:function(){return s},PE:function(){return i},QC:function(){return r},UO:function(){return u},hR:function(){return l},rJ:function(){return c},tj:function(){return n}});var o=a(8314);const r=(e={})=>(0,o.kN)("post","/ctfmall-common2-server/common/getSendSms",e),i=(e={})=>(0,o.kN)("post","/ctfmall-common2-server/api/v1/user/getEInvoice",e),s=(e={})=>(0,o.kN)("post","/ctfmall-common2-server/api/v1/user/queryTaxInfo",e),n=(e={})=>(0,o.kN)("get","/ctfmall-common2-server/api/v1/user/downloadEinvoice",{...e,responseType:"blob"}),c=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/api/v1/goods/goodsValidate",e),l=(e={})=>(0,o.kN)("post","/ctfmall-common2-server/api/guarantee/getGuaranteeList",e),u=(e={})=>(0,o.kN)("post","/ctfmall-common2-server/api/guarantee/getGuaranteeDetail",e),d=(e={})=>(0,o.Em)("post","/CTFMALL_Common_API.ashx?action=checkverifycode",e)},513:function(e,t,a){"use strict";a.d(t,{DG:function(){return i},PY:function(){return r},Sb:function(){return d},fG:function(){return s},g:function(){return n},h:function(){return c},kA:function(){return u},pO:function(){return l}});var o=a(8314);const r=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/product/syncUserCart",e),i=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/product/shoppingCart/getGoodsDetails",e),s=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/product/deleteUserCart",e),n=(e={})=>(0,o.kN)("get","/ctfmall-common2-server/userFootPrint/list",e),c=(e={})=>(0,o.kN)("post","/ctfmall-common2-server/userFootPrint/updateUserFootPrint",e),l=(e={})=>(0,o.kN)("post","/ctfmall-common2-server/userFootPrint/deleteUserAllFootPrint",e),u=(e={})=>(0,o.kN)("get","/ctfmall-common2-server/adverseManage/getAd",e),d=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/product/checkGoodsIds",e)},805:function(e,t,a){"use strict";a.d(t,{C6:function(){return p},Ly:function(){return u},PY:function(){return c},QQ:function(){return l},Ug:function(){return i},VN:function(){return r},YZ:function(){return n},ZC:function(){return m},a8:function(){return h},mQ:function(){return g},n_:function(){return s},w:function(){return d}});var o=a(8314);const r=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/product/queryGoodsDetails",e),i=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/product/getGoodsPriceStock",e),s=(e={})=>(0,o.Em)("post","/api/goods/getproductmarkeings",e),n=(e={})=>(0,o.Em)("post","/CTFMALL_Goods_API.ashx?action=commentgoods",e),c=(e={})=>(0,o.kN)("post","/ctfmall-marketing-server/api/watermark/getByMouldNo",e),l=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/productsImages/query",e),u=(e={})=>(0,o.kN)("post","/ctfmall-common2-server/userFootPrint/updateUserFootPrint",e),d=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/api/productsitemdetailrecommend/getProductsList",e),h=(e={})=>(0,o.kN)("get","/ctfmall-goods-server/openSearch/queryGoodsDetailBottomAd",e),p=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/product/merchant/save",e),m=(e={})=>(0,o.kN)("get","/ctfmall-goods-server/product/merchant/register/result",e),g=(e={})=>(0,o.kN)("get","/ctfmall-goods-server/product/merchant/info",e)},1031:function(){(function(e){"use strict";function t(e){this._obj=e}function a(e){var a=this;new t(e)._each(function(e,t){a[e]=t})}function o(e){return e.replace(/(\S)(_([a-zA-Z]))/g,function(e,t,a,o){return t+o.toUpperCase()||""})}function r(e,t){if(!C(e)||S(e)||T(e)||P(e)||w(e))return t?o(e):e;if(k(e))for(var a=[],i=0;i<e.length;
1i++)a.push(r(e[i]));else for(var s in a={},e)e.hasOwnProperty(s)&&(a[r(s,!0)]=r(e[s]));return a}if(void 0===e)throw new Error("Geetest requires browser environment");var i=e.document,s=e.Math,n=i.getElementsByTagName("head")[0],c=1e4;t.prototype={_each:function(e){var t=this._obj;for(var a in t)t.hasOwnProperty(a)&&e(a,t[a]);return this},_extend:function(e){var a=this;new t(e)._each(function(e,t){a._obj[e]=t})}};var l=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*s.random()|0,a="x"===e?t:3&t|8;return a.toString(16)})};a.prototype={apiServers:["gcaptcha4.geetest.com","gcaptcha4.geevisit.com","gcaptcha4.gsensebot.com"],staticServers:["static.geetest.com","static.geevisit.com"],protocol:"http://",typePath:"/load",fallback_config:{bypass:{staticServers:["static.geetest.com","static.geevisit.com"],type:"bypass",bypass:"/v4/bypass.js"}},_get_fallback_config:function(){var e=this;return d(e.type)?e.fallback_config[e.type]:e.fallback_config.bypass},_extend:function(e){var a=this;new t(e)._each(function(e,t){a[e]=t})}};var u=function(e){return"number"==typeof e},d=function(e){return"string"==typeof e},h=function(e){return"boolean"==typeof e},p=function(e){return"object"==typeof e&&null!==e},m=function(e){return"function"==typeof e},g=/Mobi/i.test(navigator.userAgent),f={},v={},_=function(){return parseInt(1e4*s.random())+(new Date).valueOf()},y=function(e,t){if("function"==typeof e){var a=Array.prototype.slice.call(arguments,2);return Function.prototype.bind?e.bind(t,a):function(){var o=Array.prototype.slice.call(arguments);return e.apply(t,a.concat(o))}}},b=Object.prototype.toString,w=function(e){return"function"==typeof e},C=function(e){return e===Object(e)},k=function(e){return"[object Array]"==b.call(e)},S=function(e){return"[object Date]"==b.call(e)},T=function(e){return"[object RegExp]"==b.call(e)},P=function(e){return"[object Boolean]"==b.call(e)},A=function(e,t,a){var o=i.createElement("script");o.charset="UTF-8",o.async=!0,/static\.geetest\.com/g.test(e)&&(o.crossOrigin="anonymous"),o.onerror=function(){t(!0),r=!0};var r=!1;o.onload=o.onreadystatechange=function(){r||o.readyState&&"loaded"!==o.readyState&&"complete"!==o.readyState||(r=!0,setTimeout(function(){t(!1)},0))},o.src=e,n.appendChild(o),setTimeout(function(){r||(o.onerror=o.onload=null,o.remove&&o.remove(),t(!0))},a||c)},x=function(e){return e.replace(/^https?:\/\/|\/$/g,"")},I=function(e){return e=e&&e.replace(/\/+/g,"/"),0!==e.indexOf("/")&&(e="/"+e),e},D=function(e){if(!e)return"";var a="?";return new t(e)._each(function(e,t){(d(t)||u(t)||h(t))&&(a=a+encodeURIComponent(e)+"="+encodeURIComponent(t)+"&")}),"?"===a&&(a=""),a.replace(/&$/,"")},N=function(e,t,a,o){t=x(t);var r=I(a)+D(o);return t&&(r=e+t+r),r},L=function(t,a,o,r,i,s,n){var c=function(l){if(n){var u="geetest_"+_();e[u]=y(n,null,u),i.callback=u}var d=N(a,o[l],r,i);A(d,function(t){if(t){if(u)try{e[u]=function(){e[u]=null}}catch(e){}l>=o.length-1?s(!0):c(l+1)}else s(!1)},t.timeout)};c(0)},$=function(t,a,o,r){var i=function(t,a){"success"==a.status?r(a.data):(a.status,r(a)),e[t]=void 0;try{delete e[t]}catch(e){}};L(o,o.protocol,t,a,{callback:"",captcha_id:o.captchaId,challenge:o.challenge||l(),client_type:o.clientType?o.clientType:g?"h5":"web",risk_type:o.riskType,user_info:o.userInfo,call_type:o.callType,lang:o.language?o.language:"Netscape"===navigator.appName?navigator.language.toLowerCase():navigator.userLanguage.toLowerCase()},function(e){e&&"function"==typeof o.offlineCb?o.offlineCb():e&&r(o._get_fallback_config())},i)},O=function(e,t,a){var o={networkError:"网络错误",gtTypeError:"gt字段不是字符串类型"};if("function"!=typeof t.onError)throw new Error(o[e]);t.onError({desc:a.desc,msg:a.msg,code:a.code})},F=function(){return e.Geetest||i.getElementById("gt_lib")};F()&&(v.slide="loaded");var M=function(e){var t=!1,a={js:"script",css:"link"},o=e&&a[e.split(".").pop()];if(void 0!==o){var r=i.getElementsByTagName(o);for(var s in r)(r[s].href&&r[s].href.toString().indexOf(e)>0||r[s].src&&r[s].src.toString().indexOf(e)>0)&&(t=!0)}return t};e.initGeetest4=function(o,i){var s=new a(o);o.https?s.protocol="https://":o.protocol||(s.protocol=e.location.protocol+"//"),p(o.getType)&&s._extend(o.getType),$(s.apiServers,s.typePath,s,function(a){if
1(a=r(a),"error"===a.status)return O("networkError",s,a);var o=a.type;s.debug&&new t(a)._extend(s.debug);var n=function(){s._extend(a),i(new e.Geetest4(s))};f[o]=f[o]||[];var c=v[o]||"init";if("init"===c)v[o]="loading",f[o].push(n),a.gctPath&&L(s,s.protocol,Object.hasOwnProperty.call(s,"staticServers")?s.staticServers:a.staticServers||s.staticServers,a.gctPath,null,function(e){e&&O("networkError",s,{code:"60205",msg:"Network failure",desc:{detail:"gct resource load timeout"}})}),L(s,s.protocol,Object.hasOwnProperty.call(s,"staticServers")?s.staticServers:a.staticServers||s.staticServers,a.bypass||a.staticPath+a.js,null,function(e){if(e)v[o]="fail",O("networkError",s,{code:"60204",msg:"Network failure",desc:{detail:"js resource load timeout"}});else{v[o]="loaded";for(var t=f[o],a=0,r=t.length;a<r;a+=1){var i=t[a];m(i)&&i()}f[o]=[],v[o]="init"}});else{if("loaded"===c)return a.gctPath&&!M(a.gctPath)&&L(s,s.protocol,Object.hasOwnProperty.call(s,"staticServers")?s.staticServers:a.staticServers||s.staticServers,a.gctPath,null,function(e){e&&O("networkError",s,{code:"60205",msg:"Network failure",desc:{detail:"gct resource load timeout"}})}),n();"fail"===c?O("networkError",s,{code:"60204",msg:"Network failure",desc:{detail:"js resource load timeout"}}):"loading"===c&&f[o].push(n)}})}})(window)},1297:function(e,t,a){"use strict";a.d(t,{Fj:function(){return c},KC:function(){return r},Ux:function(){return s},gl:function(){return n},kM:function(){return l},l7:function(){return i}});var o=a(8314);const r=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/openSearch/getSearchValueNew",e),i=(e={})=>(0,o.Em)("post","/CTFMALL_Goods_API.ashx?action=GetProductTypes",e),s=(e={})=>(0,o.Em)("post","/CTFMALL_Goods_API.ashx?action=GetProductStyles",e),n=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/openSearch/getSearchCondition",e),c=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/openSearch/getSearchCount",e),l=(e={})=>(0,o.kN)("post","/ctfmall-goods-server/advertisementOper/list",e)},1865:function(e,t,a){"use strict";var o=a(5471),r=function(){var e=this,t=e._self._c;return t("div",[t("router-view"),0==e.agreeCookie?t("div",{staticClass:"authorization"},[t("div",{staticClass:"mask"}),t("div",{staticClass:"bottom"},[t("div",{staticClass:"txt"},[e._v("我们使用 cookie 来增强您在我们网站上的体验。继续使用本网站,即表示您同意使用这些 cookie。有关我们如何使用 Cookie 的更多信息,以及了解如何更改 Cookie 设置,请仔细阅读我们的隐私政策。")]),t("div",{staticClass:"opera"},[t("div",{staticClass:"btn common-btn common-btn-outlined-white-1",on:{click:e.handleAgreeCookie}},[e._v("全部接受")]),t("div",{staticClass:"btn common-btn common-btn-outlined-white-1",on:{click:e.closePage}},[e._v("关闭")])])])]):e._e()],1)},i=[],s=a(5318),n=a(5353),c={data(){return{grayPageList:["/home"],agreeCookie:0}},computed:{...(0,n.L8)(["userInfo"])},watch:{$route:{handler:function(e){this.setGrayPage(e.path),this.$matomo?this.matomoSend({url:window.location.href,title:e.meta.title}):setTimeout(()=>{this.matomoSend({url:window.location.href,title:e.meta.title})},500)},immediate:!0}},created(){this.agreeCookie=this.$localStorage.getItem("agreeCookie")||0},mounted(){this.windowResize(),window.addEventListener("resize",this.windowResize,!1)},beforeDestroy(){window.removeEventListener("resize",this.windowResize)},methods:{setGrayPage(e){const t=document.querySelector("html");t.classList.remove("is-gray"),this.getGragPageInfo(e).then(e=>{e&&t.classList.add("is-gray")})},getGragPageInfo(e){return new Promise(t=>{let a=this.grayPageList;(0,s.xR)({port:4}).then(o=>{200==o.code&&o.data&&a&&a.includes(e)?t(!0):t(!1)}).catch(()=>{t(!1)})})},handleAgreeCookie(){this.$localStorage.setItem({name:"agreeCookie",value:1}),this.agreeCookie=1},closePage(){this.$localStorage.setItem({name:"agreeCookie",value:1}),this.agreeCookie=1},matomoSend(e){this.$matomo&&(this.$matomo.setCustomVariable(1,"PlatForm","pc","visit"),this.userInfo&&(this.userInfo.uid&&this.$matomo.setCustomVariable(2,"UserId",this.userInfo.uid,"visit"),this.userInfo.vipNo&&this.$matomo.setCustomVariable(3,"VipNo",this.userInfo.vipNo,"page")),this.$matomo.setCustomUrl(e.url),this.$matomo.trackPageView(e.title))},detectZoom(){let e=0;const t=window.screen,a=navigator.userAgent.toLowerCase();return void 0!=window.devicePixelRatio?e=window.devicePixelRatio:~a.indexOf("msie")?t.deviceXDPI&&t.logicalXDPI&&(e=t.deviceXDPI/t.logicalXDPI):void 0!==window.outerWidth&&void 0!==window.innerWidth&&(e=window.outerWidth/window.innerWidth),e>0?Math.round(100*e):100},windowResize(){let e=100/this.detectZoom();if(1!=e){let e=1,t=window.innerWidth-10;t<768?e=768/1400:t>=768&&t<1400&&(e=t/1400),e*=1280/1400,document.body.style.zoom=e,this.$store.dispatch("setPageZoom",e)}else document.body.style.zoom=1,this.$store.dispatch("setPageZoom",1)}}},l=c,u=a(1656),d=(0,u.A)(l,r,i,!1,null,"443a9989",null),h=d.exports,p=a(2996),m=a(5908),g=a(1052),f=a.n(g);const v={data(){return{}},methods:{toView(e,t={},a="_self"){if("_blank"==a){let o=this.$router.resolve({path:e,query:t});window.open(o.href,a)}else this.$router.push({path:e,query:t})},toPage(e){window.location.href=e},toPageBlank(e,t={}){window.open(e,"_blank"),t&&t.isGoodsGio&&this.gioProductEntranceClick({module_var:t.module_var,module2_var:t.module2_var,position_var:t.position_var,productNo_var:t.productNo_var,productName_var:t.productName_var})},handleNavClick(e,t=!1){e.jumpLink&&(this.$utils.verifyWebLink(e.jumpLink)?this.toPageBlank(e.jumpLink):this.toView(e.jumpLink,null,0==e.jumpLink.indexOf("/home")||t?"_self":"_blank"))},navgiateBack(){this.$router.go(-1)},checkOrderListData(e,t){for(let o=0;o<e.length;o++){let r=parseInt(e[o].orderState),i="",s="",n=e[o],c=(new Date).getTime()>
1new Date(e[o].balanceEndPayTime.replace(/-/g,"/")).getTime(),l=(new Date).getTime()>new Date(e[o].depositEndPayTime.replace(/-/g,"/")).getTime();switch(r){case 1:2!=n.orderType||c?2==n.orderType&&c||1==n.orderType&&l?(i="交易关闭",s=4):i=1!=n.orderType||3!=n.paymentState||0!=n.relatedOrderState||l?1!=n.orderType||l?"待付款":"待付预订金":"预订金已支付":i="待支付尾款";break;case 2:1==n.orderType?"3"==n.relatedPaymentState?(i="待发货",s=1):"9"!=n.relatedOrderState&&(c||0==n.isPreSellEnd?(c=!0,i="交易关闭",s=4):3==n.paymentState&&9==n.orderState&&1==n.relatedOrderState?(i="待发货",s=1):i="待付款"):1==n.isTransferGift&&0==n.transferGiftState?(i="礼物待收下",s=1):(i="待发货",s=1);break;case 3:i="已发货",s=2;break;case 4:i="交易成功",s=3;break;case 5:i="交易关闭",s=5;break;case 6:i="交易关闭",s=6;break;case 7:i="交易关闭",s=4;break;case 8:i="已发货",s=6;break;case 9:1==n.orderType?"3"==n.relatedPaymentState?(i="待发货",s=1):"9"!=n.relatedOrderState&&(c||0==n.isPreSellEnd?(c=!0,i="交易关闭",s=4):3==n.paymentState&&9==n.orderState&&1==n.relatedOrderState?(i="待发货",s=1):i="待付款"):1==n.isTransferGift&&0==n.transferGiftState?(i="礼物待收下",s=1):(i="待发货",s=1);break;case 10:case 11:case 12:case 13:case 15:case 17:case 18:i=1==n.isTransferGift&&0==n.transferGiftState?"礼物待收下":"待发货";break;case 14:i="待付款";break;case 16:i=1==n.isTransferGift&&0==n.transferGiftState?"礼物待收下":"待发货",s=5;break;case 19:case 20:i="已发货";break;case 21:case 22:i=1==n.isTransferGift&&0==n.transferGiftState?"礼物待收下":"待发货";break}if(e[o].orderStateDesc=i,e[o].actualAmountStatus=s,Object.assign(e[o],{isBalanceEnd:c}),e[o].goodsList.length>0)e[o].showAllGoods=e[o].goodsList.length>2,e[o].showMoreGoods=!1,e[o]=this.category2str(e[o]);else{var a={thumb:""};e[o].goodsList.push(a)}e[o]=this.isPayBtnShowFn(e[o],t)}return e},isPayBtnShowFn(e,t){let a=(new Date).getTime()>new Date(e.balanceEndPayTime.replace(/-/g,"/")).getTime(),o=(new Date).getTime()>new Date(e.depositEndPayTime.replace(/-/g,"/")).getTime(),r=[];return 1==e.orderType&&7!=e.orderState?1==e.paymentState&&(o?(e.isDelectBtn=!0,r.push({sort:5,name:"删除订单",type:"isDelectBtn",style:2})):(e.cancelBtnShow=!0,e.payBtnShow=!0,r.push({sort:0,name:"去付款",type:"payBtnShow",style:1}))):2==e.orderType&&7!=e.orderState?(e.payBtnShow=!1,1==e.paymentState&&(a?e.cancelBtnShow=!1:(e.cancelBtnShow=!0,e.payBtnShow=!0,r.push({sort:0,name:"去付款",type:"payBtnShow",style:1})))):1==e.orderState&&23!=e.source&&(e.payBtnShow=!0,r.push({sort:0,name:"去付款",type:"payBtnShow",style:1})),1!=e.orderType||3!=e.paymentState||0!=e.relatedOrderState||a||(e.finalPayBtnShow=!0),1==e.orderType&&3==e.paymentState&&0==e.relatedOrderState&&a&&(e.finalPayBtnShowDisabled=!0),1==e.orderState&&1!=e.orderType&&2!=e.orderType&&(e.cancelBtnShow=!0),5!=e.orderState&&6!=e.orderState&&7!=e.orderState||1==e.isTransferGift||(e.isDelectBtn=!0,r.push({sort:5,name:"删除订单",type:"isDelectBtn",style:2})),e.showViewLogisticsBtn&&r.push({sort:3,name:"查看物流",type:"expressBtnShow",style:1}),1!=e.showRefundBtn||e.goodsList&&e.goodsList.length>0&&21==e.goodsList[0].IsPointProduct||(3==e.orderState||4==e.orderState||8==e.orderState||19==e.orderState||20==e.orderState?r.push({sort:4,name:"申请售后",type:"refundBtnShow",style:2}):r.push({sort:4,name:"申请退款",type:"refundBtnShow",style:2})),5!=e.orderState&&6!=e.orderState&&7!=e.orderState||23==e.goodsList[0].IsPointProduct||1==e.isTransferGift||r.push({sort:7,name:"加入购物袋",type:"cartBtnShow",style:1}),0!=e.saleCode&&4!=e.orderState&&5!=e.orderstate&&e.orderState,r.sort((e,t)=>e.sort<t.sort?-1:e.sort>t.sort?1:0),e.btnArr=r,e},category2str(e,t="goodsList",a="productTypeID",o="productGroupID"){if(e.goodsList.length>0)for(var r in e[t]){var i=[],s="",n="";if(void 0!=e[t][r].category){var c=e[t][r].category;if(void 0!=c.actualLenth&&void 0==c.actualLength?c.actualLength=c.actualLenth:void 0==c.actualLenth&&void 0!=c.actualLength&&(c.actualLenth=c.actualLength),s=e[t][r][a],n=e[t][r][o],9!=s&&4!=s||0==c.totalWeight?10==s&&0!=c.goldWeight?i.push("金重:"+c.goldWeight+"克;"):1==s&&(""!=c.detailShape&&i.push("净度:"+c.detailShape+";"),""!=c.detailSize&&i.push("颜色:"+c.detailSize+";"),0!=c.detailCount&&i.push("克拉:"+c.detailCount+";")):i.push("克重:"+c.totalWeight+"克;"),1==n&&0!=c.ringSize?i.push("圈口:"+c.ringSize+";"):2!=n&&4!=n&&5!=n&&6!=n&&34!=n||!c.actualLength||""==c.actualLength||0==c.actualLength||(5==n?i.push("内径:"+c.actualLength+";"):i.push("链长:"+c.actualLength+";")),c.customizedSize&&0!=c.customizedSize){let e=c.
1customizedSize.split("约");i.push("尺寸:"+e[0]+";"),e[1]&&i.push("金重:"+e[1]+";")}c.customizedStyle&&0!=c.customizedStyle&&i.push("款式:"+c.customizedStyle+";"),c.customizedDirection&&0!=c.customizedDirection&&i.push("方向:"+c.customizedDirection+";"),i.length<=0&&0!=c.shopPrice&&i.push("价格:"+c.shopPrice+";"),e[t][r].categoryData=e[t][r].category,e[t][r].category=i,void 0==e[t][r].IsPointProduct&&(e[t][r].IsPointProduct=e[t][r].isPointProduct||c.isPointProduct)}void 0!=e[t][r].thumb&&""!=e[t][r].thumb||(e[t][r].thumb="")}else{var l={thumb:""};e.goodsList.push(l)}return e},delectUrlQuery(e=[]){let t=window.location.origin+window.location.pathname,a=JSON.parse(JSON.stringify(this.$route.query));e.forEach(e=>{a[e]&&delete a[e]});let o=[];for(let r in a)o.push({key:r,value:a[r]});return o.forEach((e,a)=>{t+=0==a?"?"+e.key+"="+e.value:"&"+e.key+"="+e.value}),t},fixNumber(e){return parseFloat(parseFloat(e).toFixed(2))},handleCopyText(e){let t=document.createElement("input");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("Copy"),this.$toast("复制成功"),t.remove()},gioModuleClick(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gi
1oData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","ModuleClick",{page_var:t,module_var:"-",module2_var:"-",position_var:"-",positionName_var:"-",...e})}catch(t){console.error("gio点击事件上报出错:",t)}},gioProductEntranceClick(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gioData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","productEntranceClick",{page_var:t,module_var:"-",module2_var:"-",position_var:"-",productNo_var:"-",productName_var:"-",...e})}catch(t){console.error("gio商品入口点击事件上报出错:",t)}},gioCustomerServiceClick(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gioData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","customerServiceClick",{page_var:t,productNo_var:"-",...e})}catch(t){console.error("gio客服入口点击事件上报出错:",t)}},gioAdsClick(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gi
1oData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","adsClick",{page_var:t,module_var:"-",position_var:"-",positionName_var:"-",...e})}catch(t){console.error("gio广告点击上报出错:",t)}},gioSearchClick(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gioData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","searchClick",{page_var:t,searchType_var:"-",...e})}catch(t){console.error("gio搜索上报出错:",t)}},gioSearchSuccess(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gioData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","searchSuccess",{page_var:t,searchWord_var:"-",ifSearchResult_var:"-",searchType_var:"-",...e})}catch(t){console.error("gio搜索成功上报出错:",t)}},gioProductDetailPageView(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gioData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gi
1oData.pageName_pvar:"-";this.$gioReport("track","productDetailPageView",{page_var:t,productNo_var:"-",productName_var:"-",...e})}catch(t){console.error("gio商品页被打开上报出错:",t)}},gioSearchResultClick(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gioData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","searchResultClick",{page_var:t,searchWord_var:"-",searchType_var:"-",filterType_var:"-",filterContent_var:"-",...e})}catch(t){console.error("gio商品页被打开上报出错:",t)}},gioShareProductClick(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gioData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","shareProductClick",{page_var:t,productNo_var:"-",productID_var:"-",price_var:"-",productName_var:"-",ifActivityProduct_var:"-",activityType_var:"-",productMaterial_var:"-",productStyle_var:"-",priceMode_var:"-",...e})}catch(t){console.error("gio单品页点击分享上报出错:",t)}},gioShareProductSuccess(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gi
1oData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","shareProductSuccess",{page_var:t,productNo_var:"-",productName_var:"-",quantity_var:"-",ifActivityProduct_var:"-",activityType_var:"-",productMaterial_var:"-",productStyle_var:"-",priceMode_var:"-",shareType_var:"-",...e})}catch(t){console.error("gio单品页商品分享成功上报出错:",t)}},gioOpenShareLink(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gioData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","openShareLink",{page_var:t,productNo_var:"-",productName_var:"-",...e})}catch(t){console.error("gio分享链接被打开上报出错:",t)}},gioProductCodeClick(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gioData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","productCodeClick",{page_var:t,productNo_var:"-",productID_var:"-",productName_var:"-",productMaterial_var:"-",productStyle_var:"-",priceMode_var:"-",...e})}catch(t){console.error("gio单品页商品二维码点击上报出错:",t)}},gioPointSupplement(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gi
1oData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","PointSupplement",{page_var:t,integralQuantity_var:"-",...e})}catch(t){console.error("gio积分补录成功上报出错:",t)}},gioJumpCollocation(e={}){try{const t=this.$route&&this.$route.meta&&this.$route.meta.gioData&&this.$route.meta.gioData.pageName_pvar?this.$route.meta.gioData.pageName_pvar:"-";this.$gioReport("track","jumpCollocation",{page_var:t,productID_var:"-",productNo_var:"-",productName_var:"-",...e})}catch(t){console.error("gio单品页跳转搭配购上报出错:",t)}}}};var _=a(2571),y=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.isshow,expression:"isshow"}],staticClass:"context"},["none"==e.icon?t("div",{staticClass:"tip"},[e._v(e._s(e.title))]):"success"==e.icon?t("div",{staticClass:"tip_success"},[t("img",{staticClass:"tip_icon",attrs:{src:a(4834),alt:""}}),t("div",{staticClass:"tip_text"},[e._v(e._s(e.title))])]):"warning"==e.icon?t("div",{staticClass:"tip_success"},[t("img",{staticClass:"tip_icon",attrs:{src:a(7825),alt:""}}),t("div",{staticClass:"tip_text"},[e._v(e._s(e.title))])]):e._e()])},b=[],w={name:"Toast",props:{isshow:{type:Boolean},title:{type:String},icon:{type:String,default:"none"},duration:{type:[String,Number],default:1e3},success:{type:Function,default:()=>{}}},watch:{isshow(e){!0===e&&setTimeout(()=>{this.isshow=!1,this.success()},this.duration)}}},C=w,k=(0,u.A)(C,y,b,!1,null,"042aa091",null),S=k.exports;let T={install:function(e){let t=e.extend(S),a=new t;document.body.appendChild(a.$mount().$el),e.prototype.$toast=function(e,t="none",o=2e3,r=()=>{}){if(a.isshow=!0,"string"==typeof e)return a.title=e,a.icon=t,a.duration=o,void(a.success=r);"object"==typeof e&&(a.title=e.title,a.icon=e.icon,a.duration=e.duration,a.success=e.success)}}};var P=a(2191),A=a(4306),x=a(8384),I=a(312),D=a.n(I),N=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.showPopup,width:e.width+"px",top:"0px","append-to-body":"","close-on-click-modal":e.isClickMask,"close-on-press-escape":e.isClickMask,"show-close":!1},on:{"update:visible":function(t){e.showPopup=t}}},[t("div",{staticClass:"custom-dialog"},[e.showClose?t("div",{staticClass:"close",on:{click:function(t){return t.stopPropagation(),e.handleClose({type:"close"})}}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/path/dbtcgban.png"}})]):e._e(),e.title?t("div",{staticClass:"header font-title",domProps:{innerHTML:e._s(e.title)}}):e._e(),t("div",{staticClass:"content"},[e.slotContent?t("div",[t("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view-2"}},[t("div",{staticClass:"content-box",style:"width:"+(e.width-112)+"px;padding-bottom:"+1/e.bodyZoom*17+"px;"},[e._t("content")],2)])],1):"modal"==e.popupType?t("div",{staticClass:"modal"},[t("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[t("div",{class:["txt","center"==e.textAlign?"txc":"right"==e.textAlign?"txr":""],style:"width:"+(e.width-112)+"px;padding-bottom:"+1/e.bodyZoom*17+"px;",domProps:{innerHTML:e._s(e.content)}})])],1):t("div",{staticClass:"info",domProps:{innerHTML:e._s(e.content)}})]),e.slotFooter||e.optionBottomBtn?t("div",{staticClass:"footer"},[e.slotFooter?t("div",[e._t("footer")],2):e.optionBottomBtn?t("div",{staticClass:"btn-box"},[e.showCancel?t("div",{staticClass:"btn btn-cancel",on:{click:function(t){return t.stopPropagation(),e.handleClose({type:"cancel"})}}},[e._v(e._s(e.cancelText))]):e._e(),t("div",{class:{btn:!0,"btn-confirm":!0,full:!e.showCancel&&e.optionBottomFull},on:{click:function(t){return t.stopPropagation(),e.handleConfirm.apply(null,arguments)}}},[e._v(e._s(e.confirmText))])]):e._e()]):e._e()])])},L=[],$={props:{popupType:{type:String,default:"modal"},width:{type:Number|String,default:720},optionClickMask:{type:Boolean,default:!0},optionBottomBtn:{type:Boolean,default:!0},confirmClose:{type:Boolean,default:!0},optionTitle:{type:String,default:""},slotContent:{type:Boolean,default:!1},slotFooter:{type:Boolean,default:!1},optionBottomFull:{type:Boolean,default:!1}},data(){return{showPopup:!1,title:"",content:"",showCancel:!1,cancelText:"取消",confirmText:"确认",showClose:!0,isClickMask:!0,textAlign:"center",cb:null}},computed:{...(0,n.L8)(["bodyZoom"])},watch:{optionClickMask:{handler:function(e){this.isClickMask=e},deep:!0,immediate:!0},optionTitle:{handler:function(e){this.title=e},deep:!0,immediate:!0}},methods:{showModal(e={}){this.cb="function"==typeof e.success?e.success:null,this.title=e.title,this.content=e.content,this.showCancel="boolean"==typeof e.showCancel&&e.showCancel,this.cancelText=e.cancelText||"取消",this.confirmText=e.confirmText||"确认",this.showClose
1="boolean"!=typeof e.showClose||e.showClose,this.isClickMask="boolean"!=typeof e.isClickMask||e.isClickMask,this.textAlign=e.textAlign||"center",this.showPopup=!0},hideModal(){this.showPopup=!1},handleClose(e){const{type:t}=e;if("mask"==t&&!this.isClickMask)return!1;this.hideModal(t),"function"==typeof this.cb&&this.cb(t)},handleConfirm(){this.confirmClose&&this.hideModal(),"function"==typeof this.cb&&this.cb("confirm")}}},O=$,F=(0,u.A)(O,N,L,!1,null,"84d03fee",null),M=F.exports,E=a(2543),R=a.n(E);_.p.setItem("source",1),o["default"].prototype.$utils=new P.A,o["default"].prototype.$localStorage=_.p,o["default"].prototype.$sessionStorage=_.U,o["default"].prototype.$config=x.A,o["default"].prototype.$lodash=R(),o["default"].prototype.$bus=new o["default"],o["default"].prototype.$gioReport=A.w,o["default"].config.productionTip=!1,o["default"].component("custom-popup-v5",M),o["default"].mixin(v),o["default"].use(T),o["default"].use(f()),o["default"].use(D(),{host:x.A.MATOMO_URL,siteId:x.A.MATOMO_SITEID,requireConsent:!1,enableLinkTracking:!0,trackInitialView:!0,trackerFileName:"matomo",debug:!1}),new o["default"]({router:p.A,store:m.A,render:function(e){return e(h)}}).$mount("#app")},2191:function(e,t,a){"use strict";a.d(t,{A:function(){return o}});class o{constructor(e){}dateDiff(e){var t="",a=Date.parse(new Date);a/=1e3;var o=Date.parse(new Date(e.replace(/-/g,"/")))/1e3;a=o-a>=0?o-a:0;var r=0,i=0,s=0,n=0;return s=a%60,n=(a-s)/60,i=n%60,r=(n-i)/60,t+=0==r?"00:":r>9?r+":":"0"+r+":",t+=0==i?"00:":i>9?i+":":"0"+i+":",t+=0==s?"00":s>9?s:"0"+s,t}timestamp_10(){let e=Math.round((new Date).getTime()/1e3).toString();return e}verifyPassword(e){const t=new RegExp(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/);return t.test(e)}verifyPhone(e){const t=/^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\d{8}$/;return t.test(e)}getUrlParams(e){let t={};if(-1!=e.indexOf("?")){let a=e.split("?")[1],o=a.split("&");for(let e=0;e<o.length;e++)t[o[e].split("=")[0]]=unescape(o[e].split("=")[1].split("#")[0])}return t}getPar(e,t){var a=e,o=a.indexOf(t+"=");if(-1==o)return 0;var r=a.slice(t.length+o+1),i=r.indexOf("&");return-1!=i&&(r=r.slice(0,i)),r}dateFormat(e,t){let a;const o={"Y+":t.getFullYear().toString(),"m+":(t.getMonth()+1).toString(),"d+":t.getDate().toString(),"H+":t.getHours().toString(),"M+":t.getMinutes().toString(),"S+":t.getSeconds().toString()};for(let r in o)a=new RegExp("("+r+")").exec(e),a&&(e=e.replace(a[1],1==a[1].length?o[r]:o[r].padStart(a[1].length,"0")));return e}toFix(e){let t=+e;return t.toFixed(2)}getCountDown(e,t="时间戳"){let a=Date.now(),o=null;if(isNaN(e)){let t=new Date(e.replace(/-/g,"/"));t.getFullYear?o=t.getTime()-a:console.error("传入的时间格式错误,请传入 yyyy-MM-dd HH:mm:ss 或 yyyy/MM/dd HH:mm:ss 或 时间戳 参数")}else 10==(e+"").length&&(o=Number(e+"000")-a),13==(e+"").length&&(o=e-a);return"时间戳"==t?o:"时分秒"==t?this.formatDuring(o):void 0}formatDuring(e){let t=parseInt(e/864e5),a=parseInt(e%864e5/36e5),o=parseInt(e%36e5/6e4),r=e%6e4/1e3;return{days:t>9?t:"0"+t,hours:a>9?a:"0"+a,minutes:o>9?o:"0"+o,seconds:parseInt(r)>9?parseInt(r):"0"+parseInt(r)}}formatTimeStr(e){return e.replace(getRegExp("(d{4})-(d{2})-(d{2})","g"),"$1年$2月$3日")}setTime(e){let t=e.split(" "),a=t[1].split(":"),o=t[0].split("年");return o[0]+" "+a[0]+":"+a[1]}getDayInterval(e){const t=Math.round((Date.now()-new Date(e).getTime())/1e3),a=["年","个月","星期","天","小时","分钟","秒"],o=[31536e3,2592e3,604800,86400,3600,60,1];for(let r=0;r<o.length;r++){const i=Math.floor(t/o[r]);if("天"===a[r])switch(i){case 0:return"今天";case 1:return"昨天";default:return e}if(0!==i)return e}}getArrayItems(e,t){var a=new Array;for(var o in e)a.push(e[o]);for(var r=new Array,i=0;i<t;i++){if(!(a.length>0))break;var s=Math.floor(Math.random()*a.length);r[i]=a[s],a.splice(s,1)}return r}formatTime(e){let t=e.getFullYear(),a=e.getMonth()+1,o=e.getDate(),r=e.getHours(),i=e.getMinutes(),s=e.getSeconds();return[t,a,o].map(this._formatNumber).join("/")+" "+[r,i,s].map(this._formatNumber).join(":")}delectSecond(e){let t="";for(let a=0;a<e.length;a++)"-"==e[a]?t+=".":t+=e[a];return t.slice(0,t.length-3)}getMoney(e){let t;e=e.toString();let a=e.split(".");return t=0==a[1]?a[0]:e,t}priceFormat(e){e=parseFloat(e).toFixed(2);let t=(e+"").split(".")[0]?(e+"").split(".")[0]:"0",a=(e+"").split(".")[1]?(e+"").split(".")[1]:"00";a=a.length<=1?a+"0":a;let o=[];
1t.split("").reverse().forEach((e,t)=>{0!=t&&t%3==0&&o.push(","),o.push(e)}),t=o.reverse().join("");let r=t+"."+a;return[t,a,r]}wxUrlEncode(e){return e=e.replace("&quot;",'"'),e=e.replace("u0026amp;","&"),e=e.replace("&lt;","<"),e=e.replace("&gt;",">"),e=e.replace("&nbsp;"," "),e}formatTimeAll(e,t,a="",o=!1){let r=["yyyy","MM","dd","HH","mm","ss","D","H","M","S"];switch(t){case 1:""==a&&(a="yyyy-MM-dd HH:mm:ss"),e=e.replace(/-/g,"/");break;case 2:""==a&&(a="D天H:M:S");break;case 3:""==a&&(a="yyyy.MM.dd"),e=e.replace(/-/g,"/");break;default:break}let i=[],s=new Date(e);for(var n in i.push(s.getFullYear()),i.push(this._formatNumber(s.getMonth()+1)),i.push(this._formatNumber(s.getDate())),i.push(this._formatNumber(s.getHours())),i.push(this._formatNumber(s.getMinutes())),i.push(this._formatNumber(s.getSeconds())),o?(i.push(this._formatNumber(parseInt(s/864e5))),i.push(this._formatNumber(parseInt(s/1e3/60/60%24))),i.push(this._formatNumber(parseInt(s/1e3/60%60))),i.push(this._formatNumber(parseInt(s/1e3%60)))):(i.push(parseInt(s/864e5)),i.push(parseInt(s/1e3/60/60%24)),i.push(parseInt(s/1e3/60%60)),i.push(parseInt(s/1e3%60))),i)a=a.replace(r[n],i[n]);if(4==t){let e={day:i[6],h:i[7],m:i[8],s:i[9]};return e}return a}_formatNumber(e){return e=e.toString(),e[1]?e:"0"+e}setNumber(e){let t="";if(e>9999){let a=(e/1e4).toString().split(".");return t=a.length>1?Number((e/1e4).toFixed(2)):e/1e4,t+"万"}return e}translateY(e,t,a,o){let r=uni.createAnimation({duration:500,timingFunction:"ease"});r.translateY(a).step();let i='{"'+t+'":""}';i=JSON.parse(i),i[t]=r.export(),e.slide_up1=i[t]}getUuiD(e){return Number(Math.random().toString().substr(2,e)+Date.now()).toString(36)}upx2px(e){return uni.upx2px(e)}compile(e){for(var t=String.fromCharCode(e.charCodeAt(0)+e.length),a=1;a<e.length;a++)t+=String.fromCharCode(e.charCodeAt(a)+e.charCodeAt(a-1));return escape(t)}uncompile(e){e=unescape(e);for(var t=String.fromCharCode(e.charCodeAt(0)-e.length),a=1;a<e.length;a++)t+=String.fromCharCode(e.charCodeAt(a)-t.charCodeAt(a-1));return t}strInclude(e){var t=new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>《》/?~!@#¥……&*()——|{}【】‘;:”“'。,、? ]");return!!t.test(e)}getTel(e){const t=/^(\d{3})\d{4}(\d{4})$/;return e.replace(t,"$1****$2")}formatStr(e){return e.substring(0,1)+new Array(e.length).join("*")}numAdd(e,t){var a,o,r,i;try{a=e.toString().split(".")[1].length}catch(n){a=0}try{o=t.toString().split(".")[1].length}catch(n){o=0}if(i=Math.abs(a-o),r=Math.pow(10,Math.max(a,o)),i>0){var s=Math.pow(10,i);a>o?(e=Number(e.toString().replace(".","")),t=Number(t.toString().replace(".",""))*s):(e=Number(e.toString().replace(".",""))*s,t=Number(t.toString().replace(".","")))}else e=Number(e.toString().replace(".","")),t=Number(t.toString().replace(".",""));return Math.round((e+t)/r*Math.pow(10,2))/Math.pow(10,2)}numSub(e,t){var a,o,r,i;try{a=e.toString().split(".")[1].length}catch(s){a=0}try{o=t.toString().split(".")[1].length}catch(s){o=0}return r=Math.pow(10,Math.max(a,o)),i=a>=o?a:o,((e*r-t*r)/r).toFixed(i)}mul(e,t){var a,o,r=e.toString(),i=t.toString(),s=arguments[2];return a=(r.split(".")[1]?r.split(".")[1].length:0)+(i.split(".")[1]?i.split(".")[1].length:0),o=Number(r.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,a),Number("number"!==typeof s?o:o.toFixed(parseInt(s)))}wxmlSlice(e,t,a){return e.slice(t,a)}getDaysBetween(e,t){var a=Date.parse(e),o=Date.parse(t),r=(o-a)/864e5;return r}array2Tree(e,t=0){if(!Array.isArray(e)||e.length<=0)return e;const a=[];for(let o=0;o<e.length;o++)if(e[o].pid===t){const t=this.array2Tree(e,e[o].id);t.length&&(e[o].children=t),a.push(e[o])}return a}verifyWebLink(e){return/^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/.test(e)}filterDigits(e,t,a){if("string"!=typeof e)return[];const o=new RegExp(`\\d{${t},${a}}`,"g");return e.match(o)?e.match(o):[]}base64ToFile(e,t){let a=e.split(","),o=a[0].match(/:(.*?);/)[1],r=o.split("/")[1],i=atob(a[1]),s=i.length,n=new Uint8Array(s);while(s--)n[s]=i.charCodeAt(s);return new File([n],`${t||"img"+(new Date).getTime()}.${r}`,{type:o})}levelStr2Arr(e,t=[]){if("string"!=typeof e||t.length<=0)return[];let a=[],o=e.split(",");for(let r=0;r<o.length;r++){let e=t.find(e=>""+e.cardLevel==""+o[r]);e&&a.push(e.cardLevelName)}return a}getShowUserFromLevel(e,t=[]){if(!e||t.length<=0)return"";let a;if(a="string"==typeof e?this.levelStr2Arr(e,t):e,a.length<=0||a.length==t.length)return"";if(1==a.length)return a[0];let o=t.map(e=>e.cardLevelName);if(a[a.length-1]==o[o.length-1]&&a[0]==o[o.length-a.length]){let e=a[0];return e=e.split("会员")[0],e+"及以上级别会员"}return"指定会员级别"}setPositiveInteger(e,t,a){let o=(""+e).replace(/[^\d^\.]+/g,"").replace(/^0+(\d)/,"$1").replace(/^\./,"").match(/^\d*/g)[0]||"";return null!==t&&Number(o)>t&&(o=t),null!==a&&Number(o)<a&&(o=a),o}keepDecimal(e,t=2){let a=parseFloat(e);
1if(isNaN(a))return e;let o=t>=0?t:0,r=(""+a).split(".");void 0==r[1]?r.push("0"):r[1]=r[1].substring(0,o+1),r[1]=r[1].padEnd(o+1,"0");let i=Math.pow(10,o),s=parseInt(r[0]),n=parseInt(r[1].substring(0,o)),c=parseInt(r[1].substring(o,o+1));return c>=5&&(n+=1,n>=i&&(n-=i,s+=1)),parseFloat(s+"."+(""+n/i).split(".")[1])}}},2571:function(e,t,a){"use strict";a.d(t,{U:function(){return i},p:function(){return r}});class o{constructor(e){this.memory="localStorage"===e?window.localStorage:window.sessionStorage}setItem(e){const t={name:"",value:"",expired:"",startTime:(new Date).getTime()},a={};if(Object.assign(a,t,e),a.expired)this.memory.setItem(a.name,JSON.stringify(a));else{const e=Object.prototype.toString.call(a.value);"[object Object]"!==e&&"[object Array]"!==e||(a.value=JSON.stringify(a.value)),this.memory.setItem(a.name,a.value)}}getItem(e){let t=this.memory.getItem(e);if(t&&"null"!=t&&"undefined"!=t){try{t=JSON.parse(t)}catch(a){}if(t.startTime){const a=(new Date).getTime();return a-t.startTime>t.expired?(this.memory.removeItem(e),!1):t.value}return t}}removeItem(e){this.memory.removeItem(e)}clear(){this.memory.clear()}}const r=new o("localStorage"),i=new o("sessionStorage")},2634:function(e,t,a){"use strict";a.d(t,{A:function(){return g}});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"register_box"},["view"==e.type?t("div",{staticClass:"login_title font-title"},[e._v("欢迎来到周大福珠宝")]):e._e(),t("div",{class:["form","view"!=e.type?"popup":""]},[t("el-form",{ref:"form",attrs:{model:e.form,rules:e.formRules}},[t("el-form-item",{attrs:{prop:"phone"}},[t("div",{staticClass:"input-wrap input-wrap-prepend"},[t("div",{class:{textplaceholder:!0,fixed:!0}},[e._v("请输入手机号")]),t("el-input",{on:{focus:function(t){return e.handleFocus("phone")},blur:function(t){return e.handleBlur("phone")}},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}}),t("div",{staticClass:"prepend"},[e._v("+"+e._s(e.curModal.country_num))])],1)]),t("el-form-item",{attrs:{prop:"smsCode"}},[t("div",{staticClass:"input-wrap"},[t("div",{class:{textplaceholder:!0,fixed:e.smsCodeFocus||e.form.smsCode.length>0}},[e._v("请输入验证码")]),t("el-input",{on:{focus:function(t){return e.handleFocus("smsCode")},blur:function(t){return e.handleBlur("smsCode")}},model:{value:e.form.smsCode,callback:function(t){e.$set(e.form,"smsCode",t)},expression:"form.smsCode"}}),t("div",{class:["countdown",e.countdown.disa1bled?"disabled":""],on:{click:function(t){return t.stopPropagation(),e.handleSend.apply(null,arguments)}}},[e._v(e._s(e.countdown.text))])],1)]),t("el-form-item",{attrs:{prop:"captcha"}},[t("div",{staticClass:"captcha-wrap"},[t("div",{attrs:{id:"captchaRegister"}})])]),t("div",{staticStyle:{display:"flex"}},[t("el-form-item",{staticStyle:{flex:"1"},attrs:{prop:"familyName"}},[t("div",{staticClass:"input-wrap"},[t("div",{class:{textplaceholder:!0,fixed:e.familyNameFocus||e.form.familyName.length>0}},[e._v("请输入您的姓氏")]),t("el-input",{on:{focus:function(t){return e.handleFocus("familyName")},blur:function(t){return e.handleBlur("familyName")}},model:{value:e.form.familyName,callback:function(t){e.$set(e.form,"familyName",t)},expression:"form.familyName"}})],1)]),t("el-form-item",{staticStyle:{flex:"1","margin-left":"16px"},attrs:{prop:"memberTitle"}},[t("div",{staticClass:"input-wrap"},[t("div",{class:{textplaceholder:!0,fixed:e.form.memberTitle.length>0}},[e._v("请选择您的称谓")]),t("el-select",{attrs:{placeholder:"","popper-append-to-body":!1,"popper-options":{boundariesElement:"body"}},model:{value:e.form.memberTitle,callback:function(t){e.$set(e.form,"memberTitle",t)},expression:"form.memberTitle"}},e._l(e.titleList,function(e,a){return t("el-option",{key:a,attrs:{label:e.extendCNDesc,value:e.code}})}),1),t("div",{staticClass:"select-arrow"},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowr_v5.png",alt:""}})])],1)])],1),t("el-form-item",{attrs:{prop:"birthday"}},[t("div",{staticClass:"input-wrap"},[t("div",{class:{textplaceholder:!0,fixed:e.form.birthday.length>0}},[e._v("请选择您的生日")]),t("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOptions,clearable:!1,format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.form.birthday,callback:function(t){e.$set(e.form,"birthday",t)},expression:"form.birthday"}})],1)])],1),t("LoginAgreement",{attrs:{isLogin:!1},on:{change:e.selectLoginAgreementFn}}),t("div",{staticClass:"login_btn_box"},[t("div",{staticClass:"login_btn common-btn common-btn-fill-red-1",on:{click:e.handleSubmit}},[e._v("立即注册")]),t("div",{staticClass:"goto_login cursor-pointer",on:{click:e.handleToLogin}}
1,[e._v("已有账号"),t("span",[e._v("即刻登录")])])])],1),t("custom-popup-v5",{ref:"customPopup"})],1)},r=[],i=a(5353),s=a(9888),n=a(6538),c=a(2865);a(1031);const l=a(5928),u=a(3321);var d={name:"",props:{type:{type:String,default:"view"}},components:{LoginAgreement:n.A,ConfirmDialog:c.A},data(){const e=(e,t,a)=>{if(!t)return a(new Error("手机号不能为空"));{const e=/^1\d{10}$/;if(!e.test(t))return a(new Error("请输入正确的11位手机号"));a()}};return{smsType:2,form:{phone:"",smsCode:"",familyName:"",memberTitle:"",memberTitleText:"",birthday:"",captcha:""},phoneFocus:!1,smsCodeFocus:!1,familyNameFocus:!1,formRules:{phone:[{validator:e,required:!0,trigger:"blur"}],smsCode:[{required:!0,message:"请输入验证码",trigger:"blur"}],captcha:[{required:!0,message:"请点击按钮进行验证",trigger:"blur"}],familyName:[{required:!0,message:"请输入姓氏",trigger:"blur"}],memberTitle:[{required:!0,message:"请选择称谓",trigger:"blur"}]},countdown:{num:60,timer:null,text:"发送验证码",disabled:!1},captcha:{show:!1,captcha_id:"",captcha_output:"",gen_time:"",lot_number:"",pass_token:"",obj:null,isGeetest:!1,needGeetestAgain:!1},titleList:[],curModal:[],jsonData:[],pickerOptions:{disabledDate(e){return e.getTime()>Date.now()}}}},computed:{...(0,i.L8)(["bodyZoom"]),...(0,i.aH)(["branchMall"])},mounted(){this.jsonData=u.country,this.curModal=u.country[0],this.getGeetestInfo(),this.getDictionaryFn()},beforeDestroy(){clearTimeout(this.countdown.timer)},methods:{getDictionaryFn(){(0,s.TW)({type:"MEMBER_TITLE",extendStatus:0,sourceSystem:"OFFICIAL_MALL"}).then(e=>{e&&200==e.code&&(this.titleList=e.data&&e.data.length>0?e.data.filter(e=>"太太"!=e.extendCNDesc):[])})},getGeetestInfo(){this.captcha.show||(this.captcha.show=!0,this.$nextTick(()=>{initGeetest4({captchaId:this.$config.CAPTCHA_ID,product:"popup",nativeButton:{width:"464px",height:"48px"}},e=>{this.captcha.obj=e,document.getElementById("captchaRegister").innerHTML="",e.appendTo("#captchaRegister"),setTimeout(()=>{let e=document.getElementsByClassName("geetest_popup_wrap");if(e&&e.length>0)for(let t=0;t<e.length;t++)e[t]&&(e[t].style.zoom=1/this.bodyZoom)},500),e.onSuccess(()=>{let t=e.getValidate();t&&(this.captcha.captcha_id=t.captcha_id,this.captcha.captcha_output=t.captcha_output,this.captcha.gen_time=t.gen_time,this.captcha.lot_number=t.lot_number,this.captcha.pass_token=t.pass_token,this.captcha.isGeetest=!0,this.captcha.needGeetestAgain=!1,this.form.captcha="1",this.$refs.form.clearValidate("captcha"))})})}))},handleFocus(e){this[e+"Focus"]=!0},handleBlur(e){this[e+"Focus"]=!1},handleSend(){if(this.countdown.disabled)return!1;this.$refs.form.validateField("phone",e=>{e||(this.captcha.needGeetestAgain&&(this.form.captcha=""),this.$refs.form.validateField("captcha",e=>{e?this.captcha.obj&&this.captcha.obj.reset():(this.countdown.disabled=!0,this.countdown.text="发送中",(0,s.KV)({mobile:this.form.phone,smsType:this.smsType,captchaId:this.captcha.captcha_id,captchaOutput:this.captcha.captcha_output,genTime:this.captcha.gen_time,lotNumber:this.captcha.lot_number,passToken:this.captcha.pass_token}).then(e=>{200==e.code?this.handleCountdonw():(this.$toast("发送失败"+(e.msg?":"+e.msg:",请稍后再试")),this.countdown.disabled=!1,this.countdown.text="重新发送",this.captcha.isGeetest=!1,this.form.captcha="",this.captcha.obj&&this.captcha.obj.reset())}).catch(()=>{this.$toast("发送失败,请稍后再试")}))}))})},handleCountdonw(){let e=this.countdown.num;e--,e<=0?(this.countdown.num=60,this.countdown.disabled=!1,this.countdown.text="重新发送",this.captcha.needGeetestAgain=!0):(this.countdown.num=e,this.countdown.text=e+"s",this.countdown.timer=setTimeout(()=>{this.handleCountdonw()},1e3))},selectLoginAgreementFn(e){this.checkedObj=e},async handleSubmit(){let e=await this.submitForm();if(e)return this.checkedObj.agreement1.isChecked&&this.checkedObj.agreement2.isChecked?void(0,s.TU)({mobile:this.form.phone,password:l.md5(""+this.form.phone+this.form.familyName+(new Date).getTime()),smsCode:this.form.smsCode,familyName:this.form.familyName,memberTitle:this.form.memberTitle,countryNo:this.curModal.country_num,birthday:this.form.birthday,joinBranch:this.branchMall,joinType:"28"}).then(e=>{"200"==e.code?this.$router.push("/registerSuccess"):this.$message.error(e.msg)}):(this.$refs.customPopup&&this.$refs.customPopup.showModal({title:"温馨提示",content:"请先阅读并同意以下条款"}),!1)}
1,submitForm(){return new Promise(e=>{this.$refs.form.validate(t=>{e(!!t&&this.form)})})},handleToLogin(){"popup"==this.type?this.$root.$emit("loginDialog"):this.toView("/login")}}},h=d,p=a(1656),m=(0,p.A)(h,o,r,!1,null,"06cf3b1a",null),g=m.exports},2830:function(e,t,a){"use strict";a.d(t,{A:function(){return A}});var o=function(){var e=this,t=e._self._c;return t("div",["view"==e.type?t("div",{staticClass:"login_title font-title"},[e._v(e._s(e.loginTabSelect))]):e._e(),t("div",{staticClass:"login_body"},["手机验证登录"==e.loginTabSelect?t("LoginPhone",{ref:"LoginPhone",attrs:{type:e.type}}):e._e(),t("LoginAgreement",{on:{change:e.selectLoginAgreementFn,openAgreement:e.openAgreement}}),t("div",{staticClass:"login_btn_box"},[t("div",{staticClass:"login_btn common-btn common-btn-fill-red-1",on:{click:e.submitForm}},[e._v("登录")])]),t("LoginTab",{on:{change:e.selectTabFn}})],1),t("custom-popup-v5",{ref:"customPopup"}),t("custom-popup-v5",{ref:"agreementPopup",attrs:{popupType:"popup",width:832,slotContent:!0,optionBottomBtn:!1}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.agreementShowLoading,expression:"agreementShowLoading"}],staticClass:"login_slot_agre_box"},[t("div",{staticClass:"login_agreement_popup_box"},[t("el-image",{staticClass:"login_agreement_popup_img",attrs:{placeholder:"载入中",src:e.agreementShowUrl}})],1)])])])],1)},r=[],i=a(9888),s=a(3007),n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"wrapper"},[e._m(0),t("ul",{staticClass:"login_tab_list"},e._l(e.loginTabList,function(a,o){return t("li",{key:o,class:["login_tab_item cursor-pointer",e.loginTabSelect==a.name?"login_tab_item_select":""],on:{click:function(t){return e.selectLoginTabFn(a.name)}}},[t("div",{staticClass:"icon"},[t("el-image",{attrs:{src:a.icon,filt:"cover"}})],1),t("div",{staticClass:"name"},[e._v(e._s(a.name))])])}),0)])},c=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"gap"},[t("div",{staticClass:"txt"},[e._v("其他登录方式")])])}],l={name:"",data(){return{loginTabSelect:"手机验证登录",loginTabList:[{name:"手机验证登录",icon:"https://cdn.ctfmall.com/goodsother/pc_phone_v5.png"},{name:"新用户注册",icon:"https://cdn.ctfmall.com/goodsother/pc_phone_v5.png"},{name:"员工登录",icon:"https://cdn.ctfmall.com/goodsother/pc_staff_login.png"}]}},methods:{selectLoginTabFn(e){if("员工登录"==e){let e=this.delectUrlQuery(["code","codeVrifier","error"]);this.$localStorage.setItem({name:"staffLoginUrl",value:e});let t=`${i.$n}?response_type=code&scope=openid&client_id=${i.P9}&redirect_uri=${e}`;window.location.assign(t)}else this.loginTabSelect=e,this.$emit("change",e)}}},u=l,d=a(1656),h=(0,d.A)(u,n,c,!1,null,"9464954c",null),p=h.exports,m=function(){var e=this,t=e._self._c;return t("div",{class:["form","view"!=e.type?"popup":""]},[t("el-form",{ref:"form",attrs:{model:e.form,rules:e.formRules}},[t("el-form-item",{attrs:{prop:"phone"}},[t("div",{staticClass:"input-wrap"},[t("div",{class:{textplaceholder:!0,fixed:e.phoneFocus||e.form.phone.length>0}},[e._v("请输入手机号")]),t("el-input",{on:{focus:function(t){return e.handleFocus("phone")},blur:function(t){return e.handleBlur("phone")}},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1)]),t("el-form-item",{attrs:{prop:"smsCode"}},[t("div",{staticClass:"input-wrap"},[t("div",{class:{textplaceholder:!0,fixed:e.smsCodeFocus||e.form.smsCode.length>0}},[e._v("请输入验证码")]),t("el-input",{on:{focus:function(t){return e.handleFocus("smsCode")},blur:function(t){return e.handleBlur("smsCode")}},model:{value:e.form.smsCode,callback:function(t){e.$set(e.form,"smsCode",t)},expression:"form.smsCode"}}),t("div",{class:["countdown",e.countdown.disabled?"disabled":""],on:{click:function(t){return t.stopPropagation(),e.handleSend.apply(null,arguments)}}},[e._v(e._s(e.countdown.text))])],1)]),t("el-form-item",{attrs:{prop:"captcha"}},[t("div",{staticClass:"captcha-wrap"},[t("div",{attrs:{id:"captchaPhone"}})])])],1)],1)},g=[],f=a(5353),v={props:{type:{type:String,default:"view"}},data(){const e=(e,t,a)=>{if(!t)return a(new Error("手机号不能为空"));{const e=/^1\d{10}$/;if(!e.test(t))return a(new Error("请输入正确的11位手机号"));a()}};return{smsType:1,form:{phone:"",smsCode:"",captcha:""},phoneFocus:!1,smsCodeFocus:!1,formRules:{phone:[{validator:e,required:!0,trigger:"blur"}],smsCode:[{required:!0,message:"请输入验证码",trigger:"blur"}],captcha:[{required:!0,message:"请点击按钮进行验证",trigger:"blur"}]},countdown:{num:60,timer:null,text:"发送验证码",disabled:!1},captcha:{show:!1,captcha_id:"",captcha_output:"",gen_time:"",lot_number:"",pass_token:"",obj:null,isGeetest:!1,needGeetestAgain:!1}}},computed:{...(0,f.L8)(["bodyZoom"])},mounted(){this.getGeetestInfo()},beforeDestroy(){clearTimeout(this.countdown.timer)},methods:{getGeetestInfo(){this.captcha.show||(this.captcha.show=!0,this.$nextTick(()=>{initGeetest4({captchaId:this.$config.CAPTCHA_ID,product:"popup",nativeButton:{width:"464px",height:"48px"}},e=>{this.captcha.obj=e,document.getElementById("captchaPhone").innerHTML="",e.appendTo("#captchaPhone"),setTimeout(()=>{let e=document.getElementsByClassName("geetest_popup_wrap");if(e&&e.length>0)for(let t=0;t<e.length;t++)e[t]&&(e[t].style.zoom=1/this.bodyZoom)},500),e.onSuccess(()=>{let t=e.getValidate();t&&(this.captcha.captcha_id=t.captcha_id,this.captcha.captcha_output=t.captcha_output,this.captcha.gen_time=t.gen_time,this.captcha.lot_number=t.lot_number,this.captcha.pass_token=t.pass_token,this.captcha.isGeetest=!0,this.captcha.needGeetestAgain=!1,this.form.captcha="1",this.$refs.form.clearValidate("captcha"))})})}))},handleFocus(e){this[e+"Focus"]=!0},handleBlur(e){this[e+"Focus"]=!1},handleSend(){if(this.countdown.disabled)return!1;this.$refs.form.validateField("phone",e=>{e||(this.captcha.needGeetestAgain&&(this.form.captcha=""),this.$refs.form.validateField("captcha",e=>{e?this.captcha.obj&&this.captcha.obj.reset():(this.countdown.disabled=!0,this.countdown.text="发送中",(0,i.KV)({mobile:this.form.phone,smsType:this.smsType,captchaId:this.captcha.captcha_id,captchaOutput:this.captcha.captcha_output,genTime:this.captcha.gen_time,lotNumber:this.captcha.lot_number,passToken:this.captcha.pass_token}).then(e=>{200==e.code?this.handleCountdonw():(this.$toast("发送失败"+(e.msg?":"+e.msg:",请稍后再试")),this.countdown.disabled=!1,this.countdown.text="重新发送",this.captcha.isGeetest=!1,this.form.captcha="",this.captcha.obj&&this.captcha.obj.reset())}).catch(()=>{this.$toast("发送失败,请稍后再试")}
1))}))})},handleCountdonw(){let e=this.countdown.num;e--,e<=0?(this.countdown.num=60,this.countdown.disabled=!1,this.countdown.text="重新发送",this.captcha.needGeetestAgain=!0):(this.countdown.num=e,this.countdown.text=e+"s",this.countdown.timer=setTimeout(()=>{this.handleCountdonw()},1e3))},submitForm(){return new Promise(e=>{this.$refs.form.validate(t=>{e(!!t&&this.form)})})}}},_=v,y=(0,d.A)(_,m,g,!1,null,"8c7839ce",null),b=y.exports,w=a(6538),C=a(2865);a(1031);const k=a(5928);var S={name:"",props:{type:{type:String,default:"view"}},components:{LoginTab:p,LoginPhone:b,LoginAgreement:w.A,ConfirmDialog:C.A},data(){return{loginTabSelect:"手机验证登录",noNeedLogin:!1,joinKdp:!1,agreementDialogShow:!1,agreementShowTitle:"",agreementShowUrl:"",agreementShowLoading:!1,agreement:{CTF_Reward_Plan_And_Detail_V2:{clauseKey:"CTF_Reward_Plan_And_Detail_V2",clauseTitle:"周大福会员计划的条款及细则",clauseVersion:"",clauseUrl:""},Personal_information_collection_statement_V2:{clauseKey:"Personal_information_collection_statement_V2",clauseTitle:"周大福平台个人信息收集声明",clauseVersion:"",clauseUrl:""}
1,Membership_Migration_Arrangement_Explanation:{clauseKey:"Membership_Migration_Arrangement_Explanation",clauseTitle:"周大福会员计划会籍迁移安排说明",clauseVersion:"",clauseUrl:""}}}},created(){this.getAgreementInfo()},mounted(){},methods:{selectLoginAgreementFn(e){this.checkedObj=e},selectTabFn(e){"新用户注册"==e?"popup"==this.type?this.alertRegisterDialog():this.toView("/register"):(this.loginTabSelect=e,this.$emit("selectTabFn",e))},submitForm(){switch(this.loginTabSelect){case"手机验证登录":this.iponeLogin();break;case"账号登录":this.userLogin();break;case"员工登录":break;default:break}},async iponeLogin(){let e=await this.$refs.LoginPhone.submitForm();if(!e)return;if(!this.checkedObj.agreement1.isChecked||!this.checkedObj.agreement2.isChecked)return this.$refs.customPopup&&this.$refs.customPopup.showModal({title:"温馨提示",content:"请先阅读并同意以下条款"}),!1;let t=await this.getMd5Str(),a=this.delectUrlQuery(["code","codeVrifier","error"]),o=a.split("?"),r=o[0]+"?codeVrifier="+t;o.length>1&&(r+="&"+o[1]);let s=i.fF+"/login/sms",n={mobile:e.phone,smsCode:e.smsCode,noNeedLogin:this.noNeedLogin,joinKdp:this.checkedObj.agreement2.isChecked,success_redirect_uri:`${i.ui}?client_id=${i.OZ}&redirect_uri=${i._}&scope=openid&response_type=code&code_challenge=${t}&code_challenge_method=S256&state=${r}`,failure_redirect_uri:a};const c=document.createElement("form");c.action=s,c.method="post",c.style.display="none";for(let i in n){let e=document.createElement("input");e.setAttribute("type","text"),e.setAttribute("name",i),e.setAttribute("value",n[i]),c.appendChild(e)}document.body.appendChild(c),c.submit()},async userLogin(){let e=await this.$refs.loginUser.submitForm();if(!e)return;if(!this.checkedObj.agreement1.isChecked||!this.checkedObj.agreement2.isChecked)return this.$refs.customPopup&&this.$refs.customPopup.showModal({title:"温馨提示",content:"请先阅读并同意以下条款"}),!1;let t=await this.getMd5Str(),a=this.delectUrlQuery(["code","codeVrifier","error"]),o=a.split("?"),r=o[0]+"?codeVrifier="+t;o.length>1&&(r+="&"+o[1]);let s=i.fF+"/login/password",n={username:e.userName,password:e.password+"",captchaId:e.captcha_id,captchaOutput:e.captcha_output,genTime:e.gen_time,lotNumber:e.lot_number,passToken:e.pass_token,noNeedLogin:this.noNeedLogin,joinKdp:this.checkedObj.agreement2.isChecked,success_redirect_uri:`${i.ui}?client_id=${i.OZ}&redirect_uri=${i._}&scope=openid&response_type=code&code_challenge=${t}&code_challenge_method=S256&state=${r}`,failure_redirect_uri:a};n.password=k.md5(n.password);const c=document.createElement("form");c.action=s,c.method="post",c.style.display="none";for(let i in n){let e=document.createElement("input");e.setAttribute("type","text"),e.setAttribute("name",i),e.setAttribute("value",n[i]),c.appendChild(e)}document.body.appendChild(c),c.submit()},getMd5Str(){return new Promise((e,t)=>{(0,i.w)().then(t=>{200==t.code?e(t.data.ciphertext):console.log("获取md5加密失败",t)})})},alertRegisterDialog(){this.$emit("alertRegisterDialog")},openAgreement(){this.$emit("openAgreement")},getAgreementInfo(){this.agreementInfoRequest()},agreementInfoRequest(){let e=this;return new Promise((t,a)=>{let o={clauseKeys:Object.keys(e.agreement)};(0,s.O6)(o).then(a=>{if(""+a.resultCode=="200"){let t=Object.keys(a.data);t.forEach(t=>{e.agreement[t].clauseUrl||(e.agreement[t]={},e.agreement[t].clauseKey=a.data[t].clauseKey,e.agreement[t].clauseTitle=a.data[t].clauseTitle,e.agreement[t].clauseVersion=a.data[t].clauseVersion,e.agreement[t].clauseUrl=a.data[t].clauseUrl)})}t()})})},showAgreementInfo(e){this.agreementShowLoading=!0;let t={clauseKeys:[e]};(0,s.O6)(t).then(t=>{this.agreementShowLoading=!1,200==t.resultCode?(this.agreementShowTitle=t.data[e].clauseTitle,this.agreementShowUrl=t.data[e].clauseUrl,this.$refs.agreementPopup&&this.$refs.agreementPopup.showModal({title:this.agreementShowTitle,success:()=>{this.isDialogShow=!1}})):this.$toast(t.resultMessage)})}}},T=S,P=(0,d.A)(T,o,r,!1,null,"53cd1fe2",null),A=P.exports},2865:function(e,t,a){"use strict";a.d(t,{A:function(){return l}});var o=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{visible:e.dialogVisible,"before-close":e.handleCancel,"show-close":e.showClose,title:e.title,width:e.width,"append-to-body":e.append,"close-on-press-escape":e.closeOnPressEscape,"close-on-click-modal":e.closeOnClickModal},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("p",[e._v(e._s(e.desc))]),e._t("default"),e.showFooter?t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e.showCancel?t("el-button",{style:{width:e.buttonWidth},attrs:{type:"warning",plain:""},on:{click:e.handleCancel}}
1,[e._v(e._s(e.cancelText))]):e._e(),t("el-button",{style:{width:e.buttonWidth},attrs:{type:"warning",disabled:e.ifDisabled},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.confirmText)+" ")])],1):e._e()],2)},r=[],i={name:"ConfirmDialog",props:{dialogVisible:{type:Boolean,default:!1},append:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:String,default:"607px"},showCancel:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},desc:{type:String,default:""},confirmText:{type:String,default:"确认"},cancelText:{type:String,default:"取消"},ifDisabled:{type:Boolean,default:!1},buttonWidth:{type:String,default:"200px"},closeOnPressEscape:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!1}},methods:{handleConfirm(){this.$emit("handleConfirm")},handleCancel(){this.$emit("handleCancel")}}},s=i,n=a(1656),c=(0,n.A)(s,o,r,!1,null,null,null),l=c.exports},2996:function(e,t,a){"use strict";a.d(t,{A:function(){return Re}});var o=a(5471),r=a(173),i=function(){var e=this,t=e._self._c;return t("div",{class:["index_box","with-watermark",e.drawer?"index_box_hide":""]},[e.isTopViewShow?t("div",{class:["set_top",e.headerAni?"":"not-ani"],style:`top:${e.headerTop}px;`},[t("div",[t("IndexNotice",{attrs:{list:e.notices}})],1),t("div",[t("IndexLogo",{ref:"indexLogo",attrs:{navHeight:e.navHeight},on:{searchPop:e.handleSearchPopStatus,goldPricePop:e.handleGoldPricePopStatus}})],1),t("div",[t("IndexTab",{attrs:{headerStyle:e.headerStyle,navHeight:e.navHeight},on:{search:e.handleSearch,categoryPop:e.handleCategoryPopStatus}})],1)]):e._e(),e.isTopViewShow?t("div",{staticClass:"set_top_place",style:`height:${e.headerHeight}px;`}):e._e(),t("keep-alive",[e.$route.meta.keepAlive?t("router-view",{attrs:{navHeight:e.navHeight}}):e._e()],1),e.$route.meta.keepAlive?e._e():t("router-view",{attrs:{navHeight:e.navHeight}}),e.isBottomShow?t("IndexBottom",{attrs:{footers:e.footers},on:{contactCustomerService:e.toUdesk}}):e._e(),e.backTopShow?t("div",{staticClass:"levitation_button_box"},[t("div",{staticClass:"table_left_item",attrs:{slot:"reference"},slot:"reference"},[t("div",{staticClass:"customer_service_box",on:{click:e.toUdesk}},[t("img",{staticClass:"customer_service_img",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_custpmer_v5.png",alt:"联系客服"}})])]),t("div",{staticClass:"back_to_top_box",on:{click:e.backToTop}},[t("img",{staticClass:"back_to_top_img",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_topup_v5.png",alt:"返回顶部"}})])]):e._e(),t("LoginDialog",{ref:"LoginDialog",on:{alertRegisterDialog:e.alertRegisterDialog}}),t("RegisterDialog",{ref:"RegisterDialog"}),t("custom-popup-v5",{ref:"customPopup"}),t("IndexAgrPopup",{ref:"IndexAgrPopup",attrs:{agreementInfo:e.agreement,currentAgreementInfo:e.currentAgreementInfo},on:{submitAgreementRequest:e.submitAgreementRequest}}),t("MemberFreeze",{ref:"MemberFreeze"}),t("custom-popup-v5",{ref:"subjectChangePopup",attrs:{slotContent:!0}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{staticStyle:{"font-size":"14px","line-height":"26px",color:"#1D1D1D"}},[t("div",[e._v("尊敬的会员,您好!")]),t("div",{staticStyle:{"text-indent":"2em"}},[e._v("我们将于2026年6月22日推行"),t("span",{staticStyle:{"text-decoration":"underline",cursor:"pointer"},on:{click:function(t){e.$refs.IndexAgrPopup&&e.$refs.IndexAgrPopup.showAgreementInfo("CTF_Reward_Plan_And_Detail_Preview")}}},[e._v("《周大福会员计划条款及细则》(20260622更新版)")]),e._v(",现将主要事项说明如下:")]),t("div",{staticStyle:{"text-indent":"2em","font-weight":"600"}},[e._v("自2026年6月22日起,会员于线下门店渠道消费,获得的周大福积分自保证单生成时起2小时后自动到账。")]),t("div",{staticStyle:{"text-indent":"2em"}},[e._v("如您未及时查阅并确认"),t("span",{staticStyle:{"text-decoration":"underline",cursor:"pointer"},on:{click:function(t){e.$refs.IndexAgrPopup&&e.$refs.IndexAgrPopup.showAgreementInfo("CTF_Reward_Plan_And_Detail_Preview")}}},[e._v("《周大福会员计划条款及细则》(20260622更新版)")]),e._v(",则:")]),t("div",{staticStyle:{"text-indent":"2em"}},[e._v("自2026年6月22日起,将会影响您正常登录周大福珠宝并享受各项权益并享有/使用各项会员权益(包括获取或使用积分在内)。")]),t("div",{staticStyle:{"text-indent":"2em"}}
1,[e._v("如您有任何疑问,可致电4001669999 或前往周大福线下门店咨询详情。")])])])])],1)},s=[],n=a(5353),c=function(){var e=this,t=e._self._c;return t("div",{class:["page-footer","page-footer-"+e.theme]},[t("div",{staticClass:"content"},[t("div",{staticClass:"logo"},["gray"==e.theme?t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_logo2_v5.png",alt:"周大福1929"}}):"red"==e.theme?t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_logo3_v5.png",alt:"周大福1929"}}):e._e()]),t("div",{staticClass:"entrance"},[e._l(e.footers,function(a,o){return t("div",{key:o,staticClass:"item"},[a.jumpLink?t("h5",{staticClass:"font-title is-link",on:{click:function(t){return e.handleNavClick(a)}}},[e._v(e._s(a.title))]):t("h5",{staticClass:"font-title"},[e._v(e._s(a.title))]),a.children&&a.children.length>0?t("ul",e._l(a.children,function(a,o){return t("li",{key:o},[t("a",{on:{click:function(t){return e.handleNavClick(a)}}},[e._v(e._s(a.title))])])}),0):e._e()])}),t("div",{staticClass:"item"},[t("h5",{staticClass:"font-title"},[e._v("联系我们")]),e._m(0),t("div",{staticClass:"other"},[t("el-popover",{attrs:{placement:"right",width:"208",trigger:"hover","popper-class":"qrcode-popover","append-to-body":!1,"popper-options":{boundariesElement:"body"}}},[t("div",{staticClass:"qrcode-wrap"},[t("p",{staticClass:"str"},[e._v("微信扫码关注公众号")]),t("p",[e._v("获取最新品牌资讯")]),t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_wxofficial_v5.jpg",alt:"周大福珠宝"}})]),t("div",{staticClass:"box",attrs:{slot:"reference"},slot:"reference"},["gray"==e.theme?t("img",{staticClass:"icon",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_wechat1_v5.png",alt:"周大福珠宝"}}):"red"==e.theme?t("img",{staticClass:"icon",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_wechat2_v5.png",alt:"周大福珠宝"}}):e._e()])]),t("div",{staticClass:"box",on:{click:function(t){return e.toPageBlank("https://weibo.com/u/1810565032")}}},["gray"==e.theme?t("img",{staticClass:"icon",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_weibo1_v5.png",alt:"周大福珠宝"}}):"red"==e.theme?t("img",{staticClass:"icon",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_weibo2_v5.png",alt:"周大福珠宝"}}):e._e()])],1)])],2),t("div",{staticClass:"information"},[t("ul",{staticClass:"copyright"},[t("li",[e._v("周大福(股份代号:1929)· 香港主板上市公司")]),t("li",[e._v("©周大福珠宝金行(深圳)有限公司版权所有")]),t("li",[t("a",{on:{click:function(t){return e.toPageBlank("https://beian.miit.gov.cn")}}},[e._v("粤ICP备09109778号")])]),t("li",[e._v("深圳市盐田区深盐路黄金珠宝大厦12楼A座")])]),t("ul",{staticClass:"copyright"},[t("li",[t("a",{on:{click:function(t){return e.toPageBlank("https://beian.mps.gov.cn/#/query/webSearch?code=44030002011810")}}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/ctfbn.png",alt:"粤公网安备44030002011810号"}})])]),e._e(),t("li",[t("a",{on:{click:function(t){return e.toPageBlank("https://www.szcredit.org.cn/#/xyfw/search/details?id=9964841fb2494454a0998ccad6d8a85f")}}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_xinyon_v5.png",alt:"深圳信用网"}})])])])])])])},l=[function(){var e=this,t=e._self._c;return t("ul",[t("li",[t("p",[e._v("热线电话:400-166-9999")]),t("p",[e._v("人工服务:周一至周五 9:30-17:30")]),t("p",[e._v("智能服务:7×24小时全天候")])]),t("li",[t("p",[e._v("在线客服")]),t("p",[e._v("服务时间:每日 8:15-23:45")])])])}],u={props:{footers:{type:Array,default:()=>[]},theme:{type:String,default:"gray"}}},d=u,h=a(1656),p=(0,h.A)(d,c,l,!1,null,"5f16ba4b",null),m=p.exports,g=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-tabs border-bottom-1"},[t("div",{class:["tabs-cont",1==e.headerStyle?"has-search":""]},[t("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[t("div",{staticClass:"tab-wrap"},[t("div",{staticClass:"tab-box"},e._l(e.tabList,function(a,o){return t("div",{key:o,class:["tab-item",e.selectTabNum===o?"active":""],on:{click:function(t){return e.navClickFn(a,[o])},mouseenter:function(t){return e.handleShowCategoryPop(o,!0)},mouseleave:function(t){return e.handleCloseCategoryPop(500)}}},[t("p",[e._v(e._s(a.title))]),t("i")])}),0)])]),t("div",{directives:[{name:"show",rawName:"v-show",value:1==e.headerStyle,expression:"headerStyle == 1"}],staticClass:"search cursor-pointer",on:{click:function(t){return t.stopPropagation(),e.handleSearch.apply(null,arguments)}}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_search_v5.png",alt:"搜索"}})])],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showCategoryPop,expression:"showCategoryPop"}],class:["custom-pop","category-pop",e.showTopNotice?"has-norice":"",e.showCategoryPopAni?"show":""],style:`padding-top:${e.navHeight}px;`},[t("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[t("div",{staticClass:"pop-wrap",on:{mouseenter:function(t){return e.handleShowCategoryPop(e.current)},mouseleave:function(t){return e.handleCloseCategoryPop(0)}}},[t("div",{staticClass:"pop-cont"},[e.tabList[e.current]&&e.tabList[e.current].children&&e.tabList[e.current].children.length>0?t("div",{staticClass:"list"},e._l(e.tabList[e.current].children,function(a,o){return t("div",{key:o,staticClass:"col"},[a.children&&a.children.length>0?t("div",{staticClass:"box"},[a.jumpLink?t("div",{staticClass:"name is-link",on:{click:function(t){return e.navClickFn(a,[e.current,o])}}},[e._v(e._s(a.title))]):t("div",{staticClass:"name"},[e._v(e._s(a.title))]),t("div",{staticClass:"data"},e._l(a.children,function(a,r){return t("div",{key:o+"-"+r,staticClass:"item",on:{click:function(t){return e.navClickFn(a,[e.current,o,r])}}},[e._v(e._s(a.title))])}),0)]):t("div",{staticClass:"box"},[t("div",{staticClass:"data"},[t("div",{staticClass:"item",on:{click:function(t){return e.navClickFn(a,[e.current,o])}}},[e._v(e._s(a.title))])])])])}
1),0):e._e(),e.rightDetail.srcLink||e.rightDetail.name?t("div",{staticClass:"other",on:{click:function(t){return e.handleNavClick(e.rightDetail)}}},[e.rightDetail.isVideo&&e.rightDetail.srcLink?t("video",{staticClass:"img",attrs:{src:e.rightDetail.srcLink,autoplay:!0,controls:!1,loop:!0,preload:"auto"},domProps:{muted:!0}}):e.rightDetail.srcLink?t("el-image",{staticClass:"img",attrs:{src:e.rightDetail.srcLink,fit:"cover"}}):e._e(),t("p",{staticClass:"font-title"},[e._v(e._s(e.rightDetail.title))])],1):e._e()])])]),t("div",{staticClass:"pop-mask"})],1)])},f=[],v={props:{headerStyle:{type:Number|String,default:0},navHeight:{type:Number|String,default:0}},data(){return{showCategoryPop:!1,showCategoryPopAni:!1,timer:null,timer2:null,current:-1,rightDetail:{srcLink:"",isVideo:!1,title:"",jumpLink:""}}},computed:{...(0,n.L8)(["showTopNotice"]),tabList(){return this.$store.state.indexTabList},selectTabNum(){return this.$store.state.indexTab}},methods:{handleShowCategoryPop(e,t=!1){clearTimeout(this.timer),clearTimeout(this.timer2),this.tabList[e].children&&this.tabList[e].children.length>0?(this.current=e,this.showCategoryPop=!0,this.timer2=setTimeout(()=>{this.showCategoryPopAni=!0},50),this.$emit("categoryPop",!0)):this.handleCloseCategoryPop(0),t&&this.handleNavEnter(this.tabList[e])},handleCloseCategoryPop(e=500){clearTimeout(this.timer),clearTimeout(this.timer2),this.showCategoryPop&&(this.timer=setTimeout(()=>{this.showCategoryPop=!1,this.showCategoryPopAni=!1,this.current=-1,this.$emit("categoryPop",!1)},e))},handleNavEnter(e){this.handleNavLeave(),e.srcLink&&(this.rightDetail.srcLink=e.srcLink,this.rightDetail.title=e.adName,this.rightDetail.jumpLink=e.adToLink,this.rightDetail.isVideo=1==e.isAdVideo)},handleNavLeave(){this.rightDetail.srcLink="",this.rightDetail.title="",this.rightDetail.jumpLink=""},navClickFn(e,t=[]){if(this.handleCloseCategoryPop(0),!e.jumpLink||0!=e.jumpLink.indexOf("/goodsList")&&0!=e.jumpLink.indexOf("goodsList"))this.handleNavClick(e,!0);else{let a=JSON.parse(JSON.stringify(e));a.jumpLink.indexOf("?")>=0?a.jumpLink=a.jumpLink+"&breadcrumb="+t.join():a.jumpLink=a.jumpLink+"?breadcrumb="+t.join(),this.handleNavClick(a,!0)}},handleSearch(){this.$emit("search")}}},_=v,y=(0,h.A)(_,g,f,!1,null,"03e94d7e",null),b=y.exports,w=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-header"},[t("div",{staticClass:"cont"},[t("div",{staticClass:"box"},[t("div",{class:["btn-trigger",e.showTodayPrice?"active":""],on:{mouseenter:e.handleShowTodayPrice,mouseleave:function(t){return e.handleCloseTodayPrice(500)}}},[e._m(0),t("p",[e._v("今日金价")])]),t("div",{staticClass:"entrance"},[t("el-popover",{attrs:{placement:"bottom",width:"250",trigger:"hover","popper-class":"qrcode-popover","append-to-body":!1,"popper-options":{boundariesElement:"body"}}},[t("div",{staticClass:"qrcode-wrap"},[t("div",{staticClass:"item"},[t("div",{staticClass:"img"},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pcvxqrcode0219.png",alt:"周大福珠宝"}})]),t("p",[e._v("扫码进入小程序商城")])]),t("div",{staticClass:"item"},[t("div",{staticClass:"img"},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pcwapqrcode0219.png",alt:"周大福珠宝"}})]),t("p",[e._v("扫码进入H5商城")])]),t("div",{staticClass:"item"},[t("div",{staticClass:"img"},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pcvxsqrcode0219.png",alt:"周大福珠宝"}})]),t("p",[e._v("扫码进入微信小店")])])]),t("div",{staticClass:"entrance-item",attrs:{slot:"reference"},slot:"reference"},[e._v("手机版")])]),t("div",{staticClass:"entrance-item",on:{click:function(t){return e.toPageBlank("https://www.chowtaifook.com/zh-hk/eshop/")}}},[e._v("中国港澳台地区和其他国家/地区")])],1)]),t("div",{staticClass:"logo",on:{click:function(t){return e.toView("/home")}}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_logo1_v5.png",alt:"周大福珠宝"}})]),t("div",{staticClass:"box"},[t("div",{staticClass:"btn-trigger",on:{click:function(t){return t.stopPropagation(),e.handleShowSearchPop.apply(null,arguments)}}},[e._m(1)]),t("el-popover",{ref:"loginPopover",attrs:{placement:"bottom",width:"120",trigger:"hover","popper-class":"mine-popover","append-to-body":!1,"popper-options":{boundariesElement:"body"}}},[0==e.userInfo.uid||""==e.idToken?t("div",{staticClass:"mine-list"},[t("div",{staticClass:"item",on:{click:function(t){return e.loginPopoverClickFn("/login")}}},[e._v("登录")]),t("div",{staticClass:"item",on:{click:function(t){return e.loginPopoverClickFn("/register")}}},[e._v("注册")])]):t("div",{staticClass:"mine-list"},[t("div",{staticClass:"item",on:{click:function(t){return e.loginPopoverClickFn("/myIndex/accountOverview")}}},[e._v("我的账户")]),t("div",{staticClass:"item",on:{click:function(t){return e.loginPopoverClickFn("/myIndex/orderList")}}},[e._v("订单中心")]),t("div",{staticClass:"item",on:{click:e.handleLogout}},[e._v("退出登录")])]),t("div",{staticClass:"btn-trigger",attrs:{slot:"reference"},on:{click:function(t){0==e.userInfo.uid||""==e.idToken?e.loginPopoverClickFn("/login"):e.loginPopoverClickFn("/myIndex/accountOverview")}},slot:"reference"},[t("div",{staticClass:"icon"},[t("img",{staticClass:"img-normal",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_account2_v5.png",alt:"个人中心"}}),t("img",{staticClass:"img-hover",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_account1_v5.png",alt:"个人中心"}})])])]),t("div",{staticClass:"btn-trigger",on:{click:function(t){return e.toPageBlank("https://www.ctf.com.cn/zh-hans/shop.html")}}},[e._m(2)]),t("div",{staticClass:"btn-trigger",attrs:{slot:"reference"},slot:"reference"},[t("div",{staticClass:"icon",on:{click:e.openCartPop}},[t("img",{staticClass:"img-normal",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_shop2_v5.png",alt:"购物袋"}}),t("img",{staticClass:"img-hover",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_shop1_v5.png",alt:"购物袋"}}
1)])])],1)]),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showTodayPrice,expression:"showTodayPrice"}],class:["custom-pop","today-price-pop",e.showTopNotice?"has-notice":""],style:`padding-top:${e.navHeight}px;`,on:{mouseenter:e.handleShowTodayPrice}},[t("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[t("div",{staticClass:"pop-wrap",on:{mouseleave:function(t){return e.handleCloseTodayPrice(0)}}},[t("div",{staticClass:"pop-cont"},[t("div",{staticClass:"gold-price"},[e.todayPrice&&0==e.todayPrice.actStatus?t("div",{staticClass:"title font-title"},[e._v("今日金价")]):e.todayPrice&&1==e.todayPrice.actStatus?t("div",{staticClass:"title font-title"},[e._v("周大福珠宝今日金价")]):e._e(),e.todayPrice&&1==e.todayPrice.actStatus&&1==e.todayPrice.showStatus?t("div",{staticClass:"time"},[e._v("(更新于"+e._s(e.todayPrice.readTimeText||"")+")")]):e.todayPrice&&0==e.todayPrice.actStatus?t("div",{staticClass:"time"},[e._v("(更新于"+e._s(e.todayPrice.inputTimeText||"")+")")]):e._e(),t("div",{staticClass:"list"},e._l(e.todayPrice.goldPriceDailyListVO,function(a,o){return t("div",{key:o,staticClass:"row"},[t("div",{staticClass:"left"},[t("img",{attrs:{src:a.categoryLogoUrl,alt:a.categoryName}}),t("p",[e._v(e._s(a.categoryName))])]),t("div",{staticClass:"right"},e._l(a.goldPriceInfoListVO,function(a,o){return t("div",{key:o,staticClass:"data"},[t("div",{staticClass:"label"},[t("p",[e._v(e._s(a.displayName))]),t("p",{staticClass:"desc"},[e._v(e._s(a.secondDisplayName||""))])]),t("div",{staticClass:"val"},[t("span",[e._v(e._s(a.goldPrice||""))]),e._v("元/克")])])}),0)])}),0),e.todayPrice&&1==e.todayPrice.actStatus&&e.todayPrice.copywriting?t("div",{staticClass:"tips",domProps:{innerHTML:e._s(e.todayPrice.copywritingText)}}):e.todayPrice&&0==e.todayPrice.actStatus?t("div",{staticClass:"tips"},[e._v("以上为今日即时金价,部分货品工费另计")]):e._e()]),e.todayPriceAd?t("div",{staticClass:"gold-ad"},[t("img",{attrs:{src:e.todayPriceAd}})]):e._e()])])]),t("div",{staticClass:"pop-mask"})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.showSearchPop,expression:"showSearchPop"}],class:["custom-pop","search-pop",e.showTopNotice?"has-notice":""],style:`padding-top:${e.navHeight}px;`,on:{click:e.handleCloseSearchPop}},[t("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[t("div",{staticClass:"pop-wrap",on:{click:function(e){e.stopPropagation()}}},[t("div",{staticClass:"pop-cont"},[t("div",{staticClass:"close",on:{click:e.handleCloseSearchPop}},[e._v("关闭")]),t("div",{staticClass:"search-box"},[t("div",{staticClass:"input-wrap"},[t("el-input",{ref:"search_popup_input",attrs:{focus:e.searchFocus,placeholder:e.searchFocus&&e.searchRecommendList.length<=0?e.searchPlaceholder:""},on:{focus:e.handleSearchFocus,blur:e.handleSearchBlur},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSearchSubmit.apply(null,arguments)}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),e.searchRecommendList.length>0?t("div",{class:["recommend",e.searchFocus||e.searchValue?"hide":""]},[t("el-carousel",{attrs:{height:"40px",direction:"vertical",autoplay:e.showSearchPop&&!e.searchFocus&&!e.searchValue},on:{change:e.searchRecommendChange}},e._l(e.searchRecommendList,function(a,o){return t("el-carousel-item",{key:o},[t("p",[e._v(e._s(a))])])}),1)],1):e._e()],1),t("div",{staticClass:"suffix"},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.searchValue,expression:"searchValue"}],staticClass:"btn",attrs:{title:"清除"},on:{click:e.handleSearchClear}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_close_v5.png",alt:"清除"}})]),t("div",{staticClass:"btn",attrs:{title:"搜索"},on:{click:e.handleSearchSubmit}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_search_v5.png",alt:"搜索"}})])])]),t("div",{staticClass:"box"},[t("div",{staticClass:"box-left"},[e.searchRecords.length>0?t("div",{staticClass:"record"},[t("div",{staticClass:"hd"},[t("div",{staticClass:"name"},[e._v("最近搜索")]),t("div",{staticClass:"btn",attrs:{title:"清除记录"},on:{click:e.handleClearHistory}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_delete_v5.png",alt:"清除"}})])]),t("div",{staticClass:"list"},e._l(e.searchRecords,function(a,o){return t("div",{key:o,staticClass:"item",on:{click:function(t){return e.recordsSearchFn(a,"搜索记录")}}},[e._v(e._s(e.isBadWords(a)))])}
1),0)]):e._e(),e.hotList.length>0?t("div",{staticClass:"hot"},[t("div",{staticClass:"hd"},[t("div",{staticClass:"name"},[e._v("热门搜索")]),e.hotList.length>1?t("div",{staticClass:"btn",attrs:{title:"换一换"},on:{click:e.handleHotChange}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_refresh_v5.png",alt:"切换"}})]):e._e()]),t("div",{staticClass:"list"},e._l(e.hotList[e.hotCurrent],function(a,o){return t("div",{key:o,staticClass:"item",on:{click:function(t){return e.recordsSearchFn(a.hot,"搜索记录")}}},[o<3&&e.hotList[e.hotCurrent].length-o>1?t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_fire_v5.png",alt:"hot"}}):t("i"),t("p",[e._v(e._s(a.hot))])])}),0)]):e._e()]),e.searchAdvList.length>0?t("div",{staticClass:"box-right"},[t("div",{staticClass:"more-name"},[e._v(e._s(e.searchAdvTitle||"更多商品"))]),t("div",{class:["products","products-"+e.searchAdvType]},[t("el-carousel",{ref:"productsCarousel",attrs:{autoplay:!1,arrow:"never","indicator-position":"none",height:0==e.searchAdvType?"393px":"301px"},on:{change:e.productsCarouselChange}},e._l(e.searchAdvList,function(a,o){return t("el-carousel-item",{key:o},[0==e.searchAdvType?t("div",{staticClass:"list"},e._l(a,function(a,r){return t("div",{key:o+"-"+r,staticClass:"item",on:{click:function(t){return e.toGoodsDetail(a)}}},[t("div",{staticClass:"top"},[t("div",{staticClass:"tags"},[1==a.isHot?t("div",{staticClass:"tags-txt"},[e._v("热卖")]):e._e(),1==a.isNew?t("div",{staticClass:"tags-txt"},[e._v("新品")]):e._e()])]),t("div",{staticClass:"thumb"},[t("el-image",{attrs:{src:a.thumb,fit:"cover"}})],1),t("div",{staticClass:"caption"},[a.brandName||a.seriesName?t("div",{staticClass:"brand"},[e._v(e._s(a.brandName||"")+e._s(a.seriesName?(a.brandName?" ":"")+a.seriesName:""))]):e._e(),t("div",{staticClass:"title"},[e._v(e._s(a.title))])]),t("div",{staticClass:"tag-wrap"},[a.labels&&a.labels.length>0?[e._l(a.labels,function(a,o){return[a.Price?t("span",[e._v("满"+e._s(a.Price)+"件"+e._s(parseInt((10*parseFloat(a.DerateMoney)).toFixed(2)))+"折")]):a.tag?t("span",[e._v(e._s(a.tag))]):e._e()]})]:e._e()],2),t("div",{staticClass:"price"},[t("div",{staticClass:"price-show"},[t("span",{staticClass:"yen"},[e._v("¥")]),e._v(e._s(e.$utils.priceFormat(Number(a.marketingPrice)>0&&Number(a.marketingPrice)<Number(a.shopPrice)?a.marketingPrice:a.shopPrice)[0])),t("span",[e._v("."+e._s(e.$utils.priceFormat(Number(a.marketingPrice)>0&&Number(a.marketingPrice)<Number(a.shopPrice)?a.marketingPrice:a.shopPrice)[1]))]),t("span",{staticClass:"qi"},[e._v("起")])]),Number(a.marketingPrice)>0&&Number(a.marketingPrice)<Number(a.shopPrice)?t("div",{staticClass:"price-shop"},[t("span",{staticClass:"yen"},[e._v("¥")]),t("span",{staticClass:"line-throungh"},[e._v(e._s(e.$utils.priceFormat(a.shopPrice)[2]))])]):e._e()])])}),0):t("div",{staticClass:"series"},e._l(a,function(a,r){return t("div",{key:o+"-"+r,staticClass:"item",on:{click:function(t){return e.handleLink(a)}}},[t("div",{staticClass:"thumb"},[t("el-image",{attrs:{src:a.srcLink,fit:"cover"}})],1),t("div",{staticClass:"name"},[e._v(e._s(a.title))])])}),0)])}),1),e.searchAdvList.length>1?t("div",{staticClass:"swiper-arrow-2 swiper-arrow-2-left",on:{click:function(t){return t.stopPropagation(),e.handleProductsChange("prev")}}}):e._e(),e.searchAdvList.length>1?t("div",{staticClass:"swiper-arrow-2 swiper-arrow-2-right",on:{click:function(t){return t.stopPropagation(),e.handleProductsChange("next")}}}):e._e(),e.searchAdvList.length>1?t("div",{staticClass:"swiper-slider"},[t("div",{staticClass:"slider-bar"},[t("div",{staticClass:"slider-show",style:"width:"+(e.searchAdvCurrent+1)/e.searchAdvList.length*100+"%;"})])]):e._e()],1)]):e._e()])])])]),t("div",{staticClass:"pop-mask"})],1),t("el-drawer",{attrs:{visible:e.cartPopVisible,"append-to-body":"",direction:"rtl","show-close":!1,withHeader:!1,size:"528px"},on:{"update:visible":function(t){e.cartPopVisible=t}}},[t("div",{class:["cart-pop",e.validList.length>0?"has":""]},[t("div",{staticClass:"cart-hd"},[t("div",{staticClass:"tit font-title"},[e._v("购物袋")]),t("div",{staticClass:"total"},[e._v(e._s(e.validList.length)+"件商品")])]),t("div",{staticClass:"cart-bd"},[t("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[t("div",{staticClass:"list"},e._l(e.validList,function(a,o){return t("div",{key:o,staticClass:"item",on:{click:function(t){return e.selectCartGoods(a)}}},[t("div",{class:["custom-checkbox",a.selected?"checked":""]}),t("div",{staticClass:"thumb",on:{click:function(t){return t.stopPropagation(),e.toPageBlank(`/goods?mouldNo=${a.mouldNo}`,{isGoodsGio:!0,module_var:"正常商品",module2_var:"-",position_var:o,productNo_var:a.mouldNo,productName_var:a.titleInfo||""})}}},[t("el-image",{staticClass:"img",attrs:{src:a.thumb,fit:"cover"}})],1),t("div",{staticClass:"detail"},[t("div",{staticClass:"num"},[t("img",{attrs:{src:"https://cdn.ctfmall.com/path/shutoff_v5.png",alt:"数量"}}),e._v(e._s(a.buyNum))]),t("div",{staticClass:"caption"},[a.brandName||a.seriesName?t("div",{staticClass:"brand"},[e._v(e._s(a.brandName||"")+e._s(a.seriesName?(a.brandName?" ":"")+a.seriesName:""))]):e._e(
1),t("div",{staticClass:"title"},[e._v(e._s(a.newTitle||a.title))])]),a.category&&a.category.length>0?t("div",{staticClass:"category"},e._l(a.category,function(a,o){return t("div",{key:o,staticClass:"category-item"},[e._v(e._s(a.label)),t("span",{staticClass:"val"},[e._v(e._s(a.value))]),e._v(";")])}),0):e._e(),t("div",{staticClass:"price"},[t("div",{staticClass:"price-show"},[t("span",{staticClass:"yen"},[e._v("¥")]),e._v(e._s(e.$utils.priceFormat(Number(a.marketingPrice)>0&&Number(a.marketingPrice)<Number(a.shopPrice)?a.marketingPrice:a.shopPrice)[0])),t("span",[e._v("."+e._s(e.$utils.priceFormat(Number(a.marketingPrice)>0&&Number(a.marketingPrice)<Number(a.shopPrice)?a.marketingPrice:a.shopPrice)[1]))]),t("span",{staticClass:"qi"},[e._v("起")])]),Number(a.marketingPrice)>0&&Number(a.marketingPrice)<Number(a.shopPrice)?t("div",{staticClass:"price-shop"},[t("span",{staticClass:"yen"},[e._v("¥")]),t("span",{staticClass:"line-throungh"},[e._v(e._s(e.$utils.priceFormat(a.shopPrice)[2]))])]):e._e()])])])}),0)])],1),t("div",{staticClass:"cart-fd"},[e.validList.length>0?t("div",{staticClass:"info"},[t("div",{staticClass:"left"},[t("div",{staticClass:"all",on:{click:e.setAllSelect}},[t("div",{class:["custom-checkbox",e.allSelect?"checked":""]}),e._v("全选 ")]),t("div",{staticClass:"selected"},[e._v("已选"+e._s(e.selectNum))])]),t("div",{staticClass:"right"},[e._v("总额¥"+e._s(e.$utils.priceFormat(e.orderTotal)[2]))])]):e._e(),t("div",{staticClass:"opera"},[e.validList.length>0?t("div",{staticClass:"common-btn common-btn-fill-red-1",on:{click:e.toPayFn}},[e._v("去结算")]):e._e(),t("div",{staticClass:"common-btn common-btn-outlined-red-2",on:{click:e.cartPopoverClickFn}},[e._v("查看购物袋")])])])])])],1)},C=[function(){var e=this,t=e._self._c;return t("div",{staticClass:"icon"},[t("img",{staticClass:"img-normal",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_gold2_v5.png",alt:"金价"}}),t("img",{staticClass:"img-hover",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_gold1_v5.png",alt:"金价"}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"icon"},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_search_v5.png",alt:"搜索"}})])},function(){var e=this,t=e._self._c;return t("div",{staticClass:"icon"},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_address_v5.png",alt:"门店"}})])}],k=a(7967),S=a(513),T=a(9888),P=a(1297),A={props:{navHeight:{type:Number|String,default:0}},data(){return{todayPrice:{},showTodayPrice:!1,todayPriceTimer:null,todayPriceAd:"",showSearchPop:!1,searchValue:"",searchPlaceholder:"请输入",searchFocus:!1,searchRecommendList:[],searchRecords:[],hotList:[],hotCurrent:0,badWord:[],searchAdvList:[],searchAdvCurrent:0,searchAdvType:-1,searchAdvTitle:"",cartPopVisible:!1}},computed:{...(0,n.L8)(["userInfo","showTopNotice"]),idToken(){return this.$store.state.user.idToken},validList(){return this.$store.state.cart.validList},selectNum(){return this.$store.state.cart.selectNum},allSelect(){return this.$store.state.cart.allSelect},orderTotal(){return this.$store.state.cart.orderTotal}},watch:{validList:{handler(e){},immediate:!0,deep:!0}},created(){this.getTodayPrice(),this.searchInit()},mounted(){document.body.addEventListener("click",this.handleCloseSearchPop,!1),0!=this.userInfo.uid&&this.$store.dispatch("cart/syncusercartFnVuex")},beforeDestroy(){document.body.removeEventListener("click",this.handleCloseSearchPop)},methods:{getTodayPrice(){(0,k["do"])().then(e=>{if(e.data){let t=e.data;t.inputTime&&(t.inputTimeText=this.$utils.dateFormat("YYYY年mm月dd日 HH:MM:SS",new Date(t.inputTime.replace(/-/g,"/")))),t.readTime&&(t.readTimeText=this.$utils.dateFormat("YYYY年mm月dd日 HH:MM:SS",new Date(t.readTime.replace(/-/g,"/")))),t.copywriting&&(t.copywritingText=t.copywriting.replace(/\n/g,"<br>")),this.todayPrice=t}}),(0,k.W$)().then(e=>{e.data&&e.data.homeAdSrc&&(this.todayPriceAd=e.data.homeAdSrc)})},handleShowTodayPrice(){clearTimeout(this.todayPriceTimer),this.showTodayPrice=!0,this.$emit("goldPricePop",!0),this.gioClickFn("今日金价")},handleCloseTodayPrice(e){clearTimeout(this.todayPriceTimer),this.todayPriceTimer=setTimeout(()=>{this.showTodayPrice=!1,this.$emit("goldPricePop",!1)},e)},handleShowSearchPop(){this.showSearchPop?this.handleCloseSearchPop():(this.showSearchPop=!0,this.$emit("searchPop",!0))},handleCloseSearchPop(){this.showSearchPop=!1,this.$emit("searchPop",!1)},searchInit(){this.getKeyWordList(1),this.getKeyWordList(2),this.searchRecords=this.$localStorage.getItem("searchRecords")?this.$localStorage.getItem("searchRecords"):[],this.get
1SearchAdv()},getKeyWordList(e){(0,k.Kt)({type:e,uid:this.userInfo.uid?this.userInfo.uid:parseInt(1e6*Math.random())}).then(t=>{if(0==t.code&&t.data&&t.data.result){let a=[];switch(e){case 1:let e=15,o=Math.ceil(t.data.result.length/e);for(let r=0;r<o;r++)a.push(t.data.result.slice(r*e,r*e+e));this.hotCurrent=0,this.hotList=a,this.$localStorage.setItem({name:"recommendRequestId",value:JSON.stringify(t.data.request_id)});break;case 2:t.data.result.forEach(e=>{a.push(e.hint)}),this.searchRecommendList=a,this.searchPlaceholder=a[0],this.$localStorage.setItem({name:"hotRequestId",value:JSON.stringify(t.data.request_id)});break}}})},getBadWordsFn(){(0,k.xn)().then(e=>{"1"==e.retcode&&(this.badWord=e.data)})},getSearchAdv(){(0,k.u8)().then(e=>{if(e.data&&e.data.data&&e.data.data.length>0){this.searchAdvType=e.data.data[0].goodsId>0?0:1;let t=[],a=3,o=Math.ceil(e.data.data.length/a);for(let r=0;r<o;r++)t.push(e.data.data.slice(r*a,r*a+a));this.searchAdvList=t,this.searchAdvTitle=e.data.title}})},handleSearchFocus(){this.searchFocus=!0},handleSearchBlur(){this.searchFocus=!1},searchRecommendChange(e){this.searchPlaceholder=this.searchRecommendList[e]},handleSearchClear(){this.searchValue="",this.$nextTick(()=>{this.$refs.search_popup_input.focus()})},handleSearchSubmit(e){this.isOpenSearch=!this.searchValue;let t="";this.isOpenSearch&&(t=1);for(var a=decodeURI(window.location.href),o=a.indexOf("?"),r=a.substring(o+1),i=r.split("&"),s={},n=0;n<i.length;n++){var c=i[n].split("=");s[c[0]]=c[1]}if(s&&s.keyword===this.searchValue&&this.searchValue===this.searchRecords[0])return this.handleCloseSearchPop(),void(this.searchValue="");let l="";this.searchValue||(l="底纹搜索");let u=this.searchValue?this.searchValue:this.searchPlaceholder;this.seveSearchValue(u),this.handleCloseSearchPop(),this.keywordSearchFn(u).then(()=>{this.$router.push({path:"/goodsList",meta:{isGoods:!1},query:{keyword:u,isOpenSearch:this.isOpenSearch,openSearchType:t,isSearchView:!0,searchType:l}})})},seveSearchValue(e){if(""==e)return;let t=this.$localStorage.getItem("searchRecords")?this.$localStorage.getItem("searchRecords"):[],a=null;t.forEach((t,o)=>{t==e&&(a=o)}),null!=a&&t.splice(a,1),t.unshift(e),this.searchRecords=t,this.$localStorage.setItem({name:"searchRecords",value:t})},isBadWords(e){let t=this.badWord.some(t=>t.word==e);return t&&(e="***"),e},handleClearHistory(){this.$localStorage.removeItem("searchRecords"),this.searchRecords=[]},handleHotChange(){this.hotCurrent<this.hotList.length-1?this.hotCurrent++:this.hotCurrent=0},recordsSearchFn(e,t){this.isOpenSearch="热门搜索"===t;let a="";this.isOpenSearch&&(a=2);for(var o=decodeURI(window.location.href),r=o.indexOf("?"),i=o.substring(r+1),s=i.split("&"),n={},c=0;c<s.length;c++){var l=s[c].split("=");n[l[0]]=l[1]}this.handleCloseSearchPop(),this.seveSearchValue(e),this.isOpenSearch.toString()===n.isOpenSearch&&e===n.keyword&&a.toString()===n.openSearchType||this.keywordSearchFn(e).then(()=>{this.$router.push({path:"/goodsList",query:{keyword:e,searchType:t,isOpenSearch:this.isOpenSearch,openSearchType:a,isSearchView:!0}})})},loginPopoverClickFn(e){"/login"==e?this.$root.$emit("loginDialog"):"/register"==e?this.$root.$emit("registerDialog"):this.toView(e),this.$refs.loginPopover.doClose()},handleLogout(){this.userInfo.staff?(this.$store.dispatch("user/ClearUserInfo"),window.location.href=T.OD+`?client_id=${T.P9}&redirect_uri=${T.dZ}`):(this.$store.dispatch("user/ClearUserInfo"),window.location.href=T.fF+`/logout?redirect_uri=${T.sE}`)},productsCarouselChange(e){this.searchAdvCurrent=e},handleProductsChange(e){this.$refs.productsCarousel&&this.$refs.productsCarousel[e]()},toGoodsDetail(e){this.toPageBlank(`/goods?mouldNo=${e.mouldNo}`),this.handleCloseSearchPop()},handleLink(e){e.jumpLink&&(this.$utils.verifyWebLink(e.jumpLink)?this.toPageBlank(e.jumpLink):this.toView(e.jumpLink),this.handleCloseSearchPop())},openCartPop(){this.cartPopVisible=!0},closeCartPop(){this.cartPopVisible=!1},selectCartGoods(e){this.$store.commit("cart/setGoodsSelectVuex",e)},setAllSelect(){this.$store.commit("cart/setAllSelectVuex")},cartPopoverClickFn(){this.toView("/cart"),this.closeCartPop()},async toPayFn(){let e=[],t=0,a=0;if(this.validList.forEach(o=>{o.selected&&(e.push(o.goodID),0==t&&"EOI"!=o.sn.toLocaleUpperCase()?t=1:0==t&&"EOI"==o.sn.toLocaleUpperCase()?t=2:(2==t&&"EOI"!=o.sn.toLocaleUpperCase()||1==t&&"EOI"==o.sn.toLocaleUpperCase())&&(t=3),o.integralSpecialFunds&&a++)}),e.length<=0)return this.$toast("请勾选要结算的商品");if(3==t)return this.$toast("特殊商品不能与普通商品同时购买,请分开下单");if(!this.userInfo.staff&&a>0&&a!=e.length)return this.$toast("积分专享商品不能与普通商品同时购买,请分开下单");if(this.userInfo.staff){let t=await this.checkStaffLimit(e);
1if(200!=t.code)return this.$toast(t.msg||"请勾选要结算的商品")}await this.$store.dispatch("cart/syncusercartFnVuex");let o=[];if(this.validList.forEach(t=>{e.indexOf(t.goodID)>=0&&(this.selectCartGoods(t),o.push({goodID:t.goodID,buyNum:t.buyNum,price:t.marketingPrice,stockQtyStore:t.stockQtyStore,stockQtyWeb:t.stockQtyWeb,attribute:t.attribute}))}),0==o.length)return this.$toast("请勾选要结算的商品");this.toView("/pay",{carts:JSON.stringify(o)}),this.closeCartPop()},checkStaffLimit(e){return new Promise(t=>{(!e||e.length<=0)&&t({code:-1,msg:"请选择结算商品!"});let a=[];e.forEach(e=>{a.push({attribute:"",goodId:e,qty:1})}),(0,S.Sb)({cartGoods:a,uid:this.userInfo.uid}).then(e=>{t(e)}).catch(e=>{t(e)})})},gioClickFn(e=""){this.gioModuleClick({module_var:e})},keywordSearchFn(e){const t=this.$loading({lock:!0});return new Promise((a,o)=>{(0,P.KC)({uid:0,pageIndex:1,pageSize:1,orderType:3,keyword:e,mid:0,isBrand:0,brandID:0,fileUrl:"",branchSelfCode:0,userType:this.userInfo&&this.userInfo.staff?3:0,requestId:0}).then(e=>{t.close();var r=e[0]||{};if(r.linkUrl)return 0==r.linkUrl.indexOf("http")?location.href=r.linkUrl:this.toView(r.linkUrl),o(),!0;a()}).catch(()=>{t.close(),a()})})}}},x=A,I=(0,h.A)(x,w,C,!1,null,"301a5df6",null),D=I.exports,N=function(){var e=this,t=e._self._c;return e.noticeShow?t("div",{staticClass:"notice-wrap"},[t("div",{staticClass:"notice"},[t("div",{staticClass:"swiper"},e._l(e.dataList,function(a,o){return t("div",{key:o,class:["swiper-item",e.current==o?"active":""]},[t("div",{staticClass:"box"},[t("div",{ref:`row-${o}`,refInFor:!0,class:["row",o==e.current?"show":"",o==e.current&&a.autoplay?"ani":""],style:"animation-duration: "+a.duration+"s;"},[t("div",{staticClass:"item"},[e._l(a._list,function(a,o){return["img"==a.type?t("img",{attrs:{src:a.value,alt:"图片"}}):t("p",[e._v(e._s(a.value))])]})],2)])])])}),0),t("div",{staticClass:"close",on:{click:function(t){return t.stopPropagation(),e.handleClose.apply(null,arguments)}}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_close_v5.png",alt:"关闭"}})])])]):e._e()},L=[],$={props:{list:{type:Array,default:()=>[]}},data(){return{noticeShow:!1,dataList:[],current:0,windowWidth:1380,timer:null,timer2:null}},watch:{list:{handler(e){if(clearTimeout(this.timer),clearTimeout(this.timer2),this.noticeShow=!1,this.$store.dispatch("setTopNoticeStatus",!1),this.dataList=[],this.current=0,e&&e.length>0){let t=JSON.parse(JSON.stringify(e)),a=[];this.noticeShow=!0,this.$store.dispatch("setTopNoticeStatus",!0),t.forEach(e=>{let t=e.split("<img />"),o=0,r=[];t.forEach(e=>{e&&(/^http.*[png|jpg|jpeg|gif|webp]$/.test(e)?r.push({type:"img",value:e}):(o+=e.length,r.push({type:"text",value:e})))});let i={};i._list=r,i.duration=(.3*o+3).toFixed(2),i.autoplay=!1,a.push(i)}),this.dataList=a,this.$nextTick(()=>{this.setAutoplay(),a.length>1&&this.handleAutoplay()})}},immediate:!0,deep:!0}},beforeDestroy(){clearTimeout(this.timer),clearTimeout(this.timer2)},methods:{handleClose(){clearTimeout(this.timer),clearTimeout(this.timer2),this.dataList=[],this.noticeShow=!1,this.$store.dispatch("setTopNoticeStatus",!1)},setAutoplay(){let e=this.windowWidth;this.dataList.forEach((t,a)=>{let o=this.$refs["row-"+a][0]&&this.$refs["row-"+a][0].clientWidth;o>0?o>e&&(this.dataList[a].autoplay=!0):this.dataList[a].autoplay=!0})},handleAutoplay(){clearTimeout(this.timer),clearTimeout(this.timer2),this.timer=setTimeout(()=>{let e=this.current;e++,e>=this.dataList.length&&(e=0),this.current=e,this.timer2=setTimeout(()=>{this.handleAutoplay()},500)},this.dataList[this.current]?1e3*this.dataList[this.current].duration:5e3)}}},O=$,F=(0,h.A)(O,N,L,!1,null,"03ffd668",null),M=F.exports,E=function(){var e=this,t=e._self._c;return t("div",{staticClass:"index_agr_popup_box"},[t("custom-popup-v5",{ref:"agreementUpdate",attrs:{popupType:"popup",slotContent:!0}},[t("template",{slot:"content"},[t("div",{staticClass:"index_agr_dialog"},[t("div",{staticClass:"body_box"},[t("p",[e._v("感谢您对周大福的支持和信任!")]),t("p",[e._v("为了给您提供更好的服务和体验,请您务必仔细阅读并充分理解我们最近更新的"),e._l(e.currentAgreementInfo,function(a,o){return t("span",{key:o},[t("span",{staticClass:"body_span_outside"},[e._v("《"),t("span",{staticClass:"body_span_inside",on:{click:function(t){return t.stopPropagation(),e.showAgreementInfo(a.key)}}},[e._v(e._s(a.title))]),e._v("》")]),o<e.currentAgreementInfo.length-1?t("span",[e._v("、")]):e._e(
1)])}),e._v("。点击条款名称可前往查看详细条款内容,我们将按照最新的条款为您提供服务。")],2),t("p",[e._v("如果您不同意,将影响使用周大福珠宝的产品和服务。")])])])])],2),t("custom-popup-v5",{ref:"agreementPopup",attrs:{popupType:"popup",width:832,slotContent:!0,optionBottomBtn:!1}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"login_slot_agre_box"},[t("div",{staticClass:"login_agreement_popup_box"},[t("el-image",{staticClass:"login_agreement_popup_img",attrs:{placeholder:"载入中",src:e.agreementShowUrl}})],1)])])])],1)},R=[],U=a(3007),V={name:"",props:{currentAgreementInfo:{type:Array,default:()=>[]},agreementInfo:{type:Object,default:()=>({})}},data(){return{clauseTitle:"",agreementShowUrl:"",loading:!1,isDialogShow:!1,agreeAgreement325:!1}},computed:{...(0,n.L8)(["userInfo"])},created(){},mounted(){},methods:{showPopup(){this.$refs.agreementUpdate&&this.$refs.agreementUpdate.showModal({title:"周大福相关条款变更提示",showCancel:!0,cancelText:"不同意并退出",confirmText:"我已知悉并同意",showClose:!1,isClickMask:!1,success:e=>{"cancel"==e?this.logOut():"confirm"==e&&this.handleAgreeAgreement()}})},hidePopup(){this.$refs.agreementUpdate&&this.$refs.agreementUpdate.hideModal()},ConformError(){},showAgreementInfo(e){if("CTF_Reward_Plan_And_Detail_Preview"==e)return this.clauseTitle="《周大福会员计划条款及细则》(20260622更新版)",this.agreementShowUrl="https://cdn.ctfmall.com/source/misc/20260615124615_9231.jpg",void(this.$refs.agreementPopup&&this.$refs.agreementPopup.showModal({title:"《周大福会员计划条款及细则》(20260622更新版)"}));this.isDialogShow=!0,this.loading=!0;let t={clauseKeys:[e]};(0,U.O6)(t).then(t=>{this.loading=!1,200==t.resultCode?(this.clauseTitle=t.data[e].clauseTitle,this.agreementShowUrl=t.data[e].clauseUrl,this.$refs.agreementPopup&&this.$refs.agreementPopup.showModal({title:this.clauseTitle,success:()=>{this.isDialogShow=!1}})):this.$toast(t.resultMessage)})},handleAgreeAgreement(){for(var e=0;e<this.currentAgreementInfo.length;e++)this.$emit("submitAgreementRequest",this.currentAgreementInfo[e].key)},logOut(){this.userInfo.staff?(this.$store.dispatch("user/ClearUserInfo"),window.location.href=T.OD+`?client_id=${T.P9}&redirect_uri=${T.dZ}`):(this.$store.dispatch("user/ClearUserInfo"),window.location.href=T.fF+`/logout?redirect_uri=${T.sE}`)}}},j=V,G=(0,h.A)(j,E,R,!1,null,"113c201d",null),B=G.exports,q=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{visible:e.isDialogReceiving,"append-to-body":"",direction:"rtl","show-close":!1,withHeader:!1,size:"528px"},on:{"update:visible":function(t){e.isDialogReceiving=t},close:function(t){return e.handleClose("close")}}},[t("div",{staticClass:"pop"},[t("div",{staticClass:"hd"},[t("div",{staticClass:"tit font-title"},[e._v(e._s(e.loginTabSelect))]),t("div",{staticClass:"close cursor-pointer",on:{click:function(t){return e.handleClose("close")}}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_close_v5.png",alt:""}})])]),t("div",{staticClass:"bd"},[t("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[t("Login",{staticStyle:{width:"464px"},attrs:{type:"popup"},on:{selectTabFn:e.selectTabFn,alertRegisterDialog:e.alertRegisterDialog,alertResetDialog:e.alertResetDialog}}),t("div",{staticStyle:{height:"24px"}})],1)],1)])])},z=[],K=a(2830),H={name:"",components:{Login:K.A},data(){return{isDialogReceiving:!1,loginTabSelect:"手机验证登录"}},methods:{selectTabFn(e){this.loginTabSelect=e},alertRegisterDialog(){this.$emit("alertRegisterDialog")},alertResetDialog(){this.$emit("alertResetDialog")},handleClose(){this.isDialogReceiving=!1}}},W=H,Q=(0,h.A)(W,q,z,!1,null,"99ab2d9a",null),Z=Q.exports,J=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{visible:e.isDialogReceiving,"append-to-body":"","destroy-on-close":"",direction:"rtl","show-close":!1,withHeader:!1,size:"528px"},on:{"update:visible":function(t){e.isDialogReceiving=t},close:function(t){return e.handleClose("close")}}},[t("div",{staticClass:"pop"},[t("div",{staticClass:"hd"},[t("div",{staticClass:"tit font-title"},[e._v("欢迎加入")]),t("div",{staticClass:"close cursor-pointer",on:{click:function(t){return e.handleClose("close")}}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_close_v5.png",alt:""}})])]),t("div",{staticClass:"bd"},[t("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[t("Register",{staticStyle:{width:"464px"},attrs:{type:"popup"}}),t("div",{staticStyle:{height:"24px"}})],1)],1)])])},Y=[],X=a(2634),ee={components:{Register:X.A},data(){return{isDialogReceiving:!1}},methods:{handleClose(){this.isDialogReceiving=!1}}},te=ee,ae=(0,h.A)(te,J,Y,!1,null,"700483c8",null),oe=ae.exports,re=function(){var e=this,t=e._self._c;return t("div",[t("custom-popup-v5",{ref:"pop1",attrs:{slotContent:!0}},[t("div",{staticClass:"pop-cont",attrs:{slot:"content"},slot:"content"},[t("div",[e._v("当前账户"+e._s(e.reason?"因发生"+e.reason:"交易,")+"存在被盗用的风险。")]),t("div",[t("span",{staticClass:"txt"},[e._v("为保护您的账户安全及会员权益,已启动会员账户保护机制:")]),e._v("您可正常登录并查询相关会员信息,但暂时无法享有/使用各项会员权益。")]),t("div",[e._v("您可以点击“验证”申请恢复。如您有任何疑问,
1可致电"),t("span",[e._v("4001669999")]),e._v("咨询详情。")])])]),t("custom-popup-v5",{ref:"pop2",attrs:{slotContent:!0}},[t("div",{staticClass:"pop-cont",attrs:{slot:"content"},slot:"content"},[t("div",[e._v("当前账户"+e._s(e.reason?"因发生"+e.reason:"交易,")+"存在被盗用的风险。")]),t("div",[t("span",{staticClass:"txt"},[e._v("为保护您的账户安全及会员权益,已启动会员账户保护机制:")]),e._v("您可正常登录并查询相关会员信息,但暂时无法享有/使用各项会员权益。")]),t("div",[e._v("如您有疑问,可致电"),t("span",[e._v("4001669999")]),e._v("咨询或联系在线客服咨询。")])])]),t("custom-popup-v5",{ref:"pop3",attrs:{slotContent:!0}},[t("div",{staticClass:"pop-cont",attrs:{slot:"content"},slot:"content"},[t("div",[e._v("当前账户存在违反《"),t("span",{staticClass:"line",on:{click:function(t){return t.stopPropagation(),e.showAgreementInfo("CTF_Reward_Plan_And_Detail_V2")}}},[e._v(e._s(e.agreement.CTF_Reward_Plan_And_Detail_V2.clauseTitle))]),e._v("》约定的使用行为,已触发系统冻结,暂时无法享有/使用各项会员权益。")]),t("div",[e._v("如您有疑问,
1可联系客服咨询详情。")])])]),t("custom-popup-v5",{ref:"agreementPopup",attrs:{popupType:"popup",width:832,slotContent:!0,optionBottomBtn:!1}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.agreementShowLoading,expression:"agreementShowLoading"}],staticClass:"login_slot_agre_box"},[t("div",{staticClass:"login_agreement_popup_box"},[t("el-image",{staticClass:"login_agreement_popup_img",attrs:{placeholder:"载入中",src:e.agreementShowUrl}})],1)])])]),t("verification",{ref:"verification"})],1)},ie=[],se=a(283),ne=function(){var e=this,t=e._self._c;return t("div",[t("el-drawer",{attrs:{visible:e.isShow,"append-to-body":"",direction:"rtl","show-close":!1,withHeader:!1,size:"528px"},on:{"update:visible":function(t){e.isShow=t},close:function(t){return e.handleClose("close")}}},[t("div",{staticClass:"pop"},[t("div",{staticClass:"hd"},[t("div",{staticClass:"tit font-title"},[e._v("会员账户验证")]),t("div",{staticClass:"close cursor-pointer",on:{click:function(t){return e.handleClose("close")}}},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_close_v5.png",alt:""}})])]),t("div",{staticClass:"bd"},[t("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[t("div",{staticClass:"form"},[t("div",{staticClass:"icon"},[t("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/setpasswordok_v5.png",alt:""}})]),t("div",{staticClass:"explain"},[e._v("您的账户存在被盗用的风险。"),t("span",[e._v("为保护您的账号安全及会员权益,已启动保护机制,")]),e._v("请验证以下问题,申请账户恢复:")]),t("div",{staticClass:"tips"},[e._v("请您回答以下问题,核验用卡相关信息,以提交验证解冻:")]),t("el-form",{ref:"form",attrs:{model:e.form,rules:e.formRules}},[t("el-form-item",{attrs:{prop:"phone"}},[t("div",{staticClass:"input-wrap"},[t("div",{class:{textplaceholder:!0,fixed:e.phoneFocus||e.form.phone.length>0}},[e._v("请输入手机号")]),t("el-input",{attrs:{readonly:""},model:{value:e.form.phone,callback:function(t){e.$set(e.form,"phone",t)},expression:"form.phone"}})],1)]),t("el-form-item",{attrs:{prop:"smsCode"}},[t("div",{staticClass:"input-wrap"},[t("div",{class:{textplaceholder:!0,fixed:e.smsCodeFocus||e.form.smsCode.length>0}},[e._v("请输入验证码")]),t("el-input",{on:{focus:function(t){return e.handleFocus("smsCode")},blur:function(t){return e.handleBlur("smsCode")}},model:{value:e.form.smsCode,callback:function(t){e.$set(e.form,"smsCode",t)},expression:"form.smsCode"}}),t("div",{class:["countdown",e.countdown.disabled?"disabled":""],on:{click:function(t){return t.stopPropagation(),e.handleSend.apply(null,arguments)}}},[e._v(e._s(e.countdown.text))])],1)]),t("el-form-item",{attrs:{prop:"captcha"}},[t("div",{staticClass:"captcha-wrap"},[t("div",{attrs:{id:"captchaMemberFreeze"}})])]),t("el-form-item",{attrs:{prop:"agree"}},[t("div",{staticClass:"agree"},[t("div",{staticClass:"item cursor-pointer",on:{click:function(t){return e.handleCheckbox("agree1")}}},[t("div",{class:["custom-checkbox",e.form.agree1?"checked":""]}),t("div",[e._v("您确认本账户仅由本人使用")])]),t("div",{staticClass:"item cursor-pointer",on:{click:function(t){return e.handleCheckbox("agree2")}}},[t("div",{class:["custom-checkbox",e.form.agree2?"checked":""]}),t("div",[e._v("您确认未出借/透露会员卡相关信息给其他人使用")])])])])],1),t("div",{staticClass:"btn common-btn common-btn-fill-red-1",on:{click:e.submitForm}},[e._v("提交")])],1),t("div",{staticStyle:{height:"24px"}})])],1)])]),t("custom-popup-v5",{ref:"resultPop",attrs:{slotContent:!0}},[t("div",{staticClass:"pop-result",attrs:{slot:"content"},slot:"content"},[t("div",{staticClass:"hd"},[t("img",{attrs:{src:"https://cdn.ctfmall.com/path/submitted_v5.png",alt:""}})]),t("div",{staticClass:"tit"},[e._v("已解除账户保护机制")]),t("div",{staticClass:"txt"},[e._v("*温馨提醒:为保护您的账户安全及会员权益,请您妥善保管并规范使用会员卡。"),t("span",[e._v("若系统再次启动保护机制,将转入人工审核、处理时长会相应延长,敬请知悉。")])])])])],1
1)},ce=[],le=a(366),ue={data(){const e=(e,t,a)=>{if(!this.form.agree1||!this.form.agree2)return a(new Error("请回答并勾选问题"));a()};return{isShow:!1,form:{phone:"",smsCode:"",captcha:"",agree1:!1,agree2:!1},phoneFocus:!1,smsCodeFocus:!1,formRules:{smsCode:[{required:!0,message:"请输入验证码",trigger:"blur"}],captcha:[{required:!0,message:"请点击按钮进行验证",trigger:"blur"}],agree:[{validator:e,required:!0,trigger:"blur"}]},countdown:{num:60,timer:null,text:"发送验证码",disabled:!1},captcha:{show:!1,captcha_id:"",captcha_output:"",gen_time:"",lot_number:"",pass_token:"",obj:null,isGeetest:!1,needGeetestAgain:!1}}},computed:{...(0,n.L8)(["userInfo","bodyZoom"])},methods:{show(){this.form.phone=this.userInfo.phone,this.form.smsCode="",this.form.agree1=!1,this.form.agree2=!1,this.isShow=!0,this.getGeetestInfo(),this.$nextTick(()=>{this.$refs.form&&this.$refs.form.clearValidate()})},handleClose(){this.isShow=!1},getGeetestInfo(){this.captcha.show||(this.captcha.show=!0,this.$nextTick(()=>{initGeetest4({captchaId:this.$config.CAPTCHA_ID,product:"popup",nativeButton:{width:"464px",height:"48px"}},e=>{this.captcha.obj=e,document.getElementById("captchaMemberFreeze").innerHTML="",e.appendTo("#captchaMemberFreeze"),setTimeout(()=>{let e=document.getElementsByClassName("geetest_popup_wrap");if(e&&e.length>0)for(let t=0;t<e.length;t++)e[t]&&(e[t].style.zoom=1/this.bodyZoom)},500),e.onSuccess(()=>{let t=e.getValidate();t&&(this.captcha.captcha_id=t.captcha_id,this.captcha.captcha_output=t.captcha_output,this.captcha.gen_time=t.gen_time,this.captcha.lot_number=t.lot_number,this.captcha.pass_token=t.pass_token,this.captcha.isGeetest=!0,this.captcha.needGeetestAgain=!1,this.form.captcha="1",this.$refs.form.clearValidate("captcha"))})})}))},handleFocus(e){this[e+"Focus"]=!0},handleBlur(e){this[e+"Focus"]=!1},handleSend(){if(this.countdown.disabled)return!1;this.$refs.form.validateField("phone",e=>{e||(this.captcha.needGeetestAgain&&(this.form.captcha=""),this.$refs.form.validateField("captcha",e=>{e?this.captcha.obj&&this.captcha.obj.reset():(this.countdown.disabled=!0,this.countdown.text="发送中",(0,le.QC)({phone:this.userInfo.phone2,Content:"",operationType:24,captcha_id:this.captcha.captcha_id,captcha_output:this.captcha.captcha_output,gen_time:this.captcha.gen_time,lot_number:this.captcha.lot_number,pass_token:this.captcha.pass_token}).then(e=>{1==e.retcode?(this.$toast("发送验证码成功"),this.handleCountdonw()):(this.$toast("发送失败"+(e.retmsg?":"+e.retmsg:",请稍后再试")),this.countdown.disabled=!1,this.countdown.text="重新发送",this.captcha.isGeetest=!1,this.form.captcha="",this.captcha.obj&&this.captcha.obj.reset())}).catch(()=>{this.$toast("发送失败,请稍后再试")}))}))})},handleCountdonw(){let e=this.countdown.num;e--,e<=0?(this.countdown.num=60,this.countdown.disabled=!1,this.countdown.text="重新发送",this.captcha.needGeetestAgain=!0):(this.countdown.num=e,this.countdown.text=e+"s",this.countdown.timer=setTimeout(()=>{this.handleCountdonw()},1e3))},handleCheckbox(e){this.form[e]=!this.form[e],this.$nextTick(()=>{this.$refs.form&&this.$refs.form.clearValidate("agree")})},submitForm(){this.$refs.form.validate(e=>{if(!e)return!1;{const e=this.$loading({lock:!0});(0,le.NL)({phoneNum:this.userInfo.phone2,verifyCode:this.form.smsCode,operationType:24}).then(t=>{1==t.retcode?(0,se.F9)({cardNo:this.userInfo.cardNo,description:"首次验证解冻",sourceSystem:"OFFICIAL_MALL"}).then(a=>{200==a.code?this.$refs.resultPop&&this.$refs.resultPop.showModal({title:"验证成功",isClickMask:!1,success:()=>{this.$router.go(0)}}):(e.close(),this.$toast(t.message||t.msg||"解冻失败"))}).catch(()=>{e.close(),this.$toast("解冻失败")}):(e.close(),this.$toast(t[0]&&t[0].retmsg?t[0].retmsg:"短信验证失败"))}).catch(()=>{e.close(),this.$toast("短信验证失败")})}})}}},de=ue,he=(0,h.A)(de,ne,ce,!1,null,"435d7a83",null),pe=he.exports,me={components:{verification:pe},data(){return{dataList:[],reason:"",agreementDialogShow:!1,agreementShowTitle:"",agreementShowUrl:"",agreementShowLoading:!1,agreement:{CTF_Reward_Plan_And_Detail_V2:{clauseKey:"CTF_Reward_Plan_And_Detail_V2",clauseTitle:"周大福会员计划的条款及细则",clauseVersion:"",clauseUrl:""}}}},computed:{...(0,n.L8)(["userInfo"])},methods:{check(){this.getFreezeReason().then(e=>{if(e){this.reason=e.reason;this.$route.path;1==e.type?this.showPop1():2==e.type?this.showPop2():this.showPop3()}})},getFreezeList(e,t){return new Promise(a=>{if(this.dataList.length>0)return a({records:this.dataList,total:this.dataList.length}),!1;(0,se.VX)({cardNo:this.userInfo.cardNo,pageIndex:e,pageSize:t,sourceSystem:"OFFICIAL_MALL"}).then(e=>{200==e.code&&e.data&&e.data.records&&e.data.records.length>0?a(e.data):a(null)}
1).catch(()=>{a(null)})})},getFreezeReason(){return new Promise(e=>{this.getFreezeList(1,5).then(t=>{if(t)if(t.total>t.records.length)this.getFreezeList(1,t.total).then(a=>{if(a){this.dataList=a.records;let t=a.records.find(e=>!e.unfreezeTimeActual);e(t?this.handleResult(t):null)}else{this.dataList=t.records;let a=t.records.find(e=>!e.unfreezeTimeActual);e(a?this.handleResult(a):null)}});else{this.dataList=t.records;let a=t.records.find(e=>!e.unfreezeTimeActual);e(a?this.handleResult(a):null)}else e(null)})})},handleResult(e={}){let t=3,a=`当前账户存在违反《${this.agreement.CTF_Reward_Plan_And_Detail_V2.clauseTitle}》约定的使用行为,已触发系统冻结,暂时无法享有/使用各项会员权益。如您有疑问,可联系客服咨询详情。`;return"RMAP"==e.frozenSource&&(1==e.frozonCount?(t=1,a="您的会员账户已启动保护机制,可点击进行“验证”恢复。"):2==e.frozonCount&&(t=2,a="您的会员账户已启动保护机制,您可致电 400166999咨询或联系在线客服咨询。")),{type:t,reason:e.abnormalBehaviorSummary||"",text:a}},showPop1(){this.$refs.pop1&&this.$refs.pop1.showModal({title:"账户安全提醒",isClickMask:!1,showCancel:!0,cancelText:"返回",confirmText:"验证",success:e=>{"confirm"==e&&setTimeout(()=>{this.$refs.verification&&this.$refs.verification.show()},300)}})},showPop2(){this.$refs.pop2&&this.$refs.pop2.showModal({title:"账户安全提醒",isClickMask:!1,showCancel:!0,cancelText:"返回",confirmText:"联系客服",success:e=>{"confirm"==e&&this.$root.$emit("toUdesk")}})},showPop3(){this.$refs.pop3&&this.$refs.pop3.showModal({title:"账户提醒",isClickMask:!1,showCancel:!0,cancelText:"返回",confirmText:"联系客服",success:e=>{"confirm"==e&&this.$root.$emit("toUdesk")}})},showAgreementInfo(e){if(this.agreement[e].clauseUrl)return this.agreementShowTitle=this.agreement[e].clauseTitle,this.agreementShowUrl=this.agreement[e].clauseUrl,this.$refs.agreementPopup&&this.$refs.agreementPopup.showModal({title:this.agreementShowTitle,success:()=>{this.isDialogShow=!1}}),!1;this.agreementShowLoading=!0;let t={clauseKeys:[e]};(0,U.O6)(t).then(t=>{this.agreementShowLoading=!1,200==t.resultCode?(this.agreementShowTitle=t.data[e].clauseTitle,this.agreementShowUrl=t.data[e].clauseUrl,this.$refs.agreementPopup&&this.$refs.agreementPopup.showModal({title:this.agreementShowTitle,success:()=>{this.isDialogShow=!1}})):this.$toast(t.resultMessage)})}}},ge=me,fe=(0,h.A)(ge,re,ie,!1,null,"4e7c30a7",null),ve=fe.exports,_e=a(3269),ye=a(8987),be=a(2571),we={components:{IndexBottom:m,IndexTab:b,IndexLogo:D,IndexNotice:M,LoginDialog:Z,RegisterDialog:oe,IndexAgrPopup:B,MemberFreeze:ve},data(){return{backTopShow:!1,backTopAllow:!0,backSeconds:50,showPx:200,carouselIndex:0,drawer:!1,footers:[],notices:[],isTopViewShow:!0,isBottomShow:!0,drawerPopupMaskHeight:0,getDataFlag:!0,agreementCheckList:["Personal_information_collection_statement_V2","CTF_Reward_Plan_And_Detail_V2","CTFMALL_User_Agreement_1"],currentAgreementIndex:0,currentAgreementInfo:[],agreement:{CTFMALL_User_Agreement_1:{clauseKey:"CTFMALL_User_Agreement_1",clauseTitle:"周大福平台用户协议",clauseVersion:"",clauseUrl:""},CTFMALL_User_Agreement_Preview:{clauseKey:"CTFMALL_User_Agreement_Preview",clauseTitle:"周大福平台用户协议",clauseVersion:"",clauseUrl:""},KDP_Reward_Plan_And_Details:{clauseKey:"KDP_Reward_Plan_And_Details",clauseTitle:"K分赏会员奖赏计划的条款及细则",clauseVersion:"",clauseUrl:""},Personal_information_collection_statement:{clauseKey:"Personal_information_collection_statement",clauseTitle:"周大福平台个人信息收集声明",clauseVersion:"",clauseUrl:""},Personal_information_collection_statement_V2:{clauseKey:"Personal_information_collection_statement_V2",clauseTitle:"周大福平台个人信息收集声明",clauseVersion:"",clauseUrl:""},Terms_conditions_of_the_Membership_scheme:{clauseKey:"Terms_conditions_of_the_Membership_scheme",clauseTitle:"周大福会员计划的条款及细则",clauseVersion:"",clauseUrl:""},PICS_KDP:{clauseKey:"PICS_KDP",clauseTitle:"K分赏个人信息收集声明",clauseVersion:"",clauseUrl:""}
1,CTF_Reward_Plan_And_Detail:{clauseKey:"CTF_Reward_Plan_And_Detail",clauseTitle:"周大福会员计划的条款及细则",clauseVersion:"",clauseUrl:""},CTF_Reward_Plan_And_Detail_V2:{clauseKey:"CTF_Reward_Plan_And_Detail_V2",clauseTitle:"周大福会员计划的条款及细则(20250401版)",clauseVersion:"",clauseUrl:""},Membership_Migration_Arrangement_Explanation:{clauseKey:"Membership_Migration_Arrangement_Explanation",clauseTitle:"周大福会员计划会籍迁移安排说明",clauseVersion:"",clauseUrl:""}},goodsDetail:null,isOpenSearch:!1,scrollTop:0,scrollDirection:0,headerStyle:0,headerAni:!0,searchPopStatus:!1,goldPricePopStatus:!1,categoryPopStatus:!1}},watch:{$route:{handler:function(e){let t=["/submitSuccess","/payFail","/paySuccess"];t.some(t=>t==e.path)?this.isTopViewShow=!1:this.isTopViewShow=!0;let a=["/register"];a.some(t=>t==e.path)?this.isBottomShow=!1:this.isBottomShow=!0,e.query.error&&this.queryErrorMsg(e.query.error),"-9"==e.query.gt&&this.$localStorage.setItem({name:"showStock",value:!0}),"/"!=e.path&&"/home"!=e.path||this.userInfo.uid&&!this.userInfo.staff&&this.idToken&&(0,se.lj)({cardNo:this.userInfo.cardNo,sourceSystem:"OFFICIAL_MALL_WEB"},!1).then(e=>{"FROZEN"==e.status&&this.checkMemberFreeze()})},immediate:!0}},computed:{selectTabNum(){return this.$store.state.indexTab},...(0,n.L8)(["userInfo","showTopNotice"]),idToken(){return this.$store.state.user.idToken},headerHeight(){return this.showTopNotice?164:128},headerTop(){return this.headerAni=!0,this.categoryPopStatus&&(this.headerAni=!1),0==this.scrollDirection||this.searchPopStatus||this.goldPricePopStatus?((this.searchPopStatus||this.goldPricePopStatus)&&(this.headerAni=!1),this.headerStyle=0,0):this.scrollTop<=this.headerHeight-48?(this.headerStyle=0,-this.scrollTop):(this.headerStyle=1,-(this.headerHeight-48))},navHeight(){return this.headerHeight+this.headerTop}},created(){this.getAgreementInfo()},mounted(){this.$bus.$on("getGoodsDetail",e=>{this.goodsDetail=e}),window.addEventListener("scroll",this.backTopShowOperate,!0),this.gethomedataFn(),this.$route.query.code&&this.staffLoginFn(this.$route.query.code);let e=decodeURIComponent(ye.A.get("_idToken_userInfo"));e&&"undefined"!=e&&this.loginFn(JSON.parse(e)),this.$root.$on("toTop",this.backToTop),this.$root.$on("toUdesk",this.toUdesk),this.$root.$on("loginDialog",this.loginPopupShowFn),this.$root.$on("registerDialog",this.alertRegisterDialog),this.$root.$on("memberFreezeChcek",this.checkMemberFreeze),this.handleScrollFn(),window.addEventListener("scroll",this.handleScrollFn,!0)},beforeDestroy(){window.removeEventListener("scroll",this.handleScrollFn)},methods:{gethomedataFn(){this.notices=[],(0,k.RS)().then(e=>{e.data&&e.data.length>0&&this.notices.push(...e.data)}),(0,k.xs)({menuType:0}).then(e=>{if(e&&e.data&&e.data.length>0){let t="";for(let a=0;a<e.data.length;a++)if(e.data[a].jumpLink&&e.data[a].jumpLink.indexOf("/home")>=0&&e.data[a].jumpLink.indexOf("specialnew")>=0&&(t=this.$utils.getPar(e.data[a].jumpLink,"specialnew"),t)){this.$store.dispatch("setHomeTopic",t);break}this.$store.commit("setIndexTabList",this.$utils.array2Tree(e.data)),window.location.search?this.$store.commit("judgeIndexTabNum",window.location.href):this.$store.commit("judgeIndexTabNum",window.location.pathname)}else this.$store.commit("setIndexTabList"),this.$store.commit("judgeIndexTabNum",window.location.pathname)}),(0,k.xs)({menuType:1}).then(e=>{e&&e.data&&e.data.length>0&&(this.footers=this.$utils.array2Tree(e.data))})},backTopShowOperate(){this.backTopAllow&&(document.documentElement.scrollTop>this.showPx?this.backTopShow=!0:this.backTopShow=!1)},handleScrollFn(){let e=document.documentElement.scrollTop||document.body.scrollTop;e>this.scrollTop&&1!=this.scrollDirection?this.scrollDirection=1:e<=this.scrollTop&&0!=this.scrollDirection&&(this.scrollDirection=0),this.scrollTop=e},handleSearchPopStatus(e){this.searchPopStatus=e},handleGoldPricePopStatus(e){this.goldPricePopStatus=e},handleCategoryPopStatus(e){this.categoryPopStatus=e},handleSearch(){this.$refs.indexLogo&&this.$refs.indexLogo.handleShowSearchPop()},loginPopupShowFn(){let e=0;this.$refs.RegisterDialog&&this.$refs.RegisterDialog.isDialogReceiving&&(this.$refs.RegisterDialog.isDialogReceiving=!1,e=300),setTimeout(()=>
1{this.$refs.LoginDialog&&(this.$refs.LoginDialog.isDialogReceiving=!0)},e)},alertRegisterDialog(){let e=0;this.$refs.LoginDialog&&this.$refs.LoginDialog.isDialogReceiving&&(this.$refs.LoginDialog.isDialogReceiving=!1,e=300),setTimeout(()=>{this.$refs.RegisterDialog&&(this.$refs.RegisterDialog.isDialogReceiving=!0)},e)},checkMemberFreeze(){this.$refs.MemberFreeze&&this.$refs.MemberFreeze.check()},toUdesk(){if(this.gioCustomerServiceClickFn(),this.goodsDetail&&this.goodsDetail.itemData&&"单品页"==this.$route.meta.title){let e={thumb:this.goodsDetail.itemData.thumb,title:this.goodsDetail.itemData.name,price:this.goodsDetail.itemData.promoPrice,link:window.location.href,mouldNo:this.goodsDetail.itemData.mouldNo};const t=document.location.href;let a=t.split("/"),o=a[0]+"/"+a[1]+"/"+a[2],r=encodeURIComponent(o+"/goods?mouldNo="+e.mouldNo);(0,_e.X)({product_title:e.title,product_title_style:"font-size:11px;font-weight:500;color:rgb(51,51,51);line-height:16px;width:180px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;",product_url:r,product_image:e.thumb,product_send:!0,"product_模号":e.mouldNo,"product_模号_style":"font-size: 9px;font-weight: 500;color: rgb(153,153,153);line-height: 13px;margin-top: 5px;margin-bottom: 5px;","product_价格":"¥"+Number(e.price).toFixed(2)+" 起","product_价格_style":"font-size:11px;font-weight:500;color:rgb(205,174,124);line-height:16px"}).catch(()=>{this.$sessionStorage.setItem({name:"redirect",value:this.$route.fullPath}),this.$root.$emit("loginDialog")})}else(0,_e.X)().catch(()=>{this.$sessionStorage.setItem({name:"redirect",value:this.$route.fullPath}),this.$root.$emit("loginDialog")})},backToTop(){if(this.backTopAllow){this.backToTopShow=!1,this.backTopAllow=!1;var e=document.documentElement.scrollTop/this.backSeconds,t=setInterval(()=>{document.documentElement.scrollTop>0?(document.documentElement.scrollTop-=e,document.documentElement.scrollTop<200&&(this.backTopShow=!1)):(this.backTopAllow=!0,clearInterval(t))},1)}},async loginFn(e){e.data&&e.idToken?(await this.$store.dispatch("user/setUserInfo",e.data),await this.$store.dispatch("user/setUserToken",e.idToken),ye.A.remove("_idToken_userInfo",{path:"/",domain:".ctfmall.com"}),this.submitAgreement(this.agreementCheckList,()=>{if("/login"==this.$route.path)window.location.href=window.location.origin+"/myIndex/accountOverview";else{let e=this.delectUrlQuery(["code","codeVrifier","error"]),t=this.$sessionStorage.getItem("loginReturnGoods");t&&(t=JSON.parse(this.$utils.uncompile(t)),-1!=e.indexOf("?")?e+="&mouldNo="+t.mouldNo:e+="?mouldNo="+t.mouldNo),window.location.href=e}})):(this.$toast(e.msg),ye.A.remove("_idToken_userInfo",{path:"/",domain:".ctfmall.com"}))},staffLoginFn(e){let t=this.$localStorage.getItem("staffLoginUrl");(0,T.gf)({code:e,redirectUri:t,codeVerifier:"",tokenSource:1}).then(async e=>{if(200==e.code)if(await this.$store.dispatch("user/setUserInfo",e.data),await this.$store.dispatch("user/setUserToken",e.idToken),"/login"==this.$route.path)window.location.href=window.location.origin+"/myIndex/accountOverview";else{let e=this.delectUrlQuery(["code","codeVrifier","error"]);window.location.href=e}else this.$toast("登录错误"),setTimeout(()=>{let e=this.delectUrlQuery(["code","codeVrifier","error","staffLogin"]);window.location.href=T.OD+`?client_id=${T.P9}&redirect_uri=${e}`},1500)})},queryErrorMsg(e){let t={error:e};(0,T.h1)(t).then(e=>{"200"==e.code&&this.$nextTick(()=>{this.$refs.customPopup&&this.$refs.customPopup.showModal({title:"登录错误",content:e.data,success:()=>{this.ConformError()}})})})},ConformError(){let e="?";for(let a in this.$route.query)"error"!=a&&(e+=a+"="+this.$route.query[a]+"&");"?"==e&&(e="");let t=window.location.origin+window.location.pathname+e;window.location.href=t},async getAgreementInfo(){await this.agreementInfoRequest(),this.userInfo.uid>0&&!this.userInfo.staff&&setTimeout(()=>{this.currentAgreementIndex=0,this.currentAgreementInfo=[],this.judgeUserAgreement()},1e3)},agreementInfoRequest(){let e=this;return new Promise((t,a)=>{let o=Object.keys(e.agreement),r={clauseKeys:o};(0,U.O6)(r).then(a=>{if(""+a.resultCode=="200"){let t=Object.keys(a.data),o=be.p.getItem("agreementIsCheckList")?be.p.getItem("agreementIsCheckList"):null;t.forEach(t=>{e.agreement[t]={},e.agreement[t].clauseKey=a.data[t].clauseKey,e.agreement[t].clauseTitle=a.data[t].clauseTitle,e.agreement[t].clauseVersion=a.data[t].clauseVersion,e.agreement[t].clause
1Url=a.data[t].clauseUrl,o&&o[t]!=a.data[t].clauseVersion&&(o[t]="")}),be.p.setItem({name:"agreementIsCheckList",value:JSON.stringify(o)})}t(!0)})})},submitAgreement(e,t){if(!e||e.constructor!=Array||this.userInfo.staff)return"function"==typeof t&&t(!1),!1;let a=[...new Set(e)],o=0,r=0;a.forEach(e=>this.submitAgreementRequest(e,e=>{o++,e&&r++,o>=a.length-1&&"function"==typeof t&&t(r>=a.length-1)}))},submitAgreementRequest(e,t){let a={customerId:this.userInfo.uoid,clauseKey:e,clauseVersion:this.agreement[e].clauseVersion};(0,U.Nw)(a).then(a=>{if(a.data&&1==a.data.clauseStatus){let o=be.p.getItem("agreementIsCheckList")?be.p.getItem("agreementIsCheckList"):null;o?o[e]=a.data.clauseVersion:o={[e]:a.data.clauseVersion},be.p.setItem({name:"agreementIsCheckList",value:JSON.stringify(o)}),"function"==typeof t&&t(!0)}else"function"==typeof t&&t(!1)}).catch(()=>{"function"==typeof t&&t(!1)})},changeHotKeywords(){this.hotKeywordsIndex<this.hotKeywords.length-1?this.hotKeywordsIndex++:this.hotKeywordsIndex=0},judgeUserAgreement(){if(this.currentAgreementIndex>=this.agreementCheckList.length||!this.userInfo.uid)return!1;let e=this.agreementCheckList[this.currentAgreementIndex],t=be.p.getItem("agreementIsCheckList")?be.p.getItem("agreementIsCheckList"):null;if(t&&t[e]&&this.agreement[e]&&this.agreement[e].clauseVersion&&t[e]==this.agreement[e].clauseVersion)return this.currentAgreementIndex++,this.currentAgreementIndex>=this.agreementCheckList.length?this.currentAgreementInfo.length>0&&this.$refs.IndexAgrPopup.showPopup():this.judgeUserAgreement(),!1;let a={clauseKey:e,customerId:this.userInfo.uoid,clauseVersion:this.agreement[e].clauseVersion};(0,U.ar)(a).then(a=>{(!a.data.clauseStatus||this.agreement[e].clauseVersion&&this.agreement[e].clauseVersion!=a.data.clauseVersion)&&this.currentAgreementInfo.push({title:this.agreement[e].clauseTitle,key:this.agreement[e].clauseKey}),this.currentAgreementIndex++,this.currentAgreementIndex>=this.agreementCheckList.length?this.currentAgreementInfo.length>0&&this.$refs.IndexAgrPopup.showPopup():this.judgeUserAgreement(),a.data&&1==a.data.clauseStatus&&(t?t[e]=a.data.clauseVersion:t={[e]:a.data.clauseVersion},be.p.setItem({name:"agreementIsCheckList",value:JSON.stringify(t)}))}).catch(e=>{this.currentAgreementIndex++,this.currentAgreementIndex>=this.agreementCheckList.length?this.currentAgreementInfo.length>0&&this.$refs.IndexAgrPopup.showPopup():this.judgeUserAgreement()})},gioCustomerServiceClickFn(){try{let e={productNo_var:"-"};this.goodsDetail&&this.goodsDetail.itemData&&"单品页"==this.$route.meta.title&&(e.productNo_var=this.goodsDetail.itemData.mouldNo),this.gioCustomerServiceClick(e)}catch(e){console.log(this.$route.path+" --- customerServiceClick --- 数据上报失败",e)}}}},Ce=we,ke=(0,h.A)(Ce,i,s,!1,null,"66374504",null),Se=ke.exports,Te=a(5908);const Pe="1.23452384164.123412415",Ae="15px",xe="rgba(102,102,102,0.1)";let Ie,De=()=>{Ie&&Ie.remove()};function Ne(e){function t(e,t){var a=document.createElement("span");return a.style.fontSize=t.fontSize,a.style.color=t.color,a.style.position=t.position,a.style.transform=`rotate(${t.transform})`,a.style.padding=t.padding,a.style.pointerEvents="none",a.style.left=t.left,a.style.top=t.top,a.style.width=t.width,a.style.height=t.height,a.appendChild(document.createTextNode(e)),a}function a(){document.getElementById(Pe)&&document.body.removeChild(document.getElementById(Pe));var a=e;const o=document.querySelector("body");let r=document.createElement("div");r.id=Pe,r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100vw",r.style.height="100vh",r.style.zIndex="9999",r.style.color=xe,r.style.pointerEvents="none",o.appendChild(r);var i=document.getElementById(Pe);const{clientWidth:s,clientHeight:n}=i;console.log(s,n),r.style.display="none";const c=150,l=230,[u,d]=[Math.ceil(s/l),Math.ceil(n/c)];for(let e=0;e<u;e++)for(let o=0;o<=d;o++){const r=t(a,{fontSize:Ae,color:xe,position:"absolute",transform:"-30deg",padding:"100px",width:`${l}px`,height:`${c}px`,left:`${l+(e-1)*l+-80}px`,top:`${c+(o-1)*c+-80}px`});i.appendChild(r)}setTimeout(()=>{r.style.display="block"},100)}De(),e&&a()}var Le=a(4306),$e=a(2191);const Oe=new $e.A;o["default"].use(r.Ay);const Fe=[{path:"/",name:"index",component:Se,redirect:"/home",meta:{requireAuth:!1},children:[{path:"home",name:"home",meta:{requireAuth:!1,title:"首页",isGioReportOther:!0,gi
1oData:{pageType_pvar:"导航类",pageName_pvar:"首页",subpageName_pvar:"-"}},component:function(){return Promise.all([a.e(824),a.e(510)]).then(a.bind(a,1510))}},{path:"cart",name:"cart",meta:{requireAuth:!0,title:"购物袋",isGioReportOther:!0,gioData:{pageType_pvar:"导航类",pageName_pvar:"购物袋",subpageName_pvar:"-"}},component:function(){return a.e(0).then(a.bind(a,8e3))}},{path:"goodsList",name:"goodsList",meta:{requireAuth:!1,title:"商品列表",isGioReportOther:!0,gioData:{pageType_pvar:"商品类",pageName_pvar:"商品列表页",subpageName_pvar:"-"}},component:function(){return a.e(995).then(a.bind(a,1995))}},{path:"goods",name:"goods",meta:{requireAuth:!1,title:"单品页",isGioReportOther:!0,gioData:{pageType_pvar:"商品类",pageName_pvar:"商品详情页",subpageName_pvar:"-"}},component:function(){return a.e(311).then(a.bind(a,9311))}},{path:"pay",name:"pay",meta:{requireAuth:!0,title:"结算页",isGioReportOther:!0,gioData:{pageType_pvar:"订单类",pageName_pvar:"订单填写页",subpageName_pvar:"-"}},component:function(){return Promise.all([a.e(681),a.e(554)]).then(a.bind(a,3863))}},{path:"submitSuccess",name:"submitSuccess",meta:{requireAuth:!0,title:"提交订单成功",isGioReportOther:!0,gioData:{pageType_pvar:"订单类",pageName_pvar:"订单支付页",subpageName_pvar:"-"}},component:function(){return Promise.all([a.e(118),a.e(345)]).then(a.bind(a,9345))}},{path:"payFail",name:"payFail",meta:{requireAuth:!0,title:"支付未完成",isGioReportOther:!0,gioData:{pageType_pvar:"订单类",pageName_pvar:"支付失败页",subpageName_pvar:"-"}},component:function(){return a.e(41).then(a.bind(a,6041))}},{path:"paySuccess",name:"paySuccess",meta:{requireAuth:!0,title:"支付成功",isGioReportOther:!0,gioData:{pageType_pvar:"订单类",pageName_pvar:"支付成功页",subpageName_pvar:"-"}},component:function(){return a.e(320).then(a.bind(a,320))}},{path:"onlineOfficialStore",name:"onlineOfficialStore",meta:{requireAuth:!1,title:"线上官方店铺"},component:function(){return a.e(259).then(a.bind(a,7259))}},{path:"login",name:"login",meta:{requireAuth:!1,title:"登录",isGioReportOther:!0,gioData:{pageType_pvar:"其他类",pageName_pvar:"登录界面",subpageName_pvar:"-"}},component:function(){return a.e(792).then(a.bind(a,2792))}},{path:"helpCenter",name:"helpCenter",meta:{requireAuth:!1,title:"帮助中心",isGioReportOther:!0,gioData:{pageType_pvar:"服务权益类",pageName_pvar:"帮助中心",subpageName_pvar:"-"}},component:function(){return a.e(680).then(a.bind(a,7680))}},{path:"article",name:"article",meta:{requireAuth:!1,title:"周大福珠宝",isGioReportOther:!0,gioData:{pageType_pvar:"服务权益类",pageName_pvar:"内容中心",subpageName_pvar:"-"}},component:function(){return a.e(751).then(a.bind(a,1132))}},{path:"article/detail",name:"articleDetail",meta:{requireAuth:!1,title:"周大福珠宝",isGioReportOther:!0,gioData:{pageType_pvar:"服务权益类",pageName_pvar:"内容中心",subpageName_pvar:"详情"}},component:function(){return a.e(18).then(a.bind(a,4018))}},{path:"commodityVerification",name:"commodityVerification",meta:{requireAuth:!1,title:"商品验核",isGioReportOther:!0,gioData:{pageType_pvar:"服务权益类",pageName_pvar:"商品核验",subpageName_pvar:"-"}},component:function(){return a.e(457).then(a.bind(a,1457))}},{path:"invoiceManage",name:"invoiceManage",meta:{requireAuth:!0,title:"发票管理",isGioReportOther:!0,gioData:{pageType_pvar:"服务权益类",pageName_pvar:"发票管理",subpageName_pvar:"-"}},component:function(){return a.e(465).then(a.bind(a,7465))}},{path:"electronicGuarantee",name:"electronicGuarantee",meta:{requireAuth:!0,title:"电子保证单",isGioReportOther:!0,gioData:{pageType_pvar:"服务权益类",pageName_pvar:"电子保证单",subpageName_pvar:"-"}},component:function(){return Promise.all([a.e(118),a.e(376)]).then(a.bind(a,4995))}},{path:"feedBack",name:"feedBack",meta:{requireAuth:!0,title:"意见反馈",isGioReportOther:!0,gioData:{pageType_pvar:"服务权益类",pageName_pvar:"意见反馈",subpageName_pvar:"-"}},component:function(){return a.e(869).then(a.bind(a,9869))}},{path:"register",name:"register",meta:{requireAuth:!1,title:"注册",isGioReportOther:!0,gi
1oData:{pageType_pvar:"其他类",pageName_pvar:"新用户注册",subpageName_pvar:"-"}},component:function(){return a.e(405).then(a.bind(a,1405))}},{path:"registerSuccess",name:"registerSuccess",meta:{requireAuth:!1,title:"注册成功",isGioReportOther:!0,gioData:{pageType_pvar:"其他类",pageName_pvar:"注册成功",subpageName_pvar:"-"}},component:function(){return a.e(638).then(a.bind(a,5638))}},{path:"d",name:"d",meta:{requireAuth:!1,title:"专题页",isGioReportOther:!0,gioData:{pageType_pvar:"活动类",pageName_pvar:"专题页",subpageName_pvar:"-"}},component:function(){return a.e(613).then(a.bind(a,2613))}},{path:"snapshot",name:"snapshot",meta:{requireAuth:!1,title:"交易快照",isGioReportOther:!0,gioData:{pageType_pvar:"其他类",pageName_pvar:"交易快照",subpageName_pvar:"-"}},component:function(){return Promise.all([a.e(118),a.e(302)]).then(a.bind(a,6921))}},{path:"myIndex",name:"myIndex",meta:{requireAuth:!0,title:"会员中心模板"},component:function(){return a.e(30).then(a.bind(a,8030))},children:[{path:"accountOverview",name:"accountOverview",meta:{requireAuth:!0,title:"会员中心",isGioReportOther:!0,gioData:{pageType_pvar:"其他类",pageName_pvar:"账号概览",subpageName_pvar:"-"}},component:function(){return Promise.all([a.e(118),a.e(590),a.e(839)]).then(a.bind(a,3583))}},{path:"accountInformation",name:"accountInformation",meta:{requireAuth:!0,title:"账户信息",isGioReportOther:!0,gioData:{pageType_pvar:"其他类",pageName_pvar:"账号信息",subpageName_pvar:"-"}},component:function(){return a.e(956).then(a.bind(a,3575))}},{path:"myTracks",name:"myTracks",meta:{requireAuth:!0,title:"我的足迹",isGioReportOther:!0,gioData:{pageType_pvar:"其他类",pageName_pvar:"我的足迹",subpageName_pvar:"-"}},component:function(){return a.e(426).then(a.bind(a,3426))}},{path:"membership",name:"membership",meta:{requireAuth:!0,title:"会籍资料",isGioReportOther:!0,gioData:{pageType_pvar:"其他类",pageName_pvar:"会籍资料",subpageName_pvar:"-"}},component:function(){return a.e(555).then(a.bind(a,8555))}},{path:"orderList",name:"orderList",meta:{requireAuth:!0,title:"订单列表",isGioReportOther:!0,gioData:{pageType_pvar:"订单类",pageName_pvar:"全部订单",subpageName_pvar:"-"}},component:function(){return Promise.all([a.e(118),a.e(590),a.e(945)]).then(a.bind(a,6593))}},{path:"order",name:"order",meta:{requireAuth:!0,title:"订单详情",isGioReportOther:!0,gioData:{pageType_pvar:"订单类",pageName_pvar:"订单详情页",subpageName_pvar:"-"}},component:function(){return Promise.all([a.e(118),a.e(590),a.e(681),a.e(417)]).then(a.bind(a,9422))}},{path:"branchOrder",name:"branchOrder",meta:{requireAuth:!0,title:"订单详情",isGioReportOther:!0,gioData:{pageType_pvar:"订单类",pageName_pvar:"门店订单详情页",subpageName_pvar:"-"}},component:function(){return a.e(834).then(a.bind(a,6834))}},{path:"orderEvaluate",name:"orderEvaluate",meta:{requireAuth:!0,title:"订单评价",isGioReportOther:!0,gioData:{pageType_pvar:"订单类",pageName_pvar:"订单评价页",subpageName_pvar:"-"}},component:function(){return a.e(529).then(a.bind(a,5529))}},{path:"/royalty/index",name:"royaltyIndex",meta:{requireAuth:!0,requireStaff:!0,title:"权益金商城",isGioReportOther:!0,gioData:{pageType_pvar:"权益金",pageName_pvar:"权益金商城",subpageName_pvar:"-"}},component:function(){return a.e(908).then(a.bind(a,1146))}},{path:"/royalty/order",name:"royaltyOrderDetail",meta:{requireAuth:!1,title:"权益金单订单详情",isGioReportOther:!0,gioData:{pageType_pvar:"权益金",pageName_pvar:"权益金订单详情",subpageName_pvar:"-"}},component:function(){return Promise.all([a.e(118),a.e(590),a.e(658)]).then(a.bind(a,2674))}}]},{path:"/royalty/goods",name:"royaltyGoods",meta:{requireAuth:!1,title:"权益金单品页",isGioReportOther:!0,gioData:{pageType_pvar:"权益金",pageName_pvar:"权益金单品页",subpageName_pvar:"-"}},component:function(){return Promise.all([a.e(118),a.e(575)]).then(a.bind(a,5575))}},{path:"/todaygold",name:"todaygoldIndex",meta:{requireAuth:!1,title:"今日金价",isGioReportOther:!0,gi
1oData:{pageType_pvar:"服务权益类",pageName_pvar:"今日金价",subpageName_pvar:"-"}},component:function(){return Promise.all([a.e(824),a.e(913)]).then(a.bind(a,6913))}},{path:"/topics",name:"topicsIndex",meta:{requireAuth:!1,title:"专题页",isGioReportOther:!0,gioData:{pageType_pvar:"服务权益类",pageName_pvar:"专题页",subpageName_pvar:"-"}},component:function(){return Promise.all([a.e(824),a.e(568)]).then(a.bind(a,4568))}},{path:"/enterprise/customization/index",name:"enterpriseCustomizationIndex",meta:{requireAuth:!1,title:"企礼定制"},component:function(){return a.e(38).then(a.bind(a,6038))}},{path:"/enterprise/customization/topics",name:"enterpriseCustomizationTopics",meta:{requireAuth:!1,title:"企礼定制"},component:function(){return a.e(921).then(a.bind(a,1921))}},{path:"/enterprise/customization/contact",name:"enterpriseCustomizationContact",meta:{requireAuth:!1,title:"企礼定制"},component:function(){return a.e(418).then(a.bind(a,7389))}},{path:"/enterprise/customization/list",name:"enterpriseCustomizationList",meta:{requireAuth:!1,title:"企礼定制"},component:function(){return a.e(962).then(a.bind(a,7962))}},{path:"/enterprise/customization/detail",name:"enterpriseCustomizationDetail",meta:{requireAuth:!1,title:"企礼定制"},component:function(){return a.e(730).then(a.bind(a,4730))}},{path:"/merchantSettlement",name:"merchantSettlement",meta:{requireAuth:!1,title:"商家入驻"},component:function(){return a.e(501).then(a.bind(a,2501))}}]},{path:"/customerServiceView",name:"customerServiceView",component:function(){return a.e(989).then(a.bind(a,5989))}},{path:"/webView",name:"webView",component:()=>a.e(860).then(a.bind(a,4860))}],Me=r.Ay.prototype.push;r.Ay.prototype.push=function(e){return Me.call(this,e).catch(e=>e)},o["default"].use(r.Ay);const Ee=new r.Ay({mode:"history",routes:Fe,scrollBehavior(e,t,a){return a||{x:0,y:0}}});Ee.beforeEach(async(e,t,a)=>{let o=be.p.getItem("versionCode");if(o!=Te.A.state.version&&await Te.A.dispatch("user/ClearUserInfo"),Te.A.state.myTabList.length<=0&&await Te.A.dispatch("setMyTabList"),Te.A.commit("setMyTabSelcet",e.path),Te.A.commit("judgeIndexTabNum",e.fullPath),Te.A.state.user.idToken&&Te.A.state.user.userInfo.uid&&Te.A.state.user.userInfo.staff){let e=Te.A.state.user.userInfo;Ne(`${e.nickname} ${e.staffCode?e.staffCode.toLowerCase().replace("ctf",""):""}`)}if(e.meta.requireAuth)if(Te.A.state.user.idToken&&Te.A.state.user.userInfo.uid)if("login"==e.name||"register"==e.name){let e=be.U.getItem("redirect");e?(a({path:e}),be.U.removeItem("redirect")):a({path:"/myIndex/accountOverview"})}else if(Te.A.state.user.userInfo&&Te.A.state.user.userInfo.staff&&Te.A.state.user.userInfo.staffCode||!e.meta.requireStaff){let e=be.U.getItem("redirect");e?(a({path:e}),be.U.removeItem("redirect")):a()}else a({path:"/home"});else be.U.setItem({name:"redirect",value:e.fullPath}),a({path:"/login"});else if(-1!=e.path.indexOf("/d/")){let t=e.path.split("/");3==t.length?a({path:"/d?id="+t[2]}):a({path:"/d?id="})}else if(-1!=e.path.indexOf("/c/")){let e=Oe.getUrlParams(window.location.href);a({path:"/goodsList?keyword="+e.wd})}else if(-1!=e.path.indexOf("/s/")){let t=e.path.split("/");3==t.length?a({path:"/goods?mouldNo="+t[2]}):a({path:"/goods?mouldNo="})}else a()}),Ee.afterEach((e,t)=>{e.meta&&e.meta.isGioReportOther&&e.meta.gioData&&(0,Le.S)(e)});var Re=Ee},3007:function(e,t,a){"use strict";a.d(t,{Nw:function(){return i},O6:function(){return s},ar:function(){return r}});var o=a(8314);const r=(e={})=>(0,o.kN)("post","/ctfmall-common2-server/common/checkSign",e),i=(e={})=>(0,o.kN)("post","/ctfmall-common2-server/common/saveSign",e),s=(e={})=>(0,o.kN)("post","/ctfmall-common2-server/common/batchSignDetails",e)},3269:function(e,t,a){"use strict";a.d(t,{X:function(){return n}});var o=a(8314);const r=(e={})=>(0,o.Em)("post","/api/udesk/auth",e);var i=a(8384),s=a(5908);function n(e={}){return new Promise((t,a)=>{let o=s.A.state.user.userInfo,n=i.A.CUSTOMER_SERVICE_URL,c=s.A.state.user.idToken;o.uid?(t(),r({authuid:o.uid}).then(t=>{let a=null;a=t;let r=n;r+="&c_name="+o.nickname||0,r+="&c_cf_uid="+o.uid||0,r+="&c_cf_客户ID="+o.uid||0,r+="&c_cf_vipno="+o.cardNo||0,r+="&c_cf_idtoken="+c||0,r+="&c_cf_source=CTFpc",r+="&nonce="+a.customer.nonce,r+="&signature="+a.customer.signature,r+="&timestamp="+a.customer.timestamp,r+="&web_token="+a.customer.web_token,r+="&encryption_algorithm="+a.customer.encryption_algorithm;for(let o in e)r+="&"+o+"="+e[o];window.open(r,"_blank")})):a()})}},3321:function(e){var t=[{country_code:"CN",country_num:"86",country_description:"中国",priority:"1",reg:/^(\+?0?8
16\-?)?1[3456789]\d{9}$/},{country_code:"HK",country_num:"852",country_description:"中国香港",priority:"2",reg:/^(\+?852\-?)?[569]\d{3}\-?\d{4}$/},{country_code:"MO",country_num:"853",country_description:"中国澳门",priority:"3",reg:/^(\+?853\-?)?(?:28\d{6}|6\d{7})$/},{country_code:"TW",country_num:"886",country_description:"中国台湾",priority:"4",reg:/^(\+?886\-?|0)?9\d{8}$/}];e.exports={country:t}},4306:function(e,t,a){"use strict";a.d(t,{S:function(){return i},w:function(){return r}}),a(7563),window._gr_ignore_local_rule=!0;const o=-1!=window.location.origin.indexOf("https://www.ctfmall.com")?"ba51e0456754573c":'"9fb4528d96783d60"';function r(e="track",t,a){"string"===typeof t?"object"===typeof a&&"[object Object]"===Object.prototype.toString.call(a)&&Object.keys(a).forEach(e=>{["",void 0,null].includes(a[e])&&(a[e]="-")}):"object"===typeof t&&"[object Object]"===Object.prototype.toString.call(t)&&Object.keys(t).forEach(e=>{["",void 0,null].includes(t[e])&&(t[e]="-")}),a?gio(e,t,a):gio(e,t),gio("send")}function i(e){try{switch(e.path){case"/goodsList":r("page.set",{...e.meta.gioData,subpageName_pvar:e.query.keyword||"-"});break;case"/goods":case"/royalty/goods":r("page.set",{...e.meta.gioData,subpageName_pvar:e.query.mouldNo||"-"});break;case"/d":r("page.set",{...e.meta.gioData,subpageName_pvar:e.query.id||"-"});break;default:r("page.set",{...e.meta.gioData});break}}catch(t){console.error("gio页面级变量上报出错:",t)}}gio("init",o,"",{debug:!0}),gio("send")},4834:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAYAAAA4E5OyAAAAAXNSR0IArs4c6QAACSBJREFUeF7tnElsW8cZx//zFj5SIqmVstNYSRwkriXFUkoFOXQ5FClQwCeLqSUbCHpKgS5JLgnQ9tKqvbQF3EvSDWhPRQBbcivlZKBAgx66HIKITVo4ciRZi7VS4iYuoiguU3xDURElPvJxEUW7HECgAM57M/PjN9/8v2/mPYZGySHAasXjzx+/e46ltC8DqR6AXQDHBcbQBg4bGLOJfnAeBkOYcwTAMAPwGUCe5nL8Hy8PvLJSi76eGJBRPioN/Lvvqxz4BnjqJYA9W9mA+CyY/D4D/vTxF+7+bZSNpiu7X/6rqw7kvQ9udqcV+btI81fAcC7bLGMMJtUERVGgyApkWYYkyZAYA32XMRCONP2lU0ilUkimkkgmk9hL7InvDgrHCiT2rpRM/ebKi9eXqwmmakDGp8afURj/Pji+CcBEnaRBWzQLNJMmQGQHXuoACAaBie/FEYvHBKz9sgeGPyY5+8Xw4PBcqffNV79iION3x61qjI9yhjcAqNSIWTOjydIkLOIkClnMTmwHu/Hd7O0TjOPthIWNDvcNRyppsyIgkx+OXeESeweci6lhMVvQ3NQspkQtCk2p6E4Usd1YpjnGVliavz70wsh75bZfFpA7d97W4mfP3gDwPc45UxUVdpsd9HkaJZFMIBQOgT4ZY+Rsfq1tbLx1+fIb8VL7UzIQ4TRliX4BJzVmt9qFZZTrH0rtsF598jNkKaFIKFvFLaXSV0p1uiUBmfjvRA/2En8B0E0Os9XeempWoQeGrCQYCmYd7zJM6tddl1zTRsEbBjL50fiLPIU7AO9QVRPa7K2QJMloOzWtl06nEQgFkUjskWPxMRmXh54f/sBIJwwByVhG8u8Eg5ZQsozTniLFBkdTiCyFlmqCApPyFSOWUhTIvs/4J02ThwVGFlYuFCxLqfSXivmUgkBoNdk9c+Zf5EBpmrS3tNW9ZRy1HILi3w7sTx+4zR7PFwutPgWBTLrH3+Gcv0YOtKO1o259RrHpQz7FF/QJR8sY+9WQc/h1vWt0gZDogsQmSGd0tHXU3WpSDMLR72n18QV8GZ2S5i498ZYXCMlxJY5pUqA2qx3NlqZS26/L+tHYDsKkUxhbSWroySfz8wKZdI/d4BxvkvJsb21/6PxGIfHmD/ozipbjl0MvjLx1tO4xICJqBf+EArVHYaroTR0AiSRY79Eo+RiQCffY78HxKsnxFltLXZr+8V+VgeNQvqRIr7fD25mAkOEPLufItw5XzwGyrzkor2DqbO+sWdRaCXUGCZ/v7EU0EcHy9qKhW1GU7PV7qe6elEo/c1ib5ACZcI//DJz/gPIZpEbrvUiMYPSh1dwmurq8vYSV0JKhbpOKFfkUxn7ucg7/MHvRARDKgfZP9SxR2o8c6Ukldwz11kAlgnGx8zm0mHN/uAfbi1gNPSh6B0oykYMFx8p/BqefzOZoD4BMum+/xHn6ryTCHO2Oojc8zQoSk9HT2Qf7ERjZPi0FF7AWLp5q3fJv7Ys16WtDzqvv0/UHQCbct38Lnv62tckKa7P1NMdbsG2ZybjoeA52Td/hB2I+3PPeLTqGSDSCyE4EYNLvXM6r38kFMnVrhrYKSKKr6ulkvoqNgGD0OC7Bptl1q/p3vJjxTRtadRKJhJD0AJ91DV67cABEbCIl1WUK6bs6uupSiMlMQa/jEqxaZk8rX/HtbGHWd88QDLqeAr9N36b45EqimzbDxJSZcN++Bp6+SeF9W0vGY9dTUSRFWIbVpA/DG93ErP9TGmZJXQ9sBzI5EyZddzmv3toHcusn4OxHlDG3Nes3WlJLVaqsSKqwjGaTvl/bim5izn+vrBbD0bDI3IPxn7qc1368D2TsJjiukTIlhVovRRUw+tFkatbt0mZ0A/f9M2V3mRQrKVcw3HI5R65ngEyNTVESqJ70hyqZ0Nt1CU2qPgxPZB3zgdmyYdCFB3oEcLsGRwazQBYAPNXZ7oAiyxU1UI2LTbJJWIZF1U87bETWsVAhDOprMpWC179F/y66BkfOCyCTU2NbHOikFaacTPpj1sdh11ox4/vEsIfXA2eSNfQ5+mFW9afuRngVC8H71WAPyqbRSsMA79DgiCMDxD2+yznXznSeKXnJfdzWjSdaz4vOeaNbmPUb3gI5NiBN1tDb1Q+zog9jPbyCxeB8VWBkl16P10Pjjg85h80VAelueQrn7E/kdG4r6sGcWP5KK5psRl9XPzTFrHvhWmgZS9s0u6tXSIMcB1LGlHmy9Wl8znZw/COnh6U6O7NiRq9jAJqi6Y6UAjYK3KpddKbM2DznOG/UqTIwXKSw29Ku27/18CoWDcxzmh5kGeQ79MrK9hKWDYb1pQLLOlXGsDDkHHm67GVXL/w+3KHV0DIeFDBxi2JBb9cAaFXRK5T0WTEQzpcKIls//7LrLk+YURhOKrJQsKU3IIvSJCxDLQDjQXABqwbC+HJh0HX5hZm7fOlOESitDIXijKXgPNbCnx0iJLFFOkOV80fV5OjIsg5fU8mgC12rI90rC+4o+OpzDOhKbBrgYuA+NqJraFab0VMEBi2rG5HVk2KQc9+8wV01wn+KO/q6BnTVJUEh8z9rfQwUsOUrVIcElyeyVhMYuuE/tT5RhQQROUeCUkhY6Y1UwAjMwRNdrwkMakQ3QSSAVCmFSGqzr+v5gpri6IgJxnxgBptRT81gUEMFU4jVTDJntEXh5TQ7coIx55+Bd6e2MKj9gknmam9DZJbVAd2VhDqUgfEpvDubNbUMaqzoNkRm2lR3o4qWV9Ia+ZwowaD8py8mQu+al6IbVdSjk9jKJH1C4k2WPjvMm+ZpAcMfE9uJNS+GtzIzVlL9zW6byS6SxLIkg2DMeKcR2KX0/+kUw5vd1L2TOg5BCSTalCbLCO76T4eEOAOROUlk+DgE1Zz8cOwGZ9U/MEN7KymePDUY4gBeqQdmhJUcOlJFR7fpyYZHodATFOLod6lHqvatpHHo7qgVNI5lHiHSOLibx1E0jnbngdI4/J8HSuPxEF1LaTxAlIPm6CNmdPS76f/1EbMsmcZDiDoytfGYah4w4kHmOB/lvPEgcw6exqPuOtOo8TIEHTCN12UUyQ/ke6EKgHYGWA+/UIUD9DI
1D/yP3QpWHNX/yP5IcZJAlXm9QAAAAAElFTkSuQmCC"},5318:function(e,t,a){"use strict";a.d(t,{nL:function(){return r},xR:function(){return i}});var o=a(8314);const r=(e={})=>(0,o.kN)("get","/ctfmall-marketing-server/api/v1/web/topic",e),i=(e={})=>(0,o.kN)("get","/ctfmall-marketing-server/cPageGrayingConfig/isPageGraying",e)},5908:function(e,t,a){"use strict";a.d(t,{A:function(){return k}});var o=a(5471),r=a(5353),i=a(513),s=a(805),n=a(2191);const c=new n.A;var l={namespaced:!0,state:{cartList:[],validList:[],invalidList:[],totalPrice:0,orderTotal:0,orderTotalShow:0,fullMinusPrice:0,fullMinusObj:[],FullNumberPrice:0,FullNumberObj:null,selectNum:0,selectGoodsList:[],allSelect:!1,validListNum:0},mutations:{screenCartListVuex(e,t){let a=[],o=[];if(t.map(e=>{0==e.cartValid?a.push(e):o.push(e)}),e.invalidList.length>0){let t={};e.validList.forEach(e=>t[e.goodID]=e),o.forEach(e=>{t[e.goodID]&&(e.selected=t[e.goodID]["selected"])})}o.sort((e,t)=>new Date(t.addTime.replace(/-/g,"/")).valueOf()-new Date(e.addTime.replace(/-/g,"/")).valueOf()),e.invalidList=a,e.validList=o,e.cartList=t,this.commit("cart/updateCartInfoVuex")},setAllSelectVuex(e,t){e.allSelect=!e.allSelect,e.validList.forEach(t=>t.selected=e.allSelect),this.commit("cart/updateCartInfoVuex")},setGoodsSelectVuex(e,t){e.validList.forEach(e=>{e.goodID==t.goodID&&(e.selected=!e.selected)}),this.commit("cart/updateCartInfoVuex")},updateCartInfoVuex(e,t){let a=0,o=0,r=0,i=[],s=0;e.validList.forEach(e=>{o=c.numAdd(o,c.numAdd(a,c.mul(e.marketingPrice,e.buyNum))),e.selected&&(a=c.numAdd(a,c.mul(e.marketingPrice,e.buyNum)),i.push(e),r++),s+=e.buyNum}),e.allSelect=e.validList.every(e=>e.selected),e.totalPrice=a,e.selectNum=r,e.orderTotalShow=o,e.validListNum=s;let n={CartItem:[],type:1};
1n.uid=this.state.user.userInfo.uid,i.forEach(e=>{n.CartItem.push({goods_id:e.goodID,buy_cnt:e.buyNum,goods_price:e.marketingPrice,attribute:""})}),e.selectGoodsList=i,this.state.user.userInfo.staff?e.orderTotal=a:this.dispatch("cart/getproductmarkeingsVuex",n)},fullComputationVuex(e,t){let a=[],o=0;t.forEach(t=>{let r=e.selectGoodsList,i=t.ProductInfo,s=0,n={};i.forEach(e=>n[e.GoodsID]=e),r.forEach(e=>{n[e.goodID]&&(s+=n[e.goodID].Subtotal)});let c=t.MarketingInfo,l=!1,u="",d=0,h="";if(c)for(let e=0;e<c.length;e++)1==c[e].IsNoTop?(d=parseInt(s/c[e].Price)*c[e].DerateMoney,h="每满"+c[e].Price+"减"+c[e].DerateMoney):s<c[e].Price?(l=!1,h="满"+c[e].Price+"减"+c[e].DerateMoney):(d=c[e].DerateMoney,l=!0,h="满"+c[e].Price+"减"+c[e].DerateMoney);let p={title:t.MTypeDesc,remake:u,isMaxDiscount:l,derateMoney:d,mid:t.ID,customTagName:h};a.push(p),o+=d}),e.fullMinusPrice=o,e.fullMinusObj=a,e.orderTotal=e.totalPrice-o-e.FullNumberPrice},fullComputationCountVuex(e,t){let a=e.selectGoodsList,o=t.ProductInfo,r=0,i=0,s={};o.forEach(e=>s[e.GoodsID]=e),a.forEach(e=>{s[e.goodID]&&(r+=s[e.goodID].Subtotal,i+=e.buyNum)});let n=t.MarketingInfo,l=!1,u=0;if(n)for(let h=0;h<n.length;h++){let e=0;if(i<n[h].Price){l=!1,e=n[h].Price-i;break}u=n[h].DerateMoney>9?c.keepDecimal(r*(100-n[h].DerateMoney)/100).toFixed(2):c.keepDecimal(r*(10-n[h].DerateMoney)/10).toFixed(2),l=!0}let d={title:t.MTypeDesc,remake:t.marketingLabelName||t.ADWord,isMaxDiscount:l,derateMoney:u,mid:t.ID};e.FullNumberPrice=u,e.FullNumberObj=d,e.orderTotal=e.totalPrice-u-e.fullMinusPrice},resetCartDiscountVuex(e,t){e.fullMinusPrice=0,e.FullNumberPrice=0,e.fullMinusObj=[],e.FullNumberObj=null,e.orderTotal=e.totalPrice}},actions:{syncusercartFnVuex(e,t){return new Promise((t,a)=>{let o={cartData:[]};o.uid=this.state.user.userInfo.uid,o.branchCode=0,o.operateType=0,(0,i.PY)(o).then(o=>{if(200==o.code&&o.data&&o.data.length>0){let r=[];o.data.forEach(e=>{r.push({goodId:e.goodID,attribute:e.attribute})}),e.dispatch("getgoodsdetailsbyidFnVuex",{cartDatas:r,cartData:o.data}).then(()=>{t()}).catch(()=>{a()})}else e.commit("screenCartListVuex",[]),a()}).catch(()=>{a()})})},getgoodsdetailsbyidFnVuex(e,t){return new Promise((a,o)=>{let r={};r.cartGoods=t.cartDatas,r.uid=this.state.user.userInfo.uid,r.branchCode=0,(0,i.DG)(r).then(r=>{if(1==r["retcode"]){let i=t.cartData,s=r.data.productData,n={};s.forEach(e=>n[e.goodsID]=e),i.forEach(e=>{n[e.goodID]&&(e.mouldNo=n[e.goodID].mouldNo,e.sn=n[e.goodID].sn,e.promotionPrice=n[e.goodID].promoPrice,e.marketingPrice=n[e.goodID].marketingPrice,e.productType=n[e.goodID].productType,e.bonusPurchasePoint=parseInt(n[e.goodID].bonusPurchasePoint)?parseInt(n[e.goodID].bonusPurchasePoint):0,e.shopPrice=n[e.goodID].shopPrice,e.titleInfo=n[e.goodID].title,e.brandName=n[e.goodID].brandName,e.seriesName=n[e.goodID].seriesName,e.newTitle=n[e.goodID].newTitle,e.title=n[e.goodID].title,e.thumb=n[e.goodID].thumb,e.ispresell=n[e.goodID].ispresell,e.presellprice=n[e.goodID].presellprice,e.deposit=n[e.goodID].deposit,e.finalpaytimestarttext=n[e.goodID].finalpaytimestarttext,e.finalpaytimeendtext=n[e.goodID].finalpaytimeendtext,e.depositswell=n[e.goodID].depositswell,e.iscollageproduct=n[e.goodID].iscollageproduct,e.isdiscount=n[e.goodID].isdiscount,e.category=n[e.goodID].category,e.isUsePoints=n[e.goodID].isUsePoints,e.goodSource=n[e.goodID].goodSource,e.productTypeID=n[e.goodID].productTypeID,e.productGroupID=n[e.goodID].productGroupID,e.integralSpecialFunds=n[e.goodID].integralSpecialFunds,e.buyAccount={minus:!(n[e.goodID]&&n[e.goodID].buyNum>1),add:!(n[e.goodID]&&n[e.goodID].stockQtyWeb>n[e.goodID].buyNum)})}),e.dispatch("category2strVuex",i).then(()=>{a()}).catch(()=>{o()})}else o()}).catch(()=>{o()})})},category2strVuex(e,t){return new Promise(a=>{for(var o in t){var r=[],i="",s="";if(void 0!=t[o].category){"object"!=typeof t[o].category&&(t[o].category=JSON.parse(t[o].category));var n=t[o].category;if(i=t[o].productTypeID,s=t[o].productGroupID,9!=i&&4!=i||0==n.totalWeight?10==i&&0!=n.goldWeight?r.push({label:"金重:",value:n.goldWeight+"克"}):1==i&&(""!=n.detailShape&&r.push({label:"净度:",value:n.detailShape}),""!=n.detailSize&&r.push({label:"颜色:",value:n.detailSize}),0!=n.detailCount&&r.push({label:"克拉:",value:n.detailCount})):r.push({label:"克重:",value:n.totalWeight+"克"}
1),1==s&&0!=n.ringSize?r.push({label:"圈口:",value:n.ringSize}):2!=s&&4!=s&&5!=s&&6!=s&&34!=s||!n.actualLenth||""==n.actualLenth||0==n.actualLenth||(5==s?r.push({label:"内径:",value:n.actualLenth}):r.push({label:"链长:",value:n.actualLenth})),n.customizedSize&&0!=n.customizedSize){let e=n.customizedSize.split("约");r.push("尺寸:"+e[0]+";"),e[1]&&r.push("金重:"+e[1]+";")}n.customizedStyle&&0!=n.customizedStyle&&r.push("款式:"+n.customizedStyle+";"),n.customizedDirection&&0!=n.customizedDirection&&r.push("方向:"+n.customizedDirection+";"),r==[]&&0!=n.shopPrice&&r.push({label:"价格:",value:n.shopPrice}),t[o].category=r}}e.commit("screenCartListVuex",t),a()})},addSyncusercartVuex(e,t={}){let a={};a.cartData=t.goodsList,a.uid=this.state.user.userInfo.uid,a.branchCode=0,a.operateType=0,(0,i.PY)(a).then(a=>{200==a.code&&t.success&&t.success(),e.dispatch("syncusercartFnVuex")})},removeCartGoodsVuex(e,t){let a={};a.gid=t,a.uid=this.state.user.userInfo.uid,(0,i.fG)(a).then(t=>{200==t.code&&e.dispatch("syncusercartFnVuex")})},getproductmarkeingsVuex(e,t){(0,s.n_)(t).then(t=>{if("[]"!=t[0].retmsg&&"Fail"!=t[0].retcode){e.commit("resetCartDiscountVuex");let a=[];for(let o=0;o<t.length;o++)switch(t[o].MType){case 6:a.push(t[o]);break;case 10:e.commit("fullComputationCountVuex",t[o]);break;default:e.commit("resetCartDiscountVuex");break}a.length>0&&e.commit("fullComputationVuex",a)}else e.commit("resetCartDiscountVuex"),console.log("没有商品营销活动")})}}},u=a(6776),d=a(8987),h=a(2571);const p=new n.A;let m={uid:0},g="";function f(e,t){if("get"==e){let e=["isShowLoginTips3","agreeCookie","agreement325","subjectChange0616"],t=[];return e.forEach(e=>{let a=window.localStorage.getItem(e);if(void 0!==a&&""!==a){let o={key:e,value:a};t.push(o),o=null}a=null}),t}"set"==e&&t&&t.length>0&&t.forEach(e=>{window.localStorage.setItem(e.key,e.value)})}m=h.p.getItem("userInfo")?JSON.parse(p.uncompile(h.p.getItem("userInfo"))):{uid:0},g=h.p.getItem("idToken")?p.uncompile(h.p.getItem("idToken")):"";var v={namespaced:!0,state:{userInfo:m,idToken:g,membershipCard:{}},mutations:{SET_USERINFO(e,t){e.userInfo=t;let a=p.compile(JSON.stringify(t));h.p.setItem({name:"userInfo",value:a})},SET_IDTOKEN(e,t){e.idToken=t;let a=p.compile(t);h.p.setItem({name:"idToken",value:a})},LOGIN_OUT_USER(e){d.A.remove("_idToken_userInfo",{path:"/",domain:".ctfmall.com"}),e.userInfo={uid:0},e.idToken=""},SET_MEMBERSHIP_CARD:(e,t)=>{e.membershipCard=t}},actions:{GetUserpoint({commit:e,state:t}){return new Promise((a,o)=>{t.userInfo.uid;(0,u.mR)({cardNo:t.userInfo.cardNo,sourceSystem:"OFFICIAL_MALL_WEB"}).then(t=>{e("SET_MEMBERSHIP_CARD",t),a(t)}).catch(e=>{o(e)})})},_updateIdToken(e){(0,u.Ow)().then(t=>{200==t.code?e.commit("SET_IDTOKEN",t.data.idToken):this.$toast(t.msg)})},setUserInfo({commit:e},t){e("SET_USERINFO",t),e("SET_MY_TAB_LIST",t)},setUserToken({commit:e},t){e("SET_IDTOKEN",t)},ClearUserInfo({commit:e,dispatch:t}){return new Promise((a,o)=>{e("LOGIN_OUT_USER"),t("setMyTabList",null,{root:!0});let r=f("get");h.p.clear(),f("set",r),h.p.setItem({name:"versionCode",value:this.state.version}),a(!0)})}}};const _={userInfo:e=>e.user.userInfo,membershipCard:e=>e.user.membershipCard,showTopNotice:e=>e.showTopNotice,bodyZoom:e=>e.bodyZoom};var y=_,b=a(406);o["default"].use(r.Ay);let w=[{name:"账号概览",path:"/myIndex/accountOverview",selectPath:!1,isBlank:!1,children:{}},{name:"账号信息",path:"/myIndex/accountInformation",selectPath:!1,isBlank:!1,children:{}},{name:"地址管理",path:"/myIndex/address",selectPath:!1,isBlank:!1,children:{}},{name:"我的足迹",path:"/myIndex/myTracks",selectPath:!1,isBlank:!1,children:{}},{name:"会籍资料",path:"/myIndex/membership",selectPath:!1,isBlank:!1,children:{}}],C=[{name:"账号概览",path:"/myIndex/accountOverview",selectPath:!1,isBlank:!1,children:{}},{name:"账号信息",path:"/myIndex/accountInformation",selectPath:!1,isBlank:!1,children:{}},{name:"地址管理",path:"/myIndex/address",selectPath:!1,isBlank:!1,children:{}},{name:"我的足迹",path:"/myIndex/myTracks",selectPath:!1,isBlank:!1,children:{}},{name:"权益金商城",path:"/royalty/index",selectPath:!1,isBlank:!1,children:{}}];var k=new r.Ay.Store({plugins:[(0,b.A)({storage:window.sessionStorage,reducer:e=>({indexTab:e.indexTab})})],state:{branchMall:74198,indexTabList:[],indexTab:0,wapUrl:"",baseTabList:[{id:1,name:"个人中心",icon:"https://cdn.ctfmall.com/path/[email protected]",list:v.state.userInfo.staff?C:w},{id:2,name:"订单中心",icon:"https://cdn.ctfmall.com/path/[email protected]",list:[{name:"我的订单",path:"/myIndex/orderList",selectPath:!0,isBlank:!1,children:{"/myIndex/orderList":!0,"/myIndex/orderEvaluate":!0,"/myIndex/order":!0}}]},{id:3,name:"查询服务",icon:"https://cdn.ctfmall.com/path/[email protected]",list:[{name:"发票管理",path:"/invoiceManage",selectPath:!1,isBlank:!1,children:{}},{name:"商品核验",path:"/commodityVerification",selectPath:!1,isBlank:!1,children:{}},{name:"电子保证单",path:"/electronicGuarantee",selectPath:!1,isBlank:!1,children:{}}]},{id:4,name:"帮助及反馈",icon:"https://cdn.ctfmall.com/path/[email protected]",list:[{name:"意见反馈",path:"/feedBack",selectPath:!1,isBlank:!1,children:{}}]}],myTabList:[],staffTabList:{1:[{name:"权益金商城",path:"/royalty/index",selectPath:!1,isBlank:!1,children:{}}]},version:50009,homeTopic:"",showTopNotice:!1,bodyZoom:1},getters:y,mutations:{setIndexTabList(e,t){let a=[{id:1,title:"首页",jumpLink:"/home"}];e.indexTabList=!Array.isArray(t)||t.length<=0?a:t},setIndexTab(e,t){e.indexTab=t}
1,judgeIndexTabNum(e,t){let a=-1,o=t;if(t.indexOf("breadcrumb=")>=0){let e=t.split("?"),a=e[1];a&&(a=a.replace(/[?&]?breadcrumb=[^&]*&?/g,"")),a&&(a="?"+a),o=e[0]+a}for(let r=0;r<e.indexTabList.length;r++)if(decodeURI(e.indexTabList[r].jumpLink)==decodeURI(o)||0==e.indexTabList[r].jumpLink.indexOf("/home")&&e.indexTabList[r].jumpLink.split("?")[0]==o.split("?")[0]){a=r;break}e.indexTab=a>=0?a:"无"},SET_MY_TAB_LIST(e){o["default"].set(e,"myTabList",e.baseTabList)},setMyTabSelcet(e,t){e.myTabList.forEach((e,a)=>{e.list.forEach((e,a)=>{t==e.path||e["children"][t]?e.selectPath=!0:e.selectPath=!1})})},SET_HOME_TOPIC(e,t){e.homeTopic=t},SET_TOP_NOTICE_STATUS(e,t){e.showTopNotice=t},SET_BODY_ZOOM(e,t){e.bodyZoom=t}},actions:{setMyTabList({commit:e}){e("SET_MY_TAB_LIST")},setHomeTopic({commit:e},t){e("SET_HOME_TOPIC",t)},setTopNoticeStatus({commit:e},t){e("SET_TOP_NOTICE_STATUS",t)},setPageZoom({commit:e},t){e("SET_BODY_ZOOM",t)}},modules:{cart:l,user:v}})},5928:function(e){
2/**
3* jQuery MD5 hash algorithm function
4* 
5* <code>
6* Calculate the md5 hash of a String 
7* String $.md5 ( String str )
8* </code>
9* 
10* Calculates the MD5 hash of str using the 禄 RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash. 
11* MD5 (Message-Digest algorithm 5) is a widely-used cryptographic hash function with a 128-bit hash value. MD5 has been employed in a wide variety of security applications, and is also commonly used to check the integrity of data. The generated hash is also non-reversable. Data cannot be retrieved from the message digest, the digest uniquely identifies the data.
12* MD5 was developed by Professor Ronald L. Rivest in 1994. Its 128 bit (16 byte) message digest makes it a faster implementation than SHA-1.
13* This script is used to process a variable length message into a fixed-length output of 128 bits using the MD5 algorithm. It is fully compatible with UTF-8 encoding. It is very useful when u want to transfer encrypted passwords over the internet. If you plan using UTF-8 encoding in your project don't forget to set the page encoding to UTF-8 (Content-Type meta tag). 
14* This function orginally get from the WebToolkit and rewrite for using as the jQuery plugin.
15* 
16* Example
17* Code
18* <code>
19* $.md5("I'm Persian."); 
20* </code>
21* Result
22* <code>
23* "b8c901d0f02223f9761016cfff9d68df"
24* </code>
25* 
26* @alias Muhammad Hussein Fattahizadeh < muhammad [AT] semnanweb [DOT] com >
27* @link http://www.semnanweb.com/jquery-plugin/md5.html
28* @see http://www.webtoolkit.info/
29* @license http://www.gnu.org/licenses/gpl.html [GNU General Public License]
30* @param {jQuery} {md5:function(string))
31* @return string
32*/
33var t=function(e,t){return e<<t|e>>>32-t},a=function(e,t){var a,o,r,i,s;return r=2147483648&e,i=2147483648&t,a=1073741824&e,o=1073741824&t,s=(1073741823&e)+(1073741823&t),a&o?2147483648^s^r^i:a|o?1073741824&s?3221225472^s^r^i:1073741824^s^r^i:s^r^i},o=function(e,t,a){return e&t|~e&a},r=function(e,t,a){return e&a|t&~a},i=function(e,t,a){return e^t^a},s=function(e,t,a){return t^(e|~a)},n=function(e,r,i,s,n,c,l){return e=a(e,a(a(o(r,i,s),n),l)),a(t(e,c),r)},c=function(e,o,i,s,n,c,l){return e=a(e,a(a(r(o,i,s),n),l)),a(t(e,c),o)},l=function(e,o,r,s,n,c,l){return e=a(e,a(a(i(o,r,s),n),l)),a(t(e,c),o)},u=function(e,o,r,i,n,c,l){return e=a(e,a(a(s(o,r,i),n),l)),a(t(e,c),o)},d=function(e){var t,a=e.length,o=a+8,r=(o-o%64)/64,i=16*(r+1),s=Array(i-1),n=0,c=0;while(c<a)t=(c-c%4)/4,n=c%4*8,s[t]=s[t]|e.charCodeAt(c)<<n,c++;return t=(c-c%4)/4,n=c%4*8,s[t]=s[t]|128<<n,s[i-2]=a<<3,s[i-1]=a>>>29,s},h=function(e){var t,a,o="",r="";for(a=0;a<=3;a++)t=e>>>8*a&255,r="0"+t.toString(16),o+=r.substr(r.length-2,2);return o},p=function(e){e=e.replace(/\x0d\x0a/g,"\n");for(var t="",a=0;a<e.length;a++){var o=e.charCodeAt(a);o<128?t+=String.fromCharCode(o):o>127&&o<2048?(t+=String.fromCharCode(o>>6|192),t+=String.fromCharCode(63&o|128)):(t+=String.fromCharCode(o>>12|224),t+=String.fromCharCode(o>>6&63|128),t+=String.fromCharCode(63&o|128))}return t},m=function(e){var t,o,r,i,s,m,g,f,v,_=Array(),y=7,b=12,w=17,C=22,k=5,S=9,T=14,P=20,A=4,x=11,I=16,D=23,N=6,L=10,$=15,O=21;for(e=p(e),_=d(e),m=1732584193,g=4023233417,f=2562383102,v=271733878,t=0;t<_.length;t+=16)o=m,r=g,i=f,s=v,m=n(m,g,f,v,_[t+0],y,3614090360),v=n(v,m,g,f,_[t+1],b,3905402710),f=n(f,v,m,g,_[t+2],w,606105819),g=n(g,f,v,m,_[t+3],C,3250441966),m=n(m,g,f,v,_[t+4],y,4118548399),v=n(v,m,g,f,_[t+5],b,1200080426),f=n(f,v,m,g,_[t+6],w,2821735955),g=n(g,f,v,m,_[t+7],C,4249261313),m=n(m,g,f,v,_[t+8],y,1770035416),v=n(v,m,g,f,_[t+9],b,2336552879),f=n(f,v,m,g,_[t+10],w,4294925233),g=n(g,f,v,m,_[t+11],C,2304563134),m=n(m,g,f,v,_[t+12],y,1804603682),v=n(v,m,g,f,_[t+13],b,4254626195),f=n(f,v,m,g,_[t+14],w,2792965006),g=n(g,f,v,m,_[t+15],C,1236535329),m=c(m,g,f,v,_[t+1],k,4129170786),v=c(v,m,g,f,_[t+6],S,3225465664),f=c(f,v,m,g,_[t+11],T,643717713),g=c(g,f,v,m,_[t+0],P,3921069994),m=c(m,g,f,v,_[t+5],k,3593408605),v=c(v,m,g,f,_[t+10],S,38016083),f=c(f,v,m,g,_[t+15],T,3634488961),g=c(g,f,v,m,_[t+4],P,3889429448),m=c(m,g,f,v,_[t+9],k,568446438),v=c(v,m,g,f,_[t+14],S,3275163606),f=c(f,v,m,g,_[t+3],T,4107603335),g=c(g,f,v,m,_[t+8],P,1163531501),m=c(m,g,f,v,_[t+13],k,2850285829),v=c(v,m,g,f,_[t+2],S,4243563512),f=c(f,v,m,g,_[t+7],T,1735328473),g=c(g,f,v,m,_[t+12],P,2368359562),m=l(m,g,f,v,_[t+5],A,4294588738),v=l(v,m,g,f,_[t+8],x,2272392833),f=l(f,v,m,g,_[t+11],I,1839030562),g=l(g,f,v,m,_[t+14],D,4259657740),m=l(m,g,f,v,_[t+1],A,2763975236),v=l(v,m,g,f,_[t+4],x,1272893353),f=l(f,v,m,g,_[t+7],I,4139469664),g=l(g,f,v,m,_[t+10],D,3200236656),m=l(m,g,f,v,_[t+13],A,681279174),v=l(v,m,g,f,_[t+0],x,3936430074),f=l(f,v,m,g,_[t+3],I,3572445317),g=l(g,f,v,m,_[t+6],D,76029189),m=l(m,g,f,v,_[t+9],A,3654602809),v=l(v,m,g,f,_[t+12],x,3873151461),f=l(f,v,m,g,_[t+15],I,530742520),g=l(g,f,v,m,_[t+2],D,3299628645),m=u(m,g,f,v,_[t+0],N,4096336452),v=u(v,m,g,f,_[t+7],L,1126891415),f=u(f,v,m,g,_[t+14],$,2878612391),g=u(g,f,v,m,_[t+5],O,4237533241),m=u(m,g,f,v,_[t+12],N,1700485571),v=u(v,m,g,f,_[t+3],L,2399980690),f=u(f,v,m,g,_[t+10],$,4293915773),g=u(g,f,v,m,_[t+1],O,2240044497),m=u(m,g,f,v,_[t+8],N,1873313359),v=u(v,m,g,f,_[t+15],L,4264355552),f=u(f,v,m,g,_[t+6],$,2734768916),g=u(g,f,v,m,_[t+13],O,1309151649),m=u(m,g,f,v,_[t+4],N,4149444226),v=u(v,m,g,f,_[t+11],L,3174756917),f=u(f,v,m,g,_[t+2],$,718787259),g=u(g,f,v,m,_[t+9],O,3951481745),m=a(m,o),g=a(g,r),f=a(f,i),v=a(v,s
33);var F=h(m)+h(g)+h(f)+h(v);return F.toLowerCase()};e.exports={md5:m}},6538:function(e,t,a){"use strict";a.d(t,{A:function(){return u}});var o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"login_agreement_box"},[t("div",{staticClass:"login_agreement_title"},[e._v("本人为完全民事行为人已阅读并同意以下条款")]),e._l(e.imgList,function(e,a){return t("el-image",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],key:a,staticClass:"login_agreement_popup_img",attrs:{placeholder:"载入中",src:e}})}),t("ul",{staticClass:"login_agreement_body"},[t("li",{staticClass:"login_agreement_item"},[t("div",{class:["login_agreement_checked_icon custom-checkbox",e.checkedObj.agreement1.isChecked?"checked":""],on:{click:function(t){return e.checkedAgreementFn("agreement1")}}}),t("div",{staticClass:"login_agreement_item_text"},[e._v("我同意如"),e._l(e.checkedObj.agreement1.list,function(a,o){return[o>0?[e._v("、")]:e._e(),t("span",{on:{click:function(t){return e.openAgreement("agreement1",o)}}},[e._v("《")]),t("span",{staticClass:"login_agreement_item_text_span",on:{click:function(t){return e.openAgreement("agreement1",o)}}},[e._v(e._s(a.name))]),t("span",{on:{click:function(t){return e.openAgreement("agreement1",o)}}},[e._v("》")])]}),e._v("中所述与第三方共享信息")],2)]),t("li",{staticClass:"login_agreement_item"},[t("div",{class:["login_agreement_checked_icon custom-checkbox",e.checkedObj.agreement2.isChecked?"checked":""],on:{click:function(t){return e.checkedAgreementFn("agreement2")}}}),t("div",{staticClass:"login_agreement_item_text"},[e._v("我已阅读并同意以下协议"),e._l(e.checkedObj.agreement2.list,function(a,o){return[o>
330&&("Membership_Migration_Arrangement_Explanation"!=a.clauseKey||"Membership_Migration_Arrangement_Explanation"==a.clauseKey&&e.isLogin)?[e._v("、")]:e._e(),"Membership_Migration_Arrangement_Explanation"!=a.clauseKey||"Membership_Migration_Arrangement_Explanation"==a.clauseKey&&e.isLogin?t("span",{on:{click:function(t){return e.openAgreement("agreement2",o)}}},[e._v("《")]):e._e(),"Membership_Migration_Arrangement_Explanation"!=a.clauseKey||"Membership_Migration_Arrangement_Explanation"==a.clauseKey&&e.isLogin?t("span",{staticClass:"login_agreement_item_text_span",on:{click:function(t){return e.openAgreement("agreement2",o)}}},[e._v(e._s(a.name))]):e._e(),"Membership_Migration_Arrangement_Explanation"!=a.clauseKey||"Membership_Migration_Arrangement_Explanation"==a.clauseKey&&e.isLogin?t("span",{on:{click:function(t){return e.openAgreement("agreement2",o)}}},[e._v("》")]):e._e()]})],2)])]),t("custom-popup-v5",{ref:"agreementPopup",attrs:{popupType:"popup",width:832,slotContent:!0,optionBottomBtn:!1}},[t("div",{attrs:{slot:"content"},slot:"content"},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"login_slot_agre_box"},[t("div",{staticClass:"login_agreement_popup_box"},[t("el-image",{staticClass:"login_agreement_popup_img",attrs:{placeholder:"载入中",src:e.agreementShowUrl}})],1)])])])],2)},r=[],i=a(3007),s={name:"",props:{isLogin:{type:Boolean,default:!0}},data(){return{imgList:["https://cdn.ctfmall.com/misc/PICS_2022071901.jpg","https://cdn.ctfmall.com/misc/gfscyh.jpg","https://cdn.ctfmall.com/misc/Membership_2022171901.jpg","https://cdn.ctfmall.com/misc/PICS_2022071901.jpg","https://cdn.ctfmall.com/misc/KDP_2022071901.jpg"],isDialogShow:!1,joinKdp:!1,personal:"https://cdn.ctfmall.com/pdf/PICS0315.pdf",agreementShowUrl:"",loading:!1,checkedObj:{agreement1:{isChecked:!1,list:[{id:1,name:"周大福平台个人信息收集声明",isCheck:!1,clauseKey:"Personal_information_collection_statement_V2"}]},agreement2:{isChecked:!1,list:[{id:1,name:"周大福会员计划的条款及细则",isCheck:!1,clauseKey:"CTF_Reward_Plan_And_Detail_V2"},{id:2,name:"周大福平台个人信息收集声明",isCheck:!1,clauseKey:"Personal_information_collection_statement_V2"},{id:3,name:"周大福平台用户协议",isCheck:!1,clauseKey:"CTFMALL_User_Agreement_1"},{id:4,name:"周大福会员计划会籍迁移安排说明",isCheck:!1,clauseKey:"Membership_Migration_Arrangement_E
33xplanation"}]}},openAgreementItem:{},openAgreementObj:{},openAgreementName:"",openAgreementIndex:0,isBtnShow:!1,clauseTitle:""}},watch:{isDialogShow:function(e){if(e){let e=[];this.checkedObj[this.openAgreementName]&&this.checkedObj[this.openAgreementName]["list"].forEach(t=>{t.isCheck||e.push(e)}),e.length>1?this.isBtnShow=!0:this.isBtnShow=!1}}},created(){this.agreementInfoRequest()},mounted(){this.$emit("change",this.checkedObj)},methods:{agreementInfoRequest(){let e=[];for(const t in this.checkedObj)this.checkedObj[t].list.forEach(t=>{e.indexOf(t.clauseKey)<0&&e.push(t.clauseKey)});(0,i.O6)({clauseKeys:e}).then(e=>{if(e.data)for(const t in this.checkedObj)this.checkedObj[t].list.forEach(t=>{e.data[t.clauseKey]&&(t.name=e.data[t.clauseKey].clauseTitle)})})},openAgreement(e,t){this.$emit("openAgreement"),this.isDialogShow=!0,this.loading=!0;let a=this.checkedObj[e]["list"][t]["clauseKey"],o={clauseKeys:[a]};(0,i.O6)(o).then(e=>{this.loading=!1,200==e.resultCode?(this.clauseTitle=e.data[a].clauseTitle,this.agreementShowUrl=e.data[a].clauseUrl,this.$refs.agreementPopup&&this.$refs.agreementPopup.showModal({title:this.clauseTitle,success:()=>{this.isDialogShow=!1}})):this.$toast(e.resultMessage)})},checkedAgreementFn(e){this.checkedObj[e]["isChecked"]=!this.checkedObj[e]["isChecked"]},submitAgreement(){this.checkedObj[this.openAgreementName]["isChecked"]=!0,this.isDialogShow=!1,this.$refs.agreementPopup&&this.$refs.agreementPopup.hideModal(),this.$emit("change",this.checkedObj)}}},n=s,c=a(1656),l=(0,c.A)(n,o,r,!1,null,"af8a76a6",null),u=l.exports},6776:function(e,t,a){"use strict";a.d(t,{Gf:function(){return n},HB:function(){return d},ID:function(){return p},N7:function(){return y},Ow:function(){return u},PD:function(){return l},X3:function(){return f},fW:function(){return h},gg:function(){return v},j6:function(){return _},mR:function(){return c},uJ:function(){return m},vQ:function(){return g}});var o=a(8314),r=a(283),i=a(2571);const s=(e=!0)=>new Promise(t=>{let a=i.p.getItem("crmMemberRate");if(a&&e)t(a);else{var r={pointsExchangeRate:50};(0,o.SI)("get","crm-point-api/point/exchangeRate",{}).then(e=>{200==e.code&&e.data&&(r.pointsExchangeRate=e.data.pointsExchangeRate,i.p.setItem({name:"crmMemberRate",value:r,expired:(new Date).getTime()+3e5})),t(r)}).catch(()=>{t(r)})}}),n=(e={},t=!0,a=!1)=>new Promise(r=>{let s=i.p.getItem("crmMemberPoints");if(s&&(t||a&&s.availablePoint<=0))r(s);else{var n={availablePoint:0,availablePointPrice:0,needPointPwd:1,pointPwd:""};(0,o.SI)("post","crm-point-api/point/get",e).then(e=>{200==e.code&&e.data&&(n.availablePoint=e.data.point,n.availablePointPrice=e.data.pointAmount,i.p.setItem({name:"crmMemberPoints",value:n,expired:(new Date).getTime()+3e5})),r(n)}).catch(()=>{r(n)})}}),c=(e={},t=!1)=>{var a={availablePoint:0,availablePointPrice:0,needPointPwd:1,pointPwd:"",pointRatio:50,cardLevel:0,cardLevelDesc:""};return new Promise(o=>{Promise.all([(0,r.lj)(e,t),s(),n(e,t)]).then(e=>{e.forEach(e=>{Object.assign(a,e)}),o(a)}).catch(()=>{o(a)})})},l=(e=!0)=>new Promise(t=>{let a=i.p.getItem("crmMemberLevel");if(a&&e)t(a);else{var r=[];(0,o.kN)("get","/ctfmall-common2-server/api/v1/user/cardLevelList",{}).then(e=>{e.data&&e.data.length>0&&(r=e.data,i.p.setItem({name:"crmMemberLevel",value:r,expired:(new Date).getTime()+864e5})),t(r)}).catch(()=>{t(r)})}}),u=(e={})=>(0,o.Em)("post","/api/account/refresh",e),d=(e={})=>(0,o.kN)("post","/ctfmall-common2-server/api/user/cancelAccount",e),h=(e={})=>(0,o.kN)("get","/ctfmall-common2-server/api/v1/user/isCanExportUserinfo",e),p=(e={})=>(0,o.kN)("get","/ctfmall-common2-server/api/v1/user/sendVerificationCode",e),m=(e={})=>(0,o.kN)("get","/ctfmall-common2-server/api/v1/user/exportUserInfo",e),g=(e={})=>(0,o.kN)("get","/ctfmall-order-server/api/giftCard/getSwitchConfig",e),f=(e={})=>(0,o.kN)("get","/ctfmall-order-server/api/giftCard/getGiftCardBalance",e),v=(e={})=>(0,o.kN)("get","/ctfmall-order-server/user/staffQuota",e),_=()=>(0,o.kN)("get","/ctfmall-common2-server/api/v1/user/cardLevelList",{}),y=()=>(0,o.SI)("post","c/data/query",{code:"loyCardLevel"})},7563:function(){!function(e,t,a,o,r){e[r]=e[r]||function(){(e[r].q=e[r].q||[]).push(arguments)},a=t.createElement("script"),tag=t.getElementsByTagName("script")[0],a.async=1,a.src=("https:"==document.location.protocol?"https://":"http://")+o,tag.parentNode.insertBefore(a,tag)}(window,document,"script","assets.growingio.com/2.1/gio.js","gio")},7825:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABECAYAAAA4E5OyAAAAAXNSR0IArs4c6QAACQRJREFUeF7tXF1sFNcV/u7d2V2v1zb+/8G7DkT8lNDSFBeSQiIaUTUJbFRU9SGRqj4VhYWSl0Zq+9K6fWkr0ZekZInoU1UpeagqKhknqYqSKIEmUDspLVAMCsRe438Dtnf
33Xuzt7T3XvrI0HZu3FnpmlkY+E/MDsPed8c+655+8OwwqZEGBu4RHvOh5iQn9CgDYxsA0C2MDAahhQSaBKKQcDmyJgikA3OdBLoF4Odom49mFoz/64G7I6Bgh1dPCBx5qfgsD3iGg3gPXLVOgKY+wUOP7c+vHQu6yjQyxzPcuf2w7IwImjYXj5QUH4PoDQHFfGQB4/4PGCuBdQ/7iyCzD5FwBJHQkQAhBZMJEFclmwXBogmq9AnDP8CVnxWuu+Q/12AmMbIP1/PboOGv8JCD8A4FP6cQ3wloO8ZQD3AWyJ7CQYIgOWnQGySTChz2KQAcMfoYvfhr9z6KodwCxRwjusR949WjGT4B2M4SUQvAoICYKvAtD8dsh47xp6GiwzDZZNGv/HkCXCK2VB0dH41KHp5TBdFiB9Xa/v40SvEpHaGuQNgvxVgEdbjkzF/zang6UnwbIJAxfG4kKIw23PHTxR/CLmJ5cEyJWuV/zlwn+EGB0iIkYeHyhQA3jUTnGfchmw1E0w+ZcxYsSOJnn65fV7XkrfrzD3DYh0mqTxEwRslcxEWTXgq1S+saQkfW5mCnzmVn4XoYfpYt/9Ot37UuNG5/FNOdLfAUNYOkwqryudVRRCX1pJctxwvIR+D9OeXh3Zf6nYl1U0IP1vx7YzHV0E1Mnjk4L1d47LYrm59RwJsOQYmHS+wDhp2BN+Jnq2GPZFASItQ0D/QIGhBQzLWOoRWoxUdjxDZFiKnlKgcGhPFmMpiwIifYbw8NNqm0gwgnVGMPV/QQSWMECR24fnxM7FfMqCmsnTJCC8Z6QDNbZJw4NvGXe/KGkpiVEV7TKgJ8WzOxY6fRYEZKDz9VcFxI+UA61ocsRnMO6Bv6pGqZGevAkSOfttT/qU6WHlaDn471sjLx4uxKQgIPmg6y8yzhASDAdiDF9lNeq/tBWaP6Dk09MpjP23B5kp4+i0lXIZcAkKYyQY+27bnhctgzdLQGQ4nkl6LskIVMUZfpWd20rMo6Fl6y5o/jLTunp6BoM974Nyc/mKfXzTRpwiI1pfeW6TVZhvCUi8M3aEgB+rCDQot4p9Ms2uFKhrRsOmdsuFRy91IzU+ZD9TAlhiWEW0BPyuLRJ9+W4m96iaz1ovykTNqa0ihQg2hlC34auWSo/3/guJEYfqQfmtIxNC6OKRu7PkewE5GTsOwg9VolZea/9byq9YEgvJ82bJCSMhZPhDeG90/3wlTYComEPjsq7gExUtjmatZTUNaNy83RLwkQtnMXNz1LGXgZwOPj0o189wXaybH5uYATkZ+7Ug/FTVM2Q06iD5q2rRtOUblhyGz/8D6ckJB7nDiGKzSXCG37Tujf5sltkcILIGGv960+ey7CeCjc4Vd/KcvRWr0PLoE5ZKD376IbLTtx0FBHoaPDEiecRD/xx+aLZGOwdI/K1juylHf1dBWGWLs8IA0AIVWN2+y5LPje73oKeMoo+TxKYGVbDGPOxboWcPnJK87gBy8liMiA7IiheVrXJSDrW2x1+G1m2yGH8vDZw7hVx6xnEZ2Mxto+LG2LHQ3gNREyD9nbFe2Spw8qidryHXvAg9/m1LpeMf/Q1CzzoOCHJp8Gm1ba6EI9ENc4DIJhIJvV+m9KKy1Z0EjnG07XzWUum+02/lWxIOY0IEPjWgWhyMa2HZDFNbZqAz9rwA3iCtzMhoXaLwzj3SXE3ciAj9p7tckkBGrqNg+gw48EJrJPqmkqa/87VfAuzn5K8EydzFJQo9/jS4Zq7QC11H/KN3XJIAYDK3SU/JnsGvwpGDv1CAxDtjbxDwvAjUAr6ga8K0bt8Nj8+c3OUyMxg4qxy+O5RJgKcm5OnyZigSfUEB0tcZ62bAViETOc29VkJL+zfhDZhfQDaVwGD3e+6AIbnoGfDEsEz2etoi0fZZC7lGwBoh4w/ZfnSJmr/2JHzBKhO3TGISQ5984JIEso+ig8t4BLgeikTX5gE5NkqgelG5GuAe14Rp2rJjrlo2y1RWzYbPn3FNBogc+NQNOYoxFoocaMg71ZiMgvyiKuTOkZtXt+HLjyFQXW9SPnVrDKP/+dg9QOTRO6lKDelwJFpWUkDqN7WjvK7ZpHxyfAhjl7pLC0i8szRbpm7jowg2tJqUT4wOYPzyp+4BYr1ljn0G0Fq3nWrtuq+gornNpPz0UB8mrv7bRUAMpwqwa+HIgYdLeuxWr30EVa1rTcpPDlzDrWsX3QOkwLFbksBs1UMbsSq8zqT87f6ruP35ZfcAsQrMShW6V4XWoXrNRpPyt65fxmTclumookC1DN1LldxVrl6Dmoc3mwS/+dkFTN24XpQydjxkmdyVJP2XrYimMOrWbzHpNX7lPBLDtg4WFsatUPovf3GnQNQoy1l2gL/oGuX1LaqVOZ9kKzM5pirizlOhApHkHHe5hCh5amXlaGnfBZafUyUSGOx+H/pMfrrQYUgWLCG6XWSe1bW8YTVWtanqHW739SI5esNhGO4sv2CR2e02hGtaF2K0WBtC/m7AxUZVqQFZtFGlAHGxlTkLiK+iGsFmYyQ+MRRHZtqB2ZC70S+2lalOG5ea3ZJXoLYJMuOdLTTLArPMdFMTw44aUNHNbgWIMcTv+DiE5FWSEuL9jkNIQfs6Y0eYwwMzkk94xzOQM2bzSc6Y9Z952xkLWcrAjJTEjZEqyadh8zYEahpNyqcmRjB68ZwzgCx1pEpZiXHTwdGhO48/gMbN2+AtN2bYsskpjFw4h1w6ZT8gyxm6m5XGjbFMeZtq/limcavKZrJjLFOK9IUZ3E3KdqUNg7tzscnKaLfZZFeG/y228Mr1EAtQVi4QWYCycsXMApSVS4gFwoIH8poqY4cL3XQoJrpZ9li/CvMTvINWLjKb8V74qnvAuOu/1Ht66qp7FiybevCvut9thisfQyiwMVc+l7GIx7L6oAoHagFWMf+DKgBNC2DiC/dBlWI8+oP4zP8AJdgAkEscKcsAAAAASUVORK5CYII="},7967:function(e,t,a){"use strict";a.d(t,{Kt:function(){return s},RJ:function(){return g},RS:function(){return p},W$:function(){return u},Y4:function(){return l},do:function(){return n},u8:function(){return h},w8:function(){return c},xn:function(){return d},xs:function(){return i},yK:function(){return m}});var o=a(8314),r=a(8384);const i=(e={})=>(0,o.kN)("get","/ctfmall-marketing-server/api/v1/web/classifies",e),s=e=>(0,o.kN)("post","/ctfmall-goods-server/openSearch/hotSearch",e),n=(e={})=>(0,o.kN)("get","/ctfmall-common2-server/common/ctfTodayGoldPriceNew",e),c=(e={})=>(0,o.kN)("get","/ctfmall-common2-server/common/todayGoldPriceNew",e),l=(e={})=>(0,o.kN)("get","/ctfmall-common2-server/adverseManage/getAd?tagValue=3",e),u=(e={})=>(0,o.kN)("get","/ctfmall-marketing-server/api/v1/mini/getGoldPriceDecorate",e),d=(e={})=>(0,o.Em)("get","/api/common/getBadWords",e),h=(e={})=>(0,o.kN)("get","/ctfmall-marketing-server/api/v1/web/search",e),p=(e={})=>(0,o.kN)("get","/ctfmall-marketing-server/api/v1/web/notice",e),m=r.A.M_QRCODE,g=r.A.API_URL_NEW+"/ctfmall-marketing-server/api/qrCode/getQRCode?scene="},8314:function(e,t,a){"use strict";a.d(t,{Em:function(){return v},SI:function(){return b},VT:function(){return w},kN:function(){return y},nV:function(){return _},nS:function(){return C}});var o=a(2505),r=a.n(o),i=a(5908),s=a(2996),n=a(2571),c=a(1052);let l=!1;const u=r().create({timeout:2e4});var d=0;u.interceptors.request.use(e=>(e.params&&(e.responseType=e.params.responseType,delete e.params.responseType),e),e=>Promise.reject(e)),u.interceptors.response.use(e=>{if(e.data&&250002==e.data.code&&d<=0)return d++,n.p.removeItem("userInfo"),n.p.removeItem("idToken"),i.A.dispatch("user/ClearUserInfo"),s.A.replace("/"),Promise.reject(e.data);if(e.data&&500101==e.data.code&&!l&&(l=!0,(0,c.MessageBox)({title:"温馨提示",message:e.data.msg||"活
33动火爆,当前访问人数较多请您稍后再试",showCancelButton:!1,confirmButtonText:"确定",showClose:!1,callback:()=>{l=!1}})),e&&200==e.status){if(e.data&&1001==e.data.retcode){var t=e.config&&e.config.url;return n.p.removeItem("userInfo"),n.p.removeItem("idToken"),i.A.dispatch("user/ClearUserInfo"),t.indexOf("/syncUserCart")<0&&(s.A.app&&s.A.app._route&&s.A.app._route.fullPath&&n.U.setItem({name:"redirect",value:s.A.app._route.fullPath}),s.A.replace("/login")),Promise.reject(e.data)}return e.header&&1==e.header.TOKEN_REFRESH&&i.A.dispatch("_updateIdToken"),Promise.resolve(e.data)}return Promise.reject(e.data)},e=>(e.response&&e.response.data&&500101==e.response.data.code&&!l&&(l=!0,(0,c.MessageBox)({title:"温馨提示",message:e.response.data.msg||"活动火爆,当前访问人数较多请您稍后再试",showCancelButton:!1,confirmButtonText:"确定",showClose:!1,callback:()=>{l=!1}})),Promise.reject(e)));var h=u,p=a(8384),m=a(2191);new m.A;let g={appId:p.A.APPID},f={appId:p.A.APPID};function v(e,t,a={},o={}){a.timestamp=Date.now();let r=k(t);return a=Object.assign(a,r),h.post,h[e](p.A.API_URL+t,["get","delete"].includes(e)?{params:a,headers:g}:a,{headers:g}).catch(e=>{e.response&&401==e.response.status&&(n.p.removeItem("userInfo"),n.p.removeItem("idToken"),i.A.dispatch("user/ClearUserInfo"),t.indexOf("/syncUserCart")<0&&s.A.replace("/login")),Promise.reject(e)})}function _(e,t,a={},o={}){return a.timestamp=Date.now(),h[e](p.A.SSO_API_URL+t,["get","delete"].includes(e)?{params:a,headers:{...g,...o}}:a,{...o,headers:g}).catch(e=>Promise.reject(e))}function y(e,t,a={},o={}){a.timestamp=Date.now();let r=k(t);return a=Object.assign(a,r),h.post,h[e](p.A.API_URL_NEW+t,["get","delete"].includes(e)?{params:a,headers:g}:a,{headers:g}).catch(e=>{e.response&&401==e.response.status&&(n.p.removeItem("userInfo"),n.p.removeItem("idToken"),i.A.dispatch("user/ClearUserInfo"),t.indexOf("/syncUserCart")<0&&s.A.replace("/login")),Promise.reject(e)})}function b(e,t,a={},o={}){return h.post,h[e](p.A.CCRM_API_URL+t,["get","delete"].includes(e)?{params:a,headers:f}:a,{headers:f}).catch(e=>{e.response&&401==e.response.status&&(n.p.removeItem("userInfo"),n.p.removeItem("idToken"),i.A.dispatch("user/ClearUserInfo"),t.indexOf("/syncUserCart")<0&&s.A.replace("/login")),Promise.reject(e)})}function w(e,t,a={},o={}){a.timestamp=Date.now();let r=k(t);a=Object.assign(a,r);let c=p.A.API_URL.split("//"),l=c[0]+(c[1]?"//"+c[1].split("/")[0]:"");return h.post,h[e](l+t,["get","delete"].includes(e)?{params:a,headers:g}:a,{headers:g}).catch(e=>{e.response&&401==e.response.status&&(n.p.removeItem("userInfo"),n.p.removeItem("idToken"),i.A.dispatch("user/ClearUserInfo"),t.indexOf("/syncUserCart")<0&&s.A.replace("/login")),Promise.reject(e)})}function C(e,t={}){let a={"Content-Type":"multipart/form-data",...g};return h.post,h["post"](p.A.API_URL_NEW+e,t,{headers:a}).catch(t=>{t.response&&401==t.response.status&&(n.p.removeItem("userInfo"),n.p.removeItem("idToken"),i.A.dispatch("user/ClearUserInfo"),e.indexOf("/syncUserCart")<0&&s.A.replace("/login")),Promise.reject(t)})}function k(e){let t={},a=["ctfmall-goods-server/openSearch/getSearchValueNew","ctfmall-goods-server/product/queryGoodsDetails","ctfmall-goods-server/product/shoppingCart/getGoodsDetails","ctfmall-goods-server/product/syncUserCart","ctfmall-goods-server/product/getGoodsPriceStock","ctfmall-goods-server/product/syncUserCartCount","ctfmall-marketing-server/api/v1/coupon/order/getValidCouponNew","ctfmall-marketing-server/api/v1/coupon/cloudCommerceCoupon","getValidIdentityCoupon","ctfmall-marketing-server/api/v1/coupon/order/getPayCoupon","ctfmall-marketing-server/api/v1/coupon/getPointCouponNew","CTFMALL_ORDER_API.ashx?action=createOrder","ctfmall-common2-server/common/checkSign","ctfmall-common2-server/common/saveSign","api/goods/getproductmarkeings","order/getPayCoupon","api/v1/coupon/exchangeCoupon","api/v1/coupon/receiveAll","api/scratchCards/distributeCoupons","api/v1/allowance/getAllowanceAmount","CTFMALL_User_API.ashx?action=checkpwdandgaincoupon","CTFMALL_Common_API.ashx?action=getcoupon","ctfmall-goods-server/product/points/estimate","ctfmall-marketing-server/api/v1/orderPage/goodsShareAmountPlus"];if(a.findIndex(t=>e.indexOf(t)>=0)>=0){let e=window.localStorage.getItem("crmMemberInfo")||null;t.cardLevel=e?e.cardLevel:1,t.vipNo=i.A.state.user.userInfo.cardNo||0,t.cardNo=i.A.state.user.userInfo.cardNo||0}return t}i.A.state.user.userInfo.uid>0&&(g.uid=i.A.state.user.userInfo.uid,f.uid=i.A.state.user.userInfo.uid),i.A.state.user.idToken&&(g.i
33dToken=i.A.state.user.idToken,f.Authorization="Bearer "+i.A.state.user.idToken)},8384:function(e,t,a){"use strict";a(2571);var o=a(8987),r=a(2191);new r.A;let i={};function s(){return"undefined"!=typeof XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}const n=s();let c="/config.json?t="+Date.now();n.open("GET",c,!1),n.send(),200==n.status?(i=JSON.parse(n.responseText),o.A.set("appId",i.APPID,{path:"/"})):uni.showToast({title:"初始化失败",icon:"none",duration:3e3}),t.A=i},9888:function(e,t,a){"use strict";a.d(t,{$n:function(){return g},KV:function(){return i},OD:function(){return _},OZ:function(){return p},P9:function(){return f},TU:function(){return s},TW:function(){return u},_:function(){return m},dZ:function(){return y},fF:function(){return h},gf:function(){return l},h1:function(){return n},sE:function(){return v},ui:function(){return d},w:function(){return c}});var o=a(8384),r=a(8314);const i=(e={})=>(0,r.nV)("post","/auth/gt/send/sms",e),s=(e={})=>(0,r.nV)("post","/auth/register",e),n=(e={})=>(0,r.nV)("get","/auth/error/query",e),c=(e={})=>(0,r.kN)("get","/ctfmall-common2-server/api/v1/account/encrypt",e),l=(e={})=>(0,r.kN)("post","/ctfmall-common2-server/api/v1/account/token",e),u=(e={})=>(0,r.SI)("post","crm-member-api/common/dictionary",e),d=o.A.SSO_LOGIN_URL,h=o.A.SSO_API_URL,p=o.A.SSO_CLIENT_ID,m=o.A.SSO_REDIRECT_URI,g=o.A.STAFF_LOGIN_URL,f=o.A.STAFF_LOGIN_CLIENT_ID,v=o.A.LOGOUT_REDIRECT_URL,_=o.A.STAFF_LOGOUT_URL,y=o.A.STAFF_LOGOUT_REDIRECT_URL}},t={};function a(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={id:o,loaded:!1,exports:{}};return e[o].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}a.m=e,function(){a.amdO={}}(),function(){var e=[];a.O=function(t,o,r,i){if(!o){var s=1/0;for(u=0;u<e.length;u++){o=e[u][0],r=e[u][1],i=e[u][2];for(var n=!0,c=0;c<o.length;c++)(!1&i||s>=i)&&Object.keys(a.O).every(function(e){return a.O[e](o[c])})?o.splice(c--,1):(n=!1,i<s&&(s=i));if(n){e.splice(u--,1);var l=r();void 0!==l&&(t=l)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[o,r,i]}}(),function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){a.d=function(e,t){for(var o in t)a.o(t,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})}}(),function(){a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce(function(t,o){return a.f[o](e,t),t},[]))}}(),function(){a.u=function(e){return"js/"+e+"."+{0:"fd8ca5fc",18:"0e62ad3f",30:"370ec930",38:"a896b76c",41:"cf1924c3",118:"86995bd6",259:"43bf6081",302:"8cc48c7e",311:"7abddd85",320:"32ebf4ac",345:"09b1dc8f",376:"432f4691",405:"5e77977c",417:"3100a033",418:"7a69fc49",426:"81260284",457:"e4632ba1",465:"92d97923",501:"4bfa17dd",510:"b6d3c415",529:"80119c05",554:"7f90057c",555:"1b4fa588",568:"5410b233",575:"f8613188",590:"7ce51b98",613:"fd411304",638:"cd60c226",658:"d6f8257b",680:"c728fa73",681:"7431ea0e",730:"a9b889c6",751:"07697711",792:"a84ecd1a",824:"b8e41fbd",834:"e26fe00b",839:"35c6b81e",860:"484d1f20",869:"e710b618",908:"316a407f",913:"8a657087",921:"0511e5aa",945:"6f5af734",956:"16a3bbd6",962:"19b8b2c8",989:"ecb587bb",995:"9809f738"}[e]+".js"}}(),function(){a.miniCssF=function(e){return"css/"+e+"."+{0:"72a79db0",18:"3610e171",38:"cbdd490c",41:"a048a25a",259:"5a9ac47d",302:"8dc06d67",311:"13f644ef",320:"514b0829",345:"bcb9ef01",376:"b13e3dc2",405:"6fda66c7",417:"8c645c47",418:"398c6c46",426:"9f8357e9",457:"993bf71f",465:"0e519193",501:"c5157c84",510:"e3ae962f",529:"e80bf2ee",554:"06df5cc1",555:"d5f5523e",568:"d4da5188",575:"bb5c4a99",613:"ca1e1029",638:"3ee7a7bd",658:"6472483d",680:"60502842",730:"276479ab",751:"70e5231b",792:"a82fa4df",824:"5ffa82e4",834:"566e9a26",839:"588a472f",869:"35e47630",908:"0805353f",913:"8e549a49",921:"feb2ea25",945:"9572f0b3",956:"2c7e5a24",962:"dc2fb22a",989:"8c2510a8",995:"53965068"}[e]+".css"}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="demo5-vue2:";a.l=function(o,r,i,s){if(e[o])e[o].push(r);else{var n,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==o||d.getAttribute("data-webpack")==t+i){n=d;break}}n||(c=!0,n=document.createElement("script"),n.charset="utf-8",a.nc&&n.setAttribute("nonce",a.nc),n.setAttribute("data-webpack",t+i),n.src=o),e[o]=[r];var h=function(t,a){n.onerror=n.onload=null,clearTimeout(p);var r=e[o];if(delete e[o],n.parentNode&&n.parentNode.removeChild(n),r&&r.forEach(function(e){return e(a)}),t)return t(a)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=h.bind(null,n.onerror),n.onload=h.bind(null,n.onload),c&&document.head.appendChild(n)}}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
33),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){a.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){a.p="/"}(),function(){if("undefined"!==typeof document){var e=function(e,t,o,r,i){var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",a.nc&&(s.nonce=a.nc);var n=function(a){if(s.onerror=s.onload=null,"load"===a.type)r();else{var o=a&&a.type,n=a&&a.target&&a.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+n+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=o,c.request=n,s.parentNode&&s.parentNode.removeChild(s),i(c)}};return s.onerror=s.onload=n,s.href=t,o?o.parentNode.insertBefore(s,o.nextSibling):document.head.appendChild(s),s},t=function(e,t){for(var a=document.getElementsByTagName("link"),o=0;o<a.length;o++){var r=a[o],i=r.getAttribute("data-href")||r.getAttribute("href");if("stylesheet"===r.rel&&(i===e||i===t))return r}var s=document.getElementsByTagName("style");for(o=0;o<s.length;o++){r=s[o],i=r.getAttribute("data-href");if(i===e||i===t)return r}},o=function(o){return new Promise(function(r,i){var s=a.miniCssF(o),n=a.p+s;if(t(s,n))return r();e(o,n,null,r,i)})},r={57:0};a.f.miniCss=function(e,t){var a={0:1,18:1,38:1,41:1,259:1,302:1,311:1,320:1,345:1,376:1,405:1,417:1,418:1,426:1,457:1,465:1,501:1,510:1,529:1,554:1,555:1,568:1,575:1,613:1,638:1,658:1,680:1,730:1,751:1,792:1,824:1,834:1,839:1,869:1,908:1,913:1,921:1,945:1,956:1,962:1,989:1,995:1};r[e]?t.push(r[e]):0!==r[e]&&a[e]&&t.push(r[e]=o(e).then(function(){r[e]=0},function(t){throw delete r[e],t}))}}}(),function(){var e={57:0};a.f.j=function(t,o){var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var i=new Promise(function(a,o){r=e[t]=[a,o]});o.push(r[2]=i);var s=a.p+a.u(t),n=new Error,c=function(o){if(a.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){var i=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;n.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",n.name="ChunkLoadError",n.type=i,n.request=s,r[1](n)}};a.l(s,c,"chunk-"+t,t)}},a.O.j=function(t){return 0===e[t]};var t=function(t,o){var r,i,s=o[0],n=o[1],c=o[2],l=0;if(s.some(function(t){return 0!==e[t]})){for(r in n)a.o(n,r)&&(a.m[r]=n[r]);if(c)var u=c(a)}for(t&&t(o);l<s.length;l++)i=s[l],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return a.O(u)},o=self["webpackChunkdemo5_vue2"]=self["webpackChunkdemo5_vue2"]||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))}();var o=a.O(void 0,[504],function(){return a(1865)});o=a.O(o)})();

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.