Commit f1f739eaab5d8b445b6642fdf3d8b45e073d912c
1 parent
b05abca1
兑换记录页优化
Showing
3 changed files
with
23 additions
and
5 deletions
src/pages/pointsExchangeRecords/pointsExchangeRecords.less
| ... | ... | @@ -6,10 +6,10 @@ |
| 6 | 6 | background: #FFFFFF; |
| 7 | 7 | border-radius: 24px; |
| 8 | 8 | .item_box{ |
| 9 | - padding: 30px; | |
| 9 | + margin: 0 30px; | |
| 10 | 10 | border-bottom: solid 2px #EAEAEA; |
| 11 | 11 | display: flex; |
| 12 | - padding-bottom: 28px; | |
| 12 | + padding: 30px 0; | |
| 13 | 13 | img{ |
| 14 | 14 | display: flex; |
| 15 | 15 | width: 190px; |
| ... | ... | @@ -80,6 +80,16 @@ |
| 80 | 80 | align-items: center; |
| 81 | 81 | justify-content: center; |
| 82 | 82 | } |
| 83 | + .look_logistics{ | |
| 84 | + width: 160px; | |
| 85 | + height: 60px; | |
| 86 | + border: 1px solid #3EB781; | |
| 87 | + border-radius: 30px; | |
| 88 | + font-size: 30px; | |
| 89 | + font-weight: 400; | |
| 90 | + color: #3EB781; | |
| 91 | + line-height: 60px; | |
| 92 | + } | |
| 83 | 93 | img{ |
| 84 | 94 | display: block; |
| 85 | 95 | width: 22px; | ... | ... |
src/pages/pointsExchangeRecords/pointsExchangeRecords.vue
| ... | ... | @@ -26,17 +26,24 @@ |
| 26 | 26 | 收货人: {{item.address_name}}{{item.address_phone}}{{item.address_address}} |
| 27 | 27 | </div> |
| 28 | 28 | |
| 29 | - <div class="exchange_type"> | |
| 30 | - <!-- 500积分+9.9元 --> | |
| 29 | + <div v-show="item.price || item.total" class="exchange_type"> | |
| 30 | + <span v-show="item.total && $route.query.type==3">{{item.total}}积分</span> | |
| 31 | + <span class="灰色" v-show="item.total && $route.query.type==7">{{item.total}}健康值</span> | |
| 32 | + <span v-show="parseInt(item.price)>0">+{{item.price}}元</span> | |
| 31 | 33 | </div> |
| 32 | 34 | <div class="exchange_time"> |
| 33 | 35 | 兑换时间 {{item.create_time*1000 | datetime('yyyy-MM-dd hh:mm:ss')}} |
| 34 | 36 | </div> |
| 35 | 37 | <div v-show="item.shop_type == 1 && !item.address_name && !item.address_address && !item.address_phone" class="btn-box"> |
| 38 | + <!-- 需要填写地址状态 --> | |
| 36 | 39 | <div @click.stop="addAddressInfo(item)" class="btn"> |
| 37 | 40 | 填写地址 |
| 38 | 41 | <img src="static/img/red_right_icon.png" alt=""/> |
| 39 | 42 | </div> |
| 43 | + <!-- 已填写地址等待发货状态 --> | |
| 44 | + <div v-show="item.sendtime && item.sendtime>0" class="look_logistics"> | |
| 45 | + 查看物流 | |
| 46 | + </div> | |
| 40 | 47 | </div> |
| 41 | 48 | </div> |
| 42 | 49 | </div> |
| ... | ... | @@ -167,7 +174,7 @@ export default { |
| 167 | 174 | { |
| 168 | 175 | uid: this.getStore("uid"), |
| 169 | 176 | page: page, |
| 170 | - type: "3" // 1亲子嘉年华 2 康疫健步 3 积分商城 | |
| 177 | + type: this.$route.query.type // 1亲子嘉年华 2 康疫健步 3 积分商城 4 脐橙 7 健康商城 | |
| 171 | 178 | }, |
| 172 | 179 | this.myLuckDrawCallback, |
| 173 | 180 | { | ... | ... |