pages-user-address-edit.417fb7f7.js 27.5 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-address-edit"],{1343:function(a,t,e){var i=e("51e8");"string"===typeof i&&(i=[[a.i,i,""]]),i.locals&&(a.exports=i.locals);var d=e("4f06").default;d("5cb7e45e",i,!0,{sourceMap:!1,shadowMode:!1})},"14c5":function(a,t,e){"use strict";e.d(t,"b",(function(){return d})),e.d(t,"c",(function(){return n})),e.d(t,"a",(function(){return i}));var i={shoproPicker:e("6620").default},d=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("v-uni-view",{staticClass:"page_box",staticStyle:{"overflow-x":"hidden"}},[e("v-uni-view",{staticClass:"head_box"}),e("v-uni-view",{staticClass:"content_box"},[e("v-uni-view",{staticClass:"location-item x-bc pa20 mb20",on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.chooseLocation.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"x-f"},[e("v-uni-text",{staticClass:"cuIcon-focus"}),e("v-uni-text",[a._v(a._s(a.addressData.latitude?a.chooseAddress:"点击定位当前地点"))])],1),e("v-uni-text",{staticClass:"cuIcon-right"})],1),e("v-uni-view",{staticClass:"address-item x-f"},[e("v-uni-label",{staticClass:"x-f flex-sub"},[e("v-uni-text",{staticClass:"item-title"},[a._v("收货人:")]),e("v-uni-input",{staticClass:"inp flex-sub",attrs:{placeholder:"请填写收货人姓名",type:"text"},model:{value:a.addressData.consignee,callback:function(t){a.$set(a.addressData,"consignee",t)},expression:"addressData.consignee"}})],1)],1),e("v-uni-view",{staticClass:"address-item x-f"},[e("v-uni-label",{staticClass:"x-f flex-sub"},[e("v-uni-text",{staticClass:"item-title"},[a._v("手机号:")]),e("v-uni-input",{staticClass:"inp flex-sub",attrs:{placeholder:"请输入收货人手机号",type:"number"},model:{value:a.addressData.phone,callback:function(t){a.$set(a.addressData,"phone",t)},expression:"addressData.phone"}})],1)],1),e("v-uni-view",{staticClass:"address-item x-f",on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.selCity.apply(void 0,arguments)}}},[e("v-uni-label",{staticClass:"x-f flex-sub"},[e("v-uni-text",{staticClass:"item-title"},[a._v("所在地区:")]),e("v-uni-input",{staticClass:"inp flex-sub",attrs:{disabled:!0,type:"text",placeholder:"点击选择所在地区"},model:{value:a.area_text,callback:function(t){a.area_text=t},expression:"area_text"}})],1)],1),e("v-uni-view",{staticClass:"area-box x-f"},[e("v-uni-label",{staticClass:"x-f x-start"},[e("v-uni-view",{staticClass:"area-item"},[e("v-uni-text",{staticClass:"item-title"},[a._v("详细地址:")])],1),e("v-uni-textarea",{staticClass:"area-inp",attrs:{"auto-height":!0,type:"text",placeholder:"如道路、门牌号、小区、楼栋号、单元室等","placeholder-class":"area-pl"},model:{value:a.addressData.address,callback:function(t){a.$set(a.addressData,"address",t)},expression:"addressData.address"}})],1)],1),e("v-uni-view",{staticClass:"default-box x-bc"},[e("v-uni-text",{staticClass:"title"},[a._v("设为默认地址")]),e("v-uni-switch",{staticClass:"olive switch",class:{checked:a.addressData.is_default},attrs:{checked:a.addressData.is_default},on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.onSwitch.apply(void 0,arguments)}}})],1)],1),0!=a.addressData.id?e("v-uni-view",{staticClass:"foot_box x-bc"},[e("v-uni-button",{staticClass:"cu-btn delete-btn",on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.deleteAddress.apply(void 0,arguments)}}},[a._v("删除收货地址")]),e("v-uni-button",{staticClass:"cu-btn save-btn",on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.editAddress.apply(void 0,arguments)}}},[a._v("保存收货地址")])],1):e("v-uni-view",{staticClass:"foot_box "},[e("v-uni-button",{staticClass:"cu-btn add-btn",on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.editAddress.apply(void 0,arguments)}}},[a._v("保存收货地址")])],1),e("shopro-picker",{ref:"shoproCityPicker",attrs:{pickerValueDefault:a.cityPickerValueDefault},on:{onCancel:function(t){arguments[0]=t=a.$handleEvent(t),a.onCancel.apply(void 0,arguments)},onConfirm:function(t){arguments[0]=t=a.$handleEvent(t),a.onConfirm.apply(void 0,arguments)}}})],1)},n=[]},"26d7":function(a,t,e){"use strict";var i=e("1343"),d=e.n(i);d.a},"41e0":function(a,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={data:function(){return{pickerValue:[0,0,0],provinceDataList:[],cityDataList:[],areaDataList:[],pcaData:{},showPicker:!1}},created:function(){this.init()},props:{pickerValueDefault:{type:Array,default:function(){return[0,0,0]}},pickerData:{},themeColor:String},watch:{pickerValueDefault:function(){this.init()}},methods:{init:function(){var a=this;this.$api("address.area").then((function(t){a.pcaData=t.data,a.pickerValue=a.pickerValueDefault,a.handPickValueDefault(),a.provinceDataList=t.data.provinceData,a.cityDataList=t.data.cityData[a.pickerValueDefault[0]],a.areaDataList=t.data.areaData[a.pickerValueDefault[0]][a.pickerValueDefault[1]]}))},show:function(){var a=this;setTimeout((function(){a.showPicker=!0}),0)},maskClick:function(){this.pickerCancel()},pickerCancel:function(){this.showPicker=!1,this._$emit("onCancel")},pickerConfirm:function(a){this.showPicker=!1,this._$emit("onConfirm")},showPickerView:function(){this.showPicker=!0},handPickValueDefault:function(){this.pickerValueDefault!==[0,0,0]&&(this.pickerValueDefault[0]>this.pcaData.provinceData.length-1&&(this.pickerValueDefault[0]=this.pcaData.provinceData.length-1),this.pickerValueDefault[1]>this.pcaData.cityData[this.pickerValueDefault[0]].length-1&&(this.pickerValueDefault[1]=this.pcaData.cityData[this.pickerValueDefault[0]].length-1),this.pickerValueDefault[2]>this.pcaData.areaData[this.pickerValueDefault[0]][this.pickerValueDefault[1]].length-1&&(this.pickerValueDefault[2]=this.pcaData.areaData[this.pickerValueDefault[0]][this.pickerValueDefault[1]].length-1))},pickerChange:function(a){var t=a.mp.detail.value;this.pickerValue[0]!==t[0]?(this.cityDataList=this.pcaData.cityData[t[0]],this.areaDataList=this.pcaData.areaData[t[0]][0],t[1]=0,t[2]=0):this.pickerValue[1]!==t[1]&&(this.areaDataList=this.pcaData.areaData[t[0]][t[1]],t[2]=0),this.pickerValue=t,this._$emit("onChange")},_$emit:function(a){var t={label:this._getLabel(),value:this.pickerValue,cityCode:this._getCityCode()};this.$emit(a,t)},_getLabel:function(){var a=this.provinceDataList[this.pickerValue[0]].label+"-"+this.cityDataList[this.pickerValue[1]].label+"-"+this.areaDataList[this.pickerValue[2]].label;return a},_getCityCode:function(){return this.areaDataList[this.pickerValue[2]].value}}};t.default=i},"4cc0":function(a,t,e){"use strict";e.r(t);var i=e("14c5"),d=e("f765");for(var n in d)"default"!==n&&function(a){e.d(t,a,(function(){return d[a]}))}(n);e("26d7");var o,r=e("f0c5"),s=Object(r["a"])(d["default"],i["b"],i["c"],!1,null,"2d5786b0",null,!1,i["a"],o);t["default"]=s.exports},"51e8":function(a,t,e){var i=e("24fb");t=i(!1),t.push([a.i,'@charset "UTF-8";\r\n/* ==================\r\n      uni-app的变量\r\n防止插件市场用到这些,就保留了\r\n ==================== */\r\n/* 页面左右间距 */\r\n/* 文字尺寸 */\r\n/*文字颜色*/\r\n/* 边框颜色 */\r\n/* 图片加载中颜色 */\r\n/* 行为相关颜色 */\r\n/* ==================\r\n       theme   \r\n ==================== */\r\n/*主题色*/\r\n/*文字色*/\r\n/*背景色*/\r\n/* ==================\r\n       自定义变量   \r\n ==================== */\r\n/*utils 工具*/\r\n/* 颜色 */.bg-red[data-v-2d5786b0]{background-color:#f33!important}.bg-purple[data-v-2d5786b0]{background-color:#ff33a9!important}.bg-orange[data-v-2d5786b0]{background-color:#f83!important}.bg-blue[data-v-2d5786b0]{background-color:#37f!important}.color-red[data-v-2d5786b0]{color:#f33!important}.color-purple[data-v-2d5786b0]{color:#ff33a9!important}.color-orange[data-v-2d5786b0]{color:#f83!important}.color-blue[data-v-2d5786b0]{color:#37f!important}.text-black[data-v-2d5786b0]{color:#000}.text-dark[data-v-2d5786b0]{color:#333}.text-deep[data-v-2d5786b0]{color:#555}.text-weak[data-v-2d5786b0]{color:#b3b3b3}.text-white[data-v-2d5786b0]{color:#fff}\r\n/*字体*/.f10[data-v-2d5786b0]{font-size:10px}.f12[data-v-2d5786b0]{font-size:12px}.f14[data-v-2d5786b0]{font-size:14px}.f15[data-v-2d5786b0]{font-size:15px}.f17[data-v-2d5786b0]{font-size:17px}.f20[data-v-2d5786b0]{font-size:20px}.f24[data-v-2d5786b0]{font-size:24px}\r\n/* 文字对齐*/.tl[data-v-2d5786b0]{text-align:left}.tc[data-v-2d5786b0]{text-align:center}.tr[data-v-2d5786b0]{text-align:right}\r\n/*浮动与清除浮动*/.fl[data-v-2d5786b0]{float:left}.fr[data-v-2d5786b0]{float:right}\n.fix[data-v-2d5786b0]{zoom:1}.fix[data-v-2d5786b0]:after{display:table;content:"";clear:both}\r\n\r\n/*显示*/.dn[data-v-2d5786b0]{display:none}.di[data-v-2d5786b0]{display:inline}.db[data-v-2d5786b0]{display:block}.dib[data-v-2d5786b0]{display:inline-block}.dt[data-v-2d5786b0]{display:table}\ndiv.dib[data-v-2d5786b0]{display:inline;zoom:1}\n.vm[data-v-2d5786b0]{vertical-align:middle}.vib[data-v-2d5786b0]{display:inline-block;vertical-align:middle}\r\n/*定位*/.pr[data-v-2d5786b0]{position:relative}.pa[data-v-2d5786b0]{position:absolute}.pf[data-v-2d5786b0]{position:fixed}\r\n/*盒子模型*/.mt2[data-v-2d5786b0]{margin-top:%?2?%}.mr2[data-v-2d5786b0]{margin-right:%?2?%}.mb2[data-v-2d5786b0]{margin-bottom:%?2?%}.ml2[data-v-2d5786b0]{margin-left:%?2?%}.mx2[data-v-2d5786b0]{margin-left:%?2?%;margin-right:%?2?%}.my2[data-v-2d5786b0]{margin-top:%?2?%;margin-bottom:%?2?%}.ma2[data-v-2d5786b0]{margin:%?2?%}.mt4[data-v-2d5786b0]{margin-top:%?4?%}.mr4[data-v-2d5786b0]{margin-right:%?4?%}.mb4[data-v-2d5786b0]{margin-bottom:%?4?%}.ml4[data-v-2d5786b0]{margin-left:%?4?%}.mx4[data-v-2d5786b0]{margin-left:%?4?%;margin-right:%?4?%}.my4[data-v-2d5786b0]{margin-top:%?4?%;margin-bottom:%?4?%}.ma4[data-v-2d5786b0]{margin:%?4?%}.mt8[data-v-2d5786b0]{margin-top:%?8?%}.mr8[data-v-2d5786b0]{margin-right:%?8?%}.mb8[data-v-2d5786b0]{margin-bottom:%?8?%}.ml8[data-v-2d5786b0]{margin-left:%?8?%}.mx8[data-v-2d5786b0]{margin-left:%?8?%;margin-right:%?8?%}.my8[data-v-2d5786b0]{margin-top:%?8?%;margin-bottom:%?8?%}.ma8[data-v-2d5786b0]{margin:%?8?%}.mt10[data-v-2d5786b0]{margin-top:%?10?%}.mr10[data-v-2d5786b0]{margin-right:%?10?%}.mb10[data-v-2d5786b0]{margin-bottom:%?10?%}.ml10[data-v-2d5786b0]{margin-left:%?10?%}.mx10[data-v-2d5786b0]{margin-left:%?10?%;margin-right:%?10?%}.my10[data-v-2d5786b0]{margin-top:%?10?%;margin-bottom:%?10?%}.ma10[data-v-2d5786b0]{margin:%?10?%}.mt15[data-v-2d5786b0]{margin-top:%?15?%}.mr15[data-v-2d5786b0]{margin-right:%?15?%}.mb15[data-v-2d5786b0]{margin-bottom:%?15?%}.ml15[data-v-2d5786b0]{margin-left:%?15?%}.mx15[data-v-2d5786b0]{margin-left:%?15?%;margin-right:%?15?%}.my15[data-v-2d5786b0]{margin-top:%?15?%;margin-bottom:%?15?%}.ma15[data-v-2d5786b0]{margin:%?15?%}.mt20[data-v-2d5786b0]{margin-top:%?20?%}.mr20[data-v-2d5786b0]{margin-right:%?20?%}.mb20[data-v-2d5786b0]{margin-bottom:%?20?%}.ml20[data-v-2d5786b0]{margin-left:%?20?%}.mx20[data-v-2d5786b0]{margin-left:%?20?%;margin-right:%?20?%}.my20[data-v-2d5786b0]{margin-top:%?20?%;margin-bottom:%?20?%}.ma20[data-v-2d5786b0]{margin:%?20?%}.mt24[data-v-2d5786b0]{margin-top:%?24?%}.mr24[data-v-2d5786b0]{margin-right:%?24?%}.mb24[data-v-2d5786b0]{margin-bottom:%?24?%}.ml24[data-v-2d5786b0]{margin-left:%?24?%}.mx24[data-v-2d5786b0]{margin-left:%?24?%;margin-right:%?24?%}.my24[data-v-2d5786b0]{margin-top:%?24?%;margin-bottom:%?24?%}.ma24[data-v-2d5786b0]{margin:%?24?%}.mt30[data-v-2d5786b0]{margin-top:%?30?%}.mr30[data-v-2d5786b0]{margin-right:%?30?%}.mb30[data-v-2d5786b0]{margin-bottom:%?30?%}.ml30[data-v-2d5786b0]{margin-left:%?30?%}.mx30[data-v-2d5786b0]{margin-left:%?30?%;margin-right:%?30?%}.my30[data-v-2d5786b0]{margin-top:%?30?%;margin-bottom:%?30?%}.ma30[data-v-2d5786b0]{margin:%?30?%}.pt2[data-v-2d5786b0]{padding-top:%?2?%}.pr2[data-v-2d5786b0]{padding-right:%?2?%}.pb2[data-v-2d5786b0]{padding-bottom:%?2?%}.pl2[data-v-2d5786b0]{padding-left:%?2?%}.px2[data-v-2d5786b0]{padding-left:%?2?%;padding-right:%?2?%}.py2[data-v-2d5786b0]{padding-top:%?2?%;padding-bottom:%?2?%}.pa2[data-v-2d5786b0]{padding:%?2?%}.pt4[data-v-2d5786b0]{padding-top:%?4?%}.pr4[data-v-2d5786b0]{padding-right:%?4?%}.pb4[data-v-2d5786b0]{padding-bottom:%?4?%}.pl4[data-v-2d5786b0]{padding-left:%?4?%}.px4[data-v-2d5786b0]{padding-left:%?4?%;padding-right:%?4?%}.py4[data-v-2d5786b0]{padding-top:%?4?%;padding-bottom:%?4?%}.pa4[data-v-2d5786b0]{padding:%?4?%}.pt8[data-v-2d5786b0]{padding-top:%?8?%}.pr8[data-v-2d5786b0]{padding-right:%?8?%}.pb8[data-v-2d5786b0]{padding-bottom:%?8?%}.pl8[data-v-2d5786b0]{padding-left:%?8?%}.px8[data-v-2d5786b0]{padding-left:%?8?%;padding-right:%?8?%}.py8[data-v-2d5786b0]{padding-top:%?8?%;padding-bottom:%?8?%}.pa8[data-v-2d5786b0]{padding:%?8?%}.pt10[data-v-2d5786b0]{padding-top:%?10?%}.pr10[data-v-2d5786b0]{padding-right:%?10?%}.pb10[data-v-2d5786b0]{padding-bottom:%?10?%}.pl10[data-v-2d5786b0]{padding-left:%?10?%}.px10[data-v-2d5786b0]{padding-left:%?10?%;padding-right:%?10?%}.py10[data-v-2d5786b0]{padding-top:%?10?%;padding-bottom:%?10?%}.pa10[data-v-2d5786b0]{padding:%?10?%}.pt15[data-v-2d5786b0]{padding-top:%?15?%}.pr15[data-v-2d5786b0]{padding-right:%?15?%}.pb15[data-v-2d5786b0]{padding-bottom:%?15?%}.pl15[data-v-2d5786b0]{padding-left:%?15?%}.px15[data-v-2d5786b0]{padding-left:%?15?%;padding-right:%?15?%}.py15[data-v-2d5786b0]{padding-top:%?15?%;padding-bottom:%?15?%}.pa15[data-v-2d5786b0]{padding:%?15?%}.pt20[data-v-2d5786b0]{padding-top:%?20?%}.pr20[data-v-2d5786b0]{padding-right:%?20?%}.pb20[data-v-2d5786b0]{padding-bottom:%?20?%}.pl20[data-v-2d5786b0]{padding-left:%?20?%}.px20[data-v-2d5786b0]{padding-left:%?20?%;padding-right:%?20?%}.py20[data-v-2d5786b0]{padding-top:%?20?%;padding-bottom:%?20?%}.pa20[data-v-2d5786b0]{padding:%?20?%}.pt24[data-v-2d5786b0]{padding-top:%?24?%}.pr24[data-v-2d5786b0]{padding-right:%?24?%}.pb24[data-v-2d5786b0]{padding-bottom:%?24?%}.pl24[data-v-2d5786b0]{padding-left:%?24?%}.px24[data-v-2d5786b0]{padding-left:%?24?%;padding-right:%?24?%}.py24[data-v-2d5786b0]{padding-top:%?24?%;padding-bottom:%?24?%}.pa24[data-v-2d5786b0]{padding:%?24?%}.pt30[data-v-2d5786b0]{padding-top:%?30?%}.pr30[data-v-2d5786b0]{padding-right:%?30?%}.pb30[data-v-2d5786b0]{padding-bottom:%?30?%}.pl30[data-v-2d5786b0]{padding-left:%?30?%}.px30[data-v-2d5786b0]{padding-left:%?30?%;padding-right:%?30?%}.py30[data-v-2d5786b0]{padding-top:%?30?%;padding-bottom:%?30?%}.pa30[data-v-2d5786b0]{padding:%?30?%}\r\n/*按钮禁用*/.disabled[data-v-2d5786b0]{outline:0 none;cursor:default!important;opacity:.4;filter:alpha(opacity=40);-ms-pointer-events:none;pointer-events:none}\r\n/**\r\n * \r\n * 自定义class工具\r\n * \r\n*/.pad[data-v-2d5786b0]{padding:0 %?30?%}.page_box[data-v-2d5786b0]{height:100%;width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;overflow-x:hidden;background:#fff}.scroll-box[data-v-2d5786b0]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;position:relative}.content_box[data-v-2d5786b0]{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow-y:auto}\r\n/*单行文本溢出省略号*/.one-t[data-v-2d5786b0]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-webkit-transition:all linear .2s;transition:all linear .2s}\r\n/*多行文本溢出省略号*/.more-t[data-v-2d5786b0]{overflow:hidden;text-overflow:ellipsis;word-break:break-all;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;-webkit-transition:all linear .2s;transition:all linear .2s}\r\n/* ==================\r\n          flex布局(colorui里面也有相关基础样式)\r\n ==================== */\r\n/* x水平排列*/.x-f[data-v-2d5786b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}\r\n/*x两端且水平居中*/.x-bc[data-v-2d5786b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}\r\n/*x平分且水平居中*/.x-ac[data-v-2d5786b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-justify-content:space-around;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;align-items:center}\r\n/*x水平靠上对齐*/.x-start[data-v-2d5786b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}\r\n/*x水平靠下对齐*/.x-end[data-v-2d5786b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end}\r\n/*上下左右居中*/.x-c[data-v-2d5786b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}\r\n/*y竖直靠左*/.y-start[data-v-2d5786b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start}\r\n/*y竖直靠右*/.y-end[data-v-2d5786b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end}\r\n/*y竖直居中*/.y-f[data-v-2d5786b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.y-b[data-v-2d5786b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}\r\n/*y竖直两端居中*/.y-bc[data-v-2d5786b0]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}\r\n/* ==================\r\n     flex布局  \r\n ==================== */\r\n/* ==================\r\n      渐变色 \r\n ==================== */\r\n/**\r\n* 溢出省略号\r\n* @param {Number} 行数\r\n*/\r\n/* shopro主题颜色 */\r\n/* 深黑 */#dark-theme[data-v-2d5786b0]{background:#000}#dark-theme .bColor[data-v-2d5786b0]{background:#fff;color:#999}#dark-theme .borderColor[data-v-2d5786b0]{border-color:#fff}\r\n/* 粉红 */#red-theme[data-v-2d5786b0]{background:#f9e5ee}#red-theme .bColor[data-v-2d5786b0]{background:#f9e5ee;color:#8e5a54}#red-theme .borderColor[data-v-2d5786b0]{border-color:#8e5a54}\r\n/* 橘黄 */#yellow-theme[data-v-2d5786b0]{background:#f6e1c9}#yellow-theme .bColor[data-v-2d5786b0]{background:#f6e1c9;color:#8c6031}#yellow-theme .borderColor[data-v-2d5786b0]{border-color:#8c6031}.location-item[data-v-2d5786b0]{font-size:%?28?%;font-family:PingFang SC;font-weight:500;background-color:#fff;color:#a76f0d}.location-item .address-box[data-v-2d5786b0]{border-radius:%?6?%;height:%?72?%;padding:0 %?30?%;width:%?340?%}.location-item .cuIcon-focus[data-v-2d5786b0],\r\n.location-item .cuIcon-location[data-v-2d5786b0]{font-size:%?34?%;margin-right:%?10?%}.location-item .cuIcon-right[data-v-2d5786b0]{font-size:%?32?%}.address-item[data-v-2d5786b0]{height:%?96?%;background:#fff;border-bottom:%?1?% solid hsla(0,0%,87.5%,.5);padding:0 %?25?%}.address-item .item-title[data-v-2d5786b0]{color:#333;font-size:%?28?%;white-space:nowrap}.address-item .inp[data-v-2d5786b0]{color:#333;font-size:%?28?%}.area-box[data-v-2d5786b0]{min-height:%?120?%;padding-bottom:%?60?%;background:#fff;padding:%?30?% %?25?%}.area-box .item-title[data-v-2d5786b0]{font-size:%?28?%;line-height:%?28?%;vertical-align:middle;white-space:nowrap}.area-box .area-inp[data-v-2d5786b0]{color:#333;font-size:%?28?%;vertical-align:middle;margin-top:%?8?%;width:%?550?%}.default-box[data-v-2d5786b0]{height:%?100?%;padding:0 %?25?%;background:#fff;margin-top:%?20?%}.default-box .title[data-v-2d5786b0]{font-size:%?28?%}.default-box .switch[data-v-2d5786b0]{-webkit-transform:scale(.8);transform:scale(.8)}.foot_box[data-v-2d5786b0]{padding:%?20?%}.foot_box .add-btn[data-v-2d5786b0]{width:%?710?%;height:%?80?%;background:-webkit-linear-gradient(left,#e9b461,#eecc89);background:linear-gradient(90deg,#e9b461,#eecc89);border:%?1?% solid #eee;border-radius:%?40?%;color:hsla(0,0%,100%,.9)}.foot_box .delete-btn[data-v-2d5786b0]{width:%?432?%;height:%?70?%;background:-webkit-linear-gradient(357deg,#d01325,#ed3c30);background:linear-gradient(93deg,#d01325,#ed3c30);box-shadow:0 %?7?% %?6?% 0 rgba(237,60,48,.22);font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#fff;border-radius:%?35?%;padding:0;margin-right:%?20?%}.foot_box .save-btn[data-v-2d5786b0]{width:%?432?%;height:%?70?%;background:-webkit-linear-gradient(left,#e9b461,#eecc89);background:linear-gradient(90deg,#e9b461,#eecc89);border:%?1?% solid #eee;border-radius:%?40?%;color:hsla(0,0%,100%,.9)}',""]),a.exports=t},6620:function(a,t,e){"use strict";e.r(t);var i=e("ab2f"),d=e("ab71");for(var n in d)"default"!==n&&function(a){e.d(t,a,(function(){return d[a]}))}(n);e("d026");var o,r=e("f0c5"),s=Object(r["a"])(d["default"],i["b"],i["c"],!1,null,"50daaa43",null,!1,i["a"],o);t["default"]=s.exports},"7be0":function(a,t,e){var i=e("24fb");t=i(!1),t.push([a.i,'.pickerMask[data-v-50daaa43]{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0;background:rgba(0,0,0,.6)}.shopro-picker-content[data-v-50daaa43]{position:fixed;bottom:0;left:0;width:100%;-webkit-transition:all .3s ease;transition:all .3s ease;-webkit-transform:translateY(100%);transform:translateY(100%);z-index:3000}.shopro-picker-view-show[data-v-50daaa43]{-webkit-transform:translateY(0);transform:translateY(0)}.shopro-picker__hd[data-v-50daaa43]{display:-webkit-box;display:-webkit-flex;display:flex;padding:9px 15px;background-color:#fff;position:relative;text-align:center;font-size:17px}.shopro-picker__hd[data-v-50daaa43]:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:1px;border-bottom:1px solid #e5e5e5;color:#e5e5e5;-webkit-transform-origin:0 100%;transform-origin:0 100%;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.shopro-picker__action[data-v-50daaa43]{display:block;-webkit-box-flex:1;-webkit-flex:1;flex:1;color:#1aad19}.shopro-picker__action[data-v-50daaa43]:first-child{text-align:left;color:#888}.shopro-picker__action[data-v-50daaa43]:last-child{text-align:right}.picker-item[data-v-50daaa43]{text-align:center;line-height:40px;text-overflow:ellipsis;white-space:nowrap;font-size:16px}.shopro-picker-view[data-v-50daaa43]{position:relative;bottom:0;left:0;width:100%;height:238px;background-color:#fff}',""]),a.exports=t},ab2f:function(a,t,e){"use strict";var i;e.d(t,"b",(function(){return d})),e.d(t,"c",(function(){return n})),e.d(t,"a",(function(){return i}));var d=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"shopro-picker"},[e("div",{class:{pickerMask:a.showPicker},attrs:{catchtouchmove:"true"},on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.maskClick.apply(void 0,arguments)}}}),e("div",{staticClass:"shopro-picker-content ",class:{"shopro-picker-view-show":a.showPicker}},[e("div",{staticClass:"shopro-picker__hd",attrs:{catchtouchmove:"true"}},[e("div",{staticClass:"shopro-picker__action",on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.pickerCancel.apply(void 0,arguments)}}},[a._v("取消")]),e("div",{staticClass:"shopro-picker__action",style:{color:a.themeColor},on:{click:function(t){arguments[0]=t=a.$handleEvent(t),a.pickerConfirm.apply(void 0,arguments)}}},[a._v("确定")])]),e("v-uni-picker-view",{staticClass:"shopro-picker-view",attrs:{"indicator-style":"height: 40px;",value:a.pickerValue},on:{change:function(t){arguments[0]=t=a.$handleEvent(t),a.pickerChange.apply(void 0,arguments)}}},[[e("v-uni-picker-view-column",a._l(a.provinceDataList,(function(t,i){return e("div",{key:i,staticClass:"picker-item"},[a._v(a._s(t.label))])})),0),e("v-uni-picker-view-column",a._l(a.cityDataList,(function(t,i){return e("div",{key:i,staticClass:"picker-item"},[a._v(a._s(t.label))])})),0),e("v-uni-picker-view-column",a._l(a.areaDataList,(function(t,i){return e("div",{key:i,staticClass:"picker-item"},[a._v(a._s(t.label))])})),0)]],2)],1)])},n=[]},ab71:function(a,t,e){"use strict";e.r(t);var i=e("41e0"),d=e.n(i);for(var n in i)"default"!==n&&function(a){e.d(t,a,(function(){return i[a]}))}(n);t["default"]=d.a},ccfe:function(a,t,e){var i=e("7be0");"string"===typeof i&&(i=[[a.i,i,""]]),i.locals&&(a.exports=i.locals);var d=e("4f06").default;d("51d78f6b",i,!0,{sourceMap:!1,shadowMode:!1})},d026:function(a,t,e){"use strict";var i=e("ccfe"),d=e.n(i);d.a},ed88:function(a,t,e){"use strict";(function(a){e("99af"),e("ac1f"),e("5319"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={components:{},data:function(){return{addressData:{id:0,consignee:"",phone:"",area_id:"",address:"",is_default:!1,latitude:"",longitude:""},chooseAddress:"",area_text:"",cityPickerValueDefault:[0,0,0],pickerData:{},from:""}},computed:{},onLoad:function(){var a=this.$Route.query.id;if(this.addressData.id=this.$Route.query.id,this.$Route.query.addressData){var t=JSON.parse(this.$Route.query.addressData);this.addressData.id=0,a=0,this.addressData.consignee=t.userName,this.addressData.phone=t.telNumber,this.area_text="".concat(t.provinceName,"-").concat(t.cityName,"-").concat(t.countryName),this.addressData.area_id=t.nationalCode,this.addressData.address=t.detailInfo.replace(/%20/g,""),this.addressData.is_default=!1}0!=this.addressData.id&&this.getAddressInfo(),uni.setNavigationBarTitle({title:0!=a?"编辑收货地址":"添加收货地址"}),this.$Route.query.from&&(this.from=this.$Route.query.from)},methods:{chooseLocation:function(){var t=this,e=this;uni.showModal({content:"由于浏览器限制,如遇定位不准,在页面内刷新即可。",showCancel:!1,success:function(){uni.chooseLocation({success:function(a){e.chooseAddress=a.address,e.addressData.latitude=a.latitude,e.addressData.longitude=a.longitude,0==e.addressData.id&&(e.addressData.address=a.address)},fail:function(t){a.log(t)}})}}),this.$wxsdk.openAddress((function(a){t.chooseAddress=a.address,t.addressData.latitude=a.latitude,t.addressData.longitude=a.longitude,0==t.addressData.id&&(t.addressData.address=a.address)}))},onSwitch:function(){this.addressData.is_default=!this.addressData.is_default},selCity:function(){this.$refs.shoproCityPicker.show()},editAddress:function(){var a=this;a.$api("address.edit",a.addressData).then((function(t){1===t.code&&(a.from,a.$Router.back())}))},getAddressInfo:function(){var a=this;this.$api("address.info",{id:this.addressData.id}).then((function(t){if(1===t.code){var e=t.data,i="".concat(e.province_name,"-").concat(e.city_name,"-").concat(e.area_name),d="1"===e.is_default;a.addressData=t.data,a.area_text=i,a.addressData.is_default=d}}))},onConfirm:function(a){this.addressData.area_id=a.cityCode,this.area_text=a.label},onCancel:function(a){this.addressData.area_id=a.cityCode,this.area_text=a.label},deleteAddress:function(){this.$api("address.del",{id:this.addressData.id}).then((function(a){1===a.code&&uni.showToast({title:"删除成功",icon:"none",success:function(){uni.navigateBack({delta:1})}})}))}}};t.default=i}).call(this,e("5a52")["default"])},f765:function(a,t,e){"use strict";e.r(t);var i=e("ed88"),d=e.n(i);for(var n in i)"default"!==n&&function(a){e.d(t,a,(function(){return i[a]}))}(n);t["default"]=d.a}}]);