Browse Source

页面样式大小更改

lvmax 2 months ago
parent
commit
8faa25ed2c

+ 8 - 2
manifest.json

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

+ 73 - 64
pages/examPage/examStart.vue

@@ -1,16 +1,16 @@
 <template>
 	<uni-row>
-		<uni-col :span="5" style="margin-top: 30px">
+		<uni-col :span="5" style="margin-top: 1vh">
 			<uni-card style="height: 92vh;">
 				<l-divider color="#00a60d">
-					<view style="font-size: 20px;">题库名称</view>
+					<view style="font-size: 2vh;">题库名称</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: 2vh;color: #8c8c8c;height: 30px;text-align: center;padding:5px;">
 					{{title}}
 				</view>
 				<l-divider color="#00a60d">
-					<view style="font-size: 20px;">题型</view>
+					<view style="font-size: 2vh;">题型</view>
 				</l-divider>
 				<radio-group>
 					<label v-for="(item, index) in repositoryType" :key="item">
@@ -21,10 +21,10 @@
 								<view style="color: #000000; ">
 									<uni-row>
 										<uni-col :span="12">
-											<strong style="font-size: 20px;">{{subjectTypes[item.type-1]}}</strong>
+											<strong style="font-size: 2vh;">{{subjectTypes[item.type-1]}}</strong>
 										</uni-col>
 										<uni-col :span="12">
-											数量:{{item.num}}
+											<view style="font-size: 2vh;">数量:{{item.num}}</view>
 										</uni-col>
 									</uni-row>
 								</view>
@@ -34,12 +34,12 @@
 				</radio-group>
 				<l-divider color="#b3b3b3">
 				</l-divider>
-				<button type="primary" style="margin-top: 10px;" @click="backPage">返回</button>
+				<button type="primary" style="margin-top: 2%;width: 92%;" @click="backPage"><view style="font-size: 2vh;">返回</view></button>
 			</uni-card>
 		</uni-col>
-		<uni-col :span="15" style="margin-top: 30px">
+		<uni-col :span="15" style="margin-top: 1vh">
 			<uni-card style="height: 92vh;">
-				<scroll-view scroll-y="true" class="scroll-Y">
+				<scroll-view scroll-y="true" scroll-x="true" class="scroll-Y">
 					<uni-section :title="subjectTypes[subjectType-1]+'、'+(subjectNum+(pageNo-1)*pageSize)" type="line"
 						padding>
 						<view id="scantronNodes">
@@ -54,7 +54,7 @@
 									<label v-for="(item, index) in scantron.answerList" :key="item">
 										<view>
 											<button @click="radioAdd(item,index,scantron)"
-												:style="'margin-top: 15px;padding-left:15px;font-size: 20px;text-align: left;background-color: '+(item.right?'#f9ea0d;':'#f0eff0')"><strong
+												:style="'margin-top: 1%;padding-left:15px;font-size: 20px;text-align: left;background-color: '+(item.right?'#f9ea0d;':'#f0eff0')"><strong
 													style="color: #0072eb;">{{item.tag+"、"}}</strong>{{item.content}}</button>
 										</view>
 									</label>
@@ -341,11 +341,12 @@
 						style="position: absolute;top: 0;background-color:rgb(255, 255, 255,0) ;width: 100%;height: 140%;">
 					</view>
 				</scroll-view>
-				<view style="padding: 1vh;">
+				<view style="height: 8vh;">
 					<button :disabled="!disabledDrag" v-if="scantron.type!==1&&scantron.type!==3" type="primary"
-						style="width: 20%;display: inline-block;margin-right: 1%;" @click="answerConfirm">答案确认
-					</button><button type="primary" style="width: 20%;display: inline-block;"
-						@click="answerInspect(3)">答案解析
+						style="width: 10vh;display: inline-block;margin-right: 1%;" @click="answerConfirm"><view style="font-size: 2vh;">答案确认</view>
+					</button>
+					<button type="primary" style="width: 10vh;display: inline-block;"
+						@click="answerInspect(3)"> <view style="font-size: 2vh;">答案解析</view>
 					</button>
 				</view>
 				<scroll-view scroll-y="true" style="height: 22vh;border: #a7a7a7 solid 1px;border-radius: 10px;">
@@ -373,26 +374,26 @@
 						</view>
 					</view>
 				</scroll-view>
-				<view>
-					<button type="primary" style="margin-top: 10px;width: 48%;display: inline-block;"
+				<view style="height: 5vh;">
+					<button type="primary" style="margin-top: 10px;width: 48%;display: inline-block;font-size: 100%;"
 						@click="previousQuestion">上一题</button>
-					<button type="primary" style="margin-left: 1%;margin-top: 10px;width: 48%;display: inline-block;"
+					<button type="primary" style="margin-left: 1%;margin-top: 10px;width: 48%;display: inline-block;font-size:100%;"
 						@click="nextQuestion">下一题</button>
 				</view>
 			</uni-card>
 		</uni-col>
-		<uni-col :span="4" style="margin-top: 30px">
+		<uni-col :span="4" style="margin-top: 1vh">
 			<uni-card style="height: 92vh;">
 
-				<l-divider color="#8f960c" style="margin-top: 20px;">
-					<view style="font-size: 20px;">当前题型数量</view>
+				<l-divider color="#8f960c" style="margin-top: 5%;">
+					<view style="font-size: 2vh;">当前题型数量</view>
 				</l-divider>
 				<view
-					style="font-family: '微软雅黑', serif;font-size: 20px;color: #000000;height: 30px;text-align: center;padding:10px;font-size: 20px;">
+					style="font-family: '微软雅黑', serif;font-size: 1%;color: #000000;height: 30px;text-align: center;padding:1vh;font-size: 3vh;">
 					<strong>共{{this.repository.num}}题</strong>
 				</view>
 				<l-divider color="#251e75">
-					<view style="font-size: 20px;">答题卡</view>
+					<view style="font-size: 2vh;">答题卡</view>
 				</l-divider>
 				<view>
 					<scroll-view scroll-y="true" style="height: 50vh;">
@@ -409,18 +410,26 @@
 						</label>
 					</scroll-view>
 				</view>
-				<view style="text-align: center;display: flex;align-items: center;font-size: 15px;width: 200px;">
+				<view >
+					<view style="text-align: left;;align-items: center;font-size: 15px;width: 200px;display: flex;"> 
 					当前<input
-						style="display: inline-block;width: 40px;border: #c1c1c1 solid 1px;border-radius: 3px;font-size: 20px;padding-top: 3px;"
-						v-model="writePageNo" type="number" min='1' max="100" @input='inspect'
-						@blur=" pageReplace(writePageNo,pageSize,0)" />页,每页<input
-						style="display: inline-block;width: 40px;border: #c1c1c1 solid 1px;border-radius: 3px;font-size: 20px;padding-top: 3px;"
-						v-model="pageSize" type="number" @blur="writePageNo=1;pageReplace(1,pageSize,0)" />条
+							style="display: inline-block;width: 40px;border: #c1c1c1 solid 1px;border-radius: 3px;font-size: 2vh;padding-top: 3px;"
+							v-model="writePageNo" type="number" min='1' max="100" @input='inspect'
+							@blur=" pageReplace(writePageNo,pageSize,0)" />页
+					</view>
+					<view  style="text-align: left;align-items: center;font-size: 15px;width: 200px;display: flex;">
+						每页
+						<input
+							style="display: inline-block;width: 40px;border: #c1c1c1 solid 1px;border-radius: 3px;font-size: 2vh;padding-top: 3px;"
+							v-model="pageSize" type="number" @blur="writePageNo=1;pageReplace(1,pageSize,0)" />条
+					</view>
+
+
 				</view>
 				<l-divider color="#251e75" />
-				<view>
-					<button type="primary" style="margin-top: 10px;" @click="previousPage">上一页</button>
-					<button type="primary" style="margin-top: 10px;" @click="nextPage">下一页</button>
+				<view style="height: 12vh;">
+					<button type="primary" style="margin-top: 1%;height:  5vh;" @click="previousPage" ><view style="font-size: 2vh;">上一页</view></button>
+					<button type="primary" style="margin-top: 5%;height:  5vh;" @click="nextPage"><view style="font-size: 2vh;">下一页</view></button>
 				</view>
 			</uni-card>
 		</uni-col>
@@ -1103,10 +1112,10 @@
 						if (dragOne !== undefined) {
 							this.radioAdd(this.dragItem, dragOne.id.replace("answer", ""), this.scantron)
 						}
-						
-						
-							this.disabledDrag = true
-						
+
+
+						this.disabledDrag = true
+
 					}, 700)
 				}
 
@@ -1616,46 +1625,46 @@
 						}
 					}
 				} else if (this.scantron.type === 5) {
-					if(!this.examObject.records[this.subjectNum - 1].answerOrder){
+					if (!this.examObject.records[this.subjectNum - 1].answerOrder) {
 						console.log(this.scantron.answerList);
-							for (var i = 0; i < this.scantron.answerList.length; i++) {
-								this.answerAnalysis.youAnswerState = 1
-								for (var j = 0; j < this.scantron.answerList.length; j++) {
-									if (this.scantron.answerList[i].isRight) {
-										let arrAwn = this.scantron.answerList[i].content.split("||")
-											for (var a = 0; a < arrAwn.length; a++) {
-												if (arrAwn[a] === this.scantron.answerList[j].blankcontent) {
-													this.answerAnalysis.youAnswerState = 0
-													break
-													}
-											}
-														
+						for (var i = 0; i < this.scantron.answerList.length; i++) {
+							this.answerAnalysis.youAnswerState = 1
+							for (var j = 0; j < this.scantron.answerList.length; j++) {
+								if (this.scantron.answerList[i].isRight) {
+									let arrAwn = this.scantron.answerList[i].content.split("||")
+									for (var a = 0; a < arrAwn.length; a++) {
+										if (arrAwn[a] === this.scantron.answerList[j].blankcontent) {
+											this.answerAnalysis.youAnswerState = 0
+											break
+										}
 									}
+
 								}
+							}
 							if (this.answerAnalysis.youAnswerState === 1) {
-							break
-							}			
+								break
+							}
 						}
 						for (var i = 0; i < this.scantron.answerList.length; i++) {
 							if (this.scantron.answerList[i].isRight) {
 								this.answerAnalysis.answer += (i + 1) + "、" + this.scantron.answerList[i].content + ";"
 							}
 						}
-					}else{
+					} else {
 						for (var i = 0; i < this.scantron.answerList.length; i++) {
 							if (this.scantron.answerList[i].isRight) {
 								let arrAwn = this.scantron.answerList[i].content.split("||")
-									for (var a = 0; a < arrAwn.length; a++) {
-										if (arrAwn[a] === this.scantron.answerList[i].blankcontent) {
-											this.answerAnalysis.youAnswerState = 0
-											break
-											}
+								for (var a = 0; a < arrAwn.length; a++) {
+									if (arrAwn[a] === this.scantron.answerList[i].blankcontent) {
+										this.answerAnalysis.youAnswerState = 0
+										break
 									}
-												
+								}
+
 							}
 							if (this.answerAnalysis.youAnswerState === 1) {
-							break
-							}			
+								break
+							}
 						}
 						for (var i = 0; i < this.scantron.answerList.length; i++) {
 							if (this.scantron.answerList[i].isRight) {
@@ -1663,7 +1672,7 @@
 							}
 						}
 					}
-					
+
 				} else if (this.scantron.type === 7 || this.scantron.type === 8) {
 					let a = 1
 					this.answerAnalysis.youAnswerState = 0
@@ -1743,7 +1752,7 @@
 	}
 
 	.scroll-Y {
-		height: 54vh;
+		height: 50vh;
 	}
 
 	.allceter {
@@ -1799,7 +1808,7 @@
 	.uni-input {
 		padding-left: 20px;
 		border: 1rpx solid #5bb4ee;
-		height: 96rpx;
+		height: 50px;
 		margin-left: 10px;
 
 
@@ -1824,8 +1833,8 @@
 	.paperCss {
 		width: 85%;
 		border-radius: 5px;
-		padding: 15px;
-		margin-top: 15px;
+		padding: 1vh;
+		margin-top: 1vh;
 
 		font-size: 15px;
 		text-align: left;

BIN
unpackage/dist/build/web/assets.zip


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

@@ -0,0 +1 @@
+.uni-input[data-v-41321b28]{padding-left:20px;border:.03125rem solid #EEEEEE;height:3rem;box-shadow:2px 2px 5px #aaa;margin:300px auto auto;line-height:3rem;color:#000;width:380px;display:flex;justify-content:center;align-items:center}.content[data-v-41321b28]{display:flex;flex-direction:column;align-items:center;justify-content:center}.logo[data-v-41321b28]{height:6.25rem;width:6.25rem;margin-top:6.25rem;margin-left:auto;margin-right:auto;margin-bottom:1.5625rem}.text-area[data-v-41321b28]{display:flex;justify-content:center}.title[data-v-41321b28]{font-family:微软雅黑,serif;font-size:40px;color:#000;width:600px;text-align:center;margin:auto}

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/assets/examInfo-BMbfDoGt.css


File diff suppressed because it is too large
+ 10 - 0
unpackage/dist/build/web/assets/examRoute.ba8rFKkF.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/assets/examStart-B2EEE3Cj.css


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/assets/index-BgCuxJG8.css


File diff suppressed because it is too large
+ 12 - 0
unpackage/dist/build/web/assets/index-CMW5gdnj.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/assets/index-DtHbXDXM.css


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/assets/index.CvfIPkg8.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/assets/pages-examPage-examInfo.Cs-DoUb5.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/assets/pages-examPage-examStart.wZ7jhqW-.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/assets/pages-login-Login.DonFl3qb.js


+ 1 - 0
unpackage/dist/build/web/assets/uni-popup-2KnYFNQ_.css

@@ -0,0 +1 @@
+.uni-popup-message[data-v-d81cfb56]{display:flex;flex-direction:row;justify-content:center}.uni-popup-message__box[data-v-d81cfb56]{background-color:#e1f3d8;padding:10px 15px;border-color:#eee;border-style:solid;border-width:1px;flex:1}@media screen and (min-width: 500px){.fixforpc-width[data-v-d81cfb56]{margin-top:20px;border-radius:4px;flex:none;min-width:380px;max-width:50%}}.uni-popup-message-text[data-v-d81cfb56]{font-size:14px;padding:0}.uni-popup__success[data-v-d81cfb56]{background-color:#e1f3d8}.uni-popup__success-text[data-v-d81cfb56]{color:#67c23a}.uni-popup__warn[data-v-d81cfb56]{background-color:#faecd8}.uni-popup__warn-text[data-v-d81cfb56]{color:#e6a23c}.uni-popup__error[data-v-d81cfb56]{background-color:#fde2e2}.uni-popup__error-text[data-v-d81cfb56]{color:#f56c6c}.uni-popup__info[data-v-d81cfb56]{background-color:#f2f6fc}.uni-popup__info-text[data-v-d81cfb56]{color:#909399}.uni-popup[data-v-fc99ec19]{position:fixed;z-index:99}.uni-popup.top[data-v-fc99ec19],.uni-popup.left[data-v-fc99ec19],.uni-popup.right[data-v-fc99ec19]{top:var(--window-top)}.uni-popup .uni-popup__wrapper[data-v-fc99ec19]{display:block;position:relative}.uni-popup .uni-popup__wrapper.left[data-v-fc99ec19],.uni-popup .uni-popup__wrapper.right[data-v-fc99ec19]{padding-top:var(--window-top);flex:1}.fixforpc-z-index[data-v-fc99ec19]{z-index:999}.fixforpc-top[data-v-fc99ec19]{top:0}

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/assets/uni-popup.tLIel_j8.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/assets/uni.bc40ca94.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.bc40ca94.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-CMW5gdnj.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>

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/web/static/bg1.svg


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

@@ -1,19 +1,19 @@
 {
-  "hash": "4a342b58",
-  "configHash": "b11c6585",
+  "hash": "87c2add7",
+  "configHash": "42425a57",
   "lockfileHash": "802ead94",
-  "browserHash": "01830e52",
+  "browserHash": "3743bba4",
   "optimized": {
     "js-md5": {
       "src": "../../../../../node_modules/js-md5/src/md5.js",
       "file": "js-md5.js",
-      "fileHash": "a3abec05",
+      "fileHash": "1a703a10",
       "needsInterop": true
     },
     "screenfull": {
       "src": "../../../../../node_modules/screenfull/index.js",
       "file": "screenfull.js",
-      "fileHash": "369af1e9",
+      "fileHash": "380576e6",
       "needsInterop": false
     }
   },

Some files were not shown because too many files changed in this diff