|
@@ -114,7 +114,7 @@
|
|
|
data() {
|
|
|
return {
|
|
|
user: {},
|
|
|
- id: {},
|
|
|
+ key: '',
|
|
|
info: {},
|
|
|
shop: {
|
|
|
money: 58,
|
|
@@ -159,7 +159,7 @@
|
|
|
},
|
|
|
onLoad: async function(e) {
|
|
|
const that = this;
|
|
|
- that.$set(that, `id`, e.id || '');
|
|
|
+ that.$set(that, `key`, e.key || '');
|
|
|
},
|
|
|
methods: {
|
|
|
// 选择收货地址
|
|
@@ -170,8 +170,8 @@
|
|
|
// 是否选中
|
|
|
toCheckbox(e) {
|
|
|
const that = this;
|
|
|
- var addressList = that.addressList,
|
|
|
- values = e.detail.value;
|
|
|
+ var addressList = that.addressList;
|
|
|
+ var values = e.detail.value;
|
|
|
for (var i = 0, lenI = addressList.length; i < lenI; ++i) {
|
|
|
const item = addressList[i]
|
|
|
if (values.includes(item._id)) {
|