!11 修复暂无收货地址数据判断错误问题

Merge pull request !11 from master @Jimi
master
Chopper711 2023-03-01 02:49:49 +00:00 committed by Gitee
commit 7499682883
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="address"> <view class="address">
<u-empty class="empty" v-if="this.addressList == 0" text="暂无收货地址" mode="address"></u-empty> <u-empty class="empty" v-if="this.addressList.length === 0" text="暂无收货地址" mode="address"></u-empty>
<view class="list" > <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">
@ -50,7 +50,7 @@ export default {
return { return {
addressList: [], // addressList: [], //
showAction: false, // showAction: false, //
removeList: [ removeList: [
{ {
text: "确定", text: "确定",
@ -88,7 +88,7 @@ export default {
onShow() { onShow() {
if (this.$options.filters.tipsToLogin()) { if (this.$options.filters.tipsToLogin()) {
this.getAddressList(); this.getAddressList();
} }
}, },
methods: { methods: {
// //