Commit a2041afee92328b304ac7211e32ab0fa8251f16e
1 parent
f82bcb0f
预售的尾款支付成功后的bug优化
Showing
2 changed files
with
8 additions
and
3 deletions
packageC/pages/presell/cart/cart.js
| ... | ... | @@ -488,6 +488,9 @@ Page({ |
| 488 | 488 | //-----获取商品------ |
| 489 | 489 | async get_buy_goods(ord, o_sn) { |
| 490 | 490 | |
| 491 | + console.log('is_fwk'); | |
| 492 | + console.log(this.data.is_fwk); | |
| 493 | + | |
| 491 | 494 | if(this.data.is_fwk){ |
| 492 | 495 | this.get_buy_card(o_sn,ord); |
| 493 | 496 | return false; |
| ... | ... | @@ -954,7 +957,7 @@ Page({ |
| 954 | 957 | } |
| 955 | 958 | else { |
| 956 | 959 | await getApp().request.promiseGet("/api/weshop/marketing/marketingPresellList/list", { |
| 957 | - data: { store_id: os.stoid, goods_id: order_goods.goods_id, presell_id: order_goods.prom_id } | |
| 960 | + data: { store_id: os.stoid, goods_id: order_goods.card_id, presell_id: order_goods.prom_id } | |
| 958 | 961 | }).then(re => { |
| 959 | 962 | if (re.data.code == 0 && re.data.data && re.data.data.length > 0) { |
| 960 | 963 | pre_arr = re.data.data[0]; | ... | ... |
packageC/pages/presell/cart/cart.wxml
| ... | ... | @@ -31,11 +31,13 @@ |
| 31 | 31 | <view>等待买家付尾款</view> |
| 32 | 32 | <view class="fs22">请于{{days}}天{{hours}}小时{{minutes}}分{{seconds}}秒内付款完成,超时订单将自动取消</view> |
| 33 | 33 | </view> |
| 34 | - <view wx:if="{{wait_fh && order.order_status!=6}}"> | |
| 34 | + <view wx:if="{{wait_fh && order.order_status!=6 && is_fwk==0}}"> | |
| 35 | 35 | <view>等待商家发货</view> |
| 36 | 36 | <view class="fs22">将在{{filters.format_time(send_time,1)}}后发货</view> |
| 37 | 37 | </view> |
| 38 | - <view wx:if="{{order.order_status==2}}"> | |
| 38 | + | |
| 39 | + | |
| 40 | + <view wx:if="{{order.order_status==2 || (is_fwk==1 && order.pay_status==1)}}"> | |
| 39 | 41 | <view>待评价</view> |
| 40 | 42 | <view>{{order.order_sn}}</view> |
| 41 | 43 | </view> | ... | ... |