Commit 8d7d5ab312acf061f4b59899e9c24a03e6349c3a

Authored by zhiyangdu
1 parent 57ac72ea

地址返回信息优化

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