@jx3box/jx3box-common-ui 5.5.21 → 5.5.22

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.5.21",
3
+ "version": "5.5.22",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "dependencies": {
33
33
  "@jx3box/jx3box-comment-ui": "^1.6.8",
34
- "@jx3box/jx3box-common": "^7.0.18",
34
+ "@jx3box/jx3box-common": "^7.0.19",
35
35
  "@jx3box/jx3box-data": "^1.8.3",
36
36
  "@jx3box/jx3box-editor": "^1.2.4",
37
37
  "axios": "^0.19.2",
@@ -100,12 +100,13 @@ export default {
100
100
  message: "操作成功",
101
101
  type: "success",
102
102
  });
103
+ return res.data.data
103
104
  })
104
- .then(() => {
105
+ .then((data) => {
105
106
  // 1.扣除额度
106
107
  this.left -= this.count;
107
108
  // 2.将修改emit出去
108
- this.$emit('updateRecord', { count: this.count, remark: this.remark, is_user_gift: 0 });
109
+ this.$emit('updateRecord', data);
109
110
  })
110
111
  .finally(() => {
111
112
  this.visible = false;
@@ -109,9 +109,9 @@ export default {
109
109
  },
110
110
  cacheRecord: {
111
111
  deep: true,
112
- handler: function (val) {
113
- if (val) {
114
- this.list.push(val);
112
+ handler: function (data) {
113
+ if (data) {
114
+ this.list.push(data)
115
115
  // 清空父组件的cache
116
116
  this.$parent.cacheRecord = null;
117
117
  }
@@ -103,12 +103,13 @@ export default {
103
103
  message: "操作成功",
104
104
  type: "success",
105
105
  });
106
+ return res.data.data
106
107
  })
107
- .then(() => {
108
+ .then((data) => {
108
109
  // 1.扣除额度
109
110
  this.left -= this.count;
110
111
  // 2. 将新增emit出去
111
- this.$emit('updateRecord', { count: this.count, remark: this.remark, is_user_gift: 1 });
112
+ this.$emit('updateRecord', data);
112
113
  })
113
114
  .finally(() => {
114
115
  this.visible = false;
@@ -79,18 +79,8 @@ export default {
79
79
  })
80
80
  },
81
81
  // 用户打赏
82
- updateRecord: function ({ count, remark, is_user_gift }){
83
- this.cacheRecord = {
84
- count,
85
- remark,
86
- is_user_gift,
87
- operate_user_id: this.user.uid,
88
- created_at: Date.now(),
89
- ext_operate_user_info: {
90
- avatar: this.user.avatar_origin,
91
- display_name: this.user.name
92
- },
93
- }
82
+ updateRecord: function (data){
83
+ this.cacheRecord = data
94
84
  },
95
85
  },
96
86
  created: function () {},