@jx3box/jx3box-common-ui 5.6.6 → 5.6.9

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.
@@ -86,6 +86,11 @@
86
86
  .u-input{
87
87
  padding:10px 0 10px 10px;
88
88
  }
89
+
90
+ .el-button{
91
+ padding: 10px;
92
+ margin: 10px 0 0 0;
93
+ }
89
94
  }
90
95
  }
91
96
  @media screen and (max-width:@phone){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "5.6.6",
3
+ "version": "5.6.9",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Author.vue CHANGED
@@ -196,7 +196,7 @@ export default {
196
196
  return getLink("org", team_id);
197
197
  },
198
198
  showTeamLogo: function(val) {
199
- return getThumbnail(val, 32);
199
+ return getThumbnail(val, 96);
200
200
  },
201
201
  },
202
202
  watch: {
@@ -21,20 +21,10 @@
21
21
  <em class="u-label">❤️ 品鉴</em>
22
22
  <Contributors v-if="authors && authors.length" :authors="authors" @chosen="handleChosen" />
23
23
  <div class="u-points">
24
- <!--<el-radio-group v-model="fixedCount">-->
25
24
  <el-radio-group v-model="count">
26
25
  <el-radio :label="item" v-for="item in points" :key="item" border>
27
26
  <b>{{item}}</b>盒币
28
27
  </el-radio>
29
- <!--<el-radio label="custom" border><b>自定义</b></el-radio>
30
- <el-input-number
31
- :disabled="this.fixedCount !== 'custom'"
32
- v-model="customCount"
33
- :min="this.allowedMin"
34
- :max="this.allowedMax"
35
- :controls="false">
36
- </el-input-number>
37
- -->
38
28
  </el-radio-group>
39
29
  </div>
40
30
  </div>
@@ -48,6 +38,7 @@
48
38
  :maxlength="30"
49
39
  show-word-limit
50
40
  ></el-input>
41
+ <el-button @click="insertCurrentRelease">插入当前版本</el-button>
51
42
  </div>
52
43
  </div>
53
44
  </div>
@@ -62,6 +53,7 @@
62
53
  <script>
63
54
  import { grantBoxcoin } from "../../service/thx.js";
64
55
  import User from "@jx3box/jx3box-common/js/user";
56
+ import { getBreadcrumb } from "@jx3box/jx3box-common/js/api_misc";
65
57
  import Contributors from './Contributors.vue';
66
58
  export default {
67
59
  name: "BoxcoinAdmin",
@@ -73,8 +65,6 @@ export default {
73
65
  return {
74
66
  visible: false,
75
67
  count: 0,
76
- //fixedCount: 0,
77
- //customCount: 0,
78
68
 
79
69
  remark: "辛苦,感谢!",
80
70
  left : this.own,
@@ -84,18 +74,9 @@ export default {
84
74
  };
85
75
  },
86
76
  computed: {
87
- /*allowedMax: function () {
88
- return this.max;
89
- },
90
- allowedMin: function () {
91
- return this.min;
92
- },*/
93
77
  used: function () {
94
78
  return this.total - this.left;
95
79
  },
96
- /*count: function() {
97
- return this.fixedCount === "custom" ? this.customCount : this.fixedCount;
98
- },*/
99
80
  ready: function () {
100
81
  return this.isNotSelf && this.isEnough && this.count && this.remark;
101
82
  },
@@ -120,7 +101,6 @@ export default {
120
101
  methods: {
121
102
  openBoxcoinPop: function () {
122
103
  this.visible = true;
123
- //this.customCount = this.max / 2;
124
104
  },
125
105
  // 选择要打赏的对象
126
106
  handleChosen(userId) {
@@ -150,6 +130,16 @@ export default {
150
130
  this.visible = false;
151
131
  });
152
132
  },
133
+ insertCurrentRelease: function() {
134
+ getBreadcrumb("current-release").then(res => {
135
+ this.remark += res;
136
+ }).catch(err => {
137
+ this.$message({
138
+ message: "获取失败",
139
+ type: "error",
140
+ });
141
+ });
142
+ },
153
143
  init: function () {},
154
144
  },
155
145
  created: function () {},
@@ -111,7 +111,7 @@ export default {
111
111
  author_url: authorLink,
112
112
  ts2str,
113
113
  thumbnail_url: function(val) {
114
- return getThumbnail(val, 24, true);
114
+ return getThumbnail(val, 72, true);
115
115
  },
116
116
  },
117
117
  components: {