Commit 27d20f5f2a7e4ece71c8689fb552f818ffa5e658
1 parent
00e10f0f
地址列表页样式优化
Showing
2 changed files
with
24 additions
and
25 deletions
src/components/addressList/addressList.less
| @@ -102,7 +102,7 @@ page { | @@ -102,7 +102,7 @@ page { | ||
| 102 | flex-direction: row; | 102 | flex-direction: row; |
| 103 | justify-content: flex-end; | 103 | justify-content: flex-end; |
| 104 | align-items: center; | 104 | align-items: center; |
| 105 | - flex: 1; | 105 | + // flex: 1; |
| 106 | .check-box { | 106 | .check-box { |
| 107 | width: 36px; | 107 | width: 36px; |
| 108 | height: 36px; | 108 | height: 36px; |
src/pages/addressList/addressList.vue
| @@ -4,9 +4,8 @@ | @@ -4,9 +4,8 @@ | ||
| 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> |
| @@ -68,7 +67,7 @@ export default { | @@ -68,7 +67,7 @@ export default { | ||
| 68 | 67 | ||
| 69 | this.$set(this, "navs", { | 68 | this.$set(this, "navs", { |
| 70 | back: { | 69 | back: { |
| 71 | - img: "/static/img/icon_back.png" | 70 | + img: "static/img/icon_back.png" |
| 72 | }, | 71 | }, |
| 73 | title: this.title | 72 | title: this.title |
| 74 | }); | 73 | }); |
| @@ -114,7 +113,7 @@ export default { | @@ -114,7 +113,7 @@ export default { | ||
| 114 | if (this.getStore("uid")) { | 113 | if (this.getStore("uid")) { |
| 115 | 114 | ||
| 116 | // 显示loading | 115 | // 显示loading |
| 117 | - Indicator.open('加载中...'); | 116 | + Indicator.open('加载中...'); |
| 118 | 117 | ||
| 119 | // 请求接口 | 118 | // 请求接口 |
| 120 | this.http("/Api/" + (this.getApiVersion().index) + "/myAddress", { | 119 | this.http("/Api/" + (this.getApiVersion().index) + "/myAddress", { |
| @@ -300,7 +299,7 @@ export default { | @@ -300,7 +299,7 @@ export default { | ||
| 300 | if (item.uid && item.id) { | 299 | if (item.uid && item.id) { |
| 301 | 300 | ||
| 302 | // 显示loading | 301 | // 显示loading |
| 303 | - Indicator.open('加载中...'); | 302 | + Indicator.open('加载中...'); |
| 304 | // 请求接口 | 303 | // 请求接口 |
| 305 | this.http("/Api/" + (this.getApiVersion().index) + "/delAddress", { | 304 | this.http("/Api/" + (this.getApiVersion().index) + "/delAddress", { |
| 306 | uid: item.uid, | 305 | uid: item.uid, |
| @@ -377,7 +376,7 @@ export default { | @@ -377,7 +376,7 @@ export default { | ||
| 377 | } else { | 376 | } else { |
| 378 | 377 | ||
| 379 | // 显示loading | 378 | // 显示loading |
| 380 | - Indicator.open('加载中...'); | 379 | + Indicator.open('加载中...'); |
| 381 | 380 | ||
| 382 | // 请求接口 | 381 | // 请求接口 |
| 383 | this.http("/Api/" + (this.getApiVersion().index) + "/editAddress", { | 382 | this.http("/Api/" + (this.getApiVersion().index) + "/editAddress", { |
| @@ -477,28 +476,28 @@ export default { | @@ -477,28 +476,28 @@ export default { | ||
| 477 | 476 | ||
| 478 | <style rel="stylesheet/less" lang="less"> | 477 | <style rel="stylesheet/less" lang="less"> |
| 479 | @import './addressList'; | 478 | @import './addressList'; |
| 480 | -.van-dialog{ | ||
| 481 | -width: 640px; | ||
| 482 | -font-size: 32px; | 479 | +.van-dialog { |
| 480 | + width: 640px; | ||
| 481 | + font-size: 32px; | ||
| 483 | } | 482 | } |
| 484 | .van-dialog__header { | 483 | .van-dialog__header { |
| 485 | - padding-top: 52px; | ||
| 486 | - font-weight: 500; | ||
| 487 | - line-height: 48px; | ||
| 488 | - text-align: center; | 484 | + padding-top: 52px; |
| 485 | + font-weight: 500; | ||
| 486 | + line-height: 48px; | ||
| 487 | + text-align: center; | ||
| 489 | } | 488 | } |
| 490 | .van-dialog__message { | 489 | .van-dialog__message { |
| 491 | - max-height: 72px; | ||
| 492 | - padding: 26px 24px; | ||
| 493 | - overflow-y: auto; | ||
| 494 | - font-size: 28px; | ||
| 495 | - line-height: 40px; | 490 | + max-height: 72px; |
| 491 | + padding: 26px 24px; | ||
| 492 | + overflow-y: auto; | ||
| 493 | + font-size: 28px; | ||
| 494 | + line-height: 40px; | ||
| 496 | } | 495 | } |
| 497 | -.van-dialog{ | ||
| 498 | - font-size: 32px; | 496 | +.van-dialog { |
| 497 | + font-size: 32px; | ||
| 499 | } | 498 | } |
| 500 | -.van-button{ | ||
| 501 | - font-size: 32px; | ||
| 502 | - padding: 40px 0; | 499 | +.van-button { |
| 500 | + font-size: 32px; | ||
| 501 | + padding: 40px 0; | ||
| 503 | } | 502 | } |
| 504 | </style> | 503 | </style> |
| 505 | \ No newline at end of file | 504 | \ No newline at end of file |