提交补交

master
lemon橪 2021-09-09 15:05:19 +08:00
parent 4c7663d671
commit ba3034e5cb
1 changed files with 8 additions and 11 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="address"> <view class="address">
<u-empty class="empty" v-if="empty" text="暂无收货地址" mode="address"></u-empty> <u-empty class="empty" v-if="this.addressList == 0" text="暂无收货地址" mode="address"></u-empty>
<view class="list" v-else> <view class="list" >
<view class="item c-content" v-for="(item, index) in addressList" :key="index"> <view class="item c-content" v-for="(item, index) in addressList" :key="index">
<view class="basic"> <view class="basic">
<text>{{ item.name }}</text> <text>{{ item.name }}</text>
@ -50,7 +50,7 @@ export default {
return { return {
addressList: [], // addressList: [], //
showAction: false, // showAction: false, //
empty: false, //
removeList: [ removeList: [
{ {
text: "确定", text: "确定",
@ -112,14 +112,11 @@ export default {
this.params.pageNumber, this.params.pageNumber,
this.params.pageSize this.params.pageSize
).then((res) => { ).then((res) => {
if (res.data.result.records.length == 0) { res.data.result.records.forEach((item) => {
this.empty = true; item.consigneeAddressPath = item.consigneeAddressPath.split(",");
} else { });
res.data.result.records.forEach((item) => { this.addressList = res.data.result.records;
item.consigneeAddressPath = item.consigneeAddressPath.split(",");
});
this.addressList = res.data.result.records;
}
uni.hideLoading(); uni.hideLoading();
}); });
}, },