@jx3box/jx3box-common-ui 9.2.6 → 9.2.8

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.
@@ -62,37 +62,44 @@ a{
62
62
  .c-main{margin:0;.w(100%);}
63
63
  }
64
64
 
65
- @media screen and (max-width:@phone){
66
- .env-app{
67
- .c-main{
68
- .mt(0);
69
- }
65
+ .env-app{
66
+ .c-main{
67
+ .mt(0);
70
68
  }
69
+ }
71
70
 
72
- .v-miniprogram {
73
- &.from-seasun {
74
- .c-wiki-comments {
75
- .none;
76
- }
77
-
78
- .m-single-comment {
79
- .none;
80
- }
71
+ .v-miniprogram {
72
+ // 针对seasun
73
+ &.from-seasun {
74
+ .c-wiki-comments {
75
+ .none;
81
76
  }
82
77
  }
83
78
 
84
- .v-miniprogram {
85
- .w-share2,.w-boxcoin-admin {
79
+ .w-share2,.w-boxcoin-admin {
80
+ .none;
81
+ }
82
+
83
+ .w-thx-records {
84
+ .u-client {
86
85
  .none;
87
86
  }
87
+ .u-delete {
88
+ .none;
89
+ }
90
+ }
91
+
92
+ .m-single-comment {
93
+ .none;
94
+ }
95
+
96
+ .c-comment-box {
97
+ .none;
98
+ }
88
99
 
89
- .w-thx-records {
90
- .u-client {
91
- .none;
92
- }
93
- .u-delete {
94
- .none;
95
- }
100
+ &.is-comment-show {
101
+ .m-single-comment {
102
+ .db;
96
103
  }
97
104
  }
98
105
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "9.2.6",
3
+ "version": "9.2.8",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/App.vue CHANGED
@@ -279,7 +279,7 @@ export default {
279
279
  tab: "post",
280
280
 
281
281
  post: {},
282
- post_id: "96614",
282
+ post_id: "68836",
283
283
 
284
284
  author: "",
285
285
  wikiPost: null,
@@ -300,10 +300,10 @@ export default {
300
300
  };
301
301
  },
302
302
  created: function () {
303
- wiki.getById(25594).then((res) => {
304
- res = res.data;
305
- this.wikiPost = res.data;
306
- });
303
+ // wiki.getById(25594).then((res) => {
304
+ // res = res.data;
305
+ // this.wikiPost = res.data;
306
+ // });
307
307
 
308
308
  this.loadCommunity();
309
309
  },
package/src/Header.vue CHANGED
@@ -19,7 +19,7 @@
19
19
  <slot></slot>
20
20
 
21
21
  <!-- user -->
22
- <header-user ref="user" :client="client" />
22
+ <header-user ref="user" :client="client" :asset="asset" />
23
23
  </div>
24
24
  <Box class="c-header-jx3box" :overlayEnable="overlayEnable" :client="client" />
25
25
  </header>
@@ -48,6 +48,8 @@ export default {
48
48
  return {
49
49
  isOverlay: false,
50
50
  isApp: isApp(),
51
+
52
+ asset: {},
51
53
  };
52
54
  },
53
55
  computed: {
@@ -100,6 +102,10 @@ export default {
100
102
 
101
103
  token && localStorage.setItem("__token", token);
102
104
 
105
+ if (User.isLogin()) {
106
+ this.loadAsset();
107
+ }
108
+
103
109
  // 获取全局配置
104
110
  getGlobalConfig().then(async (res) => {
105
111
  const global_token_version = res.token_version;
@@ -135,6 +141,18 @@ export default {
135
141
  var r = window.location.search.substr(1).match(reg);
136
142
  return r ? decodeURIComponent(r[2]) : null;
137
143
  },
144
+ // 资产
145
+ loadAsset: function () {
146
+ User.getAsset().then((data) => {
147
+ this.asset = data;
148
+
149
+ const level = User.getLevel(this.asset?.experience);
150
+
151
+ if (level > 2) {
152
+ document.documentElement.classList.add("is-comment-show");
153
+ }
154
+ });
155
+ },
138
156
  },
139
157
  created: function () {
140
158
  this.init();
@@ -52,6 +52,22 @@ import userInfo from "./userInfo.vue";
52
52
  // import langSwitch from "./langSwitch.vue";
53
53
  import shop from "./shop.vue";
54
54
  export default {
55
+ props: {
56
+ asset: {
57
+ type: Object,
58
+ default: () => {
59
+ return {
60
+ expire_date: "2022-03-07T00:00:00+08:00",
61
+ total_day: 395,
62
+ was_vip: 0,
63
+
64
+ pro_expire_date: "2022-03-07T00:00:00+08:00",
65
+ pro_total_day: 366,
66
+ was_pro: 0,
67
+ };
68
+ },
69
+ }
70
+ },
55
71
  components: {
56
72
  message,
57
73
  publish,
@@ -69,17 +85,6 @@ export default {
69
85
  user: User.getInfo(),
70
86
  isLogin: User.isLogin(),
71
87
 
72
- // VIP
73
- asset: {
74
- expire_date: "2022-03-07T00:00:00+08:00",
75
- total_day: 395,
76
- was_vip: 0,
77
-
78
- pro_expire_date: "2022-03-07T00:00:00+08:00",
79
- pro_total_day: 366,
80
- was_pro: 0,
81
- },
82
-
83
88
  // 链接
84
89
  login_url: __Links.account.login + "?redirect=" + location.href,
85
90
  register_url: __Links.account.register + "?redirect=" + location.href,
@@ -125,16 +130,9 @@ export default {
125
130
  console.log(e);
126
131
  }
127
132
  },
128
- // 资产
129
- loadAsset: function () {
130
- User.getAsset().then((data) => {
131
- this.asset = data;
132
- });
133
- },
134
133
  // 初始化
135
134
  init: function () {
136
135
  if (this.isLogin) {
137
- this.loadAsset();
138
136
  this.signIn();
139
137
  }
140
138
  },
@@ -10,7 +10,9 @@
10
10
  <div class="u-version">
11
11
  <span>{{ item.version }}</span> - <span>{{ item.created_at }}</span>
12
12
  </div>
13
- <el-button class="u-compare" size="small" type="text"><i class="el-icon-sort u-icon"></i>对比</el-button>
13
+ <el-button class="u-compare" size="small" type="text"
14
+ ><i class="el-icon-sort u-icon"></i>对比</el-button
15
+ >
14
16
  </li>
15
17
  </ul>
16
18
  <el-pagination small layout="prev, pager, next" :total="total" :current-page.sync="index" hide-on-single-page>
@@ -38,7 +40,7 @@ export default {
38
40
  return {
39
41
  loading: false,
40
42
  index: 1,
41
- pageSize: 50,
43
+ pageSize: 10, // 取最新的10个版本即可
42
44
  total: 0,
43
45
  list: [],
44
46
  show: true,
@@ -141,8 +143,8 @@ export default {
141
143
  font-size: 18px;
142
144
  .flex;
143
145
  align-items: center;
144
- gap:5px;
145
- .u-icon{
146
+ gap: 5px;
147
+ .u-icon {
146
148
  font-size: 20px;
147
149
  }
148
150
  }
@@ -151,7 +153,7 @@ export default {
151
153
  padding: 10px;
152
154
  margin: 0;
153
155
  li {
154
- padding:0 10px;
156
+ padding: 0 10px;
155
157
  .fz(13px, 36px);
156
158
  .flex;
157
159
  justify-content: space-between;
@@ -161,19 +163,19 @@ export default {
161
163
  &:hover {
162
164
  background-color: #e6f0fb;
163
165
 
164
- .u-compare{
166
+ .u-compare {
165
167
  .db;
166
168
  }
167
169
  }
168
170
  .pointer;
169
171
  }
170
172
 
171
- .u-compare{
173
+ .u-compare {
172
174
  .none;
173
175
 
174
- .u-icon{
175
- transform : rotate(90deg);
176
- margin-right:3px;
176
+ .u-icon {
177
+ transform: rotate(90deg);
178
+ margin-right: 3px;
177
179
  }
178
180
  }
179
181
  }