jufubao-mall 2.0.67 → 2.0.68

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-mall",
3
- "version": "2.0.67",
3
+ "version": "2.0.68",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -993,8 +993,16 @@
993
993
  this.choseCoupon = data;
994
994
  this.showCouponChose = false;
995
995
  //优惠券跟钱包同时使用,优惠券选完后,钱包默认选中第一张卡
996
- if(this.is_wallet_use_with_coupon === "Y" && this.defaultUseWallet && data.isAutoTrigger){
997
- if(this.$refs['xdWalletChose']) this.$refs['xdWalletChose'].handleChoseDefault();
996
+ if(this.is_wallet_use_with_coupon === "Y" && this.defaultUseWallet){
997
+ //自动选择卡券
998
+ if(data.isAutoTrigger){
999
+ if(this.$refs['xdWalletChose']) this.$refs['xdWalletChose'].handleChoseDefault();
1000
+ }
1001
+ //重新选择卡券,则需清空钱包,重新选第一个钱包
1002
+ if(data.reChoseCoupon){
1003
+ if(this.$refs['xdWalletChose']) this.$refs['xdWalletChose'].clearChecked();
1004
+ if(this.$refs['xdWalletChose']) this.$refs['xdWalletChose'].handleChoseDefault();
1005
+ }
998
1006
  }
999
1007
  },
1000
1008
  handleCouponInit(coupList){
@@ -1045,12 +1053,13 @@
1045
1053
  },
1046
1054
  useBindedWallet(options, successCb, errCb){
1047
1055
  console.log("this.choseCard", this.choseCard)
1048
- const { choseCard } = this;
1056
+ const { choseCard, choseCoupon } = this;
1049
1057
  let selected_card_list = choseCard ? choseCard.selectedCardList : [];
1050
1058
  //苏州交投:优惠券跟钱包可同时支持
1051
1059
  //问题:票券跟优惠券同时存在的话,暂时都放到selected_card_list中,后续再做区分处理
1052
1060
  if(this.choseCoupon){
1053
- selected_card_list = selected_card_list.concat(this.choseCoupon.selectedCardList);
1061
+ // selected_card_list = selected_card_list.concat(this.choseCoupon.selectedCardList);
1062
+ selected_card_list = choseCoupon ? choseCoupon.selectedCardList : [];
1054
1063
  }
1055
1064
  let otherOptions = {};
1056
1065
  let fnName = "useBindedWallet";