@jx3box/jx3box-common-ui 5.3.5 → 5.3.6

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": "@jx3box/jx3box-common-ui",
3
- "version": "5.3.5",
3
+ "version": "5.3.6",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,7 +30,7 @@
30
30
  "last 2 versions"
31
31
  ],
32
32
  "dependencies": {
33
- "@jx3box/jx3box-common": "^6.7.2",
33
+ "@jx3box/jx3box-common": "^6.7.3",
34
34
  "@jx3box/jx3box-data": "^1.8.3",
35
35
  "axios": "^0.19.2",
36
36
  "element-ui": "^2.13.2",
@@ -76,6 +76,9 @@ export default {
76
76
  },
77
77
  allowBoxcoin : function (){
78
78
  return this.postType && this.postId && this.userId
79
+ },
80
+ client : function (){
81
+ return location.href.includes('origin') ? 'origin' : 'std'
79
82
  }
80
83
  },
81
84
  watch: {
@@ -90,6 +93,7 @@ export default {
90
93
  submit: function () {
91
94
  grantBoxcoin(this.postType, this.postId, this.userId, this.count, {
92
95
  remark: this.remark,
96
+ client : this.client
93
97
  })
94
98
  .then((res) => {
95
99
  this.$message({
@@ -75,6 +75,9 @@ export default {
75
75
  },
76
76
  allowBoxcoin : function (){
77
77
  return this.postType && this.postId && this.userId
78
+ },
79
+ client : function (){
80
+ return location.href.includes('origin') ? 'origin' : 'std'
78
81
  }
79
82
  },
80
83
  watch: {
@@ -93,6 +96,7 @@ export default {
93
96
  submit: function () {
94
97
  rewardBoxcoin(this.postType, this.postId, this.userId, this.count, {
95
98
  remark: this.remark,
99
+ client : this.client
96
100
  })
97
101
  .then((res) => {
98
102
  this.$message({