jufubao-base 1.0.237-beta13 → 1.0.237-beta15

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-base",
3
- "version": "1.0.237-beta13",
3
+ "version": "1.0.237-beta15",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -590,6 +590,9 @@
590
590
  >
591
591
  <view :style="{ fontWeight: item.style }">{{ item.label }}</view>
592
592
  <xd-unit
593
+ :isShowIcon="isShowIcon"
594
+ :colorNew="isPlusSite ? '#999':''"
595
+ :largeZero="false"
593
596
  :fontSize="28"
594
597
  :iconSize="0.28"
595
598
  :fontWeight="item.style"
@@ -992,7 +995,14 @@ export default {
992
995
  padding: padding,
993
996
  backgroundColor: this.bottomBgColor,
994
997
  }
995
- }
998
+ },
999
+ isShowIcon() {
1000
+ if(this.$configProject['isPreview']) return true;
1001
+ return this.siteInfo.mapping.is_show_coin_icon==='Y'
1002
+ },
1003
+ isPlusSite(){
1004
+ return this.projectAttr.headers['X-Site-Group']==="vip";
1005
+ },
996
1006
  },
997
1007
  created() {
998
1008
  this.noticeBgc = Color(this.warningColor).alpha(0.2).toString();
@@ -1658,6 +1668,28 @@ export default {
1658
1668
  border-radius: unit(8, rpx);
1659
1669
  }
1660
1670
 
1671
+ &-bottom {
1672
+ margin-top: unit(32, rpx);
1673
+
1674
+ &-title {
1675
+ color: #333333;
1676
+ font-size: unit(28, rpx);
1677
+ font-weight: 500;
1678
+ margin-bottom: unit(20, rpx);
1679
+ }
1680
+
1681
+ &-item {
1682
+ color: #666666;
1683
+ font-size: unit(28, rpx);
1684
+ display: flex;
1685
+ margin-bottom: unit(16, rpx);
1686
+
1687
+ & > view:nth-child(2) {
1688
+ width: 80%;
1689
+ }
1690
+ }
1691
+ }
1692
+
1661
1693
  &-info {
1662
1694
  flex: 1;
1663
1695
  display: flex;
@@ -1728,8 +1760,32 @@ export default {
1728
1760
  margin-bottom: 0 !important;
1729
1761
  }
1730
1762
  }
1763
+
1764
+ &-bottom {
1765
+ margin-top: unit(32, rpx);
1766
+
1767
+ &-title {
1768
+ color: #333333;
1769
+ font-size: unit(28, rpx);
1770
+ font-weight: 500;
1771
+ margin-bottom: unit(20, rpx);
1772
+ }
1773
+
1774
+ &-item {
1775
+ color: #666666;
1776
+ font-size: unit(28, rpx);
1777
+ display: flex;
1778
+ margin-bottom: unit(16, rpx);
1779
+
1780
+ & > view:nth-child(2) {
1781
+ width: 80%;
1782
+ }
1783
+ }
1784
+ }
1785
+
1731
1786
  }
1732
1787
 
1788
+
1733
1789
  &-num {
1734
1790
  &-info {
1735
1791
  display: flex;
@@ -1852,7 +1908,7 @@ export default {
1852
1908
  color: #737373;
1853
1909
  }
1854
1910
  }
1855
-
1911
+
1856
1912
  &-order {
1857
1913
  display: flex;
1858
1914
  align-items: center;
@@ -311,14 +311,12 @@
311
311
  let max = this.getAmout(res.total_amount);
312
312
  // 数量
313
313
  let value = this.getAmout(res.save_amount);
314
- // 计算
315
- let rate = Math.round((value * 1000) / max)||0;
316
314
  this.option = {
317
315
  backgroundColor: '#fff', // 设置图表区域的背景颜色
318
316
  borderRadius: 10, // 设置图表区域的圆角
319
317
  title: [
320
318
  {
321
- text: '{a|周期已省}\n{b|' + rate + '}', // 显示标题
319
+ text: '{a|周期已省}\n{b|' + value + '}', // 显示标题
322
320
  show: true, // 是否显示
323
321
  x: 'center', // x轴位置
324
322
  y: 'center', // y轴位置
@@ -405,14 +403,12 @@
405
403
  let max = this.getAmout(res.total_amount);
406
404
  // 数量
407
405
  let value = this.getAmout(res.save_amount);
408
- // 计算
409
- let rate = Math.round((value * 1000) / max)||0;
410
406
  this.option = {
411
407
  backgroundColor: '#fff', // 设置图表区域的背景颜色
412
408
  borderRadius: 10, // 设置图表区域的圆角
413
409
  title: [
414
410
  {
415
- text: '{a|周期已省}\n{b|' + rate + '}', // 显示标题
411
+ text: '{a|周期已省}\n{b|' + value + '}', // 显示标题
416
412
  show: true, // 是否显示
417
413
  x: 'center', // x轴位置
418
414
  y: 'center', // y轴位置
@@ -174,7 +174,7 @@
174
174
  color: #333;
175
175
  }
176
176
 
177
- &> :last-child {
177
+ &> view:last-child {
178
178
  color: #CCCCCC;
179
179
  }
180
180
  }
@@ -204,7 +204,7 @@
204
204
  color: #999999;
205
205
  }
206
206
 
207
- &> :last-child {
207
+ &> view:last-child {
208
208
  color: #ccc;
209
209
  font-size: 26rpx;
210
210
  display: flex;