tiktok.vchcr.cn Open in urlscan Pro
202.95.13.138  Public Scan

Submitted URL: http://tiktok.vchcr.cn/js/chunk-7809be7c.72b7d984.js
Effective URL: https://tiktok.vchcr.cn/js/chunk-7809be7c.72b7d984.js
Submission: On November 11 via api from US — Scanned from SG

Form analysis 0 forms found in the DOM

Text Content

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7809be7c"],{"0d8b":function(e,t,s){"use strict";s("f990")},"1be4":function(e,t,s){"use strict";s=s("d066"),e.exports=s("document","documentElement")},2028:function(e,t,s){"use strict";s("75d2")},"22b9":function(e,t,s){},"33d1":function(e,t,s){"use strict";var i=s("23e7"),a=s("7b0b"),o=s("07fa"),r=s("5926");s=s("44d2");i({target:"Array",proto:!0},{at:function(e){var t=a(this),s=o(t);e=r(e),e=0<=e?e:s+e;return e<0||s<=e?void 0:t[e]}}),s("at")},"37e8":function(e,t,s){"use strict";var i=s("83ab"),a=s("aed9"),o=s("9bf2"),r=s("825a"),n=s("fc6a"),l=s("df75");t.f=i&&!a?Object.defineProperties:function(e,t){r(e);for(var s,i=n(t),a=l(t),c=a.length,d=0;d<c;)o.f(e,s=a[d++],i[s]);return e}},3810:function(e,t,s){},"438d":function(e,t,s){"use strict";s.r(t),s("13d5"),s("33d1"),s("ea98");var i=s("2f62"),a=s("4d97"),o=s("4260"),r={naem:"EsOrderSum",props:{checkGoods:{type:[],default:0}},data(){return{orderSum:[{name:this.$t("message.home.commodity")+this.$t("message.home.amount"),value:"$0"},{name:this.$t("message.home.discount"),value:"-$0.00"},{name:this.$t("message.home.tax"),value:"+$0.00"},{name:this.$t("message.home.deliveryFee"),value:"+$0.00"},{name:this.$t("message.home.totalNum"),value:"$22"}]}},watch:{checkGoods(e,t){e!==t&&(this.$set(this.orderSum[0],"value","$"+Object(o.f)(this.checkGoods.reduce((e,t)=>this.$big(e).plus(this.$big(t.price||t.sellingPrice).times(t.checkTotal)),0))),this.$set(this.orderSum[1],"value","-$"+Object(o.f)(this.checkGoods.reduce((e,t)=>t.price||null==t.discountPrice?"0":this.$big(this.$big(t.sellingPrice).times(t.checkTotal)).minus(this.$big(t.discountPrice).times(t.checkTotal)),0))),this.$set(this.orderSum[2],"value","+$"+Object(o.f)(this.checkGoods.reduce((e,t)=>this.$big(e).plus(this.$big(t.goodsTax||0).times(t.checkTotal)),0))),this.$set(this.orderSum[3],"value","+$"+Object(o.f)(this.checkGoods.reduce((e,t)=>this.$big(e).plus(this.$big(t.freightAmount||0).times(t.checkTotal)),0))),this.$set(this.orderSum[4],"value","$"+Object(o.f)(this.checkGoods.reduce((e,t)=>this.$big(e).plus(this.$big(t.price||t.discountPrice||t.sellingPrice).plus(t.goodsTax||0).plus(t.freightAmount||0).times(t.checkTotal)),0))))}}},n=(s("0d8b"),s("2877")),l=(r=Object(n.a)(r,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"order-sum"},[t("h1",[e._v(e._s(e.$t("message.home.orderSummary")))]),t("ul",{staticClass:"order-sum-content"},e._l(e.orderSum,(function(s,i){return t("li",{key:i,class:{total:i===e.orderSum.length-1,"flex-between":!0}},[t("span",[e._v(e._s(s.name))]),t("span",[e._v(" "+e._s(s.value)+" ")])])})),0)])}),[],!1,null,null,null).exports,{name:"EsOrderList",data(){return{maxNum:0}},computed:{...Object(i.c)("shopCart",["checkProductPay"])},created(){this.maxNum=Number(localStorage.getItem("maxBuy")||500)},methods:{...Object(i.d)("shopCart",["updateCheckProductPay"]),changeNum(e){"undefined"!=e.checkTotal&&null!=e.checkTotal&&""!=e.checkTotal&&0!=e.checkTotal||(e.checkTotal=1)},handleCheckAllChange(e,t){var s=[...this.checkProductPay];s[t].checkList=e?this.checkProductPay[t].list.map(e=>e.Identifier):[],this.updateCheckProductPay(s),this.isIndeterminate=!1},handleCheckedChange(e,t){var s=[...this.checkProductPay],i=(e=e.length,s[t].list.length);s[t].checkAll=e===i,s[t].isIndeterminate=0<e&&e<i,this.updateCheckProductPay(s)},handleCount(e){let t=0;return e.forEach(e=>{t+=e.checkTotal}),t},numberFormat:o.f}}),c=(l=(s("2028"),Object(n.a)(l,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"settlement"},e._l(e.checkProductPay,(function(s,i){return t("div",{key:i,staticClass:"settlement-commodity"},[t("el-checkbox",{staticClass:"settlement-commodity-title",attrs:{indeterminate:s.isIndeterminate},on:{change:function(t){return e.handleCheckAllChange(t,i)}},model:{value:s.checkAll,callback:function(t){e.$set(s,"checkAll",t)},expression:"item.checkAll"}},[e._v(" "+e._s(s.list[0].seller.name)+"锛�"+e._s(e.$t("message.home.totalOf"))+" "+e._s(s.checkList.length)+" "+e._s(e.$t("message.home.items"))+"锛� ")]),t("div",{staticClass:"settlement-commodity-group"},[t("el-checkbox-group",{on:{change:function(t){return e.handleCheckedChange(t,i)}},model:{value:s.checkList,callback:function(t){e.$set(s,"checkList",t)},expression:"item.checkList"}},e._l(s.list,(function(s,i){return t("div",{key:i,staticClass:"settlement-commodity-wrap"},[t("el-checkbox",{staticClass:"settlement-commodity-checkbox flex-between",attrs:{label:s.Identifier}},[t("div",{staticClass:"settlement-commodity-item flex-start"},[t("img",{attrs:{src:s.zoomImg||s.imgUrl1,alt:""}}),t("div",{staticClass:"flex-start settlement-commodity-info",style:{flexDirection:"column",alignItems:"flex-start"}},[t("div",[t("h2",{attrs:{title:s.name}},[e._v(e._s(s.name))]),s.price?t("p",[e._v(" $"+e._s(e.numberFormat(s.price))+" ")]):t("p",[e._v(" $"+e._s(e.numberFormat(null!=(i=s.discountPrice)?i:s.sellingPrice))+" ")])]),s.checkAttrName?t("div",{staticClass:"settlement-commodity-info-attr"},[t("span",[e._v(e._s(e.$t("message.home.orderSpecification"))+":")]),t("span",[e._v(e._s(s.checkAttrName))])]):e._e()])])]),t("el-input-number",{key:"childItem.buyMin",attrs:{size:"mini",precision:0,min:s.buyMin||1,max:e.maxNum},on:{blur:function(t){return e.changeNum(s,e.event)}},model:{value:s.checkTotal,callback:function(t){e.$set(s,"checkTotal",t)},expression:"childItem.checkTotal"}})],1)})),0)],1)],1)})),0)}),[],!1,null,null,null).exports),s("801e")),d=s("6c1f"),u={name:"EsPayAddress",props:{show:{type:Boolean,default:!1}},model:{prop:"show",event:"update"},data(){return{dialogVisible:!1}},computed:{...Object(i.c)({addressList:"user/addressList",paySelectAddress:"user/paySelectAddress"})},watch:{dialogVisible(e,t){e!==t&&(this.$emit("update",e),e)&&this.requestAddressList()},show(e,t){e!==t&&(this.dialogVisible=e)}},mounted(){this.dialogVisible=this.show},methods:{...Object(i.d)({updatePaySelectAddress:"user/updatePaySelectAddress"}),...Object(i.b)({requestAddressList:"user/requestAddressList",requestAddressAdd:"user/requestAddressAdd"}),changeAddressView(){this.$emit("showAddAddressView")},selectAddress(e){this.updatePaySelectAddress(e),this.dialogVisible=!1}}},h=(u=(s("bf2b"),Object(n.a)(u,(function(){var e=this,t=e._self._c;return t("el-dialog",{staticClass:"es-dialog",attrs:{visible:e.dialogVisible,center:!0,"append-to-body":!0,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"dialog-title",attrs:{slot:"title"},slot:"title"},[t("span",[e._v(e._s(e.$t("message.home.selectDeliveryAddress")))])]),t("div",{staticClass:"address-modal-content dialog-content"},[e._l(e.addressList,(function(s){return t("div",{key:s.id,class:{"address-active":e.paySelectAddress.id===s.id,item:!0},on:{click:function(t){return e.selectAddress(s)}}},[t("div",{staticClass:"info"},[t("span",{staticClass:"name"},[e._v(e._s(s.contacts))]),t("span",{staticClass:"mobile"},[e._v("聽聽+"+e._s(s.phone))])]),t("div",{staticClass:"address"},[e._v(" "+e._s(s.country)+" "+e._s(s.province)+" "+e._s(s.city)+" "+e._s(s.address)+" ")])])})),t("div",{staticClass:"item",on:{click:e.changeAddressView}},[e._v(" "+e._s(e.$t("message.home.addNewAddress"))+" ")])],2),t("span",{attrs:{slot:"footer"},slot:"footer"})])}),[],!1,null,"39697b13",null).exports),s("107a")),m=s("fce1");a={name:"EsSettlement",components:{EsIconTips:a.a,EsOrderSum:r,EsOrderList:l,EsPayMethod:c.a,EsPayModal:d.a,AddressDialog:u,EsAddAddress:m.a},data(){return{payModalShow:!1,addAddressModalShow:!1,selectAddress:{},currentSubmitOrderIds:[],addAddressView:!1,chcekData:[],checkNum:0,lastSubmit:{orderIds:"",addressId:"",orderInfo:{}}}},computed:{...Object(i.c)({addressList:"user/addressList",defaultAddress:"user/defaultAddress",paySelectAddress:"user/paySelectAddress",checkProductPay:"shopCart/checkProductPay",userBalance:"user/userBalance",userInfo:"userInfo"}),checkCount(){return this.checkProductPay.reduce((e,t)=>e+t.list.reduce((e,t)=>e+t.checkTotal,0),0)},checkTotalAmount(){return Object(o.f)(this.getChcekData().reduce((e,t)=>e+((t.price||t.discountPrice||t.sellingPrice)+(null!=(e=t.goodsTax)?e:0)+(null!=(e=t.freightAmount)?e:0))*t.checkTotal,0))},isDisabledPayBtn(){return this.userBalance<=0||this.checkCount<=0||this.userBalance<this.checkTotalAmount}},async mounted(){await this.requestAddressList(),this.$nextTick(()=>{this.updatePaySelectAddress(this.defaultAddress)})},methods:{...Object(i.d)({updatePaySelectAddress:"user/updatePaySelectAddress",updateCheckProductPay:"shopCart/updateCheckProductPay",updateShopCart:"shopCart/updateShopCart"}),...Object(i.b)({requestAddressList:"user/requestAddressList",requestOrderPay:"order/requestOrderPay",setSafewordFunc:"order/setSafewordFunc",requestOrderSubmit:"order/requestOrderSubmit"}),changeShowModel(e){this.showModel=e},showAddAddressView(e){this.addAddressView=!this.addAddressView,this.addAddressView||this.requestAddressList()},getChcekData(){let e=[];return this.checkProductPay.forEach(t=>{e=[...e,...t.list.filter(e=>-1<t.checkList.indexOf(e.Identifier))]}),this.chcekData=e,this.checkNum=e.length,e},async pay(){var e,t,s;return null!=(e=this.paySelectAddress)&&e.id?((e=this.getChcekData()).map(e=>[e.id,e.checkTotal]).join(","),(e=e.map(e=>[e.id,e.skuid||-1,e.checkTotal]).join(","))?(t=this.paySelectAddress.id,this.lastSubmit.orderIds&&this.lastSubmit.addressId==t&&this.lastSubmit.orderInfo==e||(s=await this.requestOrderSubmit({orderInfo:e,addressId:t}),this.currentSubmitOrderIds=s.orderList.map(e=>e.orderId),localStorage.setItem("currentSubmitOrderIds",this.currentSubmitOrderIds),this.lastSubmit={orderInfo:e,orderIds:this.currentSubmitOrderIds,addressId:t}),void(this.userInfo.safeword?this.checkoutAmount()&&(this.payModalShow=!0):(this.payModalShow=!0,this.showModel=1))):this.$message.error(this.$t("message.home.NoProductSelected"))):this.$message.error(this.$t("message.home.ShippingAddressNotSet"))},cleartCheckData(e){this.checkProductPay.forEach(t=>{t.list=t.list.filter(t=>!e.includes(t.id))}),this.updateCheckProductPay(this.checkProductPay.filter(e=>!!e.list.length))},selectAddressEvent(){this.addAddressModalShow=!0},async payCallback(e,t,s){this.checkoutAmount()&&(this.currentSubmitOrderIds.length||(this.currentSubmitOrderIds=localStorage.getItem("currentSubmitOrderIds")),await this.requestOrderPay({orderId:this.currentSubmitOrderIds.join(","),safeword:e}).then(()=>{const e=Object(h.e)().then(e=>e);var s=this.getChcekData();if(e&&e.length){const t=s.map(e=>e.attrTime);e=e.filter(e=>!t.includes(e.attrTime)),this.getShopCartLocal(e)}this.updateShopCart([]),t&&t(),this.$router.replace("/paySuccess")}).catch(()=>{s&&s()}).finally(()=>{localStorage.removeItem("currentSubmitOrderIds"),this.payModalShow=!1}))},checkoutAmount(){return!this.isDisabledPayBtn||("0"==this.checkTotalAmount.at(0)?this.$message({message:this.$t("message.home.NoProductSelected"),type:"error"}):this.$message({message:this.$t("message.home.balanceNot"),type:"error"}),this.payModalShow=!1)}}},s("8d74"),r=Object(n.a)(a,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"settlement"},[t("EsHeaderView"),t("div",{staticClass:"settlement-content app-container"},[t("h1",{staticClass:"title"},[e._v(e._s(e.$t("message.home.checkout")))]),t("h2",{staticClass:"subtitle"},[e._v(e._s(e.$t("message.home.shippingAddress")))]),t("div",{staticClass:"settlement-receiver flex-between",on:{click:e.selectAddressEvent}},[t("div",[t("div",{staticClass:"userinfo"},[t("span",[e._v(" "+e._s(e.paySelectAddress.contacts)+" +"+e._s(e.paySelectAddress.phone)+" ")])]),t("p",{staticClass:"address"},[e._v(" "+e._s(e.paySelectAddress.country)+" "+e._s(e.paySelectAddress.province)+" "+e._s(e.paySelectAddress.city)+" "+e._s(e.paySelectAddress.address)+" ")])]),e._m(0)]),t("EsOrderList"),t("EsOrderSum",{attrs:{checkGoods:e.chcekData}}),t("EsPayMethod"),t("div",{staticClass:"settlement-pay flex-between"},[t("div",{staticClass:"settlement-pay-label"},[e._v(" "+e._s(e.$t("message.home.Opt"))+" "),t("span",[e._v(e._s(e.checkNum))]),e._v(" "+e._s(e.$t("message.home.piece"))+" ")]),t("el-button",{attrs:{type:"primary"},on:{click:e.pay}},[t("span",[e._v(e._s(e.$t("message.home.subOrder")))]),t("span",[e._v("$"+e._s(e.checkTotalAmount))])])],1),t("EsIconTips")],1),t("EsFooterView"),t("EsPayModal",{attrs:{payCallback:e.payCallback},on:{changeShowModel:e.changeShowModel},model:{value:e.payModalShow,callback:function(t){e.payModalShow=t},expression:"payModalShow"}}),t("AddressDialog",{on:{showAddAddressView:e.showAddAddressView},model:{value:e.addAddressModalShow,callback:function(t){e.addAddressModalShow=t},expression:"addAddressModalShow"}}),t("EsAddAddress",{model:{value:e.addAddressView,callback:function(t){e.addAddressView=t},expression:"addAddressView"}})],1)}),[function(){var e=this._self._c;return e("div",[e("i",{staticClass:"el-icon-arrow-right"})])}],!1,null,null,null);t.default=r.exports},"43a7":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAUCAMAAADSpG8HAAADAFBMVEXtHCT3jBz80ozuMiPvMSP3m57wQkj////6phr5mRv7wF3wPiH3+Pv+8fH94uT/+O/wP0b83N7yV13uJSz+7OzxRkz6qyb7u1H7w2X6qyj8zX3+6cj+9un4o6XvOD/7tD38y3r4jBv92Jr++PjQ2ub4z4vy9fj//v7X3+r2hB32hor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OaqSq3fvoWJCaiItYantn3CjKmLj168++LDu7+fP/7/pMvFcen0vp08u7duYN+mAFJUUqnR0T1r9pr9Kjcevvz26+e/36955DlUD6ktlNkkvWvHUpCijILi6sZWlUnTVh1U0330/MeXr8pPNa6dPbJ30bwlGzevW94Dsi41K7+0ormtd/qUFQcuXH/w7M+rJzpXzx3es3LinAXL1q7uEy8EBUEychDcBPsOOQjE1EGK4pAVnWcBgmPIilIgcSeErGq+omIXspqoCIgiQTlkVdzZyGoCpGFJhc8JSVF8ApIaIwukROfiAVUSEqrMHuwPVWJpx4+UMoGGuXl5Coh6y4qAOOY2EvYOZlzG1lBJALsHi8R8k+9gAAAAAElFTkSuQmCC"},"44d2":function(e,t,s){"use strict";var i=s("b622"),a=s("7c73"),o=(s=s("9bf2").f,i("unscopables")),r=Array.prototype;void 0===r[o]&&s(r,o,{configurable:!0,value:a(null)}),e.exports=function(e){r[o][e]=!0}},"4ace":function(e,t,s){},"4d97":function(e,t,s){"use strict";var i={name:"EsIconTips",data(){return{}}};s("5734"),s=s("2877"),s=Object(s.a)(i,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"icon-tips"},[t("div",{staticClass:"icon-tips-bottom flex-between"},[t("div",{staticClass:"icon-tips-bottom-item flex-center"},[t("span",{staticClass:"iconfont icon-aixin icon_span"}),t("span",[e._v(e._s(this.$t("message.home.authentic")))])]),t("div",{staticClass:"icon-tips-bottom-item flex-center"},[t("span",{staticClass:"iconfont icon-control-backward icon_span"}),t("span",[e._v(e._s(this.$t("message.home.dayReturns7")))])]),t("div",{staticClass:"icon-tips-bottom-item flex-center"},[t("span",{staticClass:"iconfont icon-yunfei icon_span"}),t("span",[e._v(" "+e._s(this.$t("message.home.shippingDiscounts"))+" ")])]),t("div",{staticClass:"icon-tips-bottom-item flex-center"},[t("span",{staticClass:"iconfont icon-qianbao icon_span"}),t("span",[e._v(e._s(this.$t("message.home.safePayment")))])])])])}),[],!1,null,null,null);t.a=s.exports},5734:function(e,t,s){"use strict";s("22b9")},"58ec":function(e,t,s){},"5a93":function(e,t,s){"use strict";s("58ec")},6268:function(e,t,s){},"75d2":function(e,t,s){},"7c73":function(e,t,s){"use strict";function i(){}function a(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t}var o,r=s("825a"),n=s("37e8"),l=s("7839"),c=s("d012"),d=s("1be4"),u=s("cc12"),h=(s=s("f772"),"prototype"),m="script",p=s("IE_PROTO"),f=function(e){return"<"+m+">"+e+"</"+m+">"},A=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}A="undefined"==typeof document||document.domain&&o?a(o):(e=u("iframe"),t="java"+m+":",e.style.display="none",d.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F);for(var e,t,s=l.length;s--;)delete A[h][l[s]];return A()};c[p]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(i[h]=r(e),s=new i,i[h]=null,s[p]=e):s=A(),void 0===t?s:n.f(s,t)}},"801e":function(e,t,s){"use strict";var i=s("2f62"),a=s("4260");i={naem:"EsPayMethod",props:{showTitle:{type:Boolean,default:!0}},data(){return{check:1}},computed:{...Object(i.c)("user",["userBalance"])},mounted(){this.requestGetUserBalanceList()},methods:{...Object(i.b)({requestGetUserBalanceList:"user/requestGetUserBalanceList"}),numberFormat:a.f}},s("5a93"),a=s("2877"),a=Object(a.a)(i,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"pay-method"},[e.showTitle?t("h1",[e._v(e._s(e.$t("message.home.paymentMethod")))]):e._e(),t("ul",{staticClass:"pay-method-content"},[t("li",{staticClass:"pay-method-item flex-between"},[t("div",{staticClass:"pay-method-item-left flex-start"},[t("img",{attrs:{src:s("db0a"),alt:""}}),t("p",{staticClass:"name"},[t("span",[e._v(e._s(e.$t("message.home.Balance")))]),e._v(" ( "),t("span",{staticClass:"amount"},[e._v("$"+e._s(e.numberFormat(e.userBalance)))]),e._v(" ) ")])]),t("el-radio",{attrs:{label:1},model:{value:e.check,callback:function(t){e.check=t},expression:"check"}})],1),t("li",{staticClass:"pay-method-item flex-between"},[t("div",{staticClass:"pay-method-item-left flex-start"},[t("img",{attrs:{src:s("f0dc"),alt:""}}),t("p",{staticClass:"name"},[t("span",[e._v(e._s(e.$t("message.home.payPal")))]),e._v(" ( "),t("span",{staticClass:"not-bind"},[e._v(e._s(e.$t("message.home.notOpen")))]),e._v(" ) ")])]),t("el-radio",{attrs:{label:2,disabled:""},model:{value:e.check,callback:function(t){e.check=t},expression:"check"}})],1),t("li",{staticClass:"pay-method-item flex-between"},[t("div",{staticClass:"pay-method-item-left flex-start"},[t("img",{attrs:{src:s("d04f"),alt:""}}),t("p",{staticClass:"name"},[t("span",[e._v("Visa")]),e._v(" ( "),t("span",{staticClass:"not-bind"},[e._v(e._s(e.$t("message.home.notOpen")))]),e._v(" ) ")])]),t("el-radio",{attrs:{label:3,disabled:""},model:{value:e.check,callback:function(t){e.check=t},expression:"check"}})],1),t("li",{staticClass:"pay-method-item flex-between"},[t("div",{staticClass:"pay-method-item-left flex-start"},[t("img",{attrs:{src:s("43a7"),alt:""}}),t("p",{staticClass:"name"},[t("span",[e._v(e._s(e.$t("message.home.mastercard")))]),e._v(" ( "),t("span",{staticClass:"not-bind"},[e._v(e._s(e.$t("message.home.notOpen")))]),e._v(" ) ")])]),t("el-radio",{attrs:{label:4,disabled:""},model:{value:e.check,callback:function(t){e.check=t},expression:"check"}})],1)])])}),[],!1,null,null,null);t.a=a.exports},"8d74":function(e,t,s){"use strict";s("6268")},"9d6d":function(e,t,s){"use strict";s("3810")},bf2b:function(e,t,s){"use strict";s("4ace")},d04f:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAMAAABNTyq8AAAB2lBMVEVRhbPk7PNlk7yGqsqNsM7/4LX/5cH/////pCUATY9UiLTx9fj+/v7R3+sgY5280OEiZZ4kZp/X4+7W4+2Mr80lZ5/w9fgHUpIBTpBWibVRhbLf6fHS4OuaudMBTo+7z+G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AGAAAAY1BMVEVMaXH3lwD/nwD0lQD4mAD5mgD3lwD3lwD4mQD3lwD4mQD4mgD3lwD5mwD2mAD4mQD4mAD2mAD2lgD4mQD5mgD4mAD6mgD5mQD4mQD4mQDvnwD5mQD4mgD5mgD6mwD5mQD4mQCPcSKZAAAAIHRSTlMAQBAw35+gIN+A779gf5Bwv7Bwr8+QMO/PjxCvb6+PUJwq9wsAAAFvSURBVFjD7ZjJcoMwEEQbsBgJHO97tv7/r8xBCgaRygENrrJLfeepC82opgfIysp6ORVflko6GOmw5Z6q+kWLpbKsAEDZcRfJ6sglgGvwX6hcVu1pV0D8EZVWHYQfW2J3/ymaZIeWJEWzdiuSbNGQNLpd4UieoW4YOJEkSFrtRrYBvNEGfwaw0QbXTws+OGVdAngWZfBjwFtR1nvuvAzO4AzO4OcHL100SspuqQF+C0FjMG+7dHBBkoN4YXrT5XSw2Hj6Xfp8kAo2sWFp+idNBn/07XWjdiOp4KG9cJXkOrnchvYQsqJJruPIXgjN/ag4DVwx/sSQ5Hdq50lsb1hp08GGJIt/a3oSuBjZW40j6BTw6U97TuF1W8WrArGsH/0eb7XB7dwhnZUuV0gSzfhSU2VInv3qplI3vIGbZ9m0xo265MqvxyS0pNpCz3jaEcCtW0HaZA1WkLMtTQGpdbn7+yQj9UWLujgWyMrKejn9AKvyu+IsWHpNAAAAAElFTkSuQmCC"},ea98:function(e,t,s){"use strict";var i=s("23e7"),a=s("e330"),o=s("1d80"),r=s("5926"),n=s("577e"),l=(s=s("d039"),a("".charAt));i({target:"String",proto:!0,forced:s((function(){return"\ud842"!=="馉".at(-2)}))},{at:function(e){var t=n(o(this)),s=t.length;e=r(e),e=0<=e?e:s+e;return e<0||s<=e?void 0:l(t,e)}})},f0dc:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAgCAMAAAA7dZg3AAABxVBMVEVMaXEEo+cDoOQQpeYFnuT///8FpOcFMo0HMYwHMY2ZzMwbQ5UHpOV/399///8C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qhGlMI9PorVzyFUmHyJ3yy4ZdAxroXYSepoHlziUSspLi45dRrgGgV03/i2RJSZc0bv+xWqWp7kdlLK8LHDGSV0/BFCv2e404kjJwuS/zQ+209esmJIEaf4G6bphYH9CNk6hyhPJZBLusuZj0O6Wjlg0QGog4rk2XTS3klV58+lo662bNTVfeYepE7VP7wjwyYAAAAASUVORK5CYII="},f990:function(e,t,s){},fce1:function(e,t,s){"use strict";var i=s("2f62"),a=s("7479"),o=(a=s.n(a),s("21f4")),r=(s("d79d"),s("e5c4")),n=s("8c1b");a={name:"EsAddress",components:{VueCountryIntl:a.a},props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}},isEdit:{type:Boolean,default:!1},prov:{type:String,default:""},itemCity:{type:String,default:""}},model:{prop:"show",event:"update"},data(){return{changeCounty:!1,dialogVisible:!1,infoModel:{contacts:"",email:"",phone:"",postcode:"",country:"",province:"",city:"",address:"",use:1,areaCode:n.a},isProvince:!0,isCity:!0,editC:!1,countryList:[],cities:[],provinces:[],value:"",rules:{contacts:[o.a.ruleUtils.getRule("required",""+this.$t("message.home.pleaseInput")+this.$t("message.home.consigneeName"))],email:[o.a.ruleUtils.getRule("required",""+this.$t("message.home.pleaseInput")+this.$t("message.home.orderEmail")),o.a.ruleUtils.getRule("email")],phone:[o.a.ruleUtils.getRule("required",""+this.$t("message.home.pleaseSetMobileNumber")),o.a.ruleUtils.getRule("phone")],areaCode:[o.a.ruleUtils.getRule("required",""+this.$t("message.home.pleaseInput")+this.$t("message.home.pleaseSetAreaCode"))],country:[o.a.ruleUtils.getRule("required",""+this.$t("message.home.pleaseInput")+this.$t("message.home.nation"))],province:[o.a.ruleUtils.getRule("required",""+this.$t("message.home.pleaseInput")+this.$t("message.home.state"))],city:[o.a.ruleUtils.getRule("required",""+this.$t("message.home.pleaseInput")+this.$t("message.home.city"))],postcode:[o.a.ruleUtils.getRule("required",""+this.$t("message.home.pleaseInput")+this.$t("message.home.postCode")),o.a.ruleUtils.getRule("fourMoreNumber")],address:[o.a.ruleUtils.getRule("required",""+this.$t("message.home.pleaseInput")+this.$t("message.home.address"))]},loading:!1}},watch:{dialogVisible(e,t){e!==t&&this.$emit("update",e)},show(e,t){if(e!==t&&(this.dialogVisible=e),!e)for(const s in this.infoModel)this.infoModel[s]="use"===s?0:"areaCode"===s?n.a:""},data:{handler(e,t){var s;e&&Object.keys(e)&&(e.phone?(s=e.phone.split(" "),this.infoModel={...e,phone:s[1],areaCode:s[0]}):this.infoModel={...e})},immediate:!0},"infoModel.country":{handler(e,t){this.infoModel.province="",this.getProvinceList(e)}},"infoModel.province":{handler(e,t){0<this.provinces.length&&(this.infoModel.city=""),this.infoModel.province&&this.getCityList(e)}}},created(){},mounted(){this.dialogVisible=this.show,this.infoModel||this.getCountry(),this.editC=this.isEdit},methods:{...Object(i.b)("user",["requestAddressAdd","requestAddressEdit"]),async getCountry(){this.changeCounty=!0,this.editC=!1,this.isCity=!1;var e=await Object(r.s)();this.countryList=(null==(e=e.data)?void 0:e.data)||[]},getCountryList(){0==this.countryList.length&&this.getCountry()},async getProvinceList(e){this.infoModel.city="";e=await Object(r.t)({countryId:e});this.provinces=(null==(e=e.data)?void 0:e.data)||[],this.cities=[],this.isProvince=!0,this.isCity=!0,0==this.provinces.length&&(this.isProvince=!1,this.isCity=!1)},async getCityList(e){e&&(e=await Object(r.r)({stateId:e}),this.cities=(null==(e=e.data)?void 0:e.data)||[],this.isCity=!0),0==this.cities.length&&(this.isCity=!1)},add(){this.$refs.addressForm.validate(async e=>{if(this.infoModel.contacts=encodeURIComponent(this.infoModel.contacts),e)try{this.loading=!0;var t,s,i,a,o,r,n,l,c,d,u,h,m,p,f={...this.infoModel,countryId:null!=(t=null!=(s=null==(i=this.countryList.find(e=>e.id==this.infoModel.country))?void 0:i.id)?s:this.infoModel.countryId)?t:0,country:null!=(a=null!=(o=null==(r=this.countryList.find(e=>e.id==this.infoModel.country))?void 0:r.countryName)?o:this.infoModel.country)?a:"",province:null!=(n=null==(l=this.provinces.find(e=>e.id===this.infoModel.province))?void 0:l.stateName)?n:"",provinceId:null!=(c=null==(d=this.provinces.find(e=>e.id===this.infoModel.province))?void 0:d.id)?c:0,cityId:null!=(u=null==(h=this.cities.find(e=>e.id==this.infoModel.city))?void 0:h.id)?u:0,city:null!=(m=null==(p=this.cities.find(e=>e.id==this.infoModel.city))?void 0:p.cityName)?m:"",phone:this.infoModel.areaCode+" "+this.infoModel.phone};""==f.province&&delete f.province,""==f.city&&delete f.city,this.isEdit?await this.requestAddressEdit(f):await this.requestAddressAdd(f),this.$message({type:"success",message:this.$t("message.home.operationSuccess")}),this.dialogVisible=!1}finally{this.loading=!1}})}}},s("9d6d"),i=s("2877"),s=Object(i.a)(a,(function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{"custom-class":"es-dialog",visible:e.dialogVisible,center:!0,"close-on-press-escape":!1,"close-on-click-modal":!1,"append-to-body":!0,"destroy-on-close":!0,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticClass:"dialog-title",attrs:{slot:"title"},slot:"title"},[t("span",[e._v(e._s(e.$t("message.home.addAddress"))+"/"+e._s(e.$t("message.home.modifyAddress")))])]),t("div",{staticClass:"add-address-content"},[t("el-form",{ref:"addressForm",attrs:{model:e.infoModel,rules:e.rules}},[t("el-form-item",{attrs:{prop:"contacts"}},[t("el-input",{attrs:{placeholder:e.$t("message.home.consigneeName"),maxlength:64},model:{value:e.infoModel.contacts,callback:function(t){e.$set(e.infoModel,"contacts",t)},expression:"infoModel.contacts"}})],1),t("el-form-item",{attrs:{prop:"email"}},[t("el-input",{attrs:{placeholder:e.$t("message.home.orderEmail"),maxlength:64},model:{value:e.infoModel.email,callback:function(t){e.$set(e.infoModel,"email",t)},expression:"infoModel.email"}})],1),t("el-form-item",{attrs:{prop:"phone"}},[t("div",{staticClass:"form-phone"},[t("el-input",{attrs:{placeholder:e.$t("message.home.pleaseSetMobileNumber"),maxlength:20},model:{value:e.infoModel.phone,callback:function(t){e.$set(e.infoModel,"phone",t)},expression:"infoModel.phone"}}),t("VueCountryIntl",{attrs:{schema:"popover",searchInputPlaceholder:e.$t("message.home.pleaseSetAreaCode"),noDataText:"No data found"},model:{value:e.infoModel.areaCode,callback:function(t){e.$set(e.infoModel,"areaCode",t)},expression:"infoModel.areaCode"}},[t("div",{staticClass:"area-code flex-between",attrs:{slot:"reference"},slot:"reference"},[t("span",[e._v("+"+e._s(e.infoModel.areaCode||""))]),t("i",{staticClass:"el-icon-caret-bottom"})])])],1)]),t("div",{staticClass:"check_address"},[t("el-form-item",{attrs:{prop:"country"}},[t("el-select",{attrs:{placeholder:e.$t("message.home.nation"),filterable:""},on:{focus:function(t){return e.getCountryList()}},model:{value:e.infoModel.country,callback:function(t){e.$set(e.infoModel,"country",t)},expression:"infoModel.country"}},e._l(e.countryList,(function(s){return t("el-option",{key:s.id,attrs:{value:s.id,label:s.countryName}},[t("span",[e._v(e._s(s.countryName))])])})),1)],1),t("el-form-item",[t("div",{staticClass:"prov-city"},[e.prov&&e.editC?t("div",[e._v(e._s(e.prov))]):e._e(),e.itemCity&&e.editC?t("div",[e._v(e._s(e.itemCity))]):e._e()])]),!e.editC&&e.isProvince?t("el-form-item",{attrs:{prop:"province"}},[t("el-select",{attrs:{placeholder:e.$t("message.home.state"),filterable:""},model:{value:e.infoModel.province,callback:function(t){e.$set(e.infoModel,"province",t)},expression:"infoModel.province"}},e._l(e.provinces,(function(s){return t("el-option",{key:s.id,attrs:{label:s.stateName,value:s.id}},[t("span",{staticStyle:{float:"left"}},[e._v(e._s(s.stateName))])])})),1)],1):e._e(),!e.editC&&e.isCity?t("el-form-item",{attrs:{prop:"city"}},[t("el-select",{attrs:{placeholder:e.$t("message.home.city"),filterable:""},model:{value:e.infoModel.city,callback:function(t){e.$set(e.infoModel,"city",t)},expression:"infoModel.city"}},e._l(e.cities,(function(s){return t("el-option",{key:s.id,attrs:{label:s.cityName,value:s.id}},[t("span",{staticStyle:{float:"left"}},[e._v(e._s(s.cityName))])])})),1)],1):e._e()],1),t("el-form-item",{attrs:{prop:"postcode"}},[t("el-input",{attrs:{placeholder:e.$t("message.home.postCode"),maxlength:32},model:{value:e.infoModel.postcode,callback:function(t){e.$set(e.infoModel,"postcode",t)},expression:"infoModel.postcode"}})],1),t("el-form-item",{attrs:{prop:"address"}},[t("el-input",{attrs:{placeholder:e.$t("message.home.address"),type:"textarea",rows:4,maxlength:255},model:{value:e.infoModel.address,callback:function(t){e.$set(e.infoModel,"address",t)},expression:"infoModel.address"}})],1),t("el-form-item",[t("div",{staticClass:"flex-between"},[t("span",[e._v(e._s(e.$t("message.home.desc")))]),t("el-switch",{attrs:{"active-color":"var(--color-main)","inactive-color":"#ECECEC","active-value":1,"inactive-value":0},model:{value:e.infoModel.use,callback:function(t){e.$set(e.infoModel,"use",t)},expression:"infoModel.use"}})],1)]),t("el-form-item",[t("div",{staticClass:"submit-btn flex-center"},[t("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.add}},[e._v(" "+e._s(e.$t("message.home.btnSure"))+" ")])],1)])],1)],1)])}),[],!1,null,null,null);t.a=s.exports}}]);