diff --git a/src/pages/address/addressList.vue b/src/pages/address/addressList.vue index 526a027..16a864a 100644 --- a/src/pages/address/addressList.vue +++ b/src/pages/address/addressList.vue @@ -107,12 +107,13 @@ export default { } }, delAddress(addId) { + const that = this uni.showModal({ title: '提示', content: '是否删除该条地址', success: function (res) { if (res.confirm) { - if (this.addressList.length > 1) { + if (that.addressList.length > 1) { store.dispatch('address/delete', { add_id: addId, }).then(() => { @@ -125,6 +126,7 @@ export default { } else { uni.showToast({ title: '请保留至少一条地址信息', + icon: 'none', duration: 1000, }) } @@ -179,6 +181,7 @@ export default { font-size: 12px; color: #ffffff; letter-spacing: -0.23px; + line-height: 40rpx; } } }