jufubao-movie 1.0.28 → 1.0.29-beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-movie",
3
- "version": "1.0.28",
3
+ "version": "1.0.29-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝在线选座业务组件插件包",
6
6
  "main": "index.js",
@@ -305,6 +305,10 @@
305
305
  payCard(){
306
306
  return this.otherPayMethod.find(item => item.method === 'card')
307
307
  },
308
+ //是否支持三方支付、补差
309
+ payThird(){
310
+ return this.otherPayMethod.find(item => item.method === 'third')
311
+ },
308
312
  //订单实际需要支付金额(减去各项已选,票券、钱包)
309
313
  orderNeedPayPrice(){
310
314
  let choseCardPay = this.choseCard ? this.choseCard.cardPayPrice : 0;
@@ -579,7 +583,13 @@
579
583
  this.showCardPayChose = true;
580
584
  return false;
581
585
  }else{
582
- await this.handleConfirmAllWxPay();
586
+ //支持补差, 提示是否使用补差
587
+ if(this.payThird){
588
+ await this.handleConfirmAllWxPay();
589
+ }else{
590
+ //不支持补差,仅提示
591
+ return this.$xdAlert({content: "请选择兑换方式"})
592
+ }
583
593
  }
584
594
  }
585
595
  this.useTickAndWalletPay(selected_card_list, selected_wallet_list);
@@ -724,9 +734,19 @@
724
734
  })
725
735
  }
726
736
  else {
727
- this.$xdUniHelper.redirectTo({
728
- url: this.payPath + `?order_id=${val['pay_order_id']}&main_order_id=${val['order_id']}`
729
- })
737
+ //支持补差, 跳转补差页
738
+ if(this.payThird){
739
+ this.$xdUniHelper.redirectTo({
740
+ url: this.payPath + `?order_id=${val['pay_order_id']}&main_order_id=${val['order_id']}`
741
+ })
742
+ }else{
743
+ this.$xdAlert({
744
+ content: '余额不足,请选择其他票券',
745
+ time: 1500,
746
+ isClose: false,
747
+ zIndex: 5000
748
+ });
749
+ }
730
750
  }
731
751
  },
732
752