tyy-game-assiss 2.3.3 → 2.3.5
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/dist/favicon.ico +0 -0
- package/dist/rem.js +54 -0
- package/dist/style.css +1 -0
- package/dist/tyy-game-assis.js +4586 -0
- package/dist/tyy-game-assis.umd.cjs +9 -0
- package/package.json +53 -53
- package/dist/package.json +0 -13
package/dist/favicon.ico
ADDED
|
Binary file
|
package/dist/rem.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//designWidth:设计稿的实际宽度值,需要根据实际设置
|
|
2
|
+
//maxWidth:制作稿的最大宽度值,需要根据实际设置
|
|
3
|
+
//这段js的最后面有两个参数记得要设置,一个为设计稿实际宽度,一个为制作稿最大宽度,例如设计稿为750,最大宽度为750,则为(750,750)
|
|
4
|
+
;(function(designWidth, maxWidth) {
|
|
5
|
+
var doc = document,
|
|
6
|
+
win = window,
|
|
7
|
+
docEl = doc.documentElement,
|
|
8
|
+
remStyle = document.createElement("style"),
|
|
9
|
+
tid;
|
|
10
|
+
// let html = document.documentElement;
|
|
11
|
+
// let wW = html.clientWidth;
|
|
12
|
+
// alert(wW)
|
|
13
|
+
function refreshRem() {
|
|
14
|
+
var width = docEl.getBoundingClientRect().width;
|
|
15
|
+
// if (width < 1280) {
|
|
16
|
+
// width = 1280
|
|
17
|
+
// }
|
|
18
|
+
maxWidth = maxWidth || 540;
|
|
19
|
+
width>maxWidth && (width=maxWidth);
|
|
20
|
+
var rem = width * 100 / designWidth;
|
|
21
|
+
remStyle.innerHTML = 'html{font-size:' + rem + 'px;}';
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
if (docEl.firstElementChild) {
|
|
25
|
+
docEl.firstElementChild.appendChild(remStyle);
|
|
26
|
+
} else {
|
|
27
|
+
var wrap = doc.createElement("div");
|
|
28
|
+
wrap.appendChild(remStyle);
|
|
29
|
+
doc.write(wrap.innerHTML);
|
|
30
|
+
wrap = null;
|
|
31
|
+
}
|
|
32
|
+
//要等 wiewport 设置好后才能执行 refreshRem,不然 refreshRem 会执行2次;
|
|
33
|
+
refreshRem();
|
|
34
|
+
|
|
35
|
+
win.addEventListener("resize", function() {
|
|
36
|
+
clearTimeout(tid); //防止执行两次
|
|
37
|
+
tid = setTimeout(refreshRem, 300);
|
|
38
|
+
}, false);
|
|
39
|
+
|
|
40
|
+
win.addEventListener("pageshow", function(e) {
|
|
41
|
+
if (e.persisted) { // 浏览器后退的时候重新计算
|
|
42
|
+
clearTimeout(tid);
|
|
43
|
+
tid = setTimeout(refreshRem, 300);
|
|
44
|
+
}
|
|
45
|
+
}, false);
|
|
46
|
+
|
|
47
|
+
if (doc.readyState === "complete") {
|
|
48
|
+
doc.body.style.fontSize = "16px";
|
|
49
|
+
} else {
|
|
50
|
+
doc.addEventListener("DOMContentLoaded", function() {
|
|
51
|
+
doc.body.style.fontSize = "16px";
|
|
52
|
+
}, false);
|
|
53
|
+
}
|
|
54
|
+
})(1920, 3840);
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
html,body{width:100%;height:100%}body{-webkit-tap-highlight-color:rgba(0,0,0,0)}*{-webkit-overflow-scrolling:touch}.comactive[data-v-a44fc1c0]{background:rgba(255,255,255,.1);border-radius:8px}.computer_left[data-v-a44fc1c0]{position:fixed;top:210px;right:130px;padding-bottom:100px;background:rgba(0,0,0,.88);border-radius:8px;z-index:9998}.computer_ai_iframe[data-v-a44fc1c0]{border-radius:18px}.computer_ai[data-v-a44fc1c0]{position:absolute;top:140px;right:110px;width:8rem;height:550px;background:rgba(0,0,0,.8);border-radius:18px;z-index:9998}.ys-float-btn[data-v-a44fc1c0]{position:fixed;background:rgb(56,181,77);box-shadow:0 2px 10px #0000001a;border-radius:50%;color:#666;z-index:9998;transition:all .3s;flex-direction:column}.setup[data-v-a44fc1c0]{position:fixed;bottom:0;left:0;right:0;width:100%;background:rgba(0,0,0,.88);z-index:9998}.setupactive[data-v-a44fc1c0]{background:rgba(255,40,80,.1)!important;border:1px solid rgba(255,40,80,.5)}.setup_con[data-v-a44fc1c0]{margin-left:12px;margin-right:12px;padding-top:14px;display:flex;flex-wrap:wrap}.horiz_setup_con[data-v-a44fc1c0]{display:flex;flex-wrap:wrap}.setup_item[data-v-a44fc1c0]{width:23.5%;height:60px;margin-bottom:10px;background:rgba(255,255,255,.1);border-radius:8px;text-align:center;cursor:pointer;margin-right:3px}.horiz_item[data-v-a44fc1c0]{width:45%;height:60px;margin-bottom:10px;background:rgba(255,255,255,.1);border-radius:8px;text-align:center;margin-right:9px}.ipad_item[data-v-a44fc1c0]{width:45%;height:85px;background:rgba(255,255,255,.1);border-radius:8px;text-align:center;margin-right:4%;margin-bottom:23px}.setup_item img[data-v-a44fc1c0],.horiz_item img[data-v-a44fc1c0]{width:20px;height:20px;padding-top:8px;margin-bottom:2px}.ipad_item img[data-v-a44fc1c0]{width:32px;height:32px;padding-top:15px;margin-bottom:8px}.setup_text[data-v-a44fc1c0]{font-size:14px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fff}.info[data-v-a44fc1c0]{margin:19px 29px 50px 12px;display:flex;justify-content:space-between;align-items:center}.horiz_cont_info[data-v-a44fc1c0]{display:flex;justify-content:space-between;align-items:center}.info_left[data-v-a44fc1c0]{display:flex;align-items:center;position:relative}.member[data-v-a44fc1c0]{width:16px;position:absolute;bottom:0;left:20px}.info_right[data-v-a44fc1c0]{display:flex;align-items:center}.info_left_img[data-v-a44fc1c0]{width:36px;height:36px;border-radius:100px}.info_left_cont[data-v-a44fc1c0]{margin-left:3px}.info_left_cont1[data-v-a44fc1c0]{font-size:14px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fff}.info_left_cont2[data-v-a44fc1c0]{display:flex;align-items:center;margin-top:4px}.info_left_cont2_1[data-v-a44fc1c0]{display:flex;align-items:center;height:20px;padding-left:5px;padding-right:5px;background:rgba(255,255,255,.19);border-radius:19px}.info_left_cont2 img[data-v-a44fc1c0]{width:12px;height:12px}.info_left_cont2_text[data-v-a44fc1c0]{font-size:12px;font-family:PingFang SC,PingFang SC;font-weight:500;color:#fff;margin-left:7px}.info_right img[data-v-a44fc1c0]{width:18px;height:18px}.info_right_exit[data-v-a44fc1c0]{font-size:14px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fff;margin-left:6px}.content[data-v-a44fc1c0]{padding-bottom:1px;width:100%;background:rgba(0,0,0,.8)}.content_top[data-v-a44fc1c0]{padding-top:25px;margin-left:35%;margin-right:35%;display:flex;justify-content:center}.content_tab[data-v-a44fc1c0]{font-size:18px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fffc;cursor:pointer}.tabactive[data-v-a44fc1c0]{font-size:18px;font-family:PingFang SC,PingFang SC;font-weight:500;color:#ff2850;padding-bottom:3px;border-bottom:2px solid #ff2850}.content_m[data-v-a44fc1c0]{margin-left:12px;margin-top:20px}.horiz_m[data-v-a44fc1c0]{margin-left:25px;margin-top:20px}.content_mtitle[data-v-a44fc1c0]{display:flex;align-items:center}.content_mtitle1[data-v-a44fc1c0]{font-size:16px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fffc}.content_mtitle2[data-v-a44fc1c0]{font-size:12px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fffc}.content_m_n[data-v-a44fc1c0]{display:flex;margin-top:15px;margin-bottom:15px}.content_m_item[data-v-a44fc1c0]{padding-left:10px;width:96px;height:40px;display:flex;align-items:center;border-radius:8px;border:1px solid rgba(255,255,255,.1);margin-right:16px;position:relative;cursor:pointer}.zxhy[data-v-a44fc1c0]{position:absolute;top:-8px;right:-4px;width:50px;height:14px;line-height:14px;background:#ffcb45;border-radius:4px;font-size:8px;font-family:PingFang SC,PingFang SC;font-weight:500;color:#7d4500;text-align:center}.content_m_y[data-v-a44fc1c0]{width:14px;height:14px;border-radius:7px;border:1px solid rgba(255,255,255,.8);display:flex;justify-content:center;align-items:center}.content_m_w[data-v-a44fc1c0]{white-space:nowrap;margin:0 5px;font-size:14px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fffc}.content_iactive[data-v-a44fc1c0]{width:96px;height:40px;background:rgba(255,39,104,.1);border-radius:8px;border:1px solid rgba(255,39,104,.5)}.content_yactive[data-v-a44fc1c0]{border:1px solid #ff4668}.content_sxy[data-v-a44fc1c0]{width:7px;height:7px;background:#ff4668;border-radius:7px}.content_wactive[data-v-a44fc1c0]{color:#ff4668}.horiz[data-v-a44fc1c0]{display:flex;position:fixed;left:0;top:0;bottom:0;background:rgba(0,0,0,.88);z-index:9998}.horiz_cont[data-v-a44fc1c0]{margin-left:27px;padding-top:26px;margin-right:27px}.ipad_cont[data-v-a44fc1c0]{width:420px;margin-left:20px;padding-top:60px;margin-right:20px}.horiz_set[data-v-a44fc1c0]{background:rgba(255,255,255,.08);border-radius:0}.computer_header[data-v-a44fc1c0]{position:fixed;top:30px;right:15px;cursor:pointer;z-index:9998}.computer_content[data-v-a44fc1c0]{position:fixed;top:100px;right:15px;background:rgba(0,0,0,.88);border-radius:8px}.computer_c_header[data-v-a44fc1c0]{padding-top:10px;margin-left:auto;margin-right:auto;width:54px;height:54px;position:relative}.computer_c_one[data-v-a44fc1c0]{width:54px;height:54px;border-radius:100px}.computer_c_two[data-v-a44fc1c0]{position:absolute;bottom:0;right:0;width:20px;height:20px}.computer_c_Vector[data-v-a44fc1c0]{display:flex;align-items:center;margin-top:12px;margin-left:6px;margin-right:6px;height:20px;border-radius:19px;padding-left:5px;padding-right:5px}.computer_c_Vector img[data-v-a44fc1c0]{width:13px;height:13px}.computer_c_time[data-v-a44fc1c0]{font-size:10px;font-family:PingFang SC,PingFang SC;font-weight:500;color:#fff;margin-left:4px}.Vector_right[data-v-a44fc1c0]{margin-left:6px;width:3px!important;height:6px!important}.computer_c_border[data-v-a44fc1c0]{margin-top:17px;width:65px;height:0px;margin-left:auto;margin-right:auto;border-radius:0;opacity:1;border:1px solid rgba(255,255,255,.16)}.computer_c_data[data-v-a44fc1c0]{height:385px;overflow-y:scroll}.computer_c_data[data-v-a44fc1c0]::-webkit-scrollbar{display:none}.computer_c_item[data-v-a44fc1c0]{margin-top:20px;width:80px;height:60px;margin-left:auto;margin-right:auto;border-radius:8px;text-align:center;cursor:pointer}.computer_c_footer[data-v-a44fc1c0]{text-align:center;height:58px;line-height:58px}.computer_c_footer img[data-v-a44fc1c0]{width:12px}.computer_c_item_text[data-v-a44fc1c0]{margin-top:5px;font-size:14px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fff}.computer_c_item img[data-v-a44fc1c0]{width:20px;height:20px;padding-top:8px}.img_one[data-v-a44fc1c0]{width:66px;height:54px}.img_two[data-v-a44fc1c0]{position:absolute;right:3px;top:3px;width:48px;height:48px;border-radius:100px}.header_one[data-v-a44fc1c0]{position:relative}.mask[data-v-a44fc1c0]{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.8);z-index:9999}.mask_img[data-v-a44fc1c0]{width:80%;display:flex!important;flex-direction:column!important;margin:0!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:9999}.mask_img img[data-v-a44fc1c0]{width:100%}.close[data-v-a44fc1c0]{position:absolute;top:0;right:20px;color:#fff;font-size:18px;width:18px;height:18px;line-height:18px;text-align:center;background:#ccc;border-radius:50%;cursor:pointer}[data-v-a44fc1c0] .el-dialog--center{width:500px;height:300px;background:transparent;box-shadow:none;display:flex!important;flex-direction:column!important;margin:0!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important}[data-v-a44fc1c0] .el-dialog__body{padding:0!important}[data-v-a44fc1c0] .el-dialog__headerbtn{top:-30px;right:-70px}[data-v-a44fc1c0] .modalStyle{background:rgba(0,0,0,.8)!important}[data-v-a44fc1c0] .el-dialog__headerbtn .el-dialog__close{color:#fff;background:#ccc;border-radius:50%;width:1.5em;height:1.5em}[data-v-a44fc1c0] .el-dialog__header{padding:0}
|