Commit 8d7d5ab312acf061f4b59899e9c24a03e6349c3a
1 parent
57ac72ea
地址返回信息优化
Showing
7 changed files
with
60 additions
and
61 deletions
src/components/navBar/navBar.vue
| ... | ... | @@ -6,7 +6,7 @@ |
| 6 | 6 | <div class="left-box" |
| 7 | 7 | v-if="navs.back"> |
| 8 | 8 | <div class="back" |
| 9 | - @tap="doBack"> | |
| 9 | + @click="doBack"> | |
| 10 | 10 | <img :src="navs.back.img" |
| 11 | 11 | class="img" /> |
| 12 | 12 | </div> |
| ... | ... | @@ -22,7 +22,7 @@ |
| 22 | 22 | <div class="func-box" |
| 23 | 23 | v-for="(func, index) in navs.funcs" |
| 24 | 24 | :key="index" |
| 25 | - @tap="doFunc(func)"> | |
| 25 | + @click="doFunc(func)"> | |
| 26 | 26 | <img :src="func.img" |
| 27 | 27 | v-if="func.img" |
| 28 | 28 | class="img" /> | ... | ... |
src/pages/addressCreate/addressCreate.less
| ... | ... | @@ -39,20 +39,21 @@ |
| 39 | 39 | .pl { |
| 40 | 40 | background-color: transparent; |
| 41 | 41 | width: 100%; |
| 42 | - &.is-cnlive { | |
| 43 | - height: 44px; | |
| 44 | - } | |
| 45 | - &.not-is-cnlive { | |
| 46 | - height: 0; | |
| 47 | - &.is-open-app { | |
| 48 | - height: 124px; | |
| 49 | - } | |
| 50 | - } | |
| 51 | - &.not-is-cnlive { | |
| 52 | - &.not-is-wechat { | |
| 53 | - height: 44px; | |
| 54 | - } | |
| 55 | - } | |
| 42 | + height: 88px; | |
| 43 | + // &.is-cnlive { | |
| 44 | + // height: 44px; | |
| 45 | + // } | |
| 46 | + // &.not-is-cnlive { | |
| 47 | + // height: 0; | |
| 48 | + // &.is-open-app { | |
| 49 | + // height: 124px; | |
| 50 | + // } | |
| 51 | + // } | |
| 52 | + // &.not-is-cnlive { | |
| 53 | + // &.not-is-wechat { | |
| 54 | + // height: 44px; | |
| 55 | + // } | |
| 56 | + // } | |
| 56 | 57 | } |
| 57 | 58 | > .box { |
| 58 | 59 | .label { | ... | ... |
src/pages/addressCreate/addressCreate.vue
| 1 | 1 | <template> |
| 2 | 2 | <div class="address-create-page"> |
| 3 | 3 | |
| 4 | - <!-- 导航栏 --> | |
| 4 | + <!-- 导航栏 --> | |
| 5 | 5 | <div class="nav"> |
| 6 | 6 | |
| 7 | - <!-- navBar --> | |
| 8 | - <nav-bar | |
| 9 | - @back="back" | |
| 7 | + <!-- navBar --> | |
| 8 | + <nav-bar @back="back" | |
| 10 | 9 | :navs="navs"> |
| 11 | 10 | </nav-bar> |
| 12 | 11 | </div> |
| 13 | - | |
| 12 | + <div class="pl"></div> | |
| 14 | 13 | <address-select-layer ref="selectLayer" |
| 15 | 14 | :addressInfo="addressInfo"> |
| 16 | 15 | </address-select-layer> |
| ... | ... | @@ -208,7 +207,7 @@ export default { |
| 208 | 207 | this.$set(this, 'isDisabled', true); |
| 209 | 208 | |
| 210 | 209 | // 显示loading |
| 211 | - Indicator.open('加载中...'); | |
| 210 | + Indicator.open('加载中...'); | |
| 212 | 211 | |
| 213 | 212 | // 请求接口 |
| 214 | 213 | this.http("/Api/" + (this.getApiVersion().index) + "/addAddress", addressInfo, this.doAddressCreateCallback, { | ... | ... |
src/pages/addressEdit/addressEdit.less
| ... | ... | @@ -41,20 +41,21 @@ |
| 41 | 41 | .pl { |
| 42 | 42 | background-color: transparent; |
| 43 | 43 | width: 100%; |
| 44 | - &.is-cnlive { | |
| 45 | - height: 44px; | |
| 46 | - } | |
| 47 | - &.not-is-cnlive { | |
| 48 | - height: 0; | |
| 49 | - &.is-open-app { | |
| 50 | - height: 124px; | |
| 51 | - } | |
| 52 | - } | |
| 53 | - &.not-is-cnlive { | |
| 54 | - &.not-is-wechat { | |
| 55 | - height: 44px; | |
| 56 | - } | |
| 57 | - } | |
| 44 | + height: 88px; | |
| 45 | + // &.is-cnlive { | |
| 46 | + // height: 44px; | |
| 47 | + // } | |
| 48 | + // &.not-is-cnlive { | |
| 49 | + // height: 0; | |
| 50 | + // &.is-open-app { | |
| 51 | + // height: 124px; | |
| 52 | + // } | |
| 53 | + // } | |
| 54 | + // &.not-is-cnlive { | |
| 55 | + // &.not-is-wechat { | |
| 56 | + // height: 44px; | |
| 57 | + // } | |
| 58 | + // } | |
| 58 | 59 | } |
| 59 | 60 | > .box { |
| 60 | 61 | .label { | ... | ... |
src/pages/addressEdit/addressEdit.vue
| ... | ... | @@ -4,13 +4,12 @@ |
| 4 | 4 | <!-- 导航栏 --> |
| 5 | 5 | <div class="nav"> |
| 6 | 6 | |
| 7 | - <!-- navBar --> | |
| 8 | - <nav-bar | |
| 9 | - @back="back" | |
| 7 | + <!-- navBar --> | |
| 8 | + <nav-bar @back="back" | |
| 10 | 9 | :navs="navs"> |
| 11 | 10 | </nav-bar> |
| 12 | 11 | </div> |
| 13 | - | |
| 12 | + <div class="pl"></div> | |
| 14 | 13 | <address-select-layer ref="selectLayer" |
| 15 | 14 | :addressInfo="addressInfo"> |
| 16 | 15 | </address-select-layer> |
| ... | ... | @@ -139,7 +138,7 @@ export default { |
| 139 | 138 | if (this.query.id && this.getStore("uid")) { |
| 140 | 139 | |
| 141 | 140 | // 显示loading |
| 142 | - Indicator.open('加载中...'); | |
| 141 | + Indicator.open('加载中...'); | |
| 143 | 142 | console.log(this.query.id); |
| 144 | 143 | // 请求接口 |
| 145 | 144 | this.http("/Api/" + (this.getApiVersion().index) + "/addressInfo", { |
| ... | ... | @@ -256,7 +255,7 @@ export default { |
| 256 | 255 | this.$set(this, 'isDisabled', true); |
| 257 | 256 | |
| 258 | 257 | // 显示loading |
| 259 | - Indicator.open('加载中...'); | |
| 258 | + Indicator.open('加载中...'); | |
| 260 | 259 | |
| 261 | 260 | let options = { |
| 262 | 261 | id: addressInfo.id, |
| ... | ... | @@ -309,7 +308,7 @@ export default { |
| 309 | 308 | /* 处理当前设置的地址,如果修改的是当前设置的地址,同步该数据 结束 */ |
| 310 | 309 | |
| 311 | 310 | // 先返回列表页,在列表页显示操作结果(Storage传输) |
| 312 | - window.localStorage.setItem('currentAddress', '修改地址成功'); | |
| 311 | + // window.localStorage.setItem('currentAddress', '修改地址成功'); | |
| 313 | 312 | // 后退 |
| 314 | 313 | this.back(); |
| 315 | 314 | } else if (res.code == 200) { |
| ... | ... | @@ -338,7 +337,7 @@ export default { |
| 338 | 337 | } else { |
| 339 | 338 | |
| 340 | 339 | // 显示loading |
| 341 | - Indicator.open('加载中...'); | |
| 340 | + Indicator.open('加载中...'); | |
| 342 | 341 | |
| 343 | 342 | // 请求接口 |
| 344 | 343 | this.http("/Api/" + (this.getApiVersion().index) + "/editAddress", { | ... | ... |
src/pages/addressList/addressList.less
| ... | ... | @@ -16,19 +16,20 @@ |
| 16 | 16 | .pl { |
| 17 | 17 | background-color: transparent; |
| 18 | 18 | width: 100%; |
| 19 | - &.is-cnlive { | |
| 20 | - height: 44px; | |
| 21 | - } | |
| 22 | - &.not-is-cnlive { | |
| 23 | - height: 0; | |
| 24 | - &.is-open-app { | |
| 25 | - height: 124px; | |
| 26 | - } | |
| 27 | - } | |
| 28 | - &.not-is-cnlive { | |
| 29 | - &.not-is-wechat { | |
| 30 | - height: 44px; | |
| 31 | - } | |
| 32 | - } | |
| 19 | + height: 88px; | |
| 20 | + // &.is-cnlive { | |
| 21 | + // height: 44px; | |
| 22 | + // } | |
| 23 | + // &.not-is-cnlive { | |
| 24 | + // height: 0; | |
| 25 | + // &.is-open-app { | |
| 26 | + // height: 124px; | |
| 27 | + // } | |
| 28 | + // } | |
| 29 | + // &.not-is-cnlive { | |
| 30 | + // &.not-is-wechat { | |
| 31 | + // height: 44px; | |
| 32 | + // } | |
| 33 | + // } | |
| 33 | 34 | } |
| 34 | 35 | } |
| 35 | 36 | \ No newline at end of file | ... | ... |
src/pages/addressList/addressList.vue
| ... | ... | @@ -10,9 +10,7 @@ |
| 10 | 10 | </nav-bar> |
| 11 | 11 | </div> |
| 12 | 12 | |
| 13 | - <!-- <div class="pl" | |
| 14 | - :class="{'is-cnlive': isCNLive2.value, 'not-is-wechat': !isWeChat.value, 'not-is-cnlive': !isCNLive2.value, 'is-open-app': isOpenApp.value}" | |
| 15 | - :style="{'paddingTop': top.value + 'px'}"></div> --> | |
| 13 | + <div class="pl"></div> | |
| 16 | 14 | |
| 17 | 15 | <!-- 收货地址列表 --> |
| 18 | 16 | <address-list @doSelect="doSelect" | ... | ... |