Commit dbdccfc4 authored by chicheng's avatar chicheng

切换是否分流时,收货地址等信息还原。收货地址改为弹框选择

parent 1428a38c
...@@ -129,9 +129,18 @@ ...@@ -129,9 +129,18 @@
methods: { methods: {
handleChecked(item) { handleChecked(item) {
this.selectShuntAdressAccountInfo = item this.selectShuntAdressAccountInfo = item
uni.$emit('selectShuntAdressAccountInfo', { // 根据type判断发送不同的事件:1=分流收货单位,2=普通收货单位
selectShuntAdressAccountInfo: item if(this.addressType === '2'){
}) // 普通收货单位选择
uni.$emit('selectReceiveUnitInfo', {
selectReceiveUnitInfo: item
})
}else{
// 分流收货单位选择
uni.$emit('selectShuntAdressAccountInfo', {
selectShuntAdressAccountInfo: item
})
}
uni.navigateBack() uni.navigateBack()
}, },
search() { search() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment