tyy-game-assiss 2.3.2

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/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # vue3_template
2
+
3
+ This template should help get you started developing with Vue 3 in Vite.
4
+
5
+ ## Recommended IDE Setup
6
+
7
+ [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
8
+
9
+ ## Customize configuration
10
+
11
+ See [Vite Configuration Reference](https://vitejs.dev/config/).
12
+
13
+ ## Project Setup
14
+
15
+ ```sh
16
+ npm install
17
+ ```
18
+
19
+ ### Compile and Hot-Reload for Development
20
+
21
+ ```sh
22
+ npm run dev
23
+ ```
24
+
25
+ ### Compile and Minify for Production
26
+
27
+ ```sh
28
+ npm run build
29
+ ```
30
+
31
+ ### Lint with [ESLint](https://eslint.org/)
32
+
33
+ ```sh
34
+ npm run lint
35
+ ```
36
+ 依照以下步骤进行项目运行和项目打包
37
+
38
+ 安装依赖 npm install
39
+ 运行本地 npm dev
40
+
41
+ 发布步骤
42
+ 1.npm run build:stage
43
+ 2.cd dist
44
+ 3.npm init -y
45
+ 4.复制vue3txt 内容覆盖 dist中的 package.json
46
+ 5.npm ligon登录账号
47
+ 6.npm publish
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-cd9664a4]{background:rgba(255,255,255,.1);border-radius:8px}.computer_left[data-v-cd9664a4]{position:fixed;top:210px;right:130px;padding-bottom:100px;background:rgba(0,0,0,.88);border-radius:8px;z-index:9998}.ys-float-btn[data-v-cd9664a4]{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-cd9664a4]{position:fixed;bottom:0;left:0;right:0;width:100%;background:rgba(0,0,0,.88);z-index:9998}.setupactive[data-v-cd9664a4]{background:rgba(255,40,80,.1)!important;border:1px solid rgba(255,40,80,.5)}.setup_con[data-v-cd9664a4]{margin-left:12px;margin-right:12px;padding-top:14px;display:flex;flex-wrap:wrap}.horiz_setup_con[data-v-cd9664a4]{display:flex;flex-wrap:wrap}.setup_item[data-v-cd9664a4]{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-cd9664a4]{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-cd9664a4]{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-cd9664a4],.horiz_item img[data-v-cd9664a4]{width:20px;height:20px;padding-top:8px;margin-bottom:2px}.ipad_item img[data-v-cd9664a4]{width:32px;height:32px;padding-top:15px;margin-bottom:8px}.setup_text[data-v-cd9664a4]{font-size:14px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fff}.info[data-v-cd9664a4]{margin:19px 29px 50px 12px;display:flex;justify-content:space-between;align-items:center}.horiz_cont_info[data-v-cd9664a4]{display:flex;justify-content:space-between;align-items:center}.info_left[data-v-cd9664a4]{display:flex;align-items:center;position:relative}.member[data-v-cd9664a4]{width:16px;position:absolute;bottom:0;left:20px}.info_right[data-v-cd9664a4]{display:flex;align-items:center}.info_left_img[data-v-cd9664a4]{width:36px;height:36px;border-radius:100px}.info_left_cont[data-v-cd9664a4]{margin-left:3px}.info_left_cont1[data-v-cd9664a4]{font-size:14px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fff}.info_left_cont2[data-v-cd9664a4]{display:flex;align-items:center;margin-top:4px}.info_left_cont2_1[data-v-cd9664a4]{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-cd9664a4]{width:12px;height:12px}.info_left_cont2_text[data-v-cd9664a4]{font-size:12px;font-family:PingFang SC,PingFang SC;font-weight:500;color:#fff;margin-left:7px}.info_right img[data-v-cd9664a4]{width:18px;height:18px}.info_right_exit[data-v-cd9664a4]{font-size:14px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fff;margin-left:6px}.content[data-v-cd9664a4]{padding-bottom:1px;width:100%;background:rgba(0,0,0,.8)}.content_top[data-v-cd9664a4]{padding-top:25px;margin-left:35%;margin-right:35%;display:flex;justify-content:center}.content_tab[data-v-cd9664a4]{font-size:18px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fffc;cursor:pointer}.tabactive[data-v-cd9664a4]{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-cd9664a4]{margin-left:12px;margin-top:20px}.horiz_m[data-v-cd9664a4]{margin-left:25px;margin-top:20px}.content_mtitle[data-v-cd9664a4]{display:flex;align-items:center}.content_mtitle1[data-v-cd9664a4]{font-size:16px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fffc}.content_mtitle2[data-v-cd9664a4]{font-size:12px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fffc}.content_m_n[data-v-cd9664a4]{display:flex;margin-top:15px;margin-bottom:15px}.content_m_item[data-v-cd9664a4]{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-cd9664a4]{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-cd9664a4]{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-cd9664a4]{white-space:nowrap;margin:0 5px;font-size:14px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fffc}.content_iactive[data-v-cd9664a4]{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-cd9664a4]{border:1px solid #ff4668}.content_sxy[data-v-cd9664a4]{width:7px;height:7px;background:#ff4668;border-radius:7px}.content_wactive[data-v-cd9664a4]{color:#ff4668}.horiz[data-v-cd9664a4]{display:flex;position:fixed;left:0;top:0;bottom:0;background:rgba(0,0,0,.88);z-index:9998}.horiz_cont[data-v-cd9664a4]{margin-left:27px;padding-top:26px;margin-right:27px}.ipad_cont[data-v-cd9664a4]{width:420px;margin-left:20px;padding-top:60px;margin-right:20px}.horiz_set[data-v-cd9664a4]{background:rgba(255,255,255,.08);border-radius:0}.computer_header[data-v-cd9664a4]{position:fixed;top:30px;right:15px;cursor:pointer;z-index:9998}.computer_content[data-v-cd9664a4]{position:fixed;top:100px;right:15px;background:rgba(0,0,0,.88);border-radius:8px}.computer_c_header[data-v-cd9664a4]{padding-top:10px;margin-left:auto;margin-right:auto;width:54px;height:54px;position:relative}.computer_c_one[data-v-cd9664a4]{width:54px;height:54px;border-radius:100px}.computer_c_two[data-v-cd9664a4]{position:absolute;bottom:0;right:0;width:20px;height:20px}.computer_c_Vector[data-v-cd9664a4]{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-cd9664a4]{width:13px;height:13px}.computer_c_time[data-v-cd9664a4]{font-size:10px;font-family:PingFang SC,PingFang SC;font-weight:500;color:#fff;margin-left:4px}.Vector_right[data-v-cd9664a4]{margin-left:6px;width:3px!important;height:6px!important}.computer_c_border[data-v-cd9664a4]{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-cd9664a4]{height:385px;overflow-y:scroll}.computer_c_data[data-v-cd9664a4]::-webkit-scrollbar{display:none}.computer_c_item[data-v-cd9664a4]{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-cd9664a4]{text-align:center;height:58px;line-height:58px}.computer_c_footer img[data-v-cd9664a4]{width:12px}.computer_c_item_text[data-v-cd9664a4]{margin-top:5px;font-size:14px;font-family:PingFang SC,PingFang SC;font-weight:400;color:#fff}.computer_c_item img[data-v-cd9664a4]{width:20px;height:20px;padding-top:8px}.img_one[data-v-cd9664a4]{width:66px;height:54px}.img_two[data-v-cd9664a4]{position:absolute;right:3px;top:3px;width:48px;height:48px;border-radius:100px}.header_one[data-v-cd9664a4]{position:relative}.mask[data-v-cd9664a4]{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.8);z-index:9999}.mask_img[data-v-cd9664a4]{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-cd9664a4]{width:100%}.close[data-v-cd9664a4]{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-cd9664a4] .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-cd9664a4] .el-dialog__body{padding:0!important}[data-v-cd9664a4] .el-dialog__headerbtn{top:-30px;right:-70px}[data-v-cd9664a4] .modalStyle{background:rgba(0,0,0,.8)!important}[data-v-cd9664a4] .el-dialog__headerbtn .el-dialog__close{color:#fff;background:#ccc;border-radius:50%;width:1.5em;height:1.5em}[data-v-cd9664a4] .el-dialog__header{padding:0}