Commit 56eab20d2ed8be56cbb0427a7b1bc486bfd12379
1 parent
f8aac380
支付尾款的优化
Showing
2 changed files
with
10 additions
and
3 deletions
packageA/pages/serviceCard_pd/team_success/team_success.js
| @@ -240,6 +240,11 @@ Page({ | @@ -240,6 +240,11 @@ Page({ | ||
| 240 | 240 | ||
| 241 | }) | 241 | }) |
| 242 | 242 | ||
| 243 | + | ||
| 244 | + //因为主表没有pt_status这个字段 | ||
| 245 | + order.pt_status=service_list.pt_status; | ||
| 246 | + order.is_zsorder=service_list.is_zsorder; | ||
| 247 | + | ||
| 243 | //只装5个 | 248 | //只装5个 |
| 244 | var ordertx2=[],sf_num=0,ct_nun=teamlist.ct_num; | 249 | var ordertx2=[],sf_num=0,ct_nun=teamlist.ct_num; |
| 245 | 250 | ||
| @@ -377,7 +382,7 @@ Page({ | @@ -377,7 +382,7 @@ Page({ | ||
| 377 | if (o.status == 0) endTime = o.start_time; | 382 | if (o.status == 0) endTime = o.start_time; |
| 378 | 383 | ||
| 379 | //看一下,是否要支付尾款 | 384 | //看一下,是否要支付尾款 |
| 380 | - if(o.team_type==3 && th.data.order.pt_status==2){ | 385 | + if(o.team_type==3 && th.data.goods.pt_status==2){ |
| 381 | endTime = o.wk_end_time; | 386 | endTime = o.wk_end_time; |
| 382 | } | 387 | } |
| 383 | 388 | ||
| @@ -852,8 +857,10 @@ Page({ | @@ -852,8 +857,10 @@ Page({ | ||
| 852 | }); | 857 | }); |
| 853 | }, | 858 | }, |
| 854 | 859 | ||
| 860 | + | ||
| 861 | + //跳转到支付尾款 | ||
| 855 | go_pay_wk:function(){ | 862 | go_pay_wk:function(){ |
| 856 | - var url = "/pages/cart/cart_wk/cart_wk?order_id=" + this.data.order.order_id; | 863 | + var url = "/packageA/pages/serviceCard_pd/cart_wk/cart_wk?order_id=" + this.data.order.order_id; |
| 857 | getApp().goto(url); | 864 | getApp().goto(url); |
| 858 | }, | 865 | }, |
| 859 | 866 |
packageA/pages/serviceCard_pd/team_success/team_success.wxml
| @@ -124,7 +124,7 @@ | @@ -124,7 +124,7 @@ | ||
| 124 | </view> | 124 | </view> |
| 125 | 125 | ||
| 126 | <!-- 阶梯团 成功--> | 126 | <!-- 阶梯团 成功--> |
| 127 | - <view class='bodytimecen-success' wx:if='{{teamlist.kttype==3&&p_status==2 && is_pay_wk!=1}}'> | 127 | + <view class='bodytimecen-success' wx:if='{{teamlist.kttype==3&& p_status==2 && is_pay_wk!=1}}'> |
| 128 | 剩余支付时间: | 128 | 剩余支付时间: |
| 129 | 129 | ||
| 130 | <span>{{obj.hou}}</span>时 | 130 | <span>{{obj.hou}}</span>时 |