|
@@ -133,7 +133,8 @@ export default {
|
|
|
:isShowCustomAddress="false"
|
|
:isShowCustomAddress="false"
|
|
|
@selected="selected3"
|
|
@selected="selected3"
|
|
|
:defaultIcon="defaultIcon"
|
|
:defaultIcon="defaultIcon"
|
|
|
- :selectedIcon='selectedIcon'>
|
|
|
|
|
|
|
+ :selectedIcon='selectedIcon'
|
|
|
|
|
+ :closeBtnIcon="closeBtnIcon">
|
|
|
</nut-address>
|
|
</nut-address>
|
|
|
|
|
|
|
|
```
|
|
```
|
|
@@ -146,6 +147,7 @@ export default {
|
|
|
showPopupCustomImg:false,
|
|
showPopupCustomImg:false,
|
|
|
selectedIcon:require('../../assets/svg/checked.svg'),
|
|
selectedIcon:require('../../assets/svg/checked.svg'),
|
|
|
defaultIcon:require('../../assets/svg/unchecked.svg'),
|
|
defaultIcon:require('../../assets/svg/unchecked.svg'),
|
|
|
|
|
+ closeBtnIcon: require('../../assets/svg/close.svg'),
|
|
|
existAddress:[
|
|
existAddress:[
|
|
|
{"id":1,"addressDetail":"th ","cityName":"石景山区","countyName":"城区","provinceName":"北京","selectedAddress":true,"townName":""},
|
|
{"id":1,"addressDetail":"th ","cityName":"石景山区","countyName":"城区","provinceName":"北京","selectedAddress":true,"townName":""},
|
|
|
{"id":2,"addressDetail":"12_ ","cityName":"电饭锅","countyName":"扶绥县","provinceName":"北京","selectedAddress":false,"townName":""},
|
|
{"id":2,"addressDetail":"12_ ","cityName":"电饭锅","countyName":"扶绥县","provinceName":"北京","selectedAddress":false,"townName":""},
|
|
@@ -200,6 +202,7 @@ export default {
|
|
|
:city="city"
|
|
:city="city"
|
|
|
:country="country"
|
|
:country="country"
|
|
|
:town="town"
|
|
:town="town"
|
|
|
|
|
+ :backBtnIcon="backBtnIcon"
|
|
|
customAndExistTitle="选择其他地址"
|
|
customAndExistTitle="选择其他地址"
|
|
|
@onChange="onChange4"
|
|
@onChange="onChange4"
|
|
|
@close="close4"
|
|
@close="close4"
|
|
@@ -225,6 +228,7 @@ export default {
|
|
|
city:[{"id":7,"name":"朝阳区"},{"id":8,"name":"崇文区"},{"id":9,"name":"昌平区"},{"id":6,"name":"石景山区"}],// 市
|
|
city:[{"id":7,"name":"朝阳区"},{"id":8,"name":"崇文区"},{"id":9,"name":"昌平区"},{"id":6,"name":"石景山区"}],// 市
|
|
|
country:[{"id":3,"name":"八里庄街道"},{"id":9,"name":"北苑"},{"id":4,"name":"常营乡"}],// 县
|
|
country:[{"id":3,"name":"八里庄街道"},{"id":9,"name":"北苑"},{"id":4,"name":"常营乡"}],// 县
|
|
|
town:[], // 镇 必传值:name
|
|
town:[], // 镇 必传值:name
|
|
|
|
|
+ backBtnIcon: require('../../assets/svg/back.svg'),
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -274,6 +278,8 @@ export default {
|
|
|
| existAddress | 已存在地址列表,每个地址对象中,必传值provinceName、cityName、countyName、townName、addressDetail、selectedAddress(字段解释见下) | Array | []
|
|
| existAddress | 已存在地址列表,每个地址对象中,必传值provinceName、cityName、countyName、townName、addressDetail、selectedAddress(字段解释见下) | Array | []
|
|
|
| defaultIcon | 已有地址列表默认图标,type=‘exist’ 时生效 | string | ''
|
|
| defaultIcon | 已有地址列表默认图标,type=‘exist’ 时生效 | string | ''
|
|
|
| selectedIcon | 已有地址列表选中图标,type=‘exist’ 时生效 | string | ''
|
|
| selectedIcon | 已有地址列表选中图标,type=‘exist’ 时生效 | string | ''
|
|
|
|
|
+| closeBtnIcon | 自定义关闭弹框按钮图标 | string | -
|
|
|
|
|
+| backBtnIcon | 自定义地址与已有地址切换时,自定义返回的按钮图标 | string | -
|
|
|
| isShowCustomAddress | 是否可以切换自定义地址选择,type=‘exist’ 时生效 | Boolean | true
|
|
| isShowCustomAddress | 是否可以切换自定义地址选择,type=‘exist’ 时生效 | Boolean | true
|
|
|
| customAddressTitle | 自定义地址选择文案,type='custom' 时生效 | string | '请选择所在地区'
|
|
| customAddressTitle | 自定义地址选择文案,type='custom' 时生效 | string | '请选择所在地区'
|
|
|
| existAddressTitle| 已有地址文案 ,type=‘exist’ 时生效| string | '配送至'
|
|
| existAddressTitle| 已有地址文案 ,type=‘exist’ 时生效| string | '配送至'
|