12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f7c0e9d8"],{"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})},"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=[],n=a("6489"),r={components:{AddressSave:n["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)}}},c=r,o=a("2877"),l=Object(o["a"])(c,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))}}))},"555c":function(t,e,a){},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"),n=a("79e5");t.exports=function(t,e){var a=(i.Object||{})[t]||Object[t],r={};r[t]=e(a),s(s.S+s.F*n((function(){a(1)})),"Object",r)}},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=[],n=(a("1c01"),a("58b2"),a("8e6e"),a("f3e2"),a("d25f"),a("ac6a"),a("456d"),a("0cd8"),a("bd86")),r=a("f523"),c=a("325c"),o=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(n["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(c["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(c["d"])(t,this.validatorNullList)}}},methods:{submit:function(){var t=this,e=this.params;if(this.validatorNullResult.length>0)return o["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?r["l"].edit:r["l"].add;a(e).then((function(){o["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],c=s[e];return r["a"].tree({id:c}).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(n["a"])({},e.id,e))}),{}))}))}}},f=d,A=(a("43f3"),a("2877")),p=Object(A["a"])(f,s,i,!1,null,"43ec30f1",null);e["a"]=p.exports},"7b23":function(t,e,a){var s=a("d8e8"),i=a("4bf8"),n=a("626a"),r=a("9def");t.exports=function(t,e,a,c,o){s(e);var l=i(t),u=n(l),d=r(l.length),f=o?d-1:0,A=o?-1:1;if(a<2)for(;;){if(f in u){c=u[f],f+=A;break}if(f+=A,o?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;o?f>=0:d>f;f+=A)f in u&&(c=e(c,u[f],f,l));return c}},"7f7f":function(t,e,a){var s=a("86cc").f,i=Function.prototype,n=/^\s*function ([^ (]*)/,r="name";r in i||a("9e1e")&&s(i,r,{configurable:!0,get:function(){try{return(""+this).match(n)[1]}catch(t){return""}}})},"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"),n=a("6821"),r=a("11e9"),c=a("f1ae");s(s.S,"Object",{getOwnPropertyDescriptors:function(t){var e,a,s=n(t),o=r.f,l=i(s),u={},d=0;while(l.length>d)a=o(s,e=l[d++]),void 0!==a&&c(u,e,a);return u}})},"990b":function(t,e,a){var s=a("9093"),i=a("2621"),n=a("cb7c"),r=a("7726").Reflect;t.exports=r&&r.ownKeys||function(t){var e=s.f(n(t)),a=i.f;return a?e.concat(a(t)):e}},afec:function(t,e,a){"use strict";a("39d7")},bfdd:function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{width:"100%",display:"flex","justify-content":"space-between"}},[e("ul",{staticClass:"all-products-nav-list"},t._l(t.category,(function(a,s){return e("li",{key:s,on:{click:function(e){return t.$router.push("/secondary-page2?category_id_1=".concat(a.category_id))}}},[e("img",{staticClass:"all-products-nav-img",attrs:{src:t.BASE_URL+a.image}}),e("div",{staticClass:"all-products-nav-sidebar"},[e("span",{staticClass:"all-products-nav-tag"},[t._v(t._s(a.category_name))])])])})),0)])},i=[],n=a("f523"),r=a("cc9d"),c=a("3d56"),o=a("a49b"),l={name:"all-products-nav-list",components:{AddressSaveDialog:c["a"],NormalBox:r["a"]},props:{isSelect:{default:!1}},data:function(){return{BASE_URL:o["a"],category:[]}},mounted:function(){this.getCategory()},methods:{getCategory:function(){var t=this;n["g"].goods_categor_level({level:1}).then((function(e){var a=e.data;return t.category=a}))}}},u=l,d=(a("e83d"),a("2877")),f=Object(d["a"])(u,s,i,!1,null,"7b27e210",null);e["a"]=f.exports},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=[],n={props:{show:{default:!1}},name:"normal-box",data:function(){return{}}},r=n,c=(a("afec"),a("2877")),o=Object(c["a"])(r,s,i,!1,null,"9c6dfd84",null);e["a"]=o.exports},cf05:function(t,e,a){t.exports=a.p+"img/logo.ff99f3be.png"},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"},e83d:function(t,e,a){"use strict";a("555c")},e8cc:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAiCAYAAAA3WXuFAAAAAXNSR0IArs4c6QAABxBJREFUWEeNmGlsVUUYhp9pbwtCvdqI+0Yoi6laGn4QEtBS1EbcF6K4JC4FtS2tpdpKKQVB1KICausS7R8UVNBoItjGFnGJSxQ1itDYWokpKgF3LajVe8bMmZlz5px7q94/95xz78y8837v+33fHEHsI1tyTwU5D48ypDwJjzz/L54EKUAC0r1W9+Z3/39mQvc7OmYQKQcgq4tEVrtYO7TLhSDsjdxUmMvuL9YgZQUeWXphZ3G7WABGgbJgzCw+YKlBxcen3asHeHjiMY6aVCeW9wypBz4gDaavE49Z/kTuTu3u1WJxpnzWzDT2Oj7eBzcMu3aMENs4etJsBUoDaslpQ1KlBxrag4nVhTAhU382LPg7dq8dVjIyZBkdZjziEfFEaoHwNeN5O8CEycbeBeaCc8Pi78bRTRqb8ZBbpkxYo+M9RKJIyJactXjU+qKNL+A/M+wcUwwj82H3W+Cl0tmJbETCKbMhKwd2bnbYdTfg6C2QSNaDQt6TswspC9NDZbVkdnVDN4ybCcsOg6ED6czEQ93UC4fkw6IjM7jTkYYlQRuoR8iVid+AvNC6xtqKnbzj4NdvNUs3dMG4UliahKGDMLsF+t8AsmF6RciutW1BCWQnoPc1I3zrRKDjbuh/zzgyIvhBBUiGFrWCljB2JlzfDa3FsG8XlG/VDDUn4a/fYeUB2NIAP34F06vCVGL1Nm4GZOdA3+vpv225C/reSXezBCFXJPQU1p6KDfVkxOHQuB9eroL3n4TyLigohSVJGDUGF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qtMKkUFCD1zM1X1xhAj86FvV9oQdgznDXK+GlQ/ihYQPFzW5AY65SGMvRDwcHQTH5rtwZUfSj8cdC4xFj32jbN0JLJsGdnesFVK0w+FxZ1aEDr6kMnRtZRGlqYrVtYJ47+7nyQjihrDUMLHED292tb4axKaCqGgR1GQ0a0ZdWQdwQUlcHEabChEV5cFZ3fEgKDQtYldpHyCjP2Q25+qjOAKq2GnHOYBbR4MgwohpyO4apVcMFtWvz9H8D9c+DX78OQ2wSpK36PkLWJtXiyNpgkU6OmBuWfCDmjYe/nzlnetC0jk5CbB7/sg1QqZnv3WO2e/W1T6LQs8KCQC9VBMbWDFFlhmGKTxA+H8Yo93Cbc4hllIv00jPTIyi3SR+ma7DZSsirSW8cnG+5+uHbi38ZHHGaYkvIR0cECDWhZYS4/9HWS8mZFz/HueX2YvjtY2Ig48h7gf46HbYxmtnge/bIhALW/N/o6xq1tbgKzrGToZ4Zl2R0TvvXQr2NGe3UKjG5AYh9ZlXsqf3nzkF4ZkpNIyby0nttlIdbP6FSRgZngmRwEMYAnu8iiXWwm8sLqH5AiyBq8VY6PAAAAAElFTkSuQmCC"},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}},fd67:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAnBJREFUSEutlUuoTWEUx39/A7rkZuQVyWOEAQrlkRBRN0QZmJhQBiTilmLkEUqKO/AYyBQldMmjSN6UwSUTJK+8B+SRsLRua+/23Wfve8/drMk55zvf+n7rvUSJmNkkYAkwCxgK9APeAc+Ac8BxSY/L9JNz5S+Y2WhgDzAv/vsDfAB+AAOBnnH+CzgCbJbk4ELpADAzt/go0Ae4CBwAzkv66tpm1gOYDCwDVgK9gBfAQkn3iwgpIB4/BnwBlks61Zn7ZjbSwwSMBz4DUyQ9zOu0AyIsdwB3e5qkB13FNvR6AxeAqcBTYJwkNzCVBOBJ85gv6srygpz1B9oA/9wmaUsHQFTLbY+5pLn1WF4AWQ3sBzxXg7JeyMx2Ac3AYkknKwK8KN4DDcBSSZ6bdnHAXWAC0JhUS0WI52IOcFDSqizgjYMkDajycKJjZoeidFslNWUB3kBvJQ37R8A+YA1wQ5JXVRqi54Bb3yDJu7aSmNmJGC1nJC3IAq4C06NRblZ5PTr8dRi6V9L6LGATsANokeQudlvMzJPrSXZpktSaBYwCHgG/gTGSnnSHENbfAiYCr4ARkn6mAP9iZoeBFYAPLB8V3+qFmNluYGPcXyvJk51KMiq8ze/F3L8eTVc6gsMon6w7gQ1e5sA1YEa+ULLT1JvtCtA3FstWn/f55ouQzAa2R1gSa335zJT0ssaD5MDMxgKngeFx9j0s8y3m/TI4JqcvnkTccv/tuayBFG20xojpulg8ZenwhHr8WwJ8uQhSA8h446Gan9vJn8LKSzF902oxsyFADaQUUG8VZe8VQqo81JlODtL2Xz3IhNfDdRb4+BdKDfG9nZVWkAAAAABJRU5ErkJggg=="}}]);
- //# sourceMappingURL=chunk-f7c0e9d8.95411a68.js.map
|