Commit 0aa98cccb025d6bab4c6c85099ea13e011e89b13
1 parent
27c92e71
抽奖记录优化
Showing
3 changed files
with
27 additions
and
2 deletions
src/pages/pointsExchangeRecords/pointsExchangeRecords.less
| @@ -50,6 +50,7 @@ | @@ -50,6 +50,7 @@ | ||
| 50 | } | 50 | } |
| 51 | } | 51 | } |
| 52 | } | 52 | } |
| 53 | + // 没有更多 | ||
| 53 | .is_more{ | 54 | .is_more{ |
| 54 | text-align: center; | 55 | text-align: center; |
| 55 | color: #6D7278; | 56 | color: #6D7278; |
| @@ -58,6 +59,24 @@ | @@ -58,6 +59,24 @@ | ||
| 58 | height: 100px; | 59 | height: 100px; |
| 59 | line-height: 100px; | 60 | line-height: 100px; |
| 60 | } | 61 | } |
| 62 | + // 暂无记录提示 | ||
| 63 | + .no_gift_tip{ | ||
| 64 | + width: 100%; | ||
| 65 | + img{ | ||
| 66 | + display: block; | ||
| 67 | + width: 500px; | ||
| 68 | + height: 285px; | ||
| 69 | + margin:366px 125px 0 125px; | ||
| 70 | + } | ||
| 71 | + .text{ | ||
| 72 | + font-size: 30px; | ||
| 73 | + font-weight: 400; | ||
| 74 | + color: #333333; | ||
| 75 | + line-height: 60px; | ||
| 76 | + margin-top: 19px; | ||
| 77 | + text-align: center; | ||
| 78 | + } | ||
| 79 | + } | ||
| 61 | // 返回按钮 | 80 | // 返回按钮 |
| 62 | .title_box{ | 81 | .title_box{ |
| 63 | width: 100%; | 82 | width: 100%; |
src/pages/pointsExchangeRecords/pointsExchangeRecords.vue
| @@ -31,6 +31,11 @@ | @@ -31,6 +31,11 @@ | ||
| 31 | </div> | 31 | </div> |
| 32 | </div> | 32 | </div> |
| 33 | </div> | 33 | </div> |
| 34 | + <!-- 暂无记录展示 --> | ||
| 35 | + <div v-show="!list && isCall" class="no_gift_tip"> | ||
| 36 | + <img src="static/img/no_gift_tip.png" alt=""/> | ||
| 37 | + <div class="text">暂无奖励记录</div> | ||
| 38 | + </div> | ||
| 34 | <div v-if="isMore==0" class="is_more"> | 39 | <div v-if="isMore==0" class="is_more"> |
| 35 | 没有更多了 | 40 | 没有更多了 |
| 36 | </div> | 41 | </div> |
| @@ -46,7 +51,8 @@ export default { | @@ -46,7 +51,8 @@ export default { | ||
| 46 | list: [], // 中奖记录列表 | 51 | list: [], // 中奖记录列表 |
| 47 | page: 0, | 52 | page: 0, |
| 48 | isMore: 1, // 0没有更多1有更多 | 53 | isMore: 1, // 0没有更多1有更多 |
| 49 | - addressInfo: null // 暂存已选商品发货地址信息 | 54 | + addressInfo: null, // 暂存已选商品发货地址信息 |
| 55 | + isCall: false // 是否调用接口 | ||
| 50 | } | 56 | } |
| 51 | }, | 57 | }, |
| 52 | //部件 | 58 | //部件 |
| @@ -130,7 +136,7 @@ export default { | @@ -130,7 +136,7 @@ export default { | ||
| 130 | this.loading = false; | 136 | this.loading = false; |
| 131 | // 加载完成 | 137 | // 加载完成 |
| 132 | Indicator.close(); | 138 | Indicator.close(); |
| 133 | - | 139 | + this.isCall = true; |
| 134 | // 返回处理 | 140 | // 返回处理 |
| 135 | if (res.code == 200) { | 141 | if (res.code == 200) { |
| 136 | // 解构数据 | 142 | // 解构数据 |
static/img/no_gift_tip.png
0 → 100755
134 KB