12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b67e5da"],{"0cd8":function(t,e,a){"use strict";var s=a("5ca1"),i=a("7b23");s(s.P+s.F*!a("2f21")([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},"1c01":function(t,e,a){var s=a("5ca1");s(s.S+s.F*!a("9e1e"),"Object",{defineProperty:a("86cc").f})},"34cc":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAwCAYAAABT9ym6AAAAAXNSR0IArs4c6QAABl5JREFUaEPVmmtMU2cYx//PaQsIKMJUnIiKSA+6ecPo4vbB3bPMSVunZigRKJvJdEumZlucRubi5tzVuA9zZj3gdReC0M7pYrYQl0WjRsVkZi0IilMUL3iBKpb2PMupA4G2cFqoSr+e5/L/9T3v7XkOoRd/c6u3jHC55ccBFpkwFEB/QUYkA00AGkE4A5CDExIqbIMNjb2YGtTTYMZTRVPglo0MGBg8Xk08ArkAlLNAZYiKstlGZNWp8evKJiSQt6v2RNbK9UsI8lJmDO+RCCImxkEQF1jF/N9DjRUUCDOTyVG4gMFrGRgZatJAfgTsI0F4v0yfVxFsbNUghurC8XDzVmaeFGySoOyVEQJvSew/ZMnmYbNuqfVVBWKySwYZvJ2BWLWBe2pHRBURWo2hODXnrJpY3YIYHdIKGfgYzN3aqkkYjA0RXYIGJusY84Hu/LoUl+mQvgPzou6ChPO5ssKxIMy26XN/DWnVynQULgPLX4ZTpNrYBDRqNZrpJWm5J7tYKHwfmeyFL8nEu5lZozZZ2O2IajQxmmmlw3Ou+svl82pl1mwTqcV1iBlxYRcXZAICyieJo19cQ8+4O7v6gjikP8D8bJA57p+5ILxp0+dt6hJEeaU8kPd2NooVIrAocTqmxiQjWhMRdtGXW5rwy7WTsF7zMyUI9XFxutRtQxc62wtpG5ECZuF4pXQcjAmdla5Meh7TYkeEHaBzgg0X/kT5zVM+eYmowCqaP/ILYnBYFjJji7/R2JGWfd8hlIQn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bR/QJLsOMvO4XhUUSjBB2GDT5y3tyrXLjpW3cOe6XeqvAhmKnlB8iIRPJ+lzVypH9ZBBFMe7PfWLSgsuJxQhIfsQNUMQXrel5e5QE0N1g9PosCxn0Pr70cUioI5IayoTcw6rgVBsVIMoxqbKrWM97F4HZoPaBMHZkRMCfYX4hM+D/VYlKJBWUbPtRU95IH/G4CeDExrQ2k0gS0QkfVickncxlJghgbQmMlRKT4DJCMgGZowNUoCbCPuJBKtAutJdadnngvTvYN4jkPaRTNVb9LLbMxMM5QshEYRE5TMngCPBcDLRTWLUAnBAoEOkw56ylLzrPRHf3vc/heGST8ZYXygAAAAASUVORK5CYII="},"39d7":function(t,e,a){},"3d56":function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",[e("el-dialog",{attrs:{title:"收货地址",visible:t.value},on:{"update:visible":function(e){t.value=e}}},[e("address-save",{attrs:{addressData:t.addressData},on:{submitSuccess:function(e){return t.submit("submitSuccess",e)},submitError:function(e){return t.submit("submitError",e)}}})],1)],1)},i=[],r=a("6489"),n={components:{AddressSave:r["a"]},model:{prop:"show",event:"show"},props:{show:{default:!0},addressData:{default:null}},computed:{value:{get:function(){return this.show},set:function(t){this.$emit("show",t)}}},name:"address-save-dialog",data:function(){return{}},mounted:function(){},methods:{submit:function(t,e){this.$emit(t,e),"submitSuccess"===t&&(this.value=!1)}}},o=n,c=a("2877"),l=Object(c["a"])(o,s,i,!1,null,"103d1cfb",null);e["a"]=l.exports},"43f3":function(t,e,a){"use strict";a("d368")},"456d":function(t,e,a){var s=a("4bf8"),i=a("0d58");a("5eda")("keys",(function(){return function(t){return i(s(t))}}))},"4b12":function(t,e,a){t.exports=a.p+"img/icon-fail.6737601a.png"},"555a":function(t,e,a){t.exports=a.p+"img/icon.ec1baa63.png"},5740:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAaCAYAAACgoey0AAAAAXNSR0IArs4c6QAAAmVJREFUSEvNlktoU1EQhv9JYmMEqVSweVna6kqiLuIDpIKCoIi4Eq2o4Ca3SVyIYlFwUbKwIFpE8JHEhRSL4BtR0HYj6LJmUwSpqIg2Ib6wXUjSmtxfEnuT29iYh4n2LufMme/8c+Y/XHG73cQ/+CKRiOgx8t/BhSeqVRM0YUUV1xv8fH1iIVLjpyBwgTyda3U9wQ5zGvdXfnwBwjXdyc91B/s3u9jb9g2NJjV/eyLP6gpml+NoWlX7jDPneQgLGvbUBcye1vmIT14Bsb9gSM9hS0e37L6VrjmYfvtSpHgPgFuDTlHQIHJQwtF+LfYbmEecFnxXt8KIl3I5NlqJreizbYSK2yCWaPu+/DDi2Jsm9D8dmf0B0aaaXbYnIDZBkAJEkVDsajlwKg4fwPMA5+nyh7eNNK/NwEv6mIr9K8Cm6c0EDN0SjvYVg7NnRQPi4xdAembkCAZgNXvWPFycyMRLg732TpDXQJhyhQyGXglGTxbC6W+1IjV1B+CG3JpABeS4hGJnM7GKXi56HTtA3gRp0RUMwqockkAga0h6netA9S5Ih+5AExBjp4TGHmuxisDZwoqtA5AHABfl4XIDtB2AIb4PZBCkWbc2CpPslIvRV/rOVAzOwn3OVVDTgyCsumfnNcDlBW1/BFj2SvjtROF1VAX+BW9pRzo1BHDZrAMmcgZWzwntCmoGzsIPtzUjOTkIcrVOeRJi8EhobOBPdqtasVaUSnsjJHEdxHZA3sNk3CWXPgyX8vhfg/MHsLXAZv4kgXfJUtCK7VROwXJzaqa4XGDVPq4UUCx/7iqulcJidebMf/VPA+RfN4ekXxQAAAAASUVORK5CYII="},"58b2":function(t,e,a){var s=a("5ca1");s(s.S+s.F*!a("9e1e"),"Object",{defineProperties:a("1495")})},"5eda":function(t,e,a){var s=a("5ca1"),i=a("8378"),r=a("79e5");t.exports=function(t,e){var a=(i.Object||{})[t]||Object[t],n={};n[t]=e(a),s(s.S+s.F*r((function(){a(1)})),"Object",n)}},6214:function(t,e,a){"use strict";a("6cbf")},6489:function(t,e,a){"use strict";a("7f7f");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"add-wrap"},[e("div",{staticClass:"form-row"},[e("span",{staticClass:"form-label"},[t._v("收货人")]),e("div",{staticClass:"form-input-box"},[e("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:t.params.name,callback:function(e){t.$set(t.params,"name",e)},expression:"params.name"}})],1)]),e("div",{staticClass:"form-row"},[e("span",{staticClass:"form-label"},[t._v("手机号")]),e("div",{staticClass:"form-input-box"},[e("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:t.params.mobile,callback:function(e){t.$set(t.params,"mobile",e)},expression:"params.mobile"}})],1)]),e("div",{staticClass:"form-row"},[e("span",{staticClass:"form-label"},[t._v("收货地址")]),e("div",{staticClass:"form-select-box"},[e("div",{staticClass:"select-box"},[e("el-select",{attrs:{placeholder:"请选择省份"},on:{change:function(e){return t.selectAddress(0)}},model:{value:t.params.province_id,callback:function(e){t.$set(t.params,"province_id",e)},expression:"params.province_id"}},t._l(t.provinceList,(function(t,a){return e("el-option",{key:a,attrs:{label:t.name,value:t.id}})})),1)],1),e("div",{staticClass:"select-box"},[e("el-select",{attrs:{placeholder:"请选择县区"},on:{change:function(e){return t.selectAddress(1)}},model:{value:t.params.city_id,callback:function(e){t.$set(t.params,"city_id",e)},expression:"params.city_id"}},t._l(t.cityList,(function(t,a){return e("el-option",{key:a,attrs:{label:t.name,value:t.id}})})),1)],1),e("div",{staticClass:"select-box"},[e("el-select",{attrs:{placeholder:"请选择街/道"},on:{change:function(e){return t.selectAddress(2)}},model:{value:t.params.district_id,callback:function(e){t.$set(t.params,"district_id",e)},expression:"params.district_id"}},t._l(t.areaList,(function(t,a){return e("el-option",{key:a,attrs:{label:t.name,value:t.id}})})),1)],1)])]),e("div",{staticClass:"form-row-column"},[e("span",{staticClass:"form-label"},[t._v("详细位置")]),e("div",{staticClass:"form-textarea-box"},[e("el-input",{attrs:{type:"textarea",placeholder:"请输入详细位置",maxlength:"80","show-word-limit":""},model:{value:t.params.address,callback:function(e){t.$set(t.params,"address",e)},expression:"params.address"}})],1)]),e("div",{staticClass:"default-row",on:{click:function(e){t.params.is_default=1===t.params.is_default?0:1}}},[1===t.params.is_default?e("img",{attrs:{src:a("5740")}}):e("img",{attrs:{src:a("87aa")}}),t._v("\n 设为默认地址\n ")]),e("div",{staticClass:"btn-box"},[e("button",{attrs:{type:"button"},on:{click:function(e){return t.submit()}}},[t._v("保存")])])])},i=[],r=(a("1c01"),a("58b2"),a("8e6e"),a("f3e2"),a("d25f"),a("ac6a"),a("456d"),a("0cd8"),a("bd86")),n=a("f523"),o=a("325c"),c=a("5c96");function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,s)}return a}function u(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?l(Object(a),!0).forEach((function(e){Object(r["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var d={name:"address-save",props:{show:{default:!0},addressData:{default:null}},data:function(){var t={id:0,name:"",mobile:"",province_id:"",city_id:"",district_id:"",address:"",full_address:"",is_default:0},e=[["name",["notNull","请输入姓名"]],["mobile",["notNull","请输入手机号"]],["province_id",["notNull","请选择省份"]],["city_id",["notNull","请选择城市"]],["district_id",["notNull","请选择区县"]],["address",["notNull","请输入详细地址"]]],a=Object(o["d"])(t,e);return{params:t,validatorNullList:e,validatorNullResult:a,provinceList:[],provinceMap:{},cityList:[],cityMap:{},areaList:[],areaMap:{}}},mounted:function(){this.params=JSON.parse(JSON.stringify(this.addressData||u({province_id:"",city_id:"",district_id:""},this.params))),this.getAddressTree()},watch:{addressData:function(t){this.params=u({id:0,name:"",mobile:"",province_id:"",city_id:"",district_id:"",address:"",full_address:"",is_default:0},JSON.parse(JSON.stringify(t||{}))),this.params.id>0&&this.getAddressTree(0)},params:{deep:!0,handler:function(t){this.validatorNullResult=Object(o["d"])(t,this.validatorNullList)}}},methods:{submit:function(){var t=this,e=this.params;if(this.validatorNullResult.length>0)return c["Message"].warning(this.validatorNullResult[0].errMsg);e.full_address=this.provinceMap[e.province_id].name+this.cityMap[e.city_id].name+this.areaMap[e.district_id].name+e.address;var a=e.id>0?n["l"].edit:n["l"].add;a(e).then((function(){c["Message"].success(e.id>0?"更新成功":"新增成功"),t.$emit("submitSuccess",e)})).catch((function(){t.$emit("submitError",e)}))},selectAddress:function(t){t<2&&(0===t&&(this.cityList=[],this.areaList=[],this.params.city_id="",this.params.district_id=""),1===t&&(this.areaList=[],this.params.district_id=""),this.getAddressTree(t+1))},getAddressTree:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a={0:"province",1:"city",2:"area"},s={0:0,1:this.params.province_id,2:this.params.city_id},i=a[e],o=s[e];return n["a"].tree({id:o}).then((function(e){var a=e.data;t.$set(t,"".concat(i,"List"),a),t.$set(t,"".concat(i,"Map"),a.reduce((function(t,e){return u(u({},t),{},Object(r["a"])({},e.id,e))}),{}))}))}}},p=d,f=(a("43f3"),a("2877")),m=Object(f["a"])(p,s,i,!1,null,"43ec30f1",null);e["a"]=m.exports},"6cbf":function(t,e,a){},"6fee":function(t,e,a){t.exports=a.p+"img/icon-success.0955115c.png"},"7b23":function(t,e,a){var s=a("d8e8"),i=a("4bf8"),r=a("626a"),n=a("9def");t.exports=function(t,e,a,o,c){s(e);var l=i(t),u=r(l),d=n(l.length),p=c?d-1:0,f=c?-1:1;if(a<2)for(;;){if(p in u){o=u[p],p+=f;break}if(p+=f,c?p<0:d<=p)throw TypeError("Reduce of empty array with no initial value")}for(;c?p>=0:d>p;p+=f)p in u&&(o=e(o,u[p],p,l));return o}},"7f7f":function(t,e,a){var s=a("86cc").f,i=Function.prototype,r=/^\s*function ([^ (]*)/,n="name";n in i||a("9e1e")&&s(i,n,{configurable:!0,get:function(){try{return(""+this).match(r)[1]}catch(t){return""}}})},"7f82":function(t,e,a){t.exports=a.p+"img/upload-2.f913cf97.png"},8087:function(t,e,a){t.exports=a.p+"img/upload-1.12a15496.png"},"87aa":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAaCAYAAACgoey0AAAAAXNSR0IArs4c6QAAAFdJREFUSEtjNDY2/s9AB3D27FlGZGsYB9xidBdRKxBgHsPp41GLR4Oa3BAYTVywkIMXIKPZidzEhK5vNHGNJi6G0ew0mp3IDYHRAgSjACE3KInVN2ja1QD/gsAbf14pDQAAAABJRU5ErkJggg=="},"8e6e":function(t,e,a){var s=a("5ca1"),i=a("990b"),r=a("6821"),n=a("11e9"),o=a("f1ae");s(s.S,"Object",{getOwnPropertyDescriptors:function(t){var e,a,s=r(t),c=n.f,l=i(s),u={},d=0;while(l.length>d)a=c(s,e=l[d++]),void 0!==a&&o(u,e,a);return u}})},"990b":function(t,e,a){var s=a("9093"),i=a("2621"),r=a("cb7c"),n=a("7726").Reflect;t.exports=n&&n.ownKeys||function(t){var e=s.f(r(t)),a=i.f;return a?e.concat(a(t)):e}},afec:function(t,e,a){"use strict";a("39d7")},cc9d:function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return t.show?e("div",{staticClass:"normal-box"},[e("img",{attrs:{src:a("e18b"),alt:""}}),t._v("\n 暂无数据\n")]):t._e()},i=[],r={props:{show:{default:!1}},name:"normal-box",data:function(){return{}}},n=r,o=(a("afec"),a("2877")),c=Object(o["a"])(n,s,i,!1,null,"9c6dfd84",null);e["a"]=c.exports},d25f:function(t,e,a){"use strict";var s=a("5ca1"),i=a("0a49")(2);s(s.P+s.F*!a("2f21")([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},d368:function(t,e,a){},e18b:function(t,e,a){t.exports=a.p+"img/normal.540f7eb9.png"},e4b5:function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"form-row"},[e("span",{staticClass:"form-label"},[t._v("昵称")]),e("div",{staticClass:"form-input-box"},[e("el-input",{attrs:{placeholder:"请输入昵称"},model:{value:t.params.username,callback:function(e){t.$set(t.params,"username",e)},expression:"params.username"}})],1)]),e("div",{staticClass:"form-row"},[e("span",{staticClass:"form-label"},[t._v("手机号")]),e("div",{staticClass:"form-input-box"},[e("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:t.params.mobile,callback:function(e){t.$set(t.params,"mobile",e)},expression:"params.mobile"}})],1)]),e("div",{staticClass:"form-row"},[e("span",{staticClass:"form-label"},[t._v("验证码")]),e("div",{staticClass:"form-input-box"},[e("el-input",{attrs:{placeholder:"请输入验证码"},model:{value:t.params.code,callback:function(e){t.$set(t.params,"code",e)},expression:"params.code"}})],1),t.countDown>0?e("button",{staticClass:"get-code",attrs:{type:"button"}},[t._v(t._s(t.countDown)+"秒后重发")]):e("button",{staticClass:"get-code",attrs:{type:"button"},on:{click:function(e){return t.sendSms()}}},[t._v("发送验证码")])]),e("div",{staticClass:"form-row"},[e("span",{staticClass:"form-label"},[t._v("密码")]),e("div",{staticClass:"form-input-box"},[e("el-input",{attrs:{placeholder:"6-12位,区分大小写"},model:{value:t.params.password,callback:function(e){t.$set(t.params,"password",e)},expression:"params.password"}})],1)]),e("div",{staticClass:"form-row"},[e("div",{staticClass:"btn-box"},[e("button",{attrs:{type:"button"},on:{click:function(e){return t.submit()}}},[t._v("下一步")])])])])},i=[],r=a("f523"),n=a("cc9d"),o=a("5c96"),c=a("3d56"),l=a("325c"),u={name:"entry-verification-number-step-1",components:{AddressSaveDialog:c["a"],NormalBox:n["a"]},data:function(){var t={username:"",mobile:"",code:"",password:""},e=[["username",["notNull","请输入用户名"]],["mobile",["notNull","请输入手机号"]],["code",["notNull","请输入验证码"]],["password",["notNull","请输入密码"]]],a=[["mobile",["isMobile","请输入正确手机号"]],["password",["checkPassLevel","密码需6~12位"]]],s=Object(l["d"])(t,e);return{params:t,validatorNullList:e,validatorErrorList:a,validatorNullResult:s,countDown:0}},watch:{params:{deep:!0,handler:function(t){this.validatorNullResult=Object(l["d"])(t,this.validatorNullList)}}},mounted:function(){},methods:{submit:function(){var t=this,e=this.params,a=Object(l["d"])(e,this.validatorErrorList);if(a.length>0)return o["Message"].warning(a[0].errMsg);r["s"].username(e).then((function(e){var a=e.data;localStorage.setItem("token",a.token),localStorage.setItem("is_certification_token","true"),t.$emit("next",a)}))},sendSms:function(){var t=this,e=this.params,a=Object(l["d"])(e,[["mobile",["notNull","请输入手机号"]]]);if(a.length>0)return o["Message"].warning(a[0].errMsg);r["h"].mobileCode({mobile:e.mobile}).then((function(e){var a=e.message;t.countDownFn(),Object(o["Message"])(a)}))},countDownFn:function(){var t=this,e=60,a=function a(){0!==e&&(t.countDown=--e,setTimeout((function(){return a()}),1e3))};a()}}},d=u,p=(a("6214"),a("2877")),f=Object(p["a"])(d,s,i,!1,null,"45c21d60",null);e["a"]=f.exports},f1ae:function(t,e,a){"use strict";var s=a("86cc"),i=a("4630");t.exports=function(t,e,a){e in t?s.f(t,e,i(0,a)):t[e]=a}}}]);
- //# sourceMappingURL=chunk-5b67e5da.c2325589.js.map
|