Przeglądaj źródła

style:资产转入不显示可退余额

xyh8905170 2 lat temu
rodzic
commit
81147b5e58
2 zmienionych plików z 44 dodań i 63 usunięć
  1. 2 0
      common/js/env.js
  2. 42 63
      loginPages/login/bind-account-password.vue

+ 2 - 0
common/js/env.js

@@ -2,7 +2,9 @@
 
 // let baseUrl = `https://jje.admin.xinyuekj.com.cn`
 // let baseUrl = `https://jje.xinyuekj.com.cn/prod-api`
+/** 测试环境 */
 let baseUrl = `https://jje.admin.xinyuekj.com.cn/test-api`
+/** 开发环境*/
 // let baseUrl = `http://65i1sxopd9qp.ngrok.xiaomiqiu123.top`
 
 

+ 42 - 63
loginPages/login/bind-account-password.vue

@@ -1,59 +1,32 @@
 <template>
-  <view class="container">
-    <view class="login-wrap">
-		<view class="login-form">
-			<u--form
-				labelPosition="left"
-				:model="userInfo"
-				:rules="rules"
-				ref="form1"
-			>
-				<u-form-item
-					label="密码"
-					prop="password"
-					labelWidth="auto"
-					labelAlign="right"
-				  >
-				<u--input
-					v-model="userInfo.password"
-					placeholder="请输入6到18位的密码"
-					border="bottom"
-					maxlength="18"
-					minlength="6"
-					type="password"
-				></u--input>
-				</u-form-item>
-			  <u-form-item
-					labelWidth="auto"
-					labelAlign="right"
-					label="确认密码"
-					prop="password1"
-					width="120"
-				>
-				<u--input
-					maxlength="20"
-					v-model="userInfo.password1"
-					placeholder="请再次输入密码"
-					border="bottom"
-					type="password"
-				></u--input>
-			  </u-form-item>
-			</u--form>
+	<view class="container">
+		<view class="login-wrap">
+			<view class="login-form">
+				<u--form labelPosition="left" :model="userInfo" :rules="rules" ref="form1">
+					<u-form-item label="密码" prop="password" labelWidth="auto" labelAlign="right">
+						<u--input v-model="userInfo.password" placeholder="请输入6到18位的密码" border="bottom" maxlength="18"
+							minlength="6" type="password"></u--input>
+					</u-form-item>
+					<u-form-item labelWidth="auto" labelAlign="right" label="确认密码" prop="password1" width="120">
+						<u--input maxlength="20" v-model="userInfo.password1" placeholder="请再次输入密码" border="bottom"
+							type="password"></u--input>
+					</u-form-item>
+				</u--form>
+			</view>
 		</view>
-	</view>
-	<view @click="gotoSettingTransactionPassword()" class="op-btn-wrap">
-		<view class="h-btn">
-			<text>下一步</text>
+		<view @click="gotoSettingTransactionPassword()" class="op-btn-wrap">
+			<view class="h-btn">
+				<text>下一步</text>
+			</view>
 		</view>
-	</view>
 
-	<view class="h-mark-desc">
-		<view class="h-text">
-			<text>*账号密码建议输入6到18位的数字、字母和特殊符号组成</text>
+		<view class="h-mark-desc">
+			<view class="h-text">
+				<text>*账号密码建议输入6到18位的数字、字母和特殊符号组成</text>
+			</view>
 		</view>
-	</view>
 
-  </view>
+	</view>
 </template>
 <script>
 export default {
@@ -77,7 +50,7 @@ export default {
 					message: '请输入6到18位密码',
 					trigger: ['blur', 'change'],
 				},
-				password1:  [
+				password1: [
 					{
 						required: true,
 						min: 6,
@@ -87,7 +60,7 @@ export default {
 					},
 					{
 						validator: (rule, value, callback) => {
-							if(this.userInfo.password === value){
+							if (this.userInfo.password === value) {
 								return true;
 							}
 							return false;
@@ -101,7 +74,7 @@ export default {
 	},
 	onLoad(option) {
 		// 判断Openid是否为空
-		if(!this.$isDataEmpty(option)){
+		if (!this.$isDataEmpty(option)) {
 			this.userInfo = JSON.parse(option.data);
 		}
 	},
@@ -110,7 +83,7 @@ export default {
 	},
 	methods: {
 		// 去设置交易密码
-		gotoSettingTransactionPassword(){
+		gotoSettingTransactionPassword() {
 			let that = this;
 			this.$refs.form1.validate().then(res => {
 				uni.$u.route({
@@ -125,30 +98,37 @@ export default {
 }
 </script>
 <style lang="scss">
-page,body{
+page,
+body {
 	background: #fff;
 }
-.container{
+
+.container {
 	background: #fff;
 	height: 500px;
+
 	.login-wrap {
 		display: flex;
 		justify-content: center;
-		.login-form{
+
+		.login-form {
 			width: 90%;
 		}
-		.account{
+
+		.account {
 			display: flex;
 		}
-		.identifying-code{
-		}
+
+		.identifying-code {}
 	}
-	.op-btn-wrap{
+
+	.op-btn-wrap {
 		margin-top: 30px;
 		display: flex;
 		justify-content: center;
 		align-items: center;
-		.h-btn{
+
+		.h-btn {
 			text-align: center;
 			width: 343px;
 			height: 42px;
@@ -158,5 +138,4 @@ page,body{
 		}
 	}
 }
-
 </style>