jufubao-third 1.0.11-beta3 → 1.0.11-beta4

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-third",
3
- "version": "1.0.11-beta3",
3
+ "version": "1.0.11-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件第三方购物平台包",
6
6
  "main": "index.js",
@@ -537,6 +537,8 @@
537
537
  return;
538
538
  }
539
539
  this.p_getPayMethod(res.pay_methods);
540
+ let real_pay_price = this.$xdUniHelper.multiplyFloatNumber(res.real_pay_price, 1);
541
+ let priceChange = this.total_price !== real_pay_price;
540
542
  this.origin_total_price = res.total_price;
541
543
  this.total_price = this.$xdUniHelper.multiplyFloatNumber(res.real_pay_price, 1);
542
544
  this.needPayPrice = this.total_price;
@@ -548,8 +550,16 @@
548
550
  if(res.show_vip_card === 'Y' && !this.vipCardList.length){
549
551
  this.p_getVipList(res.business_code);
550
552
  }
553
+ if(priceChange){
554
+ this.clearCheckedWhenPriceChange();
555
+ }
551
556
  })
552
557
  },
558
+ //确认订单价格改变,清空选择
559
+ clearCheckedWhenPriceChange(){
560
+ if(this.$refs['xdCardPayChose']) this.$refs['xdCardPayChose'].clearChecked();
561
+ if(this.$refs['xdWalletChose']) this.$refs['xdWalletChose'].clearChecked();
562
+ },
553
563
  p_getH5WxAuthorize(){
554
564
  jfbRootExec("getH5WxAuthorize", {
555
565
  vm: this,