@jx3box/jx3box-common-ui 6.6.8 → 6.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.
@@ -594,6 +594,12 @@ body {
594
594
  }
595
595
  }
596
596
 
597
+ @media screen and (max-width: @ipad) {
598
+ .c-header-msg {
599
+ display: none;
600
+ }
601
+ }
602
+
597
603
  //操作面板
598
604
  .c-header-panel {
599
605
  float: left;
@@ -628,6 +634,12 @@ body {
628
634
  }
629
635
  }
630
636
 
637
+ @media screen and (max-width: @ipad) {
638
+ .c-header-panel {
639
+ display: none;
640
+ }
641
+ }
642
+
631
643
  // 用户资产
632
644
  .c-header-assets {
633
645
  float: left;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "6.6.8",
3
+ "version": "6.6.9",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/App.vue CHANGED
@@ -30,9 +30,9 @@
30
30
  <Collection :id="59" :defaultVisible="true" />
31
31
  <UserPop title="添加用户" v-model="visible" @confirm="addUser" />
32
32
  <el-button @click="visible = true">用户POP</el-button>
33
- <Thx :postId="23865" postType="bbs" postTitle="bbs23865的标题" type="batchReward" :userId="7"
34
- :adminBoxcoinEnable="true" :userBoxcoinEnable="true"
35
- :items="[{ user_id: 10, article_id: '11111', article_type: '' }]" />
33
+ <!-- :postId="23865" -->
34
+ <Thx postType="bbs" postTitle="bbs23865的标题" type="batchReward" :userId="7" :adminBoxcoinEnable="true"
35
+ :userBoxcoinEnable="true" :postId="[{ user_id: 10, article_id: '11111', article_type: '' }]" />
36
36
  <hr />
37
37
  <Like mode="heart" :count="100" :showCount="true" />
38
38
  <Down :count="100" :showCount="true" />
@@ -176,52 +176,57 @@ export default {
176
176
  }
177
177
  }
178
178
  }
179
+ @media screen and (max-width: @phone) {
180
+ .c-game-switch {
181
+ margin-left: 15px;
182
+ }
183
+ }
179
184
  .c-game-list {
180
- .arrow(t,5px,@bg-black,12%);
181
- position: absolute;
182
- top: calc(100% + 14px);
183
- left: -10px;
184
- width: 300px;
185
- background-color: #24292e;
186
- padding: 10px;
187
- border: 1px solid rgba(27, 31, 35, 0.15);
185
+ .arrow(t,5px,@bg-black,12%);
186
+ position: absolute;
187
+ top: calc(100% + 14px);
188
+ left: -10px;
189
+ width: 300px;
190
+ background-color: #24292e;
191
+ padding: 10px;
192
+ border: 1px solid rgba(27, 31, 35, 0.15);
193
+ border-radius: 4px;
194
+ box-shadow: 0 3px 12px rgba(27, 31, 35, 0.15);
195
+ margin-top: 6px;
196
+ display: grid;
197
+ grid-template-columns: repeat(2, 1fr);
198
+ // gap:10px;
199
+ grid-row-gap: 8px;
200
+ grid-column-gap: 10px;
201
+ .u-game-item {
202
+ .flex;
203
+ align-items: center;
204
+ padding: 6px;
205
+ .pointer;
188
206
  border-radius: 4px;
189
- box-shadow: 0 3px 12px rgba(27, 31, 35, 0.15);
190
- margin-top: 6px;
191
- display: grid;
192
- grid-template-columns: repeat(2, 1fr);
193
- // gap:10px;
194
- grid-row-gap: 8px;
195
- grid-column-gap: 10px;
196
- .u-game-item {
197
- .flex;
198
- align-items: center;
199
- padding: 6px;
200
- .pointer;
207
+ color: #fff;
208
+ font-size: 14px;
209
+ .u-img {
210
+ width: 24px;
211
+ height: 24px;
212
+ margin-right: 5px;
201
213
  border-radius: 4px;
214
+ }
215
+ &.active {
216
+ background-color: @primary;
202
217
  color: #fff;
203
- font-size: 14px;
204
- .u-img {
205
- width: 24px;
206
- height: 24px;
207
- margin-right: 5px;
208
- border-radius: 4px;
209
- }
210
- &.active {
218
+ }
219
+ &:not(.disabled) {
220
+ &:hover {
211
221
  background-color: @primary;
212
222
  color: #fff;
213
223
  }
214
- &:not(.disabled) {
215
- &:hover {
216
- background-color: @primary;
217
- color: #fff;
218
- }
219
- }
220
- &.disabled {
221
- filter: grayscale(100%);
222
- color: #c0c4cc;
223
- cursor: not-allowed;
224
- }
224
+ }
225
+ &.disabled {
226
+ filter: grayscale(100%);
227
+ color: #c0c4cc;
228
+ cursor: not-allowed;
225
229
  }
226
230
  }
231
+ }
227
232
  </style>
@@ -33,7 +33,7 @@
33
33
  <span class="u-item">
34
34
  <!-- <span class="u-item-primary>" -->
35
35
  <span class="u-label"><i class="el-icon-user"></i> 等级</span>
36
- <span class="u-value">Lv.{{ level }}</span>
36
+ <span class="u-value" :style="levelStyle">Lv.{{ level }}</span>
37
37
  <!-- </span> -->
38
38
  <!-- <span class="u-item-extend"><a href="/notice/28917" target="_blank">[权益]</a></span> -->
39
39
  </span>
@@ -111,53 +111,78 @@
111
111
  <div class="c-header-info">
112
112
  <div class="c-header-profile" id="c-header-profile" @click="showmenu">
113
113
  <img class="u-avatar" :src="user.avatar" />
114
- <div class="m-info" v-show="!fold">
115
- <div class="u-profile">
116
- <b :title="user.name">{{ showUserName(user.name) }}</b>
117
- <div class="u-id">
118
- <span>魔盒UID:{{ user.uid }}</span>
119
- <i class="el-icon-document-copy u-copy" @click.stop="copyText(user.uid)"></i>
120
- </div>
121
- <div class="m-vip">
122
- <a href="/dashboard/cooperation">
123
- <img
124
- :src="super_author_icon"
125
- class="u-superauthor-profile"
126
- alt="superauthor"
127
- title="签约作者"
128
- :class="{ off: !isSuperAuthor }"
129
- /></a>
114
+ <template v-if="isPhone">
115
+ <ul class="u-menu" v-show="!fold">
116
+ <li>
117
+ <a href="/dashboard">个人中心</a>
118
+ </li>
119
+ <li>
120
+ <a :href="url.msg">消息中心</a>
121
+ </li>
122
+ <li>
123
+ <a :href="url.publish">发布中心</a>
124
+ </li>
125
+ <li v-if="isAdmin">
126
+ <a href="/admin">站点配置</a>
127
+ </li>
128
+ <li v-if="isEditor">
129
+ <a href="https://os.jx3box.com/admin">管理平台</a>
130
+ </li>
131
+ <hr>
132
+ <li>
133
+ <a @click="logout">退出登录</a>
134
+ </li>
135
+ </ul>
136
+ </template>
137
+ <template v-else>
138
+ <div class="m-info" v-show="!fold">
139
+ <div class="u-profile">
140
+ <b :title="user.name">{{ showUserName(user.name) }}</b>
141
+ <div class="u-id">
142
+ <span>魔盒UID:{{ user.uid }}</span>
143
+ <i class="el-icon-document-copy u-copy" @click.stop="copyText(user.uid)"></i>
144
+ </div>
145
+ <div class="m-vip">
146
+ <a href="/dashboard/cooperation">
147
+ <img
148
+ :src="super_author_icon"
149
+ class="u-superauthor-profile"
150
+ alt="superauthor"
151
+ title="签约作者"
152
+ :class="{ off: !isSuperAuthor }"
153
+ /></a>
130
154
 
131
- <a
132
- class="u-vip"
133
- href="/vip/premium?from=header_usermenu"
134
- target="_blank"
135
- title="专业版"
136
- >
137
- <i class="i-icon-vip" :class="{ on: isPRO }">{{ vipType }}</i>
138
- </a>
155
+ <a
156
+ class="u-vip"
157
+ href="/vip/premium?from=header_usermenu"
158
+ target="_blank"
159
+ title="专业版"
160
+ >
161
+ <i class="i-icon-vip" :class="{ on: isPRO }">{{ vipType }}</i>
162
+ </a>
163
+ </div>
139
164
  </div>
140
- </div>
141
165
 
142
- <el-button-group class="u-actions">
143
- <a class="el-button el-button--default" :href="url.profile">资料设置</a>
144
- <a class="el-button el-button--default" :href="url.homepage">个人主页</a>
145
- <a class="el-button el-button--default" href="/dashboard/frame">主题风格</a>
146
- </el-button-group>
166
+ <el-button-group class="u-actions">
167
+ <a class="el-button el-button--default" :href="url.profile">资料设置</a>
168
+ <a class="el-button el-button--default" :href="url.homepage">个人主页</a>
169
+ <a class="el-button el-button--default" href="/dashboard/frame">主题风格</a>
170
+ </el-button-group>
147
171
 
148
- <div class="m-other">
149
- <a href="/dashboard/fav" class="u-item"> 我的收藏 </a>
150
- <a href="/team/role/manage" class="u-item"> 我的角色 </a>
151
- <a href="/dashboard/purchases" class="u-item"> 付费购买的资源 </a>
152
- <a href="/vip/mall" class="u-item"> 积分商城兑好礼 </a>
153
- <hr />
154
- <a href="/dashboard/feedback" class="u-item"> 反馈中心 </a>
155
- <hr />
156
- <div class="u-logout">
157
- <el-button @click="logout">退出登录</el-button>
172
+ <div class="m-other">
173
+ <a href="/dashboard/fav" class="u-item"> 我的收藏 </a>
174
+ <a href="/team/role/manage" class="u-item"> 我的角色 </a>
175
+ <a href="/dashboard/purchases" class="u-item"> 付费购买的资源 </a>
176
+ <a href="/vip/mall" class="u-item"> 积分商城兑好礼 </a>
177
+ <hr />
178
+ <a href="/dashboard/feedback" class="u-item"> 反馈中心 </a>
179
+ <hr />
180
+ <div class="u-logout">
181
+ <el-button @click="logout">退出登录</el-button>
182
+ </div>
158
183
  </div>
159
184
  </div>
160
- </div>
185
+ </template>
161
186
  </div>
162
187
  </div>
163
188
  </template>
@@ -174,7 +199,7 @@
174
199
  <script>
175
200
  import User from "@jx3box/jx3box-common/js/user";
176
201
  import { showDate } from "@jx3box/jx3box-common/js/moment";
177
- import { __Links, __Root, __imgPath, __OriginRoot } from "@jx3box/jx3box-common/data/jx3box.json";
202
+ import { __Links, __Root, __imgPath, __OriginRoot, __userLevelColor } from "@jx3box/jx3box-common/data/jx3box.json";
178
203
  import panel from "../../assets/data/panel.json";
179
204
  import { getMsg, getMenu } from "../../service/header";
180
205
  import { getMyInfo, userSignIn } from "../../service/author";
@@ -269,6 +294,14 @@ export default {
269
294
  level: function () {
270
295
  return User.getLevel(this.asset.experience);
271
296
  },
297
+ levelStyle: function () {
298
+ return {
299
+ color: __userLevelColor[this.level],
300
+ };
301
+ },
302
+ isPhone: function () {
303
+ return window.innerWidth < 768;
304
+ },
272
305
  },
273
306
  watch: {
274
307
  fold(val) {
@@ -2,7 +2,7 @@
2
2
  <div class="w-thx">
3
3
  <template v-if="type === 'batchReward'">
4
4
  <!-- 批量打赏 -->
5
- <BatchReward :postType="postType" :items="items" :boxcoin="boxcoin" :own="user_left" :points="user_points"
5
+ <batch-reward :postType="postType" :items="postId" :boxcoin="boxcoin" :own="user_left" :points="user_points"
6
6
  :authors="authors" :client="client" v-if="userBoxcoinEnable && boxcoin_enable"
7
7
  @updateRecord="updateRecord" />
8
8
  </template>
@@ -56,13 +56,12 @@ export default {
56
56
  "mode",
57
57
  "authors",
58
58
  "client",
59
- "items"
60
59
  ],
61
60
  components: {
62
61
  Like,
63
62
  Share,
64
63
  Fav,
65
- BatchReward,
64
+ "batch-reward": BatchReward,
66
65
  "boxcoin-records": BoxcoinRecords,
67
66
  "boxcoin-admin": BoxcoinAdmin,
68
67
  "boxcoin-user": BoxcoinUser,