Browse Source

修改bug

wangxy 6 days ago
parent
commit
14b73f627b
4 changed files with 500 additions and 69 deletions
  1. 37 0
      api/my.js
  2. 7 0
      pages.json
  3. 320 0
      pages/Login/test.vue
  4. 136 69
      pages/client/my/index.vue

+ 37 - 0
api/my.js

@@ -107,4 +107,41 @@ export function getGlMineQrcode(data = {}) {
     data,
     timeout: 20000
   })
+}
+
+
+export function getMyOpsZhuangtai(data = {}) {
+  return request({
+    url: '/applet/jiazheng/mine/ops/zhuangtai',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
+}
+
+export function updateZhuangtai(data = {}) {
+  return request({
+    url: '/applet/jiazheng/mine/zhuangtai/update',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
+}
+
+export function getZhuangtaiInfo(data = {}) {
+  return request({
+    url: '/applet/jiazheng/mine/zhuangtai/info',
+    headers: {
+      isToken: true
+    },
+    method: 'post',
+    data,
+    timeout: 20000
+  })
 }

+ 7 - 0
pages.json

@@ -20,6 +20,13 @@
 			"style": {
 				"navigationStyle": "custom"
 			}
+		},
+		{
+			"path" : "pages/Login/test",
+			"style" : 
+			{
+				"navigationBarTitleText" : ""
+			}
 		}
 	],
 	"subPackages": [{

+ 320 - 0
pages/Login/test.vue

@@ -0,0 +1,320 @@
+<template>
+	<view class="phone-login-page">
+		<view class="login-wrap-box">
+			<view class="bjcx-head-box">
+				<icon class="bjcx-logo-box"></icon>
+				<view class="bjcx-logo-title">家政学</view>
+			</view>
+
+			<!-- 如果是APP分享过来的,显示微信授权界面    		@getuserinfo="onWechatAuth"-->
+
+			<view v-if="fromAppShare" class="wechat-auth-box">
+				<view class="auth-tips">欢迎使用小程序</view>
+				<button class="wechat-auth-btn" open-type="getUserInfo"@getuserinfo="onWechatAuth">
+					微信一键登录
+				</button>
+				<view class="switch-login" @click="switchToNormalLogin">使用账号登录</view>
+			</view>
+
+			<!-- 普通登录表单 -->
+			<view v-else>
+				<view class="login-input-box">
+					<icon class="user-icon"></icon>
+					<input class="login-input" type="text" v-model="userName" placeholder="请输入手机号"
+						@input="userInputChange">
+					<view class="close-btn" v-if="clearTelIcon" @click="clearTel"></view>
+				</view>
+				<view class="login-input-box">
+					<icon class="tel-icon"></icon>
+					<input class="login-input" placeholder="请输入证件号后六位" v-model="password" :password="showPassword"
+						@input="passwordInputChange" />
+					<text class="login-eye" :class="[!showPassword ? 'uni-eye-active' : '']"
+						@click="changePassword"></text>
+					<view class="close-btn" v-if="clearPwIcon" @click="clearPw"></view>
+				</view>
+
+				<!-- 协议勾选框和按钮 -->
+				<view class="agreement-checkbox-box">
+					<checkbox-group @change="handleChange">
+						<checkbox class="agreement-checkbox-input" color="#3fd2a1" value="agree" :checked="isAgreed"
+							style="transform:scale(0.7)" />
+					</checkbox-group>
+					<view class="agreement-text-box">
+						在使用当前小程序服务之前,请仔细阅读<view class="agreement-text" @click="agreeBtn('yhxy')">《诚祥学用户协议》</view>和<view
+							@click="agreeBtn('ystk')" class="agreement-text">《诚祥学隐私政策》</view>,如您同意,请勾选后开始使用
+					</view>
+				</view>
+
+				<button type="default" @click="handleLogin" :disabled="!isAgreed"
+					class="phone-green-btn login-btn">登录</button>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script setup>
+	import cacheManager from '@/utils/cacheManager.js'
+	import * as httpApi from "@/api/login.js"
+	import {
+		ref,
+		onMounted
+	} from "vue"
+	import {
+		toast
+	} from "@/utils/common";
+	import {
+		useIsCanBack
+	} from "@/store/isCanBack.js"
+	import {
+		onLoad
+	} from "@dcloudio/uni-app";
+
+	// 原有变量
+	const userName = ref('')
+	const password = ref('')
+	const showPassword = ref(true)
+	const clearTelIcon = ref(false)
+	const clearPwIcon = ref(false)
+	const isAgreed = ref(false)
+	const id = ref('')
+	const code = ref('')
+
+	const fromPage = ref('');
+
+	// 新增变量
+	const fromAppShare = ref(false) // 是否来自APP分享
+
+	const store = useIsCanBack();
+
+	onLoad((options) => {
+		// 判断是否来自APP分享
+		if (options.from === 'appcx') {
+			fromAppShare.value = true
+			id.value = options.id
+			// APP分享过来直接显示微信授权界面,不需要自动弹窗
+			fromPage.value = options.from;
+		}
+		getAllImg();
+	})
+
+	// 切换到普通登录
+	function switchToNormalLogin() {
+		fromAppShare.value = false
+	}
+
+	function phoneBind() {
+		uni.navigateTo({
+			url: '/pages/Login/AliyunCaptcha?code='+code.value,
+			events: {
+				getCaptchaVerifyParam: (captchaVerifyParam) => {
+					// 接收到验证码返回结果
+					console.log('验证码返回结果:', captchaVerifyParam)
+				}
+			},
+			success: () => {
+				console.log('跳转到验证码页面成功')
+			},
+			fail: (err) => {
+				console.error('跳转到验证码页面失败:', err)
+				toast('验证码加载失败,请重试')
+			}
+		})
+	}
+
+	// 微信授权登录
+	async function onWechatAuth(e) {
+		if (e.detail.errMsg.includes('fail')) {
+			toast('授权失败')
+			return
+		}
+
+		uni.showLoading({
+			title: '登录中'
+		})
+		console.log('e', e);
+		try {
+			// 获取微信code
+			const loginRes = await uni.login()
+			console.log('loginRes', loginRes);
+			code.value = loginRes.code
+			// 调用后端微信登录接口
+			const result = await httpApi.loginApplet({
+				code: loginRes.code,
+				userInfo: e.detail.userInfo
+			})
+			console.log('result', result);
+			console.log('result', result);
+				phoneBind()
+			// if (result.data.bind) {
+			// 	// 保存用户信息
+			// 	if (result.data.loginVo.type == 4) {
+			// 		cacheManager.set('auth', result.data.loginVo)
+			// 		store.setIsCanBack(false)
+			// 		gotoPage();
+			// 	} else if (result.data.loginVo.type == 6) {
+			// 		cacheManager.set('auth', result.data.loginVo)
+			// 		store.setIsCanBack(false)
+			// 		gotoPage2();
+			// 	} else {
+			// 		toast('登录失败,您的身份有误,请联系管理员。')
+			// 	}
+			// } else {
+			// 	//  bind 为 false 未绑定
+
+			// 	phoneBind()
+			// }
+		} catch (error) {
+			toast('微信登录失败')
+		} finally {
+			uni.hideLoading()
+		}
+	}
+
+	// 你原有的所有方法都不变
+	function handleChange() {
+		isAgreed.value = !isAgreed.value
+	}
+
+	function agreeBtn(code) {
+		if (code === 'yhxy') {
+			uni.navigateTo({
+				url: "/pages/client/my/xieyi"
+			})
+		} else {
+			uni.navigateTo({
+				url: "/pages/client/my/zhengce"
+			})
+		}
+	}
+
+	function userInputChange(event) {
+		if (event.detail.value.length > 0) {
+			clearTelIcon.value = true;
+		} else {
+			clearTelIcon.value = false;
+		}
+	}
+
+	function passwordInputChange(event) {
+		if (event.detail.value.length > 0) {
+			clearPwIcon.value = true;
+		} else {
+			clearPwIcon.value = false;
+		}
+	}
+
+	function clearTel() {
+		userName.value = '';
+		clearTelIcon.value = false;
+	}
+
+	function clearPw() {
+		password.value = '';
+		clearPwIcon.value = false;
+	}
+
+	function changePassword() {
+		showPassword.value = !showPassword.value;
+	}
+
+	function handleLogin() {
+		if (userName.value.length === 0) {
+			toast('请输入手机号!')
+			return
+		}
+
+		if (password.value.length === 0) {
+			toast('请输入密码!')
+			return
+		}
+
+		const trimmedUserName = userName.value;
+		const trimmedPassword = password.value;
+
+		uni.showLoading({
+			title: '登录中'
+		})
+
+		httpApi.loginTemp({
+			type: 2,
+			userName: trimmedUserName,
+			password: trimmedPassword,
+		}).then(res => {
+			if (res.data.type === 4) {
+				cacheManager.set('auth', res.data)
+				store.setIsCanBack(false)
+				gotoPage();
+			} else if (res.data.type === 6) {
+				cacheManager.set('auth', res.data)
+				store.setIsCanBack(false)
+				gotoPage2();
+			} else {
+				toast('登录失败,您的身份有误,请联系管理员。')
+			}
+		}).catch(err => {
+			store.setIsCanBack(true)
+		}).finally(err => {
+			uni.hideLoading()
+		})
+	}
+
+	function gotoPage() {
+			console.log('ididid',id.value);
+		if (id.value) {
+			uni.navigateTo({
+				url: `/pages/client/hetong/hetongInfo?id=` + id.value + `&from=${fromPage.value}`
+			})
+		} else {
+			uni.navigateTo({
+				url: `/pages/client/ShouYe/shouye`
+			})
+		}
+	}
+
+	function gotoPage2() {
+			console.log('ididid222222',id.value);
+		if (id.value) {
+			uni.navigateTo({
+				url: `/pages/kehu/hetong/hetongInfo?id=` + id.value + `&from=${fromPage.value}`
+			})
+		} else {
+			uni.navigateTo({
+				url: `/pages/kehu/shouYe/shouye`
+			})
+		}
+	}
+
+	function getAllImg() {
+		httpApi.getAllImgList({}).then(res => {
+			cacheManager.set('projectImg', res.data)
+		});
+	}
+</script>
+
+<style scoped>
+	/* 新增样式 */
+	.wechat-auth-box {
+		text-align: center;
+		padding: 40rpx 0;
+	}
+
+	.auth-tips {
+		font-size: 32rpx;
+		color: #333;
+		margin-bottom: 60rpx;
+	}
+
+	.wechat-auth-btn {
+		background-color: #07C160;
+		color: white;
+		border-radius: 50rpx;
+		margin-bottom: 30rpx;
+	}
+
+	.switch-login {
+		color: #007AFF;
+		font-size: 28rpx;
+	}
+
+	/* 你原有的所有样式都保持不变 */
+</style>

+ 136 - 69
pages/client/my/index.vue

@@ -3,55 +3,73 @@
 		<view class="my-head-box" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.myHeadBj + ')' }">
 			<view class="head-img-box">
 				<image class="head-img" :src="myInfoData.userImg" v-if="myInfoData.userImg"></image>
-				<icon class="phone-default-userImg" v-else :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.defaultUserImg + ')' }"></icon>
+				<icon class="phone-default-userImg" v-else
+					:style="{ backgroundImage: 'url(' + myInfoData.imgsArr.defaultUserImg + ')' }"></icon>
 			</view>
 			<view class="head-content-box">
 				<text>{{myInfoData.realName}}</text>
 				<view class="head-content-row-box" v-if="myInfoData.userName">
 					<icon :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.telIcon + ')' }"></icon>
-					<text class="content-text" >{{myInfoData.userName}}</text>
+					<text class="content-text">{{myInfoData.userName}}</text>
 				</view>
 				<view class="head-content-row-box" v-if="myInfoData.idcard">
 					<icon :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.idcardIcon + ')' }"></icon>
-					<text class="content-text" >{{myInfoData.idcard}}</text>
+					<text class="content-text">{{myInfoData.idcard}}</text>
 				</view>
 			</view>
 		</view>
-		
+
 		<view class="my-num-box">
 			<view class="num-item-box" @click="goToPage('ks')">
 				<uni-badge class="uni-badge-left-margin my-num-badge" v-if="myInfoData.kaoshiCount"
-				:customStyle="{background: '#ff2527'}" :text="myInfoData.kaoshiCount" />
+					:customStyle="{background: '#ff2527'}" :text="myInfoData.kaoshiCount" />
 				<icon :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.ksIcon + ')' }"></icon>
 				<text class="num-title">考试管理</text>
 			</view>
 			<view class="num-item-box" @click="goToPage('lx')">
 				<uni-badge class="uni-badge-left-margin my-num-badge" v-if="myInfoData.lianxiCount"
-				:customStyle="{background: '#ff2527'}" :text="myInfoData.lianxiCount" />
+					:customStyle="{background: '#ff2527'}" :text="myInfoData.lianxiCount" />
 				<icon :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.lxIcon + ')' }"></icon>
 				<text class="num-title">练习管理</text>
 			</view>
 			<view class="num-item-box" @click="goToPage('kc')">
 				<uni-badge class="uni-badge-left-margin my-num-badge" v-if="myInfoData.kechengCount"
-				:customStyle="{background: '#ff2527'}" :text="myInfoData.kechengCount" />
+					:customStyle="{background: '#ff2527'}" :text="myInfoData.kechengCount" />
 				<icon :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.kcIcon + ')' }"></icon>
 				<text class="num-title">课程管理</text>
 			</view>
 		</view>
-		
+
 		<view class="my-list-box">
+			<view class="list-row">
+				<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.userListIcon + ')' }">
+				</icon>
+				<text>修改状态</text>
+				<picker :range="myInfoData.StatusList" mode='selector' range-key="name" :value="myInfoData.status"
+					@change="onSelectStatusChange" class="select-picker-box">
+					<view class="form-radio-select">
+						<view v-if="myInfoData.StatusList[myInfoData.status]">{{myInfoData.StatusList[myInfoData.status].name}}</view>
+						<icon></icon>
+					</view>
+				</picker>
+				<icon class="jt-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.jtIcon + ')' }"></icon>
+
+			</view>
 			<view class="list-row" @click="goToPage('grcj')">
-				<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.userListIcon + ')' }"></icon>
+				<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('ht')">
-				<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.htListIcon + ')' }"></icon>
+				<icon class="list-icon" :style="{ backgroundImage: 'url(' + myInfoData.imgsArr.htListIcon + ')' }">
+				</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>
+				<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>
@@ -66,7 +84,8 @@
 				<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>
+				<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>
@@ -76,32 +95,51 @@
 				<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>
+				<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>
 		<!-- 底部区域 -->
 		<customTabbarClient :currentTab="1"></customTabbarClient>
-		<common-dialog ref="commonDialogRef" :title="exitTitle" :content="exitContent"@confirm-btn="exitBtn"></common-dialog>
+		<common-dialog ref="commonDialogRef" :title="exitTitle" :content="exitContent"
+			@confirm-btn="exitBtn"></common-dialog>
 		<shexiangDialogVue ref="shexiangRef" title="摄像头说明"></shexiangDialogVue>
-		
+
 		<!-- 摄像头确认 -->
 		<!-- <zhuapaiConfrimVue ref="zpRef" @error="zpConfirmError" title="摄像头测试"></zhuapaiConfrimVue> -->
+
+
 	</view>
 </template>
 
 <script setup>
-	import {toast} from "@/utils/common";
-	import {onLoad,onShow} from '@dcloudio/uni-app';
+	import {
+		toast
+	} from "@/utils/common";
+	import {
+		onLoad,
+		onShow
+	} from '@dcloudio/uni-app';
 	import cacheManager from '@/utils/cacheManager.js';
-	import {getMineUser,getMineInfo,getMineLogout} from '@/api/my.js'
-	import {reactive,ref} from "vue";
+	import {
+		getMineUser,
+		getMineInfo,
+		getMineLogout,
+		getZhuangtaiInfo,
+		updateZhuangtai,
+		getMyOpsZhuangtai
+	} from '@/api/my.js'
+	import {
+		reactive,
+		ref
+	} from "vue";
 	import customTabbarClient from "@/components/custom-tabbar/custom-tabbar-client.vue"
 	import commonDialog from '@/components/dialog/commonDialog.vue';
 	import shexiangDialogVue from "@/components/dialog/shexiangDialog.vue";
 	// import zhuapaiConfrimVue from "@/components/zhuapaiConfirm/index.vue";
-	
+
 	let myInfoData = reactive({
 		userImg: '',
 		realName: '',
@@ -110,7 +148,7 @@
 		kaoshiCount: '',
 		kechengCount: '',
 		lianxiCount: '',
-		from:'',
+		from: '',
 		imgsArr: {
 			myHeadBj: '',
 			defaultUserImg: '',
@@ -125,84 +163,111 @@
 			sxtcsListIcon: '',
 			sxtsmListIcon: '',
 			loginOutListIcon: '',
-      zhengce: '',
-      xieyi: ''
+			zhengce: '',
+			xieyi: ''
 		},
+		status: 0,
+		StatusList: []
 	});
 	const commonDialogRef = ref(null);
 	const shexiangRef = ref(null);
 	const zpRef = ref(null);
 	const exitContent = '你确定要执行这个操作吗?';
 	const exitTitle = '退出登录';
+
+
+
+	function onSelectStatusChange(dd) {
+		myInfoData.status = dd.detail.value;
+		const targetId = myInfoData.StatusList[myInfoData.status].id;
+		updateZhuangtai({zhuangtai:targetId}).then(res => {
+			if (res.data) {
+				toast('更新成功')
+			}
+		})
+	}
+	
+	function getMyOpsZhuangtaidata() {
+		Promise.all([getMyOpsZhuangtai(),getZhuangtaiInfo()]).then(([res,res2]) => {
+			myInfoData.StatusList = res.data;
+			myInfoData.status = myInfoData.StatusList.findIndex(item => item.id == (res2.data||1))
+		})
+	}
+	
+
 	function getMyInit() {
 		getUserInfo();
 		getNumInfo();
 	}
 	// 获取用户头像
-	function goToPage(data){
+	function goToPage(data) {
 		switch (data) {
-		    case 'ks':
-		        uni.navigateTo({
-		        	url:'/pages/client/Kaoshi/list?from=my'
-		        })
-		        break;
-		    case 'lx':
-		        uni.navigateTo({
-		        	url:'/pages/client/Lianxi/list?from=my'
-		        })
-		        break;
-		    case 'kc':
-		        uni.navigateTo({
-		        	url:'/pages/client/Kecheng/list?from=my'
-		        })
-		        break;
+			case 'ks':
+				uni.navigateTo({
+					url: '/pages/client/Kaoshi/list?from=my'
+				})
+				break;
+			case 'lx':
+				uni.navigateTo({
+					url: '/pages/client/Lianxi/list?from=my'
+				})
+				break;
+			case 'kc':
+				uni.navigateTo({
+					url: '/pages/client/Kecheng/list?from=my'
+				})
+				break;
 			case 'cj':
-			    uni.navigateTo({
-			    	url:'/pages/client/Chengji/list?from=my'
-			    })
-			    break;
+				uni.navigateTo({
+					url: '/pages/client/Chengji/list?from=my'
+				})
+				break;
 			case 'grcj':
-			    uni.navigateTo({
-			    	url:'/pages/client/my/myInfo?from=my'
-			    })
+				uni.navigateTo({
+					url: '/pages/client/my/myInfo?from=my'
+				})
 				break;
 			case 'ht':
-			    uni.navigateTo({
-			    	url:'/pages/client/hetong/hetongList'
-			    })
-				break;	
+				uni.navigateTo({
+					url: '/pages/client/hetong/hetongList'
+				})
+				break;
 			case 'zc':
 				uni.navigateTo({
-					url:'/pages/client/my/zhengce?from=my'
+					url: '/pages/client/my/zhengce?from=my'
 				})
 				break;
 			case 'xy':
 				uni.navigateTo({
-					url:'/pages/client/my/xieyi?from=my'
+					url: '/pages/client/my/xieyi?from=my'
 				})
-			    break;
+				break;
 		}
 	}
-	function getUserInfo(){
+
+	function getUserInfo() {
 		getMineUser({}).then(res => {
-			myInfoData.userImg= res.data.icon;
+			myInfoData.userImg = res.data.icon;
 			myInfoData.realName = res.data.realName;
 			myInfoData.idcard = res.data.idcard;
 			myInfoData.userName = res.data.userName;
 		})
 	}
-	function getNumInfo(){
+
+	function getNumInfo() {
 		getMineInfo({}).then(res => {
 			myInfoData.kaoshiCount = res.data.kaoshiCount;
 			myInfoData.kechengCount = res.data.kechengCount;
 			myInfoData.lianxiCount = res.data.lianxiCount;
 		})
 	}
-	function exitLogin(){
+
+	function exitLogin() {
 		commonDialogRef.value.handleShow();
-		
+
 	}
-	function exitBtn(){
+
+	function exitBtn() {
 		getMineLogout().then(res => {
 			toast('退出登录成功')
 			cacheManager.clearAll();
@@ -213,29 +278,30 @@
 			toast('退出登录失败,请稍后重试')
 		})
 	}
-	
+
 	function showMessageDl() {
 		console.log(shexiangRef.value)
 		shexiangRef.value.handleShow()
 	}
-	
+
 	function showZhuaPaiConfirm() {
 		// zpRef.value.showDialog()
 		uni.navigateTo({
 			url: "/pages/client/my/cameraTest"
 		})
 	}
-	
+
 	function zpConfirmSuccess() {
 		zpRef.value.showDialog()
 	}
+
 	function zpConfirmError() {
 		uni.showToast({
 			title: '摄像头唤起异常',
 			icon: 'none'
 		})
 	}
-	
+
 	onLoad(() => {
 		myInfoData.imgsArr.myHeadBj = cacheManager.get('projectImg').client_my_bj;
 		myInfoData.imgsArr.defaultUserImg = cacheManager.get('projectImg').user_default_img;
@@ -250,15 +316,16 @@
 		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;
-    myInfoData.imgsArr.zhengce= cacheManager.get('projectImg').zhengce;
-    myInfoData.imgsArr.xieyi= cacheManager.get('projectImg').xieyi;
+		myInfoData.imgsArr.jtIcon = cacheManager.get('projectImg').nav_bar_jt_bottom;
+		myInfoData.imgsArr.zhengce = cacheManager.get('projectImg').zhengce;
+		myInfoData.imgsArr.xieyi = cacheManager.get('projectImg').xieyi;
 
 	})
 
-  onShow(() => {
-	getMyInit()
-  })
+	onShow(() => {
+		getMyInit()
+		getMyOpsZhuangtaidata();
+	})
 </script>
 
 <style>