|
@@ -6,7 +6,7 @@
|
|
|
<radio-group @change="addressChange">
|
|
|
<view class="list" v-for="(item,index) in list" :key="index">
|
|
|
<label class="radio" v-if="type=='shopping'">
|
|
|
- <radio :value="item._id" :checked="index === address" />
|
|
|
+ <radio :value="item._id" :checked="item._id === address_id" />
|
|
|
</label>
|
|
|
<view class="list_1">
|
|
|
<view class="name">
|
|
@@ -70,7 +70,7 @@
|
|
|
onLoad: function(e) {
|
|
|
const that = this;
|
|
|
that.$set(that, `type`, e && e.type || '');
|
|
|
- that.$set(that, `id`, e && e.id || '');
|
|
|
+ that.$set(that, `address_id`, e && e.id || '');
|
|
|
},
|
|
|
onShow: async function() {
|
|
|
const that = this;
|