zs преди 2 години
родител
ревизия
711a3583c3
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      pagesMy/address/index.vue

+ 2 - 2
pagesMy/address/index.vue

@@ -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;