@jx3box/jx3box-common-ui 6.4.6 → 6.4.7

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.
@@ -0,0 +1,111 @@
1
+ .c-header-jx3box {
2
+ background-color: @bg-black;
3
+ .z(800);
4
+ overflow-y: auto;
5
+ overflow-x: hidden;
6
+ .w(100%);
7
+ box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
8
+ transition: 0.5s ease-in-out;
9
+ .clearfix;
10
+
11
+ .none;
12
+ &.on {
13
+ .db;
14
+ }
15
+ .pr;
16
+ .u-close {
17
+ // .pa;.rb(0);
18
+ .fr;
19
+ background-color: @color;
20
+ .fz(13px);
21
+ padding: 5px 10px;
22
+ i {
23
+ .mr(3px);
24
+ }
25
+ .pointer;
26
+ }
27
+
28
+ .c-header-search {
29
+ float: none;
30
+ .w(auto);
31
+ margin: 0 20px 10px 20px;
32
+ box-sizing: border-box;
33
+ padding: 0;
34
+ .none;
35
+ }
36
+
37
+ .u-list {
38
+ display: flex;
39
+ flex-direction: column;
40
+ flex-wrap: wrap;
41
+ height: 480px;
42
+ padding: 20px;
43
+ .clearfix;
44
+ overflow: auto;
45
+ }
46
+
47
+ .u-list__item {
48
+ .fl;
49
+ .mb(10px);
50
+ width: 160px;
51
+ padding:0 20px;
52
+ flex-grow: 0;
53
+ }
54
+
55
+ .u-group {
56
+ margin-bottom: 5px;
57
+ .pr;
58
+ }
59
+
60
+ .u-group-icon {
61
+ .size(18px, 18px);
62
+ .pa;
63
+ left: -25px;
64
+ }
65
+
66
+ .u-group-name{
67
+ .fz(14px,1.8);
68
+ .bold;
69
+ color:#59a5fc;
70
+ padding:0 10px;
71
+ }
72
+
73
+ .u-subtitle {
74
+ .fz(12px,2);
75
+ color:#9b9b9b;
76
+ padding:0 10px;
77
+ }
78
+
79
+
80
+ .u-content__item{
81
+ padding:5px 0;
82
+ }
83
+ .u-link {
84
+ .db;
85
+ .r(2px);
86
+ padding:0 10px;
87
+ // .mb(3px);
88
+ .u-txt {
89
+ .fz(13px,2);
90
+ color: #eee;
91
+ }
92
+ &:hover{
93
+ background-color:#3b4044;
94
+ .u-txt{
95
+ color: #fff;
96
+ }
97
+ }
98
+
99
+ &.not-client {
100
+ .none;
101
+ }
102
+ }
103
+ @media screen and (max-width: @ipad-y) {
104
+ .c-header-search {
105
+ .db;
106
+ }
107
+ }
108
+ }
109
+ .c-header-jx3box.isOverlay {
110
+ background-color: rgba(0, 0, 0, 0.85);
111
+ }
@@ -0,0 +1,726 @@
1
+ [
2
+ {
3
+ "name": "门派(职业)",
4
+ "icon": "",
5
+ "children": [
6
+ {
7
+ "name": "创作",
8
+ "icon": "",
9
+ "children": [
10
+ {
11
+ "name": "全门派宏",
12
+ "href": "/macro/",
13
+ "client": "all",
14
+ "status": true,
15
+ "hasMark": false,
16
+ "markcls": "ishot"
17
+ },
18
+ {
19
+ "name": "门派攻略",
20
+ "href": "/bps/",
21
+ "client": "all",
22
+ "status": true,
23
+ "hasMark": false,
24
+ "markcls": "ishot"
25
+ }
26
+ ]
27
+ },
28
+ {
29
+ "name": "数据",
30
+ "children": [
31
+ {
32
+ "name": "技能系数",
33
+ "href": "/bps/#/skill",
34
+ "client": "all",
35
+ "status": true,
36
+ "hasMark": false,
37
+ "markcls": "ishot"
38
+ },
39
+ {
40
+ "name": "技能数据",
41
+ "href": "/bps/#/raw",
42
+ "client": "all",
43
+ "status": true,
44
+ "hasMark": false,
45
+ "markcls": "ishot"
46
+ },
47
+ {
48
+ "name": "源码分析",
49
+ "href": "/fb/#/lua",
50
+ "client": "all",
51
+ "status": true,
52
+ "hasMark": false,
53
+ "markcls": "ishot"
54
+ },
55
+ {
56
+ "name": "秘籍大全",
57
+ "href": "/bps/#/recipe",
58
+ "client": "all",
59
+ "status": true,
60
+ "hasMark": false,
61
+ "markcls": "ishot"
62
+ },
63
+ {
64
+ "name": "技能合集",
65
+ "href": "/bps/#/collection",
66
+ "client": "all",
67
+ "status": true,
68
+ "hasMark": false,
69
+ "markcls": "ishot"
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "name": "工具",
75
+ "children": [
76
+ {
77
+ "name": "配装器",
78
+ "href": "/pz/",
79
+ "client": "all",
80
+ "status": true,
81
+ "hasMark": false,
82
+ "markcls": "ishot"
83
+ },
84
+ {
85
+ "name": "急速阈值",
86
+ "href": "/bps/#/haste",
87
+ "client": "std",
88
+ "status": true,
89
+ "hasMark": false,
90
+ "markcls": "ishot"
91
+ },
92
+ {
93
+ "name": "奇穴模拟器",
94
+ "href": "/app/talent/",
95
+ "client": "std",
96
+ "status": true,
97
+ "hasMark": false,
98
+ "markcls": "ishot"
99
+ },
100
+ {
101
+ "name": "镇派模拟器",
102
+ "href": "/app/talent2/",
103
+ "client": "origin",
104
+ "status": true,
105
+ "hasMark": false,
106
+ "markcls": "ishot"
107
+ },
108
+ {
109
+ "name": "DPS计算器",
110
+ "href": "/bps/#/dps",
111
+ "client": "all",
112
+ "status": true,
113
+ "hasMark": false,
114
+ "markcls": "ishot"
115
+ },
116
+ {
117
+ "name": "宏编辑器",
118
+ "href": "/app/macroeditor/",
119
+ "client": "all",
120
+ "status": true,
121
+ "hasMark": false,
122
+ "markcls": "ishot"
123
+ },
124
+ {
125
+ "name": "图标大全",
126
+ "href": "/app/icons/",
127
+ "client": "all",
128
+ "status": true,
129
+ "hasMark": false,
130
+ "markcls": "ishot"
131
+ }
132
+ ]
133
+ }
134
+ ]
135
+ },
136
+ {
137
+ "name": "秘境(副本)",
138
+ "icon": "",
139
+ "children":[
140
+ {
141
+ "name": "创作",
142
+ "icon": "",
143
+ "children": [
144
+ {
145
+ "name": "秘境攻略",
146
+ "href": "/fb/",
147
+ "client": "all",
148
+ "status": true,
149
+ "hasMark": false,
150
+ "markcls": "ishot"
151
+ },
152
+ {
153
+ "name": "副本成就",
154
+ "href": "/fb/#/cj",
155
+ "client": "all",
156
+ "status": true,
157
+ "hasMark": false,
158
+ "markcls": "ishot"
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "name": "数据",
164
+ "children": [
165
+ {
166
+ "name": "首领数据",
167
+ "href": "/fb/#/npc",
168
+ "client": "all",
169
+ "status": true,
170
+ "hasMark": false,
171
+ "markcls": "ishot"
172
+ },
173
+ {
174
+ "name": "特殊机制",
175
+ "href": "/fb/#/attr",
176
+ "client": "all",
177
+ "status": true,
178
+ "hasMark": false,
179
+ "markcls": "ishot"
180
+ }
181
+ ]
182
+ },
183
+ {
184
+ "name": "工具",
185
+ "children": [
186
+ {
187
+ "name": "团队平台",
188
+ "href": "/team/",
189
+ "client": "all",
190
+ "status": true,
191
+ "hasMark": false,
192
+ "markcls": "ishot"
193
+ },
194
+ {
195
+ "name": "战斗分析",
196
+ "href": "/battle/#/public",
197
+ "client": "all",
198
+ "status": true,
199
+ "hasMark": false,
200
+ "markcls": "ishot"
201
+ },
202
+ {
203
+ "name": "秘境掉落",
204
+ "href": "/fb/#/drop",
205
+ "client": "all",
206
+ "status": true,
207
+ "hasMark": false,
208
+ "markcls": "ishot"
209
+ },
210
+ {
211
+ "name": "瑰石查询",
212
+ "href": "/fb/#/gem",
213
+ "client": "all",
214
+ "status": true,
215
+ "hasMark": false,
216
+ "markcls": "ishot"
217
+ },
218
+ {
219
+ "name": "八荒模拟",
220
+ "href": "/app/bhhj",
221
+ "client": "origin",
222
+ "status": true,
223
+ "hasMark": false,
224
+ "markcls": "ishot"
225
+ }
226
+ ]
227
+ }
228
+ ]
229
+ },
230
+ {
231
+ "name" :"插件与工具",
232
+ "icon": "",
233
+ "children": [
234
+ {
235
+ "name": "数据",
236
+ "icon": "",
237
+ "children": [
238
+ {
239
+ "name": "插件数据下载",
240
+ "href": "/jx3dat/#/plugins",
241
+ "client": "all",
242
+ "status": true,
243
+ "hasMark": false,
244
+ "markcls": "ishot"
245
+ },
246
+ {
247
+ "name": "剑三数据库",
248
+ "href": "/app/database/",
249
+ "client": "all",
250
+ "status": true,
251
+ "hasMark": false,
252
+ "markcls": "ishot"
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "name": "工具",
258
+ "children": [
259
+ {
260
+ "name": "开服监控",
261
+ "href": "/app/servers2/",
262
+ "client": "all",
263
+ "status": true,
264
+ "hasMark": false,
265
+ "markcls": "ishot"
266
+ },
267
+ {
268
+ "name": "科举题库",
269
+ "href": "https://j3cx.com/exam/",
270
+ "client": "all",
271
+ "status": true,
272
+ "hasMark": false,
273
+ "markcls": "ishot"
274
+ },
275
+ {
276
+ "name": "其他更多",
277
+ "href": "/tool/",
278
+ "client": "all",
279
+ "status": true,
280
+ "hasMark": false,
281
+ "markcls": "ishot"
282
+ }
283
+ ]
284
+ }
285
+ ]
286
+ },
287
+ {
288
+ "name": "竞技(PvP)",
289
+ "icon": "",
290
+ "children": [
291
+ {
292
+ "name": "工具",
293
+ "children": [
294
+ {
295
+ "name": "沙盘查询",
296
+ "href": "/pvp/sandbox",
297
+ "client": "all",
298
+ "status": true,
299
+ "hasMark": false,
300
+ "markcls": "ishot"
301
+ }
302
+ ]
303
+ }
304
+ ]
305
+ },
306
+ {
307
+ "name": "资历",
308
+ "icon": "",
309
+ "children": [
310
+ {
311
+ "name": "创作",
312
+ "icon": "",
313
+ "children": [
314
+ {
315
+ "name": "成就百科",
316
+ "href": "/cj/",
317
+ "client": "all",
318
+ "status": true,
319
+ "hasMark": false,
320
+ "markcls": "ishot"
321
+ },
322
+ {
323
+ "name": "物品百科",
324
+ "href": "/item/",
325
+ "client": "all",
326
+ "status": true,
327
+ "hasMark": false,
328
+ "markcls": "ishot"
329
+ },
330
+ {
331
+ "name": "任务百科",
332
+ "href": "/quest/",
333
+ "client": "all",
334
+ "status": true,
335
+ "hasMark": false,
336
+ "markcls": "ishot"
337
+ }
338
+ ]
339
+ },
340
+ {
341
+ "name": "数据",
342
+ "children": [
343
+ {
344
+ "name": "奇遇大全",
345
+ "href": "/adventure/",
346
+ "client": "all",
347
+ "status": true,
348
+ "hasMark": false,
349
+ "markcls": "ishot"
350
+ },
351
+ {
352
+ "name": "宠物大全",
353
+ "href": "/pet/",
354
+ "client": "all",
355
+ "status": true,
356
+ "hasMark": false,
357
+ "markcls": "ishot"
358
+ },
359
+ {
360
+ "name": "坐骑大全",
361
+ "href": "/horse/",
362
+ "client": "all",
363
+ "status": false,
364
+ "hasMark": false,
365
+ "markcls": "ishot"
366
+ },
367
+ {
368
+ "name": "声望大全",
369
+ "href": "/reputation/",
370
+ "client": "all",
371
+ "status": true,
372
+ "hasMark": false,
373
+ "markcls": "ishot"
374
+ },
375
+ {
376
+ "name": "书籍大全",
377
+ "href": "/book/",
378
+ "client": "all",
379
+ "status": false,
380
+ "hasMark": false,
381
+ "markcls": "ishot"
382
+ }
383
+ ]
384
+ }
385
+ ]
386
+ },
387
+ {
388
+ "name": "外观",
389
+ "icon": "",
390
+ "children": [
391
+ {
392
+ "name": "创作",
393
+ "children": [
394
+ {
395
+ "name": "捏脸数据",
396
+ "href": "/face/",
397
+ "client": "all",
398
+ "status": true,
399
+ "hasMark": false,
400
+ "markcls": "ishot"
401
+ },
402
+ {
403
+ "name": "家园蓝图",
404
+ "href": "https://jx3.xoyo.com/zt/2020/09/24/blueprint/#/",
405
+ "client": "all",
406
+ "status": true,
407
+ "hasMark": false,
408
+ "markcls": "ishot"
409
+ }
410
+ ]
411
+ },
412
+ {
413
+ "name": "数据",
414
+ "children": [
415
+ {
416
+ "name": "家具大全",
417
+ "href": "/furniture/",
418
+ "client": "all",
419
+ "status": true,
420
+ "hasMark": false,
421
+ "markcls": "ishot"
422
+ },
423
+ {
424
+ "name": "外观大全",
425
+ "href": "/exterior",
426
+ "client": "all",
427
+ "status": false,
428
+ "hasMark": false,
429
+ "markcls": "ishot"
430
+ }
431
+ ]
432
+ },
433
+ {
434
+ "name": "工具",
435
+ "children": [
436
+ {
437
+ "name": "妆容解析",
438
+ "href": "/share/facedata",
439
+ "client": "all",
440
+ "status": true,
441
+ "hasMark": false,
442
+ "markcls": "ishot"
443
+ },
444
+ {
445
+ "name": "剑三编辑器",
446
+ "href": "https://movieeditor.jx3.xoyo.com/index.html",
447
+ "client": "all",
448
+ "status": true,
449
+ "hasMark": false,
450
+ "markcls": "ishot"
451
+ }
452
+ ]
453
+ }
454
+ ]
455
+ },
456
+ {
457
+ "name": "休闲",
458
+ "icon": "",
459
+ "children": [
460
+ {
461
+ "name": "工具",
462
+ "children": [
463
+ {
464
+ "name": "技艺助手",
465
+ "href": "/pvg/manufacture",
466
+ "client": "all",
467
+ "status": true,
468
+ "hasMark": false,
469
+ "markcls": "ishot"
470
+ },
471
+ {
472
+ "name": "物价大全",
473
+ "href": "/pvg/item_price",
474
+ "client": "all",
475
+ "status": true,
476
+ "hasMark": false,
477
+ "markcls": "ishot"
478
+ }
479
+ ]
480
+ }
481
+ ]
482
+ },
483
+ {
484
+ "name": "茶馆",
485
+ "icon": "",
486
+ "children": [
487
+ {
488
+ "name": "创作",
489
+ "children": [
490
+ {
491
+ "name": "交流分享",
492
+ "href": "/bbs/",
493
+ "client": "all",
494
+ "status": true,
495
+ "hasMark": false,
496
+ "markcls": "ishot"
497
+ },
498
+ {
499
+ "name": "骚话创作",
500
+ "href": "/joke",
501
+ "client": "all",
502
+ "status": true,
503
+ "hasMark": false,
504
+ "markcls": "ishot"
505
+ },
506
+ {
507
+ "name": "趣图创作",
508
+ "href": "/emotion",
509
+ "client": "all",
510
+ "status": true,
511
+ "hasMark": false,
512
+ "markcls": "ishot"
513
+ }
514
+ ]
515
+ }
516
+ ]
517
+ },
518
+ {
519
+ "name": "剑三大世界",
520
+ "icon": "",
521
+ "children": [
522
+ {
523
+ "name": "创作",
524
+ "children": [
525
+ {
526
+ "name": "通识百科",
527
+ "href": "/knowledge/",
528
+ "client": "all",
529
+ "status": true,
530
+ "hasMark": false,
531
+ "markcls": "ishot"
532
+ },
533
+ {
534
+ "name": "剑三日历",
535
+ "href": "/calendar/",
536
+ "client": "all",
537
+ "status": true,
538
+ "hasMark": false,
539
+ "markcls": "ishot"
540
+ },
541
+ {
542
+ "name": "剑三考试",
543
+ "href": "/exam",
544
+ "client": "all",
545
+ "status": true,
546
+ "hasMark": false,
547
+ "markcls": "ishot"
548
+ },
549
+ {
550
+ "name": "剑三铭牌",
551
+ "href": "/namespace",
552
+ "client": "all",
553
+ "status": true,
554
+ "hasMark": false,
555
+ "markcls": "ishot"
556
+ }
557
+ ]
558
+ }
559
+ ]
560
+ },
561
+ {
562
+ "name": "专题与活动",
563
+ "icon": "",
564
+ "children": [
565
+ {
566
+ "name": "活动",
567
+ "children": [
568
+ {
569
+ "name": "秘境百强榜",
570
+ "href": "/rank/",
571
+ "client": "all",
572
+ "status": true,
573
+ "hasMark": false,
574
+ "markcls": "ishot"
575
+ }
576
+ ]
577
+ },
578
+ {
579
+ "name": "专题",
580
+ "children": [
581
+ {
582
+ "name": "剑三资料片",
583
+ "href": "/topic/",
584
+ "client": "all",
585
+ "status": true,
586
+ "hasMark": false,
587
+ "markcls": "ishot"
588
+ },
589
+ {
590
+ "name": "剑三欢迎你",
591
+ "href": "/topic/welcome",
592
+ "client": "all",
593
+ "status": false,
594
+ "hasMark": false,
595
+ "markcls": "ishot"
596
+ },
597
+ {
598
+ "name": "剑与侠道",
599
+ "href": "/topic/jianyuxiadao",
600
+ "client": "all",
601
+ "status": true,
602
+ "hasMark": false,
603
+ "markcls": "ishot"
604
+ }
605
+ ]
606
+ }
607
+ ]
608
+ },
609
+ {
610
+ "name": "用户",
611
+ "icon": "",
612
+ "children": [
613
+ {
614
+ "name": "账号",
615
+ "children": [
616
+ {
617
+ "name": "注册/登录账号",
618
+ "href": "/account/",
619
+ "client": "std",
620
+ "status": true,
621
+ "hasMark": false,
622
+ "markcls": "ishot"
623
+ },
624
+ {
625
+ "name": "资料设置",
626
+ "href": "/dashboard/profile",
627
+ "client": "all",
628
+ "status": true,
629
+ "hasMark": false,
630
+ "markcls": "ishot"
631
+ },
632
+ {
633
+ "name": "亲友/黑名单",
634
+ "href": "/dashboard/privacy",
635
+ "client": "all",
636
+ "status": true,
637
+ "hasMark": true,
638
+ "markcls": "ishot"
639
+ },
640
+ {
641
+ "name": "反馈中心",
642
+ "href": "/dashboard/feedback",
643
+ "client": "all",
644
+ "status": true,
645
+ "hasMark": false,
646
+ "markcls": "ishot"
647
+ },
648
+ {
649
+ "name": "申请签约",
650
+ "href": "/dashboard/cooperation",
651
+ "client": "all",
652
+ "status": true,
653
+ "hasMark": false,
654
+ "markcls": "ishot"
655
+ },
656
+ {
657
+ "name": "注销账号",
658
+ "href": "/dashboard/feedback/erase",
659
+ "client": "all",
660
+ "status": true,
661
+ "hasMark": false,
662
+ "markcls": "ishot"
663
+ }
664
+ ]
665
+ },
666
+ {
667
+ "name": "资产",
668
+ "children": [
669
+ {
670
+ "name": "盒币兑换",
671
+ "href": "/dashboard/boxcoin",
672
+ "client": "std",
673
+ "status": true,
674
+ "hasMark": false,
675
+ "markcls": "ishot"
676
+ },
677
+ {
678
+ "name": "金箔提现",
679
+ "href": "/dashboard/cny",
680
+ "client": "all",
681
+ "status": true,
682
+ "hasMark": false,
683
+ "markcls": "ishot"
684
+ },
685
+ {
686
+ "name": "银铛兑换",
687
+ "href": "/dashboard/points",
688
+ "client": "all",
689
+ "status": true,
690
+ "hasMark": false,
691
+ "markcls": "ishot"
692
+ },
693
+ {
694
+ "name": "卡密/激活码",
695
+ "href": "/dashboard/card",
696
+ "client": "all",
697
+ "status": true,
698
+ "hasMark": false,
699
+ "markcls": "ishot"
700
+ }
701
+ ]
702
+ },
703
+ {
704
+ "name": "增值服务",
705
+ "children": [
706
+ {
707
+ "name": "付费版账号",
708
+ "href": "/vip/premium/?from=header_box",
709
+ "client": "std",
710
+ "status": true,
711
+ "hasMark": false,
712
+ "markcls": "ishot"
713
+ },
714
+ {
715
+ "name": "积分商城",
716
+ "href": "/vip/mall/",
717
+ "client": "all",
718
+ "status": true,
719
+ "hasMark": false,
720
+ "markcls": "ishot"
721
+ }
722
+ ]
723
+ }
724
+ ]
725
+ }
726
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-common-ui",
3
- "version": "6.4.6",
3
+ "version": "6.4.7",
4
4
  "description": "JX3BOX UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/Box2.vue ADDED
@@ -0,0 +1,122 @@
1
+ <template>
2
+ <div class="c-jx3box" :class="{ on: status, isOverlay: overlayEnable && isOverlay }">
3
+ <!-- search -->
4
+ <header-search @click.native.stop />
5
+
6
+ <!-- list -->
7
+ <div class="u-list">
8
+ <div class="u-list__item" v-for="(value, index) in data" :key="index">
9
+ <div class="u-group">
10
+ <!-- <img class="u-group-icon" :src="value.icon" alt=""> -->
11
+ <span class="u-group-name">{{ value.name }}</span>
12
+ </div>
13
+
14
+ <div class="u-content">
15
+ <div class="u-content__item" v-for="(item, i) in value.children" :key="i">
16
+ <template v-if="item.children">
17
+ <div class="u-subtitle">{{ item.name }}</div>
18
+ <a
19
+ v-for="child in item.children"
20
+ :key="child.name"
21
+ class="u-link"
22
+ :href="child.href"
23
+ :target="getTarget(child.href)"
24
+ >
25
+ <span class="u-txt">{{ child.name }}</span>
26
+ </a>
27
+ <!-- :class="{ 'not-client': !matchedClient(child.client) }" -->
28
+ </template>
29
+ <!-- :class="{ 'not-client': !matchedClient(item.client) }" -->
30
+ <a v-else class="u-link" :href="item.href" :target="getTarget(item.href)">
31
+ <span class="u-txt">{{ item.name }}</span>
32
+ </a>
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ <span class="u-close" @click="closeBox($event)">
38
+ <i class="el-icon-upload2"></i>
39
+ <span>收起</span>
40
+ </span>
41
+ </div>
42
+ </template>
43
+
44
+ <script>
45
+ import search from "./header/search.vue";
46
+ import _ from "lodash";
47
+ import Bus from "../service/bus";
48
+ import { __imgPath } from "@jx3box/jx3box-common/data/jx3box.json";
49
+ import box from "../assets/data/box2.json";
50
+ import { getMenu } from "../service/header.js";
51
+ export default {
52
+ name: "Box",
53
+ props: ["overlayEnable"],
54
+ data: function () {
55
+ return {
56
+ status: false,
57
+ isOverlay: false,
58
+ data: box,
59
+ client: location.href.includes("origin") ? "origin" : "std",
60
+ };
61
+ },
62
+ computed: {
63
+ list: function () {
64
+ return this.data.filter((item, i) => {
65
+ return item.status && (item.client == this.client || item.client == "all");
66
+ });
67
+ },
68
+ },
69
+ methods: {
70
+ closeBox: function () {
71
+ Bus.$emit("toggleBox", false);
72
+ },
73
+ matchedClient: function (client) {
74
+ return client == "all" ? true : client == this.client;
75
+ },
76
+ getBoxIcon: function (val) {
77
+ return __imgPath + "image/box/" + val;
78
+ },
79
+ getTarget: function (val) {
80
+ if (window.innerWidth < 768 || val?.startsWith("/")) {
81
+ return "_self";
82
+ } else {
83
+ return "_blank";
84
+ }
85
+ },
86
+ },
87
+ created: function () {
88
+ if (this.overlayEnable) {
89
+ const vm = this;
90
+ window.addEventListener(
91
+ "scroll",
92
+ _.throttle(() => {
93
+ vm.isOverlay = window.scrollY > 200 ? true : false;
94
+ }, 200)
95
+ );
96
+ }
97
+ },
98
+ mounted: function () {
99
+ Bus.$on("toggleBox", (status) => {
100
+ if (status == undefined) {
101
+ this.status = !this.status;
102
+ } else {
103
+ this.status = status;
104
+ }
105
+ });
106
+ document.addEventListener("click", function () {
107
+ Bus.$emit("toggleBox", false);
108
+ });
109
+ },
110
+ components: {
111
+ "header-search": search,
112
+ },
113
+ };
114
+ </script>
115
+
116
+ <style lang="less">
117
+ @import "../assets/css/box2.less";
118
+ </style>
119
+
120
+ <style scoped lang="less">
121
+
122
+ </style>
package/src/Header.vue CHANGED
@@ -37,7 +37,7 @@ import clientSwitch from "./header/clientSwitch.vue";
37
37
  import search from "./header/search.vue";
38
38
  import nav from "./header/nav.vue";
39
39
  import user from "./header/user.vue";
40
- import Box from "../src/Box.vue";
40
+ import Box from "../src/Box2.vue";
41
41
 
42
42
  export default {
43
43
  name: "Header",
@@ -93,4 +93,4 @@ export default {
93
93
 
94
94
  <style lang="less">
95
95
  @import "../assets/css/header.less";
96
- </style>
96
+ </style>
@@ -56,7 +56,7 @@
56
56
  </li>
57
57
  <hr />
58
58
  <template v-for="(item, i) in panel">
59
- <li :key="'panel-' + i" v-if="isAdmin || !item.onlyAdmin">
59
+ <li :key="'panel-' + i" v-if="isEditor || !item.onlyAdmin">
60
60
  <a :href="item.link">{{ item.label }}</a>
61
61
  </li>
62
62
  </template>
@@ -65,7 +65,7 @@ export default {
65
65
  };
66
66
  </script>
67
67
 
68
- <style lang="less" scoped>
68
+ <style lang="less">
69
69
  .right-affix {
70
70
  position: fixed;
71
71
  display: flex;
@@ -76,7 +76,7 @@ export default {
76
76
  top: @header-height + @bread-height + 100px;
77
77
  background-color: #fafbfc;
78
78
  padding: 8px 5px;
79
- z-index: 99999;
79
+ z-index: 200;
80
80
  border-top-left-radius: 6px;
81
81
  border-bottom-left-radius: 6px;
82
82
  .item {