6.24
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<view class="address">
|
||||
<u-radio-group v-model="current" @change="changeDefault" size="29" active-color="#FF780F">
|
||||
<u-empty text="暂无收货地址" mode="address" color="#000000" img-width="120" margin-top="300" v-if="!addressList.length"></u-empty>
|
||||
<view v-for="(item, index) in addressList" :key="index" class="address-item">
|
||||
<AddressItem :item="item" :current='current' @getAddressList="getAddressList"></AddressItem>
|
||||
</view>
|
||||
@@ -14,7 +15,7 @@ import AddressItem from '@/components/mine/address-block/address-item'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
current: -1,
|
||||
current: -1, // radio 标记
|
||||
addressList: []
|
||||
}
|
||||
},
|
||||
@@ -46,7 +47,7 @@ export default {
|
||||
// console.log(id)
|
||||
this.$u.api.setDefaultAddress({
|
||||
address_id: id
|
||||
}).then((res)=>{
|
||||
}).then(res => {
|
||||
if(res.errCode == 0) {
|
||||
this.getAddressList();
|
||||
} else {
|
||||
|
||||
@@ -9,7 +9,6 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
page: 1,
|
||||
type: '售后政策',
|
||||
policyList: []
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user