ソースを参照

页面样式大小更改

lvmax 2 ヶ月 前
コミット
aa87c64088

+ 9 - 2
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "exam_student",
-    "appid" : "",
+    "appid" : "__UNI__E57431D",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",
@@ -71,6 +71,13 @@
     "vueVersion" : "3",
     "h5" : {
         "title" : "",
-        "template" : ""
+        "template" : "",
+        "router" : {
+            "base" : "/",
+            "mode" : "history"
+        },
+        "devServer" : {
+            "https" : false
+        }
     }
 }

+ 16 - 16
pages/examPage/examStart.vue

@@ -17,39 +17,39 @@
 		<uni-col :span="4" style="margin-top: 30px">
 			<uni-card style="height: 85vh;">
 				<l-divider color="#00a60d">
-					<view style="font-size: 20px;">考生信息</view>
+					<view style="font-size: 2vmin;">考生信息</view>
 				</l-divider>
 				<view
-					style="font-family: '微软雅黑' , serif;font-size: 20px;color: #8c8c8c;height: 30px;text-align: center;padding:5px;">
+					style="font-family: '微软雅黑' , serif;font-size: 2vmin;color: #8c8c8c;height: 30px;text-align: center;padding:1%;">
 					姓名:{{user.realname}}
 				</view>
 				<view
-					style="font-family: '微软雅黑', serif;font-size: 20px;color: #8c8c8c;height: 30px;text-align: center;padding:5px;">
+					style="font-family: '微软雅黑', serif;font-size: 2vmin;color: #8c8c8c;height: 30px;text-align: center;padding:1%;">
 					考号:{{user.username}}
 				</view>
 				<l-divider color="#00a60d">
-					<view style="font-size: 20px;">试卷名称</view>
+					<view style="font-size: 2vmin;">试卷名称</view>
 				</l-divider>
 				<radio-group>
 					<label v-for="(item, index) in examObject.examPapersList" :key="item.value">
 						<view>
 							<view class="paperCss"
 								:style="'background-color: '+(item.state === 0?'#b5aa09;':(item.state === 9?'#ececec':'#00f545'))">
-								<view style="color: #000000;"> <strong>{{item.title}}</strong></view>
+								<view style="color: #000000;"> <strong style="font-size: 2vmin;">{{item.title}}</strong></view>
 							</view>
 						</view>
 					</label>
 				</radio-group>
 				<l-divider color="#b3b3b3">
 				</l-divider>
-				<button type="primary" style="margin-top: 10px;" @click="subExam">交卷</button>
+				<button type="primary" style="margin-top: 10px;font-size: 2vmin;" @click="subExam">交卷</button>
 				
 			</uni-card>
 
 		</uni-col>
 		<uni-col :span="16" style="margin-top: 30px">
 			<uni-card style="height: 85vh;">
-				<scroll-view scroll-y="true" class="scroll-Y">
+				<scroll-view scroll-y="true" scroll-x="true" class="scroll-Y">
 					<uni-section :title="scantron.questionIndex+'、'+scantron.questionTypeName" type="line" padding>
 						<view v-if="scantron.questionType!==7&&scantron.questionType!==8" id="scantronNodes"
 							style="height: 45vh;">
@@ -306,23 +306,23 @@
 		<uni-col :span="4" style="margin-top: 30px">
 			<uni-card style="height: 85vh;">
 
-				<l-divider color="#8f960c" style="margin-top: 20px;">
-					<view style="font-size: 20px;">当前试卷时间</view>
+				<l-divider color="#8f960c" style="margin-top: 2%;">
+					<view style="font-size: 1vw;">当前试卷时间</view>
 				</l-divider>
 				<view
-					style="font-family: '微软雅黑', serif;font-size: 20px;color: #f90005;height: 30px;text-align: center;padding:10px;font-size: 35px;">
-					<strong>{{paperTime}}</strong>
+					style="font-family: '微软雅黑', serif;color: #f90005;height: 4vh;text-align: center;padding:2%;">
+					<strong style="font-size: 3vmin;">{{paperTime}}</strong>
 				</view>
 				<!-- 	<l-divider color="#8f960c">
-					<view style="font-size: 20px;">考试时间</view>
+					<view style="font-size: 2vmin;">考试时间</view>
 				</l-divider>
 				<view
-					style="font-family: '微软雅黑', serif;font-size: 15px;color: #00aaf9;height: 30px;text-align: center;padding:10px;">
+					style="font-family: '微软雅黑', serif;font-size: 2vmin;color: #00aaf9;height: 30px;text-align: center;padding:10px;">
 					剩余:{{examTime}}
 				</view> -->
 
 				<l-divider color="#251e75">
-					<view style="font-size: 20px;">答题卡</view>
+					<view style="font-size: 2vmin;">答题卡</view>
 				</l-divider>
 				<view>
 					<scroll-view scroll-y="true" style="height: 50vh;">
@@ -348,8 +348,8 @@
 				</view>
 				<l-divider color="#251e75" />
 				<view>
-					<button type="primary" style="margin-top: 10px;" @click="previousQuestion">上一题</button>
-					<button type="primary" style="margin-top: 10px;" @click="nextQuestion">下一题</button>
+					<button type="primary" style="margin-top: 10px;font-size: 2vmin;" @click="previousQuestion">上一题</button>
+					<button type="primary" style="margin-top: 10px;font-size: 2vmin;" @click="nextQuestion">下一题</button>
 
 				</view>
 

+ 1 - 0
unpackage/dist/build/web/assets/Login-PU6igzwJ.css

@@ -0,0 +1 @@
+.uni-link[data-v-44511933]{cursor:pointer}.uni-link--withline[data-v-44511933]{text-decoration:underline}.uni-input[data-v-12df78bb]{padding-left:20px;border:.03125rem solid #EEEEEE;height:50px;box-shadow:2px 2px 5px #aaa;margin:auto;margin-top:25vh;color:#000;width:380px;display:flex;justify-content:center;align-items:center}.content[data-v-12df78bb]{display:flex;flex-direction:column;align-items:center;justify-content:center}.logo[data-v-12df78bb]{height:6.25rem;width:6.25rem;margin-top:6.25rem;margin-left:auto;margin-right:auto;margin-bottom:1.5625rem}.text-area[data-v-12df78bb]{display:flex;justify-content:center}.title[data-v-12df78bb]{font-family:微软雅黑,serif;font-size:40px;color:#000;width:600px;text-align:center;margin:0 auto}

ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/build/web/assets/examInfo-DCxw8FFN.css


ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/build/web/assets/examRoute-BM-KnUci.css


ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/build/web/assets/examRoute.DIMAbiJV.js


+ 1 - 0
unpackage/dist/build/web/assets/examStart-Q3P-obnv.css

@@ -0,0 +1 @@
+.svg-container[data-v-3abbd97f]{width:100%;height:100%;overflow:hidden;position:runiative}svg[data-v-3abbd97f]{display:block;width:100%;height:100%}.scroll-Y[data-v-3abbd97f]{height:80vh}.allceter[data-v-3abbd97f]{display:flex;align-items:center;height:50px}.scroll-view_H[data-v-3abbd97f]{white-space:nowrap;width:100%}.scroll-view-item[data-v-3abbd97f]{height:9.375rem;line-height:9.375rem;text-align:center;font-size:1.125rem}.scroll-view-item_H[data-v-3abbd97f]{display:inline-block;width:100%;height:9.375rem;line-height:9.375rem;text-align:center;font-size:1.125rem}div[data-v-3abbd97f],*[data-v-3abbd97f]{margin:0;padding:0}a[data-v-3abbd97f]{text-decoration:none;outline:none}body a[data-v-3abbd97f]{outline:none;blr:expression(this.onFocus=this.blur())}.uni-input[data-v-3abbd97f]{padding-left:20px;border:.03125rem solid #5bb4ee;height:3rem;margin-left:10px;color:#000;width:90%;display:flex;justify-content:center;align-items:center}img[data-v-3abbd97f]{border:none}.dialog-text[data-v-3abbd97f]{font-size:14px;color:#333}.paperCss[data-v-3abbd97f]{width:85%;border-radius:5px;padding:15px;margin-top:15px;font-size:15px;text-align:left}

ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/build/web/assets/index-BgCuxJG8.css


ファイルの差分が大きいため隠しています
+ 12 - 0
unpackage/dist/build/web/assets/index-Br_46Bl3.js


ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/build/web/assets/index-C3c9U00f.css


ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/build/web/assets/index.DYvMEG5t.js


ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/build/web/assets/pages-examPage-examInfo.A7gWKcxw.js


ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/build/web/assets/pages-examPage-examStart.CFh-u_wm.js


ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/build/web/assets/pages-login-Login.B7ANGmdn.js


ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/build/web/assets/uni.3ef97f2b.css


+ 39 - 0
unpackage/dist/build/web/index.html

@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html lang="ZH_cn">
+	<head>
+		<link rel="stylesheet" href="/assets/uni.3ef97f2b.css">
+
+		<meta charset="UTF-8" />
+		<script type="text/javascript" src="js/jquery.js"></script>
+		<script>
+			var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
+				CSS.supports('top: constant(a)'))
+			document.write(
+				'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
+				(coverSupport ? ', viewport-fit=cover' : '') + '" />')
+		</script>
+		<title>exam_student</title>
+		<style>
+			img {
+				-webkit-user-drag: none;
+				-moz-user-drag: none;
+				-ms-user-drag: none;
+				user-drag: none;
+			}
+		</style>
+		<script type="module" crossorigin src="/assets/index-Br_46Bl3.js"></script>
+		<link rel="stylesheet" crossorigin href="/assets/index-BgCuxJG8.css">
+	</head>
+	<body id="body">
+		<div id="app"><!--app-html--></div>

+	</body>
+	<script>
+		
+
+
+		// 禁用整个页面的鼠标右键
+		document.addEventListener('contextmenu', function(event) {
+			event.preventDefault();
+		});
+	</script>
+</html>

ファイルの差分が大きいため隠しています
+ 0 - 0
unpackage/dist/build/web/static/bg1.svg


BIN
unpackage/dist/build/web/static/uni.ttf


+ 5 - 5
unpackage/dist/cache/.vite/deps/_metadata.json

@@ -1,19 +1,19 @@
 {
-  "hash": "d77dde2b",
-  "configHash": "8796f4ac",
+  "hash": "3d81eb1f",
+  "configHash": "d9766b87",
   "lockfileHash": "802ead94",
-  "browserHash": "5d780d34",
+  "browserHash": "ac0a6ea6",
   "optimized": {
     "js-md5": {
       "src": "../../../../../node_modules/js-md5/src/md5.js",
       "file": "js-md5.js",
-      "fileHash": "c5f67a37",
+      "fileHash": "1764926d",
       "needsInterop": true
     },
     "screenfull": {
       "src": "../../../../../node_modules/screenfull/index.js",
       "file": "screenfull.js",
-      "fileHash": "59ae7f0e",
+      "fileHash": "5aed2730",
       "needsInterop": false
     }
   },

+ 1 - 1
util/examStartUtil.js

@@ -1,2 +1,2 @@
 // 切屏监听启用禁止
-export const windowState = false;
+export const windowState = true;

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません