Quellcode durchsuchen

H5改为小程序

tanxue vor 1 Monat
Ursprung
Commit
0764ac6e53

+ 0 - 1
common/styles/global/components.scss

@@ -362,7 +362,6 @@ margin-right: 18rpx;display: inline-block;vertical-align: middle;}
 	.uni-easyinput__placeholder-class{font-size: 30rpx!important;}
 	.content-clear-icon{color: rgb(192, 196, 204)!important;}
 	icon{width: 30rpx;height: 30rpx;@include ezy-no-repeat-cover;flex-shrink: 0;
-		background-image: url("@/static/images/common/nav-bar-jt-bottom.svg");
 		transform: rotate(270deg);margin-left: 4rpx;}
 		
 		// 文字行

+ 2 - 15
common/styles/global/pages.scss

@@ -425,18 +425,6 @@
 		icon{width: 40rpx;height:40rpx;@include ezy-no-repeat-cover();flex-shrink: 0;}
 		.content-text{font-size: 30rpx;margin-left: 10rpx;}
 	}
-	// admin
-	.admin-head-box{
-		background-color: #fff;box-sizing: border-box;padding: 30rpx 36rpx;border-radius: 12rpx;
-		display: flex;align-items: center;margin: -180rpx 20rpx 20rpx;
-		.head-content-box{font-size: 32rpx;color: #333;margin-left: 20rpx;}
-		.tel-icon{background-image: url("@/static/images/login/login-tel-icon.png");}
-	}
-	.jzgs-name-box{
-		width: 100%;text-align: center;font-size: 34rpx;color: #fff;
-		box-sizing: border-box;font-weight: 600;@include ezy-no-repeat-cover(bottom);
-		height: 376rpx;padding-top: 100rpx;
-	}
 	
 	// num
 	.my-num-box{
@@ -455,9 +443,8 @@
 		margin: 0 20rpx;background-color: #fff;border-radius: 8rpx;padding: 0 36rpx;
 		.list-row{border-bottom: 2rpx solid #eee;color: #333;box-sizing: border-box;padding: 36rpx 0;
 		display: flex;align-items: center;position: relative;}
-		.list-row::after{
-			content: '';width: 30rpx;height: 30rpx;@include ezy-no-repeat-cover;
-			background-image: url("@/static/images/common/nav-bar-jt-bottom.svg");
+		.jt-icon{
+			width: 30rpx;height: 30rpx;@include ezy-no-repeat-cover;
 			position: absolute;right: 0;transform: rotate(270deg);
 		}
 		.list-row:last-child{border: 0;}

+ 6 - 0
pages/client/my/index.vue

@@ -43,22 +43,27 @@
 			<view class="list-row" @click="goToPage('grcj')">
 				<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.userListIcon + ')' }"></icon>
 				<text>修改个人信息</text>
+				<icon class="jt-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.jtIcon + ')' }"></icon>
 			</view>
 			<view class="list-row" @click="goToPage('cj')">
 				<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.scoreListIcon + ')' }"></icon>
 				<text>我的成绩</text>
+				<icon class="jt-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.jtIcon + ')' }"></icon>
 			</view>
 			<view class="list-row" @click="showZhuaPaiConfirm">
 				<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.sxtcsListIcon + ')' }"></icon>
 				<text>摄像头测试</text>
+				<icon class="jt-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.jtIcon + ')' }"></icon>
 			</view>
 			<view class="list-row" @click="showMessageDl">
 				<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.sxtsmListIcon + ')' }"></icon>
 				<text>摄像头说明</text>
+				<icon class="jt-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.jtIcon + ')' }"></icon>
 			</view>
 			<view class="list-row" @click="exitLogin">
 				<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.loginOutListIcon + ')' }"></icon>
 				<text>退出登录</text>
+				<icon class="jt-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.jtIcon + ')' }"></icon>
 			</view>
 		</view>
 		<!-- 底部区域 -->
@@ -208,6 +213,7 @@
 		myInfoData.imgsArr.sxtcsListIcon = cacheManager.get('projectImg').my_sxtcs_icon;
 		myInfoData.imgsArr.sxtsmListIcon = cacheManager.get('projectImg').my_sxtsm_icon;
 		myInfoData.imgsArr.loginOutListIcon = cacheManager.get('projectImg').login_out_icon;
+		myInfoData.imgsArr.jtIcon= cacheManager.get('projectImg').nav_bar_jt_bottom;
 	})
 
   onShow(() => {

+ 11 - 11
pages/client/my/myInfo.vue

@@ -1,10 +1,7 @@
 <template>
 	<view class="my-info-page">
 		<!-- 导航区域 -->
-		<view class="icon-title-bjcolor-navBar-box">
-			<view @click="handleBack" class="nav-bar-icon"></view>
-			<text class="nav-bar-title">个人信息</text>
-		</view>
+		<customNavbarVue title="个人信息" :show-back-btn="true" @back="handleBack"></customNavbarVue>
 		<!-- 头像 -->
 		<view class="user-img-box">
 			<view class="user-title">头像</view>
@@ -17,19 +14,19 @@
 		<view class="form-label-input">
 			<view class="phone-form-label"><text class="form-label-require">*</text>姓名</view>
 			<input v-model="data.realName"  placeholder="请输入姓名" />
-			<icon></icon>
+			<icon :style="{ backgroundImage: 'url(' + data.jtIcon + ')' }"></icon>
 		</view>
 		<!-- 手机号 -->
 		<view class="form-label-input">
 			<view class="phone-form-label"><text class="form-label-require">*</text>手机号</view>
 			<input v-model="data.userName"  placeholder="请输入手机号" />
-			<icon></icon>
+			<icon :style="{ backgroundImage: 'url(' + data.jtIcon + ')' }"></icon>
 		</view>
 		<!-- 证件号 -->
 		<view class="form-label-input">
 			<view class="phone-form-label"><text class="form-label-require">*</text>证件号</view>
 			<input v-model="data.idcard"  placeholder="请输入证件号" />
-			<icon></icon>
+			<icon :style="{ backgroundImage: 'url(' + data.jtIcon + ')' }"></icon>
 		</view>
 		<!-- 电话 -->
 		<view></view>
@@ -47,14 +44,14 @@
 </template>
 
 <script setup>
+	import customNavbarVue from "@/components/custom-navbar/custom-navbar.vue";
 	import * as myApi from "@/api/my.js";
 	import {getAliyunPolicy} from "@/api/jiazheng.js"
 	import {ref,reactive} from "vue"
 	import {onLoad} from "@dcloudio/uni-app"
-	import defaultImage from "@/static/images/my/user-default-img.png"
-	
+	import cacheManager from '@/utils/cacheManager.js';
 	const defaultImage1 = ref({
-		url:defaultImage, extname: 'png', name: 'moren.png'
+		url:'', extname: 'png', name: 'moren.png'
 	})
 
 	const imageStyles = ref({
@@ -71,11 +68,14 @@
 		idcard: '',
 		userName: '',
 		userId: null,
-		images: null
+		images: null,
+		jtIcon: '',
 	})
 
 	onLoad((options) => {
 		data.from = options.from || 'shouye';
+		data.jtIcon= cacheManager.get('projectImg').nav_bar_jt_bottom;
+		defaultImage1.url= cacheManager.get('projectImg').user_default_img;
 		initPage();
 	})