jufubao-third 1.0.6 → 1.0.7-beta2

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.6",
3
+ "version": "1.0.7-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件第三方购物平台包",
6
6
  "main": "index.js",
@@ -15,6 +15,24 @@
15
15
  <!-- #endif -->
16
16
  <view class="jfb-third-pay__body">
17
17
  <view class="column-group">
18
+ <view class="column-item">
19
+ <view v-if="product_total_price" class="column_label">商品总额</view>
20
+ <view class="column_value text-gray">
21
+ <xd-unit :price="product_total_price" :isOld="false" :font-size="24" :icon-size="0.3"></xd-unit>
22
+ </view>
23
+ </view>
24
+ <view v-if="logisticsPrice" class="column-item">
25
+ <view class="column_label">运费</view>
26
+ <view class="column_value text-gray">
27
+ <xd-unit :price="logisticsPrice" :isOld="false" :font-size="24" :icon-size="0.3"></xd-unit>
28
+ </view>
29
+ </view>
30
+ <view v-if="servicePrice" class="column-item">
31
+ <view class="column_label">平台服务费总额</view>
32
+ <view class="column_value text-gray">
33
+ <xd-unit :price="servicePrice" :isOld="false" :font-size="24" :icon-size="0.3"></xd-unit>
34
+ </view>
35
+ </view>
18
36
  <view class="column-item">
19
37
  <view class="column_label">
20
38
  订单总额
@@ -28,6 +46,19 @@
28
46
  ></xd-unit>
29
47
  </view>
30
48
  </view>
49
+ <view v-if="serviceFee" class="column-item">
50
+ <view class="column_label">
51
+ 平台服务费
52
+ </view>
53
+ <view class="column_value text-gray">
54
+ <xd-unit
55
+ :price="serviceFee"
56
+ :isOld="false"
57
+ :font-size="24"
58
+ :icon-size="0.3"
59
+ ></xd-unit>
60
+ </view>
61
+ </view>
31
62
  <view class="column-item">
32
63
  <view class="column_label">
33
64
  仍需支付
@@ -297,7 +328,11 @@
297
328
  },
298
329
  renderChecked: "renderChecked",
299
330
 
331
+ product_total_price: "",
300
332
  total_price: "",
333
+ servicePrice: "",
334
+ logisticsPrice: "",
335
+
301
336
  jwxSDK: null,
302
337
  validImageAPIUrl: "",
303
338
 
@@ -418,6 +453,9 @@
418
453
 
419
454
  this.total_price = this.$xdUniHelper.multiplyFloatNumber(res.total_price, 1);
420
455
  this.needPayPrice = this.total_price;
456
+ this.servicePrice = this.$xdUniHelper.multiplyFloatNumber(res.service_fee, 1);
457
+ this.logisticsPrice = this.$xdUniHelper.multiplyFloatNumber(res.logistics_amount, 1);
458
+ this.product_total_price = this.$xdUniHelper.multiplyFloatNumber(res.product_total_price, 1);
421
459
  })
422
460
  },
423
461
  p_getH5WxAuthorize(){