Commit c516ea051091a013183eda01f9db92171d3ad4e5

Authored by 范牧
1 parent 16749c922a
Exists in master

删除地址修改

Showing 1 changed file with 4 additions and 1 deletions   Show diff stats
src/pages/address/addressList.vue
... ... @@ -107,12 +107,13 @@ export default {
107 107 }
108 108 },
109 109 delAddress(addId) {
  110 + const that = this
110 111 uni.showModal({
111 112 title: '提示',
112 113 content: '是否删除该条地址',
113 114 success: function (res) {
114 115 if (res.confirm) {
115   - if (this.addressList.length > 1) {
  116 + if (that.addressList.length > 1) {
116 117 store.dispatch('address/delete', {
117 118 add_id: addId,
118 119 }).then(() => {
... ... @@ -125,6 +126,7 @@ export default {
125 126 } else {
126 127 uni.showToast({
127 128 title: '请保留至少一条地址信息',
  129 + icon: 'none',
128 130 duration: 1000,
129 131 })
130 132 }
... ... @@ -179,6 +181,7 @@ export default {
179 181 font-size: 12px;
180 182 color: #ffffff;
181 183 letter-spacing: -0.23px;
  184 + line-height: 40rpx;
182 185 }
183 186 }
184 187 }
... ...