Browse Source

样式修改

zouling 6 months ago
parent
commit
7d557c7e64
1 changed files with 13 additions and 10 deletions
  1. 13 10
      pages/login.vue

+ 13 - 10
pages/login.vue

@@ -40,8 +40,9 @@
 					</view>
 		  			
 		  			 <view class="login_box">
-		  				 <input v-if="checkeye" v-model="loginForm.password" type="text"  class="input" placeholder="请输入密码" maxlength="20" />
-		  				 <input v-else v-model="loginForm.password" type="password"  class="input" placeholder="请输入密码" maxlength="20" />
+						 <uni-easyinput :inputBorder="false" type="password" v-model="loginForm.password" placeholder="请输入密码" />
+		  				 <!-- <input v-if="checkeye" v-model="loginForm.password" type="text"  class="input" placeholder="请输入密码" maxlength="20" />
+		  				 <input v-else v-model="loginForm.password" type="password"  class="input" placeholder="请输入密码" maxlength="20" /> -->
 						 <view class="line flex0"></view>
 						 <view class="login_txt" @click="getForget"><text>忘记密码</text></view>
 		  			 </view>
@@ -104,7 +105,7 @@
 
 <script>
 	// #ifdef APP-PLUS
-	const jpushModule = uni.requireNativePlugin('JG-JPush')
+	// const jpushModule = uni.requireNativePlugin('JG-JPush')
 	// #endif
 	import * as base64 from "base-64"
 	import {getweChatLogin,getInfo,getweChatOpenid,getCodeImg,getCode,sendSmsOnly} from "@/api/login.js"
@@ -125,7 +126,7 @@
 			rimg:require('@/static/images/mine/rimg.png'),
 			pcicon:require('@/static/images/mine/pcicon.png'),
 			pnicon:require('@/static/images/mine/pnicon.png'),
-			checkflag:false,
+			checkflag:true,
 			typeflag: false,
 			loginflag:false,
 			captchaEnabled: false,
@@ -167,7 +168,7 @@
 				jpushModule.getRegistrationID(result => {
 					// console.log("注册ID.....",result)
 					var registerID = result.registerID;
-					console.log(registerID)
+					// console.log(registerID)
 					if(getToken()){
 						var params={
 							jgId:registerID,
@@ -434,11 +435,11 @@
 		} else {
 			this.loginflag=true;
 			// this.getCode()
-			if(uni.getStorageSync('lcheckflag')){
-				this.checkflag=true
-			}else{
-				this.checkflag=false
-			}
+			// if(uni.getStorageSync('lcheckflag')){
+			// 	this.checkflag=true
+			// }else{
+			// 	this.checkflag=false
+			// }
 		  if(uni.getStorageSync('account')){
 		  	var newObj=JSON.parse(JSON.stringify(uni.getStorageSync('account')))
 		  	this.loginForm.username=newObj.username;
@@ -452,6 +453,8 @@
 </script>
 
 <style lang="scss" scoped>
+.regbox /deep/ .uni-easyinput__content-input{font-size: 30rpx !important;padding-left: 0 !important;line-height: 80rpx;height: 80rpx;}
+.regbox /deep/ .uni-input-placeholder{font-size: 30rpx !important;padding-left: 0 !important;color: #808080;}
 .headimg{width: 154rpx;height: 160rpx;margin:0 auto 26rpx;}
 .mzimg{width: 100rpx;height: 44rpx;margin: 0 auto 40rpx;}
 .rtxt{font-size: 32rpx;font-weight: 500;