jufubao-third 1.0.11-beta2 → 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-beta2",
3
+ "version": "1.0.11-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件第三方购物平台包",
6
6
  "main": "index.js",
@@ -23,7 +23,6 @@
23
23
  <view v-if="product_total_price" class="column_label text_gray">商品总额</view>
24
24
  <view class="column_value text-gray">
25
25
  <xd-unit
26
- :isShowIcon="isShowIcon"
27
26
  :colorNew="isShowIcon ? '': '#999'"
28
27
  :price="product_total_price"
29
28
  :isOld="false"
@@ -36,7 +35,6 @@
36
35
  <view class="column_label text_gray">平台服务费总额</view>
37
36
  <view class="column_value text-gray">
38
37
  <xd-unit
39
- :isShowIcon="isShowIcon"
40
38
  :colorNew="isShowIcon ? '': '#999'"
41
39
  :price="servicePrice" :isOld="false" :font-size="24" :icon-size="0.3"></xd-unit>
42
40
  </view>
@@ -45,7 +43,6 @@
45
43
  <view class="column_label text_gray">运费</view>
46
44
  <view class="column_value text-gray">
47
45
  <xd-unit
48
- :isShowIcon="isShowIcon"
49
46
  :colorNew="isShowIcon ? '': '#999'"
50
47
  :price="logisticsPrice" :isOld="false" :font-size="24" :icon-size="0.3"></xd-unit>
51
48
  </view>
@@ -57,7 +54,6 @@
57
54
  </view>
58
55
  <view class="column_value text-gray">
59
56
  <xd-unit
60
- :isShowIcon="isShowIcon"
61
57
  :colorNew="isShowIcon ? '': '#999'"
62
58
  :price="origin_total_price"
63
59
  :isOld="false"
@@ -78,7 +74,7 @@
78
74
  <xd-list-item label="PLUS专项立减" size="small" paddingLR="40rpx" >
79
75
  <view slot="label" style="color: #86541E;">PLUS专享立减</view>
80
76
  <!-- <view style="color: #FF7070;">-5.00</view> -->
81
- <xd-unit :isShowIcon="isShowIcon" :price="-plus_saving_money" :largeZero="false" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
77
+ <xd-unit :price="-plus_saving_money" :largeZero="false" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
82
78
  </xd-list-item>
83
79
  </view>
84
80
 
@@ -90,7 +86,6 @@
90
86
  </view>
91
87
  <view class="column_value text-primary">
92
88
  <xd-unit
93
- :isShowIcon="isShowIcon"
94
89
  :price="showOldPay ? needPayPrice :orderNeedPayPrice"
95
90
  :isOld="false"
96
91
  :font-size="24"
@@ -192,7 +187,6 @@
192
187
  <view v-if="isPlusSite" class="bottom_btn plus_btm" :style="{bottom: layoutInfo.bottom+'rpx'}">
193
188
  <view class="flex_l">实付:
194
189
  <xd-unit
195
- :isShowIcon="isShowIcon"
196
190
  :price="showOldPay ? needPayPrice :orderNeedPayPrice"
197
191
  :isOld="false"
198
192
  :font-size="40"
@@ -543,6 +537,8 @@
543
537
  return;
544
538
  }
545
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;
546
542
  this.origin_total_price = res.total_price;
547
543
  this.total_price = this.$xdUniHelper.multiplyFloatNumber(res.real_pay_price, 1);
548
544
  this.needPayPrice = this.total_price;
@@ -554,8 +550,16 @@
554
550
  if(res.show_vip_card === 'Y' && !this.vipCardList.length){
555
551
  this.p_getVipList(res.business_code);
556
552
  }
553
+ if(priceChange){
554
+ this.clearCheckedWhenPriceChange();
555
+ }
557
556
  })
558
557
  },
558
+ //确认订单价格改变,清空选择
559
+ clearCheckedWhenPriceChange(){
560
+ if(this.$refs['xdCardPayChose']) this.$refs['xdCardPayChose'].clearChecked();
561
+ if(this.$refs['xdWalletChose']) this.$refs['xdWalletChose'].clearChecked();
562
+ },
559
563
  p_getH5WxAuthorize(){
560
564
  jfbRootExec("getH5WxAuthorize", {
561
565
  vm: this,