Commit a67118fd by zhangxw

下单收货地址选择回显选中项bug修复

1 parent dae797da
...@@ -12,6 +12,7 @@ Component({ ...@@ -12,6 +12,7 @@ Component({
if (val && this.properties.address.length) { if (val && this.properties.address.length) {
console.log(this.properties.defaultAddress?.id) console.log(this.properties.defaultAddress?.id)
this.properties.address.forEach((item, index) => { this.properties.address.forEach((item, index) => {
item.active = false
if (item.id == this.properties.defaultAddress?.id) { if (item.id == this.properties.defaultAddress?.id) {
item.active = true item.active = true
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!