tanxue пре 2 месеци
родитељ
комит
2902097790

+ 22 - 3
common/styles/global/components.scss

@@ -27,7 +27,7 @@ view{box-sizing: border-box;}
 /***** 标题栏  *****/
 // 三个元素
 .ezy-navBar-box{
-	display: flex;align-items: center;justify-content: space-between;
+	display: flex;align-items: center;justify-content: space-between;background-color: #fff;
 	padding: 0 20rpx 20rpx;box-sizing: border-box;position: relative;
 	.nav-bar-icon{
 		width: 24rpx;height: 38rpx;
@@ -44,7 +44,7 @@ view{box-sizing: border-box;}
 }
 // 两个元素
 .icon-title-navBar-box{
-	display: flex;align-items: center;justify-content: center;
+	display: flex;align-items: center;justify-content: center;background-color: #fff;
 	padding: 0 20rpx 20rpx;box-sizing: border-box;position: relative;
 	.nav-bar-title{
 		font-size: 36rpx;height: 63rpx;line-height: 63rpx;color: #333;max-width: 70%;
@@ -57,4 +57,23 @@ view{box-sizing: border-box;}
 // 仅一个返回按钮
 .ezy-nav-bar-icon{width: 24rpx;height: 38rpx;position: absolute;left: 24rpx;top: var(--status-bar-height);
 		background-image: url("@/static/images/common/nav-bar-jt.svg");@include ezy-no-repeat-cover();
-	}
+	}
+	
+/***** 查询框  *****/	
+.phone-search-box{
+	width: 100%;height: 110rpx;background-color:#f4f6fa;
+	padding: 20rpx 42rpx;box-sizing: border-box;
+	position: relative;
+	
+	.search-input {
+		height: 70rpx;line-height: 70rpx;font-size: 28rpx;background-color:#fff;
+		border-radius: 35rpx;padding: 0 70rpx 0 20rpx;
+	}
+	.uni-input-placeholder{color:#a4a4a4;}
+	.search-icon {
+		width: 100rpx;height: 60rpx;line-height: 60rpx;text-align: center;
+		position: absolute;right: 52rpx;top: 25rpx;
+		background-color: #3fd2a1;
+		border-radius: 40rpx;
+	}
+}

+ 41 - 0
common/styles/global/pages.scss

@@ -0,0 +1,41 @@
+/********** 这里放页面样式 **********/
+/*** 考试页面***/
+.admin-kaoshi-page {
+	box-sizing: border-box;
+	.kaoshi-scroll-view {height: calc(100vh - 166px);}
+	.admin-list-box{
+		background-color: #f4f6fa!important;
+		.admin-list-item-box{margin-bottom: 20rpx;}
+		.uni-list--border{display: none;}
+	}
+	
+		// 列表区域
+		.item-kaoshi-row {
+			width: 100%;
+
+			.ks-item-top {
+				display: flex;justify-content: space-between;margin-bottom: 20rpx;
+
+				.ks-name {font-size: 34rpx;color: #000;}
+
+				.ks-zyLevelName {font-size: 26rpx;padding: 2px 12px;border-radius: 4px;border: 1px solid #3fd2a1;color:#3fd2a1;}
+			}
+
+			.ks-totalTm {font-size: 26rpx;color: #333;margin-bottom: 20rpx;}
+			.phone-time-icon,.phone-ceshu-icon{width: 30rpx;height: 30rpx;
+			background-color: red;vertical-align: middle;margin-right: 10rpx;}
+			.ks-score-content{
+				background-color: #f4f6fa;width: 460rpx;
+				margin-bottom: 20rpx;display: flex;padding: 10rpx 24rpx;box-sizing: border-box;
+				.ks-score {padding-right: 10px}
+				.ks-okScore {}
+			}
+
+			.row-item {margin-bottom: 10px;}
+
+			.kaoshi-btn {width:220rpx;font-size: 26rpx;background-color: #3fd2a1;}
+
+		}
+}
+	
+	

+ 4 - 1
common/styles/index.scss

@@ -1,2 +1,5 @@
 // 组件样式
-@import '/common/styles/global/components.scss';
+@import '/common/styles/global/components.scss';
+
+// 页面样式
+@import '/common/styles/global/pages.scss';

+ 10 - 3
pages.json

@@ -28,9 +28,8 @@
 		},
 		{
 			"path" : "pages/admin/Kaoshi/list",
-			"style" : 
-			{
-				"navigationBarTitleText" : "考试列表"
+			"style": {
+				"navigationStyle": "custom"
 			}
 		},
 		{
@@ -47,6 +46,14 @@
 			{
 				"navigationBarTitleText" : ""
 			}
+		},
+		{
+			"path" : "pages/demo/demo1",
+			"style" : 
+			{
+				"navigationBarTitleText" : "demo1",
+				"navigationStyle": "custom"
+			}
 		}
 	],
 	 "tabBar": {

+ 21 - 97
pages/admin/Kaoshi/list.vue

@@ -1,12 +1,14 @@
 <template>
-	<view class="phone-kaoshi-page">
+	<view class="admin-kaoshi-page">
+		<view class="icon-title-navBar-box">
+			<view @click="goUpPage" class="nav-bar-icon"></view>
+			<text class="nav-bar-title">考试管理</text>
+		</view>
 		<!-- 查询职业 -->
-		<view style="padding: 10px">
-			<view class="phone-search-content">
-				<input class="search-input" placeholder="请输入职业" v-model="data.zyName" />
-				<view class="search-icon" @click="handleSearch">
-					<uni-icons type="search" size="20"></uni-icons>
-				</view>
+		<view class="phone-search-box">
+			<input class="search-input" placeholder="请输入职业名称" v-model="data.zyName" />
+			<view class="search-icon" @click="handleSearch">
+				<uni-icons type="search" size="24" color="#fff"></uni-icons>
 			</view>
 		</view>
 		<!-- 考试列表 -->
@@ -14,23 +16,23 @@
 			<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.loading"
 				:refresher-threshold="50" refresher-background="transparent" @refresherrefresh="onRefresh"
 				class="kaoshi-scroll-view">
-				<uni-list>
-					<uni-list-item v-for="item in data.list" class="list-item-box">
+				<uni-list class="admin-list-box">
+					<uni-list-item v-for="item in data.list" class="admin-list-item-box">
 						<template v-slot:body>
 							<!-- 考试项 -->
 							<view class="item-kaoshi-row">
 								<!-- 考试名 + 等级 -->
-								<view class="ks-item-top row-item">
+								<view class="ks-item-top">
 									<view class="ks-name">{{item.ksName}}</view>
 									<view class="ks-zyLevelName">{{item.zyLevelName}}</view>
 								</view>
 								<!-- 时间 -->
-								<view class="ks-totalTm row-item">时间:{{item.totalTm}} 分钟</view>
-								<view class="ks-totalTm row-item">次数:{{item.maxTimes}}次</view>
+								<view class="ks-totalTm"><icon class="phone-time-icon"/>时间:{{item.totalTm}}分钟</view>
+								<view class="ks-totalTm"><icon class="phone-ceshu-icon"/>次数:{{item.maxTimes}}次</view>
 								<!-- 分数 -->
-								<view class="ks-score-content row-item">
-									<text class="ks-score">总分: {{item.ksScore}}</text>
-									<text class="ks-okScore">及格分: {{item.okScore}}</text>
+								<view class="ks-score-content">
+									<view class="ks-score"><icon class="phone-zongfen-icon"/>总分:<text>{{item.ksScore}}</text></view>
+									<view class="ks-okScore"><icon class="phone-jigefen-icon"/>及格分:<text>{{item.okScore}}</text></view>
 								</view>
 								<button type="primary" size="mini" @click="checkKsXz(item)" class="kaoshi-btn">查看内容</button>
 							</view>
@@ -78,6 +80,10 @@
 		}
 	})
 	
+	function goUpPage(){
+		
+	}
+	
 	function handleConfirmKs(ksId) {
 		checkKaoshi({ksId})
 	}
@@ -162,85 +168,3 @@
 		getMore()
 	})
 </script>
-
-<style lang="scss" scoped>
-	.phone-kaoshi-page {
-		background-color: #ccc;
-		box-sizing: border-box;
-
-		// 查询区域
-		.phone-search-content {
-			position: relative;
-			background-color: #fff;
-			height: 42px;
-
-			.search-input {
-				height: 42px;
-				line-height: 40px;
-				border-radius: 20px;
-				border: 1px solid #ccc;
-				padding: 0 70px 0 20px;
-			}
-
-			.search-icon {
-				position: absolute;
-				right: 5px;
-				top: 4px;
-				padding: 6px;
-				background-color: #ccc;
-				border-radius: 20px;
-				width: 50px;
-				text-align: center;
-			}
-		}
-
-		// 列表区域
-		.item-kaoshi-row {
-			width: 100%;
-
-			.ks-item-top {
-				display: flex;
-				justify-content: space-between;
-
-				.ks-name {
-					font-weight: bold;
-					font-size: 18px;
-				}
-
-				.ks-zyLevelName {
-					padding: 2px 20px;
-					background-color: #ccc;
-					border-radius: 4px;
-				}
-			}
-
-			.ks-totalTm {}
-
-			.ks-score-content {
-				background-color: #ccc;
-				width: calc(100vw - 140px);
-
-				.ks-score {
-					padding-right: 10px
-				}
-
-				.ks-okScore {}
-			}
-
-			.row-item {
-				margin-bottom: 10px;
-			}
-
-			.kaoshi-btn {
-				width: 120px;
-				font-size: 16px;
-				margin-left: 0;
-			}
-
-		}
-	}
-	
-	.kaoshi-scroll-view {
-		height: calc(100vh - 166px);
-	}
-</style>

+ 13 - 1
pages/demo/demo1.vue

@@ -24,11 +24,23 @@
 			<switch checked @change="switch1Change" />
 		</view>
 		<!---------- 搜索框 ------------>
+		<!-- 查询职业 -->
+		<view class="phone-search-box">
+			<input class="search-input" placeholder="请输入职业名称" v-model="data.zyName" />
+			<view class="search-icon" @click="handleSearch">
+				<uni-icons type="search" size="24" color="#fff"></uni-icons>
+			</view>
+		</view>
 	</view>
 </template>
 
 <script setup>
-	function goUpPage(){}
+	import {ref,reactive} from "vue";
+	const data = reactive({
+		zyName: '', // 职业名称
+	})
+	function goUpPage(){}
+	function handleSearch(){}
 </script>
 
 <style>