jufubao-mall 2.0.16-beta10 → 2.0.16-beta11

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.16-beta10",
3
+ "version": "2.0.16-beta11",
4
4
  "private": false,
5
5
  "description": "聚福宝商城业务组件插件包",
6
6
  "main": "index.js",
@@ -285,7 +285,9 @@
285
285
  rowSpacing: 16,
286
286
  columnSpacing: 16,
287
287
  showPrice: "",
288
+ showDiscount: "",
288
289
  isAddCart: "",
290
+ differ: "",
289
291
  }
290
292
  },
291
293
  watch: {
@@ -542,7 +544,9 @@
542
544
  this.cartStyle = gCPVal(container, 'cartStyle', 'icongouwuche-01');
543
545
  this.cartName = gCPVal(container, 'cartName', '购买');
544
546
  this.showPrice = gCPVal(container, 'showPrice', 'Y');
547
+ this.showDiscount = gCPVal(container, 'showDiscount', 'Y');
545
548
  this.isAddCart = gCPVal(container, 'isAddCart', 'Y');
549
+ this.differ = gCPVal(container, 'differ', 1);
546
550
 
547
551
  console.log("cartStyle", this.cartName, this.cartStyle);
548
552
 
@@ -550,6 +554,12 @@
550
554
  console.log("this.row_num", this.row_num);
551
555
  },
552
556
  p_getProductList(){
557
+ let params = {}
558
+ if(this.showPrice==='Y' && this.showDiscount==='Y'){
559
+ params.is_show_uprice = this.$xdUniHelper.multiplyFloatNumber(this.differ,100)
560
+ } else {
561
+ params.is_show_uprice=-1
562
+ }
553
563
  jfbRootExec("getShopProductList", {
554
564
  vm: this,
555
565
  data: {
@@ -563,6 +573,7 @@
563
573
  sort: 'default',
564
574
  page_size: this.page_size,
565
575
  page_token: this.page_token,
576
+ ...params,
566
577
  }
567
578
  }).then(res => {
568
579
  let list = res.list.map(item => {