PageSourceSearch

https://www.ctfmall.com/js/839.35c6b81e.js

js ctfmall.com collected 2026-10-09 22:41:09 UTC 45,579 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkdemo5_vue2"]=self["webpackChunkdemo5_vue2"]||[]).push([[839],{3583:function(t,s,e){e.r(s),e.d(s,{default:function(){return P}});var i=function(){var t=this,s=t._self._c;return s("div",{staticClass:"wrapper"},[s("div",{staticClass:"information"},[s("div",{staticClass:"username font-title"},[t._v("您好,"),t.userInfo.nickname?s("span",[t._v(t._s(t.userInfo.nickname))]):t.memberInfo.chineseFamilyName?s("span",[t._v(t._s(t.memberInfo.chineseFamilyName+t.memberInfo.memberTitleDesc))]):s("span",[t._v("商城用户")])]),t.userInfo.staff?t._e():s("div",{staticClass:"join"},[t._v("周大福已陪伴您走过"+t._s(t.memberInfo.joinDays)+"天")]),t.userInfo.staff?s("div",{staticClass:"staffcode"},[s("div",{staticClass:"txt"},[t._v(t._s(t.userInfo.staffCode))])]):s("div",{staticClass:"property"},[s("div",{staticClass:"item"},[s("div",{staticClass:"num font-title"},[t._v(t._s(t.$utils.priceFormat(t.memberInfo.availablePoint||0)[0]))]),s("div",{staticClass:"txt"},[t._v("周大福积分")])]),t.isGiftCardShow?s("div",{staticClass:"item"},[s("div",{staticClass:"num font-title"},[t._v("¥"+t._s(t.$utils.priceFormat(t.giftCardMoney||0)[2]))]),s("div",{staticClass:"txt"},[t._v("礼品卡")])]):t._e()])]),s("div",{staticClass:"container"},[t.cardLevelList.length>0&&!t.userInfo.staff?s("div",{staticClass:"content"},[s("div",{staticClass:"box memberinfo"},[t._m(0),s("div",{staticClass:"bd"},[s("div",{staticClass:"card",style:"color:"+t.memberInfo.fontColor+";"},[s("img",{attrs:{src:t.memberInfo.bgSrc,alt:""}}),s("div",{staticClass:"card-name font-title"},[t._v(t._s(t.memberInfo.cardLevelName))]),s("div",{staticClass:"no"},[t._v("NO."+t._s(t.userInfo.cardNo))]),s("div",{staticClass:"consume"},[t._v("累计消费"),s("span",{staticClass:"yen"},[t._v("¥")]),t._v(t._s(t.$utils.priceFormat(t.memberInfo.consumeAmount||0)[2]))])]),t.memberInfo.isBlack?t._e():s("div",{staticClass:"progress"},[s("div",{staticClass:"circle"},[s("el-progress",{attrs:{type:"circle",width:171,percentage:t.progress||0,"show-text":!1,color:"#796E65"}}),t.memberInfo.isLast?s("div",{staticClass:"amount"},[t._v("最高等级")]):s("div",{staticClass:"amount font-title"},[t._v("¥"+t._s(t.$utils.priceFormat(t.fixNumber(t.cardLevelList[t.cardCurrent].consumptionAmount))[0]))])],1),s("div",{staticClass:"tips"},[t.memberInfo.isLast?[t.memberInfo.membershipExpirationDate?[t._v("您于"+t._s(t.memberInfo.membershipExpirationDate)+"前,")]:t._e(),t._v("再消费"),s("span",[t._v(t._s(t.$utils.priceFormat(t.fixNumber(t.memberInfo.renewNum))[2]))]),t._v("元即可保籍成功 ")]:[t.memberInfo.membershipExpirationDate?[t._v("您于"+t._s(t.memberInfo.membershipExpirationDate)+"前,再")]:t._e(),t._v("消费"),s("span",[t._v(t._s(t.$utils.priceFormat(t.fixNumber(t.memberInfo.upgradeAdditionalAmount))[2]))]),t._v("元即可升级为"+t._s(t.memberInfo.nextCardLevelName)+" ")]],2)])])])]):t._e(),s("div",{staticClass:"content"},[s("div",{staticClass:"box account"},[s("div",{staticClass:"hd border-bottom-1"},[s("div",{staticClass:"tit font-title"},[t._v("账户信息")]),s("div",{staticClass:"btn-wrap"},[s("div",{staticClass:"btn cursor-pointer",on:{click:t.handleExport}},[t._v("个人信息导出")]),s("div",{staticClass:"btn cursor-pointer",on:{click:t.handleLogout}},[t._v("注销账号")])])]),s("div",{staticClass:"bd"},[s("div",{staticClass:"row"},[s("div",{staticClass:"label"},[t._v("用户名")]),s("div",{staticClass:"val"},[t._v(t._s(t.userInfo.nickname||(t.memberInfo.chineseFamilyName?t.memberInfo.chineseFamilyName+t.memberInfo.memberTitleDesc:t.userInfo.staffCode||t.userInfo.uid)))])]),t.userInfo.staff?t._e():s("div",{staticClass:"row"},[s("div",{staticClass:"label"},[t._v("手机号")]),s("div",{staticClass:"val"},[t._v(t._s(t.userInfo.phone))])]),t.userInfo.staff?t._e():s("div",{staticClass:"row"},[s("div",{staticClass:"label"},[t._v("会员等级")]),s("div",{staticClass:"val"},[t._v(t._s(t.memberInfo.cardLevelName))])]),t.userInfo.staff?t._e():s("div",{staticClass:"row"},[s("div",{staticClass:"label"},[t._v("会员卡号")]),s("div",{staticClass:"val"},[t._v(t._s(t.userInfo.cardNo))])]),t.userInfo.staff?s("div",{staticClass:"limit"},[s("div",{staticClass:"limit-tit border-bottom-1 font-title"},[t._v("自购额度")]),s("div",{staticClass:"limit-list"},[s("div",{staticClass:"limit-row"}
1,[t._v("本财年总额度:"),s("span",[t._v(t._s(t.staffLimit.total))])]),s("div",{staticClass:"limit-row"},[t._v("已用额度:"),s("span",[t._v(t._s(t.staffLimit.used))])]),s("div",{staticClass:"limit-row"},[t._v("可用额度:"),s("span",[t._v(t._s(t.staffLimit.available))])]),s("div",{staticClass:"limit-row"},[t._v("占用额度:"),s("span",[t._v(t._s(t.staffLimit.freeze))])])])]):t._e()])]),s("div",{staticClass:"box address"},[s("div",{staticClass:"hd border-bottom-1"},[s("div",{staticClass:"tit font-title"},[t._v("地址管理")]),s("div",{staticClass:"btn cursor-pointer",on:{click:t.handleAddAddress}},[t._v("添加新地址")])]),s("div",{staticClass:"bd"},[t.addressList.length>0?s("div",{staticClass:"list"},[s("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[s("div",{staticClass:"gap"}),t._l(t.addressList,function(e,i){return s("div",{key:i,staticClass:"item"},[s("div",{staticClass:"top"},[e.IsDefault?s("div",{staticClass:"default"},[t._v("默认")]):t._e(),s("div",{staticClass:"info"},[s("span",[t._v(t._s(e.ReciverName))]),s("span",[t._v(t._s(e.MobilePhone))])])]),s("div",{staticClass:"desc"},[t._v(t._s(e.ProvinceName?e.ProvinceName+" ":"")+t._s(e.CityName?e.CityName+" ":"")+t._s(e.DistrictName?e.DistrictName+" ":"")+t._s(e.Street))]),s("div",{staticClass:"opera"},[s("div",{staticClass:"btn cursor-pointer",on:{click:function(s){return t.handleEditAddress(e)}}},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_edit_v5.png",alt:""}})]),s("div",{staticClass:"btn cursor-pointer",on:{click:function(s){return t.handleDeleteAddress(e)}}},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_delete2_v5.png",alt:""}})])])])})],2)],1):s("div",{staticClass:"nodata"},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_empty_v5.png",alt:"无数据"}}),s("p",[t._v("您目前没有收货地址")])])])])]),s("div",{staticClass:"content"},[s("div",{staticClass:"box order-list"},[s("div",{staticClass:"hd border-bottom-1"},[s("div",{staticClass:"tit font-title"},[t._v("我的订单")]),s("div",{staticClass:"btn cursor-pointer",on:{click:function(s){return t.toView("/myIndex/orderList")}}},[t._v("查看全部订单")])]),s("div",{staticClass:"bd"},[t.orderList.length>0?s("div",{staticClass:"list"},t._l(t.orderList,function(e,i){return s("div",{key:i,staticClass:"item cursor-pointer border-all-1",on:{click:function(s){return s.stopPropagation(),t.toView("/myIndex/order?orderNo="+e.orderNo)}}},[s("div",{staticClass:"item-hd"},[s("div",{staticClass:"order-num",on:{click:function(s){return s.stopPropagation(),t.handleCopyText(e.orderNo)}}},[s("p",[s("span",[t._v("订单编号")]),t._v(t._s(e.orderNo))]),s("img",{staticClass:"cursor-pointer",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_copy_v5.png",alt:""}})]),s("div",{staticClass:"status"},[t._v(t._s(e.orderStateDesc))])]),s("div",{staticClass:"item-bd"},[s("div",{staticClass:"left"},[e.goodsList&&e.goodsList.length>0?s("div",{staticClass:"goods"},[t._l(e.goodsList,function(e,o){return[o<5?s("div",{key:i+"_goods_"+o,staticClass:"goods-item"},[s("div",{staticClass:"thumb"},[s("el-image",{attrs:{src:e.thumb,fit:"cover"}})],1)]):t._e()]})],2):t._e(),s("div",{staticClass:"total"},[e.goodsList&&e.goodsList.length>5?s("span",{staticClass:"more"},[t._v("...")]):t._e(),t._v("共 "+t._s(t.getOrderGoodsTotal(e.goodsList))+" 件")])]),s("div",{staticClass:"right"},[s("div",{staticClass:"amount"},[e.payBtnShow?s("span",{staticClass:"txt"},[t._v("需支付")]):4==e.actualAmountStatus?s("span",{staticClass:"txt"},[t._v("应支付")]):s("span",{staticClass:"txt"},[t._v("实付款")]),s("span",{staticClass:"yen"},[t._v("¥")]),t._v(t._s(t.$utils.priceFormat(e.actualOrderAccount)[2]))]),e.btnArr&&e.btnArr.length>0?s("div",{staticClass:"opera"},[t._l(e.btnArr,function(o,a){return[o.disabled?s("div",{key:i+"_btn_"+a,staticClass:"btn btn-2 cursor-pointer"},[t._v(t._s(o.name))]):s("div",{key:i+"_"+a,staticClass:"btn btn-1 cursor-pointer",on:{click:function(s){return s.stopPropagation(),t.handleOperaBtn(o.type,e)}}},[t._v(t._s(o.name))])]})],2):t._e()])])])}),0):s("div",{staticClass:"nodata"},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_empty_v5.png",alt:"无数据"}}),s("p",[t._v("您目前没有订单")])])])])]),t.userInfo.staff?t._e():s("div",{staticClass:"content"},[s("div",{staticClass:"box service"},[t._m(1),s("div",{staticClass:"bd"},[s("div",{staticClass:"list"},[s("div",{staticClass:"item cursor-pointer border-all-1",on:{click:function(s){return t.toView("/electronicGuarantee")}}},[t._m(2),s("div",{staticClass:"txt"},[t._v("电子保证单")]),t._m(3)]),s("div",{staticClass:"item cursor-pointer border-all-1",on:{click:function(s){return t.toView("/invoiceManage")}}},[t._m(4),s("div",{staticClass:"txt"},[t._v("发票管理")]),t._m(5)]),s("div",{staticClass:"item cursor-pointer border-all-1",on:{click:function(s){return t.toView("/commodityVerification")}}},[t._m(6),s("div",{staticClass:"txt"},[t._v("商品核验")]),t._m(7)])])])])])]),s("custom-popup-v5",{ref:"customPopup"}),s("exportPopup",{ref:"exportPopup"}),s("logoutPopup",{ref:"logoutPopup"}),s("addAddressDialog",{ref:"addAddressDialog"}),s("ToMDialog",{ref:"ToMDialog"}),s("ExpressDialog",{ref:"ExpressDialog"})],1)},o=[function(){var t=this,s=t._self._c;return s("div",{staticClass:"hd border-bottom-1"},[s("div",{staticClass:"tit font-title"},[t._v("会籍资料")])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"hd border-bottom-1"},[s("div",{staticClass:"tit font-title"},[t._v("查询服务")])])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"icon"},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_security_v5.png",alt:""}})])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"arrow"},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowr_v5.png",alt:""}})])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"icon"},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_invoice_v5.png",alt:""}})])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"arrow"},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowr_v5.png",alt:""}})])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"icon"},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_certified2_v5.png",alt:""}})])},function(){var t=this,s=t._self._c;return s("div",{staticClass:"arrow"},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowr_v5.png",alt:""}})])}],a=e(5353),r=e(6776),n=e(3712),c=e(3851),l=e(515),d=e(3988),u=e(3756),h=function(){var t=this,s=t._self._c;return s("div",[s("el-drawer",{attrs:{visible:t.visible,"append-to-body":"",direction:"rtl","show-close":!1,withHeader:!1,size:"528px"},on:{"update:visible":function(s){t.visible=s},close:t.hideModal}},[s("div",{staticClass:"pop"},[s("div",{staticClass:"hd"},[s("div",{staticClass:"tit font-title"},[t._v(t._s(t.title))]),s("div",{staticClass:"close cursor-pointer",on:{click:t.hideModal}},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_close_v5.png",alt:""}})])]),s("div",{staticClass:"bd"},[s("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[s("div",{staticClass:"export-wrap"},[s("img",{staticClass:"icon",attrs:{src:"https://cdn.ctfmall.com/goodsother/dcxx_v5.png",alt:""}}),s("div",{staticClass:"explain"},[s("div",{staticClass:"row"},[s("div",{staticClass:"label"},[t._v("1.")]),s("div",{staticClass:"val"},[t._v("可导出头像地址、昵称、会员卡号、手机号相关个人信息")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"label"},[t._v("2.")]),s("div",{staticClass:"val"},[t._v("每天最多可申请一次")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"label"},[t._v("3.")]),s("div",{staticClass:"val"}
1,[t._v("如您需下载其他个人信息或有任何疑问,可查阅"),s("span",{staticClass:"cursor-pointer",on:{click:function(s){return t.showAgreementInfo("Personal_information_collection_statement_V2")}}},[t._v("《"+t._s(t.agreement.Personal_information_collection_statement_V2.clauseTitle)+"》")]),t._v(",或通过该声明的 9.联系方式 与我们联系")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"label"},[t._v("4.")]),s("div",{staticClass:"val"},[t._v("我们将以邮件的形式将您的个人信息发送至您提交的邮箱")])])]),t.isCanExport?s("div",{staticClass:"form"},[s("el-form",{ref:"form",attrs:{model:t.form,rules:t.formRules}},[s("el-form-item",{attrs:{prop:"email"}},[s("div",{staticClass:"input-wrap"},[s("div",{class:{textplaceholder:!0,fixed:t.emailFocus||t.form.email.length>0}},[t._v("请输入邮箱地址")]),s("el-input",{on:{focus:function(s){return t.handleFocus("email")},blur:function(s){return t.handleBlur("email")}},model:{value:t.form.email,callback:function(s){t.$set(t.form,"email",s)},expression:"form.email"}})],1)])],1)],1):t._e()]),s("div",{staticClass:"opera"},[t.isCanExport?s("div",{staticClass:"common-btn common-btn-fill-red-1",on:{click:t.handleExportConfirm}},[t._v("提交申请")]):s("div",{staticClass:"common-btn common-btn-outlined-red-2"},[t._v("已申请导出")])])])],1)])]),s("custom-popup-v5",{ref:"customPopup"}),s("custom-popup-v5",{ref:"exportConfirmPopup",attrs:{popupType:"popup",slotContent:!0,confirmClose:!1}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("div",{staticClass:"export-popup"},[t.isCanExport?s("div",{staticClass:"form"},[s("el-form",{ref:"form1",attrs:{model:t.form,rules:t.formRules}},[s("el-form-item",{attrs:{prop:"code"}},[s("div",{staticClass:"input-wrap"},[s("div",{class:{textplaceholder:!0,fixed:!0}},[t._v("验证码已发送至"+t._s(t.form.email))]),s("el-input",{model:{value:t.form.code,callback:function(s){t.$set(t.form,"code",s)},expression:"form.code"}}),s("div",{class:["countdown",t.countdown.disabled?"disabled":""],on:{click:function(s){return s.stopPropagation(),t.handleSend.apply(null,arguments)}}},[t._v(t._s(t.countdown.text))])],1)])],1)],1):t._e()])])]),s("custom-popup-v5",{ref:"agreementPopup",attrs:{popupType:"popup",width:832,slotContent:!0,optionBottomBtn:!1}},[s("div",{attrs:{slot:"content"},slot:"content"},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.agreementShowLoading,expression:"agreementShowLoading"}],staticClass:"login_slot_agre_box"},[s("div",{staticClass:"login_agreement_popup_box"},[s("el-image",{staticClass:"login_agreement_popup_img",attrs:{placeholder:"载入中",src:t.agreementShowUrl}})],1)])])])],1)},m=[],p=e(3007),v={data(){const t=(t,s,e)=>s?/^.+@.+$/.test(s)?void e():e(new Error("请输入正确邮箱地址")):e(new Error("邮箱地址不能为空"));return{visible:!1,title:"个人信息导出",isCanExport:!1,form:{email:"",code:""},emailFocus:!1,formRules:{email:[{required:!0,validator:t,trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},countdown:{num:60,timer:null,text:"发送验证码",disabled:!1},agreement:{Personal_information_collection_statement_V2:{clauseKey:"Personal_information_collection_statement_V2",clauseTitle:"周大福平台个人信息收集声明",clauseVersion:"",clauseUrl:""}},agreementDialogShow:!1,agreementShowTitle:"",agreementShowUrl:"",agreementShowLoading:!1}},computed:{...(0,a.L8)(["userInfo"])},beforeDestroy(){clearTimeout(this.countdown.timer)},methods:{showModal(){this.form.email="",this.isCanExport=!1,this.visible=!0,(0,r.fW)({uid:this.userInfo.uid}).then(t=>{200==t.code&&1==t.data&&(this.isCanExport=!0,this.$nextTick(()=>{this.$refs.form.clearValidate()}))})},hideModal(){this.visible=!1},handleFocus(t){this[t+"Focus"]=!0},handleBlur(t){this[t+"Focus"]=!1},showAgreementInfo(t){this.agreementShowLoading=!0;let s={clauseKeys:[t]};(0,p.O6)(s).then(s=>{this.agreementShowLoading=!1,200==s.resultCode?(this.agreementShowTitle=s.data[t].clauseTitle,this.agreementShowUrl=s.data[t].clauseUrl,this.$refs.agreementPopup&&this.$refs.agreementPopup.showModal({title:this.agreementShowTitle,success:()=>{this.isDialogShow=!1}})):this.$toast(s.resultMessage)})},handleSend(t){if(this.countdown.disabled)return"function"==typeof t&&t(),!1;this.countdown.disabled=!0,this.countdown.text="发送中",(0,r.ID)({uid:this.userInfo.uid,mail:this.form.email}).then(s=>{200==s.code?(this.$toast("发送验证码成功"),this.handleCountdonw(),"function"==typeof t&&t()):(this.$toast("发送失败"+(s.msg?":"+s.msg:",请稍后再试")),this.countdown.disabled=!1,this.countdown.text="重新发送")}).catch(()=>{this.$toast("发送失败,请稍后再试")}
1)},handleCountdonw(){let t=this.countdown.num;t--,t<=0?(this.countdown.num=60,this.countdown.disabled=!1,this.countdown.text="重新发送"):(this.countdown.num=t,this.countdown.text=t+"s",this.countdown.timer=setTimeout(()=>{this.handleCountdonw()},1e3))},handleExportConfirm(){this.$refs.form.validate(t=>{if(!t)return console.log("error submit!!"),!1;this.handleSend(()=>{this.$refs.exportConfirmPopup&&this.$refs.exportConfirmPopup.showModal({title:"提示",isClickMask:!1,confirmText:"提交申请",success:t=>{"confirm"==t&&this.$refs.form1.validate(t=>{if(!t)return console.log("error submit!!"),!1;{let t=this.$loading({lock:!0});(0,r.uJ)({uid:this.userInfo.uid,mail:this.form.email,verificationCode:this.form.code}).then(s=>{t.close(),200==s.code?(this.isCanExport=!1,this.$toast("申请已提交,请留意您的邮件信息"),this.$refs.exportConfirmPopup&&this.$refs.exportConfirmPopup.hideModal()):this.$toast(s.msg||"网络错误")}).catch(()=>{t.close(),this.$toast("网络错误")})}})}}),this.$nextTick(()=>{this.$refs.form1.clearValidate()})})})}}},f=v,C=e(1656),_=(0,C.A)(f,h,m,!1,null,"4f30ff8e",null),g=_.exports,b=function(){var t=this,s=t._self._c;return s("div",[s("el-drawer",{attrs:{visible:t.visible,"append-to-body":"",direction:"rtl","show-close":!1,withHeader:!1,size:"528px"},on:{"update:visible":function(s){t.visible=s},close:t.hideModal}},[s("div",{staticClass:"pop"},[s("div",{staticClass:"hd"},[s("div",{staticClass:"tit font-title"},[s("img",{staticClass:"cursor-pointer",attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowl_v5.png",alt:""},on:{click:function(s){return s.stopPropagation(),t.handleGoBack.apply(null,arguments)}}}),t._v(t._s(t.title))]),s("div",{staticClass:"close cursor-pointer",on:{click:t.hideModal}},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_close_v5.png",alt:""}})])]),s("div",{staticClass:"bd"},[s("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[s("div",{staticClass:"logout-wrap"},[0==t.reasonStep?s("div",{staticClass:"logout-reason"},[s("div",{staticClass:"sub-tit"},[t._v("请选择注销原因")]),t._l(t.reasonList,function(e,i){return s("div",{key:i,staticClass:"row cursor-pointer",on:{click:function(s){return t.handleReasonChoice(i)}}},[s("div",{staticClass:"icon"},[s("img",{attrs:{src:t.reasonCurrent==i?"https://cdn.ctfmall.com/goodsother/pc_selected_v5.png":"https://cdn.ctfmall.com/goodsother/pc_noselected_v5.png",alt:"radio"}})]),s("div",{staticClass:"val"},[t._v(t._s(e.name))])])}),s("div",{staticClass:"textarea"},[s("el-input",{attrs:{type:"textarea",resize:"none",maxlength:"300",rows:3,placeholder:"期待您的反馈,我们会尽快优化提升"},model:{value:t.reasonText,callback:function(s){t.reasonText=s},expression:"reasonText"}}),s("div",{staticClass:"total"},[s("span",{class:{bold:t.reasonText.length>0}},[t._v(t._s(t.reasonText.length))]),t._v(" / 300")])],1)],2):1==t.reasonStep?s("div",{staticClass:"logout-confirm"},[s("div",{staticClass:"sub-tit"},[t._v("周大福会员账号注销须知")]),s("div",{staticClass:"explain"},[s("div",{staticClass:"row not"},[t._v("您正在申请注销"+t._s(t.phone)+"所绑定的周大福会员账号"+t._s(t.userInfo.cardNo)+",为保障您的权益,请务必仔细阅读并确认以下内容:")]),s("div",{staticClass:"row not"},[s("span",{staticClass:"remind"},[t._v("重要提醒与注意事项")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"num"},[t._v("1.")]),s("div",[t._v("会员账号注销后果:")]),s("div",[t._v("1.1因注销会员账号会影响您的会员权益和会员服务,会员账号注销后,您将无法使用原账号继续登录、使用所有关联小程序和关联平台(包括但不限于周大福珠宝微信小程序、周大福积分商城微信小程序、周大福定制微信小程序、周大福珠宝官网、周大福珠宝支付宝小程序、周大福官方旗舰店天猫平台会员通、周大福官方旗舰店京东平台会员通等);您账户内所有未使用的积分、积分券、优惠券或待兑换的礼品等权益,将视为您自动放弃且永久失效。")]),s("div",[t._v("1.2会员账号注销后,除法律法规另有规定外,您该账号下的会员信息将会被删除或匿名化处理,您无法再检索、访问、获取继续使用及恢复,我们亦无法恢复您注销的会员账号和相应的会员信息,前述会员信息包æ
1‹¬ä½†ä¸é™äºŽé”€å”®è®°å½•、订单信息、有效消费金额、电子保证单及积分等内容。")]),s("div",{staticClass:"bold"},[t._v("1.3会员账号注销后,如您再次申请成为周大福会员,我们将无法恢复您原会员账户中的任何会员信息。")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"num"},[t._v("2.")]),s("div",{staticClass:"bold"},[t._v("不能注销的情形:")]),s("div",[t._v("2.1如您的会员账户存在异常(包括但不限于涉及争议纠纷、投诉、国家机关调查等),则您注销会员账户的申请将无法完成,可在异常解决后重新申请注销。")]),s("div",[t._v("2.2如您的会员账户下存在未完成订单,则您注销会员账户的申请将无法完成,可在完成全部未完成订单后重新申请注销。“未完成订单”指您已提交但未完成的售后服务订单、未确认收货的销售订单、未完成的定制/预售订单以及其他未完成支付/退款等在处理中的订单。")]),s("div",[t._v("2.3其他不能完成您的注销会员账户的申请的情形。")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"num"},[t._v("3.")]),s("div",[t._v("我们在收到您的注销申请后,如您申请注销的会员账户不存在不能注销的情形的,则我们将在收到您的注销申请之日起【15个工作日】内完成注销手续;如您申请注销的会员账户存在不能注销的情形的,则您可在情形消失后重新提交注销申请。")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"num"},[t._v("4.")]),s("div",{staticClass:"bold"},[t._v("注销周大福会员账户并不代表您在本账户存续期间的账户行为和相关责任得到任何豁免或减轻。")])]),s("div",{staticClass:"row"},[s("div",{staticClass:"num"},[t._v("5.")]),s("div",[t._v("如您在注销过程中,遇到任何疑问或需要进一步的帮助,可前往就近门店咨询店员或拨打官方服务热线")]),s("div",[t._v("(400-166-9999),我们将为您提供必要的协助和解答。")]),s("div",[t._v("以上,如您已充分了解并知悉注销会员账号后的各项须知,对各项须知予以确认并同意的,则您可点击“继续”,并在下一页提交“注销账号”。")])]),s("div",{staticClass:"row not"},[s("div",{staticClass:"bold"},[t._v("注意事项:")]),s("div",{staticClass:"dot"},[t._v("注销时需确保会员绑定的手机号能正常接收验证码,以便核验您的会员身份;")]),s("div",{staticClass:"dot"},[t._v("如绑定会员卡的手机号码无法接收验证码,可前往就近门店咨询店员或拨打官方服务热线(400-166-9999);")])])])]):2==t.reasonStep?s("div",{staticClass:"logout-confirm"},[s("div",{staticClass:"sub-tit"},[t._v("申请注销账号")]),s("div",{staticClass:"explain"},[s("div",{staticClass:"row not"},[t._v("注销账号需验证您的手机号,我们将发送验证码到您的手机号: "+t._s(t.phone))])]),s("div",{staticClass:"form"},[s("el-form",{ref:"form",attrs:{model:t.form,rules:t.formRules}},[s("el-form-item",{attrs:{prop:"code"}},[s("div",{staticClass:"input-wrap"},[s("div",{class:{textplaceholder:!0,fixed:t.codeFocus||t.form.code.length>0}},[t._v("验证码")]),s("el-input",{on:{focus:function(s){return t.handleFocus("code")},blur:function(s){return t.handleBlur("code")}},model:{value:t.form.code,callback:function(s){t.$set(t.form,"code",s)},expression:"form.code"}}),s("div",{class:["countdown",t.countdown.disabled?"disabled":""],on:{click:function(s){return s.stopPropagation(),t.handleSend.apply(null,arguments)}}},[t._v(t._s(t.countdown.text))])],1)]),s("el-form-item",{attrs:{prop:"captcha"}},[s("div",{staticClass:"captcha-wrap"},[s("div",{attrs:{id:"captcha"}})])])],1)],1)]):t._e(),s("div",{staticClass:"opera"},[0==t.reasonStep?s("div",{staticClass:"common-btn common-btn-fill-red-1",on:{click:t.handleReasonNext}},[t._v("确认")]):1==t.reasonStep?s("div",{staticClass:"common-btn common-btn-fill-red-1",on:{click:t.handleReasonNext2}},[t._v("ç»§ç»­")]):2==t.reasonStep?s("div",{staticClass:"common-btn common-btn-fill-red-1",on:{click:t.handleLogoutConfirm}}
1,[t._v("注销账号")]):t._e()])])])],1)])]),s("custom-popup-v5",{ref:"customPopup"})],1)},w=[],x=e(366);e(1031);var I={data(){return{visible:!1,title:"注销账号",reasonList:[{value:"0",name:"需要解绑手机"},{value:"1",name:"需要解绑邮箱"},{value:"2",name:"安全/隐私顾虑"},{value:"3",name:"这是多余的账号"},{value:"4",name:"商城购物遇到困难"},{value:"5",name:"其他"}],reasonCurrent:0,reasonText:"",reasonStep:0,phone:"",form:{code:"",captcha:""},codeFocus:!1,formRules:{code:[{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,a.L8)(["userInfo"])},beforeDestroy(){clearTimeout(this.countdown.timer)},methods:{showModal(){this.reasonCurrent=0,this.reasonText="",this.reasonStep=0,this.phone=this.userInfo?this.userInfo.phone:"",this.form.code="",this.form.captcha="",this.visible=!0},hideModal(){this.visible=!1},handleGoBack(){0==this.reasonStep?this.hideModal():1==this.reasonStep?this.reasonStep=0:2==this.reasonStep&&(this.reasonStep=1)},handleReasonChoice(t){this.reasonCurrent!=t&&(this.reasonCurrent=t)},handleReasonNext(){if(5==this.reasonList[this.reasonCurrent].value&&!this.reasonText)return this.$toast("请填写注销原因"),!1;this.reasonStep=1},handleReasonNext2(){this.reasonStep=2,this.$nextTick(()=>{this.getGeetestInfo(),this.$refs.form.clearValidate()})},getGeetestInfo(){this.captcha.show=!0,this.$nextTick(()=>{initGeetest4({captchaId:this.$config.CAPTCHA_ID,product:"popup",nativeButton:{width:"464px",height:"48px"}},t=>{this.captcha.obj=t,document.getElementById("captcha").innerHTML="",t.appendTo("#captcha"),setTimeout(()=>{let t=document.getElementsByClassName("geetest_popup_wrap");if(t&&t.length>0)for(let s=0;s<t.length;s++)t[s]&&(t[s].style.zoom=1/this.bodyZoom)},500),t.onSuccess(()=>{let s=t.getValidate();s&&(this.captcha.captcha_id=s.captcha_id,this.captcha.captcha_output=s.captcha_output,this.captcha.gen_time=s.gen_time,this.captcha.lot_number=s.lot_number,this.captcha.pass_token=s.pass_token,this.captcha.isGeetest=!0,this.captcha.needGeetestAgain=!1,this.form.captcha="1",this.$refs.form.clearValidate("captcha"))})})})},handleFocus(t){this[t+"Focus"]=!0},handleBlur(t){this[t+"Focus"]=!1},handleSend(){if(this.countdown.disabled)return!1;this.$refs.form.validateField("captcha",t=>{t?this.captcha.obj&&this.captcha.obj.reset():(this.countdown.disabled=!0,this.countdown.text="发送中",(0,x.QC)({phone:this.userInfo.phone2,Content:"",operationType:28,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(t=>{1==t.retcode?(this.$toast("发送验证码成功"),this.handleCountdonw()):(this.$toast("发送失败"+(t.retmsg?":"+t.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 t=this.countdown.num;t--,t<=0?(this.countdown.num=60,this.countdown.disabled=!1,this.countdown.text="重新发送",this.captcha.needGeetestAgain=!0):(this.countdown.num=t,this.countdown.text=t+"s",this.countdown.timer=setTimeout(()=>{this.handleCountdonw()},1e3))},handleLogoutConfirm(){this.$refs.form.validate(t=>{if(!t)return console.log("error submit!!"),!1;this.$refs.customPopup&&this.$refs.customPopup.showModal({content:"确定注销账号?注销后无法恢复,请谨慎操作",showCancel:!0,cancelText:"再考虑下",isClickMask:!1,success:t=>{if("confirm"==t){const t=this.$loading({lock:!0});(0,r.HB)({comments:5==this.reasonList[this.reasonCurrent].value?this.reasonText:this.reasonList[this.reasonCurrent].name,uid:this.userInfo.uid,phone:this.userInfo.phone2,verifyCode:this.form.code}).then(s=>{t.close(),200==s.code?(this.hideModal(),this.$toast("注销成功"),this.$store.dispatch("user/ClearUserInfo"),window.location.href=window.location.origin+"/home"):this.$toast(s.msg)}
1).catch(()=>{t.close()})}}})})}}},y=I,L=(0,C.A)(y,b,w,!1,null,"13aa86e6",null),$=L.exports,k={components:{ToMDialog:l.A,ExpressDialog:d.A,addAddressDialog:u.A,exportPopup:g,logoutPopup:$},data(){return{memberInfo:{},isGiftCardShow:!1,giftCardMoney:0,cardLevelList:[],cardCurrent:0,progress:0,addressList:[],orderList:[],staffLimit:{total:"0.00",used:"0.00",available:"0.00",freeze:"0.00"}}},computed:{...(0,a.L8)(["userInfo"])},created(){this.userInfo.uid&&!this.userInfo.staffCode?((0,r.mR)({cardNo:this.userInfo.cardNo,sourceSystem:"OFFICIAL_MALL_WEB"}).then(async t=>{this.memberInfo=t;try{let s=await Promise.all([this.queryMemberCardLevelFn(),(0,r.PD)()]),[e,i]=s,o={};if(e.forEach(t=>{o[t.cardLevel]=t}),i.forEach(t=>{o[t.cardLevel]&&(o[t.cardLevel]={...o[t.cardLevel],...t})}),i.forEach(t=>{const s=e.findIndex(s=>""+s.cardLevel==""+t.cardLevel);s>=0&&(t.renewNum=e[s].renewalQs,t.consumptionAmount=e[s+1]?e[s+1].upgradeQs:0)}),this.memberInfo={...t,isLast:60015===parseInt(t.cardLevel),isBlack:60016===parseInt(t.cardLevel)},this.memberInfo.bgSrc=o[t.cardLevel].cardLevelWebSrc,this.memberInfo.fontColor=o[t.cardLevel].fontColor,this.memberInfo.cardLevelName=o[t.cardLevel].cardLevelName,i.length>0){i.forEach((s,e)=>{s.cardLevel==t.cardLevel&&(this.cardCurrent=e)}),this.cardLevelList=i,this.memberInfo.renewNum=null!=t.renewalAdditionalAmount?t.renewalAdditionalAmount:e[this.cardCurrent].renewalQs||0;const s=i[this.cardCurrent].consumptionAmount;this.progress=60015===parseInt(t.cardLevel)?100:s>0?Math.min((t.consumeAmount||0)/s*100,100):0}}catch(s){console.error(s)}}),(0,r.vQ)().then(t=>{1==t.data&&(this.isGiftCardShow=!0,(0,r.X3)({uid:this.userInfo.uid}).then(t=>{200==t.code&&t.data&&t.data.availBalance>=0&&(this.giftCardMoney=t.data.availBalance)}))})):this.userInfo.uid&&this.userInfo.staffCode&&(0,r.gg)({staffCode:this.userInfo.staffCode.replace(/CTF/gi,"")}).then(t=>{t.data&&void 0!=t.data.sureAmount&&(this.staffLimit.total=this.$utils.priceFormat(parseFloat(t.data.totalQuota).toFixed(2))[2],this.staffLimit.used=this.$utils.priceFormat(parseFloat(t.data.usedAmount).toFixed(2))[2],this.staffLimit.available=this.$utils.priceFormat(parseFloat(t.data.sureAmount).toFixed(2))[2],this.staffLimit.freeze=this.$utils.priceFormat(parseFloat(t.data.occQuota).toFixed(2))[2])}),this.getAddressInfo(),this.getOrderInfo()},methods:{queryMemberCardLevelFn(){return new Promise(t=>{(0,r.N7)().then(s=>{200==s.code&&s.data?t(s.data):t([])}).catch(()=>{t([])})})},getMemberCardLevelListFn(){return new Promise(t=>{(0,r.j6)().then(s=>{200==s.code&&s.data?t(s.data):t([])}).catch(()=>{t([])})})},getAddressInfo(){(0,n.GA)({uid:this.userInfo.uid,addressId:0}).then(t=>{200==t.code&&t.data&&t.data.length>0?this.addressList=t.data:this.addressList=[]})},getOrderInfo(){(0,c.W1)({uid:this.userInfo.uid,pageIndex:1,pageSize:1,type:0}).then(t=>{200==t.code&&t.data&&0==t.data.retcode&&t.data.dataList&&t.data.dataList.length>0?this.orderList=this.checkOrderListData(t.data.dataList):this.orderList=[]})},getOrderGoodsTotal(t,s="quantity"){let e=0;return t&&t.length>0&&(e=t.reduce((t,e)=>t+parseInt(e[s]),0)),e},handleExport(){this.$refs.exportPopup&&this.$refs.exportPopup.showModal()},handleLogout(){this.$refs.logoutPopup&&this.$refs.logoutPopup.showModal()},handleAddAddress(){this.$refs.addAddressDialog&&this.$refs.addAddressDialog.showModal({success:t=>{"success"==t&&this.getAddressInfo()}})},handleEditAddress(t){this.$refs.addAddressDialog&&this.$refs.addAddressDialog.showModal({address:{receiverName:t.ReciverName,mobilePhone:t.MobilePhone,provinceCode:t.ProvinceCode,cityCode:t.CityCode,districtCode:t.DistrictCode,street:t.Street,note:t.Note,isDefault:t.IsDefault,id:t.AddressID},success:t=>{"success"==t&&this.getAddressInfo()}})},handleDeleteAddress(t){this.$refs.customPopup&&this.$refs.customPopup.showModal({content:"确认删除该地址?",showCancel:!0,cancelText:"取消",success:s=>{if("confirm"==s){const s=this.$loading({lock:!0});(0,n.Z1)({addressId:t.AddressID,uid:this.userInfo.uid}).then(t=>{s.close(),200==t.code?(this.$toast("删除成功"),this.getAddressInfo()):this.$toast(t.msg||"网络异常!")}).catch(()=>{s.close(),this.$toast("网络异常!")})}}})},handleOperaBtn(t,s){switch(t){case"payBtnShow":this.handlePayOrder(s);break;case"expressBtnShow":this.handleSearchExpress(s);break;case"refundBtnShow":this.handleRefundOrder(s);break;case"isDelectBtn":this.handleDeleteOrder(s);break;case"cartBtnShow":this.handleAddCart(s);break;default:break}},handlePayOrder(t){if(1==t.payment)return this.$refs.customPopup&&this.$refs.customPopup.showModal({title:"温馨提示",content:"该订单为线下支付订单ï¼
1Œè¯·åœ¨å•†åœºå®Œæˆä»˜æ¬¾æ“ä½œï¼Œ<br>详情可咨询门店店员,谢谢",confirmText:"我知道了"}),!1;(0,c.d8)({orderNo:t.orderNo,uid:this.userInfo.uid,openId:"PCWEB"}).then(s=>{1==s.retcode?(this.$localStorage.setItem({name:"addOrder",value:this.$utils.compile(JSON.stringify({orderNo:t.orderNo,actualOrderAccount:t.actualOrderAccount}))}),this.toView("/submitSuccess",{},"_blank")):this.$refs.ToMDialog.showDialog(s.retmsg)})},handleSearchExpress(t){this.$refs.ExpressDialog.popupShow(t.orderNo,t.orderState)},handleRefundOrder(t){2!=t.orderType||1!=t.paymentState&&4!=t.paymentState||!t.relatedOrderNo?this.$refs.aftersalePop&&this.$refs.aftersalePop.showModal({orderNo:t.orderNo}):this.$refs.aftersalePop&&this.$refs.aftersalePop.showModal({orderNo:t.relatedOrderNo})},handleDeleteOrder(t){this.$refs.customPopup&&this.$refs.customPopup.showModal({content:"删除后,您将无法再查看该订单,请谨慎操作!",showCancel:!0,cancelText:"取消",success:s=>{if("confirm"==s){const s=this.$loading({lock:!0});(0,c.gy)({orderNo:t.orderNo,uid:this.userInfo.uid}).then(t=>{s.close(),200==t.code?(this.$toast("订单记录已删除"),setTimeout(()=>{this.getOrderInfo()},500)):this.$toast(t.msg||"网络异常!")}).catch(()=>{s.close(),this.$toast("网络异常!")})}}})},handleAddCart(t){if(t.goodsList&&t.goodsList.length>0){const s=this.$loading({lock:!0});let e=t.goodsList.map(t=>({goodID:t.goodid,buyNum:t.quantity,attribute:"",price:t.price,clickType:"addToCart"}));this.$store.dispatch("cart/addSyncusercartVuex",{goodsList:e,success:()=>{s.close(),this.$toast("加入成功")}})}}}},N=k,A=(0,C.A)(N,i,o,!1,null,"06203d51",null),P=A.exports},3712:function(t,s,e){e.d(s,{GA:function(){return o},Li:function(){return r},M1:function(){return n},W1:function(){return c},Z1:function(){return a}});var i=e(8314);const o=(t={})=>(0,i.kN)("get","/ctfmall-common2-server/userAddress/getAddress",t),a=(t={})=>(0,i.kN)("post","/ctfmall-common2-server/userAddress/deleteAddress",t),r=(t={})=>(0,i.kN)("get","/ctfmall-common2-server/regin/getRegin",t),n=(t={})=>(0,i.kN)("post","/ctfmall-common2-server/userAddress/modifyAddress",t),c=(t={})=>(0,i.kN)("post","/ctfmall-common2-server/userAddress/createAddress",t)},3756:function(t,s,e){e.d(s,{A:function(){return u}});var i=function(){var t=this,s=t._self._c;return s("div",[s("el-drawer",{attrs:{visible:t.visible,"append-to-body":"",direction:"rtl","show-close":!1,"close-on-press-escape":!1,wrapperClosable:!1,withHeader:!1,size:"528px"},on:{"update:visible":function(s){t.visible=s},close:function(s){return t.handleClose("close")}}},[s("div",{staticClass:"pop"},[s("div",{staticClass:"hd"},[s("div",{staticClass:"tit font-title"},[t._v(t._s(t.title))]),s("div",{staticClass:"close cursor-pointer",on:{click:function(s){return t.handleClose("close")}}},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_close_v5.png",alt:""}})])]),s("div",{staticClass:"bd"},[s("el-scrollbar",{attrs:{noresize:"",wrapClass:"scroll-view"}},[s("div",{staticClass:"explain"},[t._v("请添加中国内地地址,中国港澳台地区和其他国家地区不在配送范围内")]),s("div",{staticClass:"form"},[s("el-form",{ref:"form",attrs:{model:t.form,rules:t.formRules}},[s("el-form-item",{attrs:{prop:"receiverName"}},[s("div",{staticClass:"input-wrap"},[s("div",{class:{textplaceholder:!0,fixed:t.receiverNameFocus||t.form.receiverName.length>0}},[t._v("请输入收件人姓名")]),s("el-input",{staticClass:"custom-input",on:{focus:function(s){return t.handleFocus("receiverName")},blur:function(s){return t.handleBlur("receiverName")}},model:{value:t.form.receiverName,callback:function(s){t.$set(t.form,"receiverName",s)},expression:"form.receiverName"}})],1)]),s("el-form-item",{attrs:{prop:"mobilePhone"}},[s("div",{staticClass:"input-wrap"},[s("div",{class:{textplaceholder:!0,fixed:t.mobilePhoneFocus||t.form.mobilePhone.length>0}},[t._v("请输入手机号")]),s("el-input",{staticClass:"custom-input",on:{focus:function(s){return t.handleFocus("mobilePhone")},blur:function(s){return t.handleBlur("mobilePhone")}},model:{value:t.form.mobilePhone,callback:function(s){t.$set(t.form,"mobilePhone",s)},expression:"form.mobilePhone"}})],1)]),s("el-form-item",{attrs:{prop:"provinceCode"}},[s("div",{staticClass:"input-wrap"},[s("div",{class:{textplaceholder:!0,fixed:!!t.form.provinceCode}},[t._v("请选择所在省")]),s("el-select",{attrs:{placeholder:"","popper-append-to-body":!1,"popper-options":{boundariesElement:"body"}},on:{change:t.provinceChange},model:{value:t.form.provinceCode,callback:function(s){t.$set(t.form,"provinceCode",s)},expression:"form.provinceCode"}},t._l(t.provinceList,function(t){return s("el-option",{key:t.ID,attrs:{label:t.Name,value:t.ID}})}),1),s("div",{staticClass:"select-arrow"},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowr_v5.png",alt:""}})])],1)]),s("div",{staticClass:"layout"},[s("div",{staticClass:"layout-item"},[s("el-form-item",{attrs:{prop:"cityCode"}},[s("div",{staticClass:"input-wrap"},[s("div",{class:{textplaceholder:!0,fixed:!!t.form.cityCode}}
1,[t._v("请选择所在市")]),s("el-select",{attrs:{placeholder:"","popper-append-to-body":!1,"popper-options":{boundariesElement:"body"}},on:{change:t.cityChange},model:{value:t.form.cityCode,callback:function(s){t.$set(t.form,"cityCode",s)},expression:"form.cityCode"}},t._l(t.useCityList,function(t){return s("el-option",{key:t.ID,attrs:{label:t.Name,value:t.ID}})}),1),s("div",{staticClass:"select-arrow"},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowr_v5.png",alt:""}})])],1)])],1),s("div",{staticClass:"layout-item"},[s("el-form-item",{attrs:{prop:"districtCode"}},[s("div",{staticClass:"input-wrap"},[s("div",{class:{textplaceholder:!0,fixed:!!t.form.districtCode}},[t._v("请选择所在区、街道")]),s("el-select",{attrs:{placeholder:"","popper-append-to-body":!1,"popper-options":{boundariesElement:"body"}},model:{value:t.form.districtCode,callback:function(s){t.$set(t.form,"districtCode",s)},expression:"form.districtCode"}},t._l(t.useAreaList,function(t){return s("el-option",{key:t.ID,attrs:{label:t.Name,value:t.ID}})}),1),s("div",{staticClass:"select-arrow"},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowr_v5.png",alt:""}})])],1)])],1)]),s("el-form-item",{attrs:{prop:"street"}},[s("div",{staticClass:"input-wrap"},[s("div",{class:{textplaceholder:!0,fixed:t.streetFocus||t.form.street.length>0}},[t._v("请输入详细地址")]),s("el-input",{staticClass:"custom-input",on:{focus:function(s){return t.handleFocus("street")},blur:function(s){return t.handleBlur("street")}},model:{value:t.form.street,callback:function(s){t.$set(t.form,"street",s)},expression:"form.street"}})],1)]),s("el-form-item",{staticClass:"el-form-item-default",attrs:{prop:"isDefault"}},[s("div",{staticClass:"is-default cursor-pointer",on:{click:t.handleDefault}},[s("div",{class:["custom-checkbox",1==t.form.isDefault?"checked":""]}),s("p",[t._v("设置为默认收货地址")])])])],1)],1)])],1),s("div",{staticClass:"fd"},[s("div",{staticClass:"opera"},[s("div",{staticClass:"common-btn common-btn-fill-red-1",on:{click:t.handleConfirm}},[t._v("保存地址")])])])])])],1)},o=[],a=e(5353),r=e(3712),n={data(){const t=(t,s,e)=>{if(!s)return e(new Error("请输入您的手机号码"));{const t=/^1\d{10}$/;if(!t.test(s))return e(new Error("请输入正确的手机号"));e()}};return{visible:!1,title:"添加新地址",type:"add",form:{mobilePhone:"",receiverName:"",provinceCode:"",districtCode:"",cityCode:"",street:"",note:"",postalCode:"",isDefault:0},formRules:{receiverName:[{required:!0,message:"请输入收货人姓名",trigger:"blur"}],mobilePhone:[{validator:t,trigger:"blur"}],provinceCode:[{required:!0,message:"请选择",trigger:"change"}],cityCode:[{required:!0,message:"请选择",trigger:"change"}],districtCode:[{required:!0,message:"请选择",trigger:"change"}],street:[{required:!0,message:"请输入您详细填写收货地址",trigger:"blur"}]},receiverNameFocus:!1,mobilePhoneFocus:!1,streetFocus:!1,addressId:0,dataList:[],provinceList:[],useCityList:[],useAreaList:[],cb:null}},computed:{...(0,a.L8)(["userInfo"])},methods:{showModal(t={}){this.cb="function"==typeof t.success?t.success:null,this.form=this.$options.data().form,this.receiverNameFocus=!1,this.mobilePhoneFocus=!1,this.streetFocus=!1,this.addressId=0,this.title="添加新地址",this.type="add",t.address&&t.address.id&&(this.form.receiverName=t.address.receiverName,this.form.mobilePhone=t.address.mobilePhone,this.form.provinceCode=t.address.provinceCode,this.form.cityCode=t.address.cityCode,this.form.districtCode=t.address.districtCode,this.form.street=t.address.street,this.form.note=t.address.note,this.form.isDefault=t.address.isDefault,this.addressId=t.address.id,this.title="编辑收货地址",this.type="edit"),this.getregionList().then(()=>{this.visible=!0,this.$nextTick(()=>{this.$refs.form&&this.$refs.form.clearValidate()}),"edit"==this.type&&this.$nextTick(()=>{this.provinceChange(this.form.provinceCode,!0),this.cityChange(this.form.cityCode,!0)})}).catch(()=>{this.$toast("省市区数据获取失败")})},hideModal(){this.visible=!1},handleClose(t,s=null){this.hideModal(),"function"==typeof this.cb&&this.cb(t,s)},getregionList(){return new Promise((t,s)=>{if(this.useCityList=[],this.useAreaList=[],this.dataList.length>0)t();else{const e=this.$loading({lock:!0});(0,r.Li)().then(i=>{i.data&&i.data.length>0?(this.dataList=i.data,i.data.map(t=>{1==t.PID&&this.provinceList.push(t)}),e.close(),t()):(e.close(),s())}).catch(()=>{e.close(),s()})}})},handleFocus(t){this[t+"Focus"]=!0},handleBlur(t){this[t+"Focus"]=!1},provinceChange(t,s){s||(this.useCityList=[],this.useAreaList=[],this.form.cityCode="",this.form.districtCode=""),this.useCityList=this.dataList.filter(s=>s.PID===t)},cityChange(t,s){s||(this.form.districtCode="",this.useAreaList=[]),this.useAreaList=this.dataList.filter(s=>s.PID===t)},handleDefault(){this.form.isDefault=1^this.form.isDefault},handleConfirm(){this.$refs.form.validate(t=>
1{if(!t)return console.log("error submit!!"),!1;{const t=this.$loading({lock:!0});let s={...this.form,uid:this.userInfo.uid};"edit"==this.type?(s.addressId=this.addressId,(0,r.M1)(s).then(s=>{t.close(),200==s.code?(this.$toast("编辑成功"),this.handleClose("success")):this.$toast(s[0].retmsg||"网络错误")}).catch(()=>{t.close(),this.$toast("网络错误")})):(0,r.W1)(s).then(e=>{t.close(),200==e.code?(this.$toast("新增成功"),this.handleClose("success",{AddressID:e.data.AddressID,CityCode:s.cityCode,CityName:this.useCityList.find(t=>t.ID==s.cityCode).Name,DistrictCode:s.districtCode,DistrictName:this.useAreaList.find(t=>t.ID==s.districtCode).Name,Email:"",IsDefault:s.isDefault,IsDelivery:1,MobilePhone:s.mobilePhone,Note:"",Phone:"",ProvinceCode:s.provinceCode,ProvinceName:this.provinceList.find(t=>t.ID==s.provinceCode).Name,ReciverName:s.receiverName,Street:s.street,ZipCode:""})):this.$toast(e[0].retmsg||"网络错误")}).catch(()=>{t.close(),this.$toast("网络错误")})}})}}},c=n,l=e(1656),d=(0,l.A)(c,i,o,!1,null,"0e37f312",null),u=d.exports}}]);

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