浏览代码

Merge branch 'VERSIONS-wfhs(危废回收)' into SCHOOL-XiBeiNongLin

dedsudiyu 1 月之前
父节点
当前提交
313c09a890

+ 8 - 2
pages_basics/views/editPassword/editPassword.vue

@@ -2,11 +2,11 @@
 <template>
 	<view id="editPassword">
 		<view class="page-title">修改密码</view>
-		<view class="input-disabled-box">
+		<view class="input-disabled-box" v-if="showType">
 			<view>手机号</view>
 			<view>{{form.mobile}}</view>
 		</view>
-		<view class="input-button-max-box">
+		<view class="input-button-max-box" v-if="showType">
 			<view>手机验证码</view>
 			<view class="input-button-box">
 				<input maxlength="6" :always-embed="true" :cursor-spacing="10"
@@ -53,6 +53,7 @@
 				codeType:false,
 				seconds:0,
 				timer:null,
+				showType:false,
 			}
 		},
 
@@ -60,6 +61,11 @@
 			
 		},
 		onShow() {
+			if(uni.getStorageSync('weChatProgramVersion')){
+				this.$set(this,'showType',true);
+			}else{
+				this.$set(this,'showType',false);
+			}
 			this.systemUserDetail();
 		},
 		methods: {

+ 8 - 3
pages_basics/views/forgotPassword/forgotPassword.vue

@@ -2,12 +2,12 @@
 <template>
 	<view id="forgotPassword">
 		<view class="page-title">忘记密码</view>
-		<view class="input-max-box">
+		<view class="input-max-box" v-if="showType">
 			<view>手机号</view>
 			<input v-model="form.mobile" :always-embed="true" :cursor-spacing="10"
 			maxlength="11" focus placeholder="请输入手机号码" />
 		</view>
-		<view class="input-button-max-box">
+		<view class="input-button-max-box" v-if="showType">
 			<view>手机验证码</view>
 			<view class="input-button-box">
 				<input maxlength="6" :always-embed="true" :cursor-spacing="10"
@@ -52,6 +52,7 @@
 				codeType: false,
 				seconds: 0,
 				timer: null,
+				showType:false,
 			}
 		},
 
@@ -59,7 +60,11 @@
 
 		},
 		onShow() {
-
+			if(uni.getStorageSync('weChatProgramVersion')){
+				this.$set(this,'showType',true);
+			}else{
+				this.$set(this,'showType',false);
+			}
 		},
 		methods: {
 			//返回上级页面