소스 검색

H5转小程序

tanxue 1 개월 전
부모
커밋
e7f09c971d

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

@@ -161,11 +161,6 @@
 		.phone-time-icon,.phone-cishu-icon,.phone-zongfen-icon,.phone-jigefen-icon,
 		.phone-defen-icon,.phone-tel-icon,.phone-user-icon,.phone-fenlei-icon{width: 24rpx;height: 24rpx;@include ezy-no-repeat-cover();
 		vertical-align: top;margin-right: 10rpx;flex-shrink: 0;}
-		.phone-time-icon{background-image: url("@/static/images/common/time-icon.png");}
-		.phone-fenlei-icon{background-image: url("@/static/images/common/fenlei-icon.svg");}
-		.phone-cishu-icon{background-image: url("@/static/images/common/cishu-icon.png");}
-		.phone-user-icon{background-image: url("@/static/images/common/user-icon.png");}
-		.phone-tel-icon{background-image: url("@/static/images/common/tel-icon.png");}
 		.phone-zongfen-icon{vertical-align: unset;}
 		.phone-jigefen-icon{vertical-align: unset;}
 		.phone-defen-icon{background-image: url("@/static/images/common/defen-icon.png");vertical-align: unset;}
@@ -620,60 +615,6 @@
 		.gdzl-row icon{transform: rotate(180deg);}
 	} 
 	
-	// 办证信息
-	.bzsm-tip-box{
-		background-color: #fff;padding:24rpx 38rpx;font-size: 28rpx;color: #666;
-		.title-btn-box{display: flex;justify-content: space-between;margin-bottom: 24rpx;}
-		.reset-btn{background-color: #3fd2a1;color: #fff;padding: 5rpx 20rpx;font-size: 24rpx;border-radius: 8rpx;line-height: 1.2;}
-		.tip-content-box{margin-bottom: 12rpx;font-size: 26rpx;}
-	}
-	// 办证信息list
-	.bzxx-list-page{
-		width:100%;background-color: #f8f9fd;position: absolute;top: calc(170rpx + var(--status-bar-height));bottom: 0;
-		display: flex;flex-direction: column;
-		.bz-new-btn-box{
-			padding: 20rpx 24rpx 20rpx;background-color: #f4f6fa;box-sizing: border-box;display: flex;align-items: center;
-			uni-button{font-size: 28rpx;width: 100%;}
-		}
-		.bzxx-wrap-box{flex: 1;overflow: auto;padding-bottom: 140rpx;}
-		.bzxx-card-box{background-color: #fff;padding:24rpx 38rpx;font-size: 28rpx;color: #666;line-height: 1;margin-top: 20rpx;}
-		.bzxx-card-box:first-child{margin-top: 0;}
-		.name-btn-box{
-			font-size: 32rpx;color: #000;display: flex;justify-content: space-between;align-items: center;margin-bottom: 16rpx;
-			.jg-name{@include single-line-ellipsis();}
-			.name-btn{font-size: 26rpx;padding: 8rpx 20rpx;border-radius: 8rpx;line-height: 1.1;flex-shrink: 0;}
-			.editer-btn{background-color: #fff;color: #3fd2a1;border: 1rpx solid #3fd2a1;margin-left: auto;}
-			.delete-btn{background-color: #3fd2a1;color: #fff;margin-left: 20rpx;}
-			}
-		.bzxx-zy-row{
-			display: flex;align-items: center;margin-bottom: 16rpx;padding: 0 32rpx;box-sizing: border-box;
-			icon{width: 28rpx;height: 28rpx;@include ezy-no-repeat-cover;margin-right: 12rpx;flex-shrink: 0;}
-			text{color: #333;}
-			.zy-icon{background-image: url("@/static/images/common/zymc-icon.png");}
-			.zydj-icon{background-image: url("@/static/images/common/zydj-icon.png");}
-		}
-		.bzxx-zy-row +.bzxx-zy-row{margin-top: 6rpx;}	
-		.bzxx-time-row{
-			display: flex;align-items: center;
-			background-color:#f4f6fa;box-sizing: border-box;padding: 16rpx 32rpx;border-radius: 8rpx;font-size: 24rpx;
-			.time-icon{width: 20rpx;height: 20rpx;@include ezy-no-repeat-cover();
-			vertical-align: top;margin-right: 10rpx;flex-shrink: 0;background-image: url("@/static/images/common/time-icon.png");}
-		}
-		.bzxx-btn-box{
-			position: fixed;width: 100%;bottom: var(--window-bottom);left: 0;right: 0;
-			margin: 20rpx 0 0;display: flex;justify-content: center;padding: 32rpx 0;background-color: #fff;
-			.phone-white-btn,.phone-green-btn{width: 36%;font-size: 28rpx;margin: 0 16rpx;}
-		}
-		.bzxx-add-btn-box{
-			width: 100%; height: 100vh; background-color: #fff;display: flex; flex-direction: column;align-items: center;
-			.bzxx-add-btn{
-				width: 400rpx;height: 220rpx;line-height: 220rpx;border: 1rpx dashed #3fd2a1;font-size: 32rpx;
-				border-radius: 8rpx;color: #3fd2a1;text-align: center;margin-top: 100rpx;
-				text{color:#3fd2a1;font-size: 42rpx;margin-right: 16rpx;}
-			}
-		}
-	}
-	
 	// 搜索
 	.city-search-box{
 		display: flex;align-items: center;padding:20rpx 24rpx;

+ 22 - 11
pages/client/Kaoshi/list.vue

@@ -1,16 +1,14 @@
 <template>
 	<view class="phone-list-page">
-		<view class="icon-title-bjcolor-navBar-box">
-			<view @click="goUpPage" class="nav-bar-icon"></view>
-			<text class="nav-bar-title">考试管理</text>
-		</view>
+		<customNavbarVue title="考试管理" :show-back-btn="true" @back="goUpPage"></customNavbarVue>
+		
 		<!-- 考试列表 -->
 		<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.loading"
 			:refresher-threshold="50" refresher-background="transparent" @refresherrefresh="onRefresh" @scrolltolower="onScrolltolower"
 			class="phone-scroll-view">
 			<uni-list class="admin-list-box">
 				<uni-list-item v-for="item in data.list" class="admin-list-item-box" :key="item.ksId">
-					<template v-slot:body>
+					<template v-slot:body style="width: 100%;">
 						<!-- 考试项 -->
 						<view class="item-card-row">
 							<!-- 考试名 + 等级 -->
@@ -20,18 +18,18 @@
 							</view>
 							<!-- 时间 -->
 							<view class="ks-totalTm">
-								<icon class="phone-time-icon" />时间:{{item.totalTm}}分钟
+								<icon class="phone-time-icon" :style="{ backgroundImage: 'url(' + data.imgsArr.phoneTimeIcon + ')' }"/>时间:{{item.totalTm}}分钟
 							</view>
 							<view class="ks-totalTm">
-								<icon class="phone-cishu-icon" />次数:{{item.maxTimes ? item.loseTimes:'不限'}}次
+								<icon class="phone-cishu-icon" :style="{ backgroundImage: 'url(' + data.imgsArr.phoneCiShuIicon + ')' }"/>次数:{{item.maxTimes ? item.loseTimes:'不限'}}次
 							</view>
 							<!-- 分数 -->
 							<view class="ks-score-content">
 								<view class="ks-score">
-									<icon class="phone-zongfen-icon" />总分:<text>{{item.ksScore}}</text>
+									<icon class="phone-zongfen-icon" :style="{ backgroundImage: 'url(' + data.imgsArr.phoneZongfenIcon + ')' }"/>总分:<text>{{item.ksScore}}</text>
 								</view>
 								<view class="ks-okScore">
-									<icon class="phone-jigefen-icon" />及格分:<text>{{item.okScore}}</text>
+									<icon class="phone-jigefen-icon" :style="{ backgroundImage: 'url(' + data.imgsArr.phoneJigefenIcon + ')' }"/>及格分:<text>{{item.okScore}}</text>
 								</view>
 							</view>
 		
@@ -55,6 +53,8 @@
 </template>
 
 <script setup>
+	import cacheManager from '@/utils/cacheManager.js';
+	import customNavbarVue from "@/components/custom-navbar/custom-navbar.vue";
 	import customTabbarClientVue from "@/components/custom-tabbar/custom-tabbar-client.vue";
 	import kaoshixuzhiVue from "@/components/kaoshixuzhi/kaoshixuzhi.vue";
 	import identificationVue from "@/components/identification/identification.vue";
@@ -92,9 +92,16 @@
 			contentrefresh: '加载中',
 			contentnomore: '没有更多'
 		},
-		from: ''
+		from: '',
+		imgsArr: {
+			phoneZongfenIcon: '',
+			phoneJigefenIcon: '',
+			phoneCiShuIicon: '',
+			phoneTimeIcon: '',
+		},
 	})
 	
+	
 	function onScrolltolower() {
 		getMore()
 	}
@@ -242,7 +249,11 @@
 	}
 
 	onLoad((options) => {
-		data.from = options.from
+		data.from = options.from;
+		data.imgsArr.phoneZongfenIcon = cacheManager.get('projectImg').zongfen_icon;
+		data.imgsArr.phoneJigefenIcon = cacheManager.get('projectImg').jigefen_icon;
+		data.imgsArr.phoneCiShuIicon = cacheManager.get('projectImg').cishu_icon;
+		data.imgsArr.phoneTimeIcon = cacheManager.get('projectImg').time_icon;
 	})
 
 	onShow(() => {

+ 1 - 3
pages/client/Kecheng/list.vue

@@ -13,9 +13,7 @@
 							<img :src="item.pic">
 							<view class="card-right-box">
 								<view class="card-name">{{item.name}}</view>
-								<view class="ks-totalTm kc-fenlei">
-									<icon class="phone-fenlei-icon" />分类:{{item.kcClassifyName}}
-								</view>
+								<view class="ks-totalTm kc-fenlei">分类:{{item.kcClassifyName}} </view>
 								<view>课时:{{formatSecondsToCnhms(item.period, true)}}</view>
 								<view>{{item.createTime}}</view>
 							</view>

BIN
static/images/common/cishu-icon.png


BIN
static/images/common/tel-icon.png


BIN
static/images/common/time-icon.png


BIN
static/images/common/user-icon.png