@jx3box/jx3box-common-ui 5.5.14 → 5.5.15

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.
@@ -2,4 +2,4 @@
2
2
  "std": ["北天药宗", "奉天证道"],
3
3
  "origin": ["藏剑山庄", "物华天宝"],
4
4
  "all": ["北天药宗", "奉天证道", "藏剑山庄", "物华天宝"]
5
- }
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "5.5.14",
3
+ "version": "5.5.15",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,17 +25,18 @@ export default {
25
25
  props: ["price"],
26
26
  components: {},
27
27
  data: function () {
28
- return {};
28
+ return {
29
+ };
29
30
  },
30
31
  computed: {},
31
32
  watch: {},
32
33
  methods: {
33
- formartPrice(price, unit) {
34
+ formartPrice(price = 0, unit) {
34
35
  let result = {
35
- zhuan: parseInt(price / 100 / 100 % 10000) || 0,
36
- jin: parseInt((price / 100 / 100) % 10000) || 0,
37
- yin: parseInt((price / 100) % 100) || 0,
38
- tong: parseInt(price % 100) || 0,
36
+ zhuan: Math.floor(price * 0.01 * 0.01 * 0.0001) || 0,
37
+ jin: Math.floor((price * 0.01 * 0.01) % 10000) || 0,
38
+ yin: Math.floor((price * 0.01) % 100) || 0,
39
+ tong: Math.floor(price % 100) || 0,
39
40
  };
40
41
  return result[unit];
41
42
  },