Commit f1f739eaab5d8b445b6642fdf3d8b45e073d912c

Authored by zhiyangdu
1 parent b05abca1

兑换记录页优化

src/pages/pointsExchangeRecords/pointsExchangeRecords.less
@@ -6,10 +6,10 @@ @@ -6,10 +6,10 @@
6 background: #FFFFFF; 6 background: #FFFFFF;
7 border-radius: 24px; 7 border-radius: 24px;
8 .item_box{ 8 .item_box{
9 - padding: 30px; 9 + margin: 0 30px;
10 border-bottom: solid 2px #EAEAEA; 10 border-bottom: solid 2px #EAEAEA;
11 display: flex; 11 display: flex;
12 - padding-bottom: 28px; 12 + padding: 30px 0;
13 img{ 13 img{
14 display: flex; 14 display: flex;
15 width: 190px; 15 width: 190px;
@@ -80,6 +80,16 @@ @@ -80,6 +80,16 @@
80 align-items: center; 80 align-items: center;
81 justify-content: center; 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 img{ 93 img{
84 display: block; 94 display: block;
85 width: 22px; 95 width: 22px;
src/pages/pointsExchangeRecords/pointsExchangeRecords.vue
@@ -26,17 +26,24 @@ @@ -26,17 +26,24 @@
26 收货人: {{item.address_name}}{{item.address_phone}}{{item.address_address}} 26 收货人: {{item.address_name}}{{item.address_phone}}{{item.address_address}}
27 </div> 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 </div> 33 </div>
32 <div class="exchange_time"> 34 <div class="exchange_time">
33 兑换时间 {{item.create_time*1000 | datetime('yyyy-MM-dd hh:mm:ss')}} 35 兑换时间 {{item.create_time*1000 | datetime('yyyy-MM-dd hh:mm:ss')}}
34 </div> 36 </div>
35 <div v-show="item.shop_type == 1 && !item.address_name && !item.address_address && !item.address_phone" class="btn-box"> 37 <div v-show="item.shop_type == 1 && !item.address_name && !item.address_address && !item.address_phone" class="btn-box">
  38 + <!-- 需要填写地址状态 -->
36 <div @click.stop="addAddressInfo(item)" class="btn"> 39 <div @click.stop="addAddressInfo(item)" class="btn">
37 填写地址 40 填写地址
38 <img src="static/img/red_right_icon.png" alt=""/> 41 <img src="static/img/red_right_icon.png" alt=""/>
39 </div> 42 </div>
  43 + <!-- 已填写地址等待发货状态 -->
  44 + <div v-show="item.sendtime && item.sendtime>0" class="look_logistics">
  45 + 查看物流
  46 + </div>
40 </div> 47 </div>
41 </div> 48 </div>
42 </div> 49 </div>
@@ -167,7 +174,7 @@ export default { @@ -167,7 +174,7 @@ export default {
167 { 174 {
168 uid: this.getStore("uid"), 175 uid: this.getStore("uid"),
169 page: page, 176 page: page,
170 - type: "3" // 1亲子嘉年华 2 康疫健步 3 积分商城 177 + type: this.$route.query.type // 1亲子嘉年华 2 康疫健步 3 积分商城 4 脐橙 7 健康商城
171 }, 178 },
172 this.myLuckDrawCallback, 179 this.myLuckDrawCallback,
173 { 180 {
src/pages/pointsMall/pointsMall.vue
@@ -193,6 +193,7 @@ export default { @@ -193,6 +193,7 @@ export default {
193 path: '/pointsExchangeRecords', 193 path: '/pointsExchangeRecords',
194 query: { 194 query: {
195 uid: this.getStore("uid"), 195 uid: this.getStore("uid"),
  196 + type: 3 // 1亲子嘉年华 2 康疫健步 3 积分商城 4 脐橙 7 健康商城
196 } 197 }
197 }) 198 })
198 } else { 199 } else {