change code
This commit is contained in:
parent
67d2a65c30
commit
c776e7eb50
|
@ -25,6 +25,7 @@
|
||||||
<u--input type="password" placeholder="请输入密码" border="bottom" clearable v-model="userInfo.pasw">
|
<u--input type="password" placeholder="请输入密码" border="bottom" clearable v-model="userInfo.pasw">
|
||||||
</u--input>
|
</u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
|
||||||
<u-form-item prop="phone" ref="item1" class="data_itm" v-if="tab == 1">
|
<u-form-item prop="phone" ref="item1" class="data_itm" v-if="tab == 1">
|
||||||
<u--input placeholder="请输入手机号" border="bottom" clearable v-model="userInfo.phone"></u--input>
|
<u--input placeholder="请输入手机号" border="bottom" clearable v-model="userInfo.phone"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
|
@ -62,16 +63,32 @@
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
'number': [{
|
'number': [{
|
||||||
type: 'number',
|
|
||||||
required: true,
|
required: true,
|
||||||
message: '请填写账号',
|
message: '请填写账号',
|
||||||
trigger: ['blur']
|
trigger: ['blur']
|
||||||
}],
|
}],
|
||||||
|
'phone': [{
|
||||||
|
type: 'number',
|
||||||
|
required: true,
|
||||||
|
message: '请填写手机号',
|
||||||
|
trigger: ['blur']
|
||||||
|
}, {
|
||||||
|
validator: (rule, value, callback) => {
|
||||||
|
return uni.$u.test.mobile(value);
|
||||||
|
},
|
||||||
|
message: '请输入格式正确的手机号',
|
||||||
|
trigger: ['change', 'blur'],
|
||||||
|
}],
|
||||||
'pasw': [{
|
'pasw': [{
|
||||||
required: true,
|
required: true,
|
||||||
message: '请填写密码',
|
message: '请填写密码',
|
||||||
trigger: ['blur']
|
trigger: ['blur']
|
||||||
}],
|
}],
|
||||||
|
'code': [{
|
||||||
|
required: true,
|
||||||
|
message: '请填写验证码',
|
||||||
|
trigger: ['blur']
|
||||||
|
}],
|
||||||
},
|
},
|
||||||
tab: 0,
|
tab: 0,
|
||||||
};
|
};
|
||||||
|
@ -79,9 +96,11 @@
|
||||||
methods: {
|
methods: {
|
||||||
pwdLog() {
|
pwdLog() {
|
||||||
this.tab = 0
|
this.tab = 0
|
||||||
|
this.$refs.loginForm.clearValidate()
|
||||||
},
|
},
|
||||||
codeLog() {
|
codeLog() {
|
||||||
this.tab = 1
|
this.tab = 1
|
||||||
|
this.$refs.loginForm.clearValidate()
|
||||||
},
|
},
|
||||||
goRegist() {
|
goRegist() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|
|
@ -167,15 +167,15 @@
|
||||||
<view class="person_itm_sign" @click="goChangeInfo('地址','宁波象山县')">
|
<view class="person_itm_sign" @click="goChangeInfo('地址','宁波象山县')">
|
||||||
<text class="person_itm_sign_tit">地址</text>
|
<text class="person_itm_sign_tit">地址</text>
|
||||||
<view class="person_itm_sign_right">
|
<view class="person_itm_sign_right">
|
||||||
<text>地址</text>
|
<text>宁波象山县</text>
|
||||||
<u-icon name="arrow-right"></u-icon>
|
<u-icon name="arrow-right"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="person_itm_sign">
|
<view class="person_itm_sign" @click="goChangeInfo('实景照','照片url')">
|
||||||
<text class="person_itm_sign_tit">实景照</text>
|
<text class="person_itm_sign_tit">实景照</text>
|
||||||
<view class="person_itm_sign_right">
|
<view class="person_itm_sign_right">
|
||||||
<!-- <text>地址</text> -->
|
|
||||||
<u-icon name="arrow-right"></u-icon>
|
<u-icon name="arrow-right"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -183,7 +183,7 @@
|
||||||
<view class="person_itm_sign">
|
<view class="person_itm_sign">
|
||||||
<text class="person_itm_sign_tit">资质证</text>
|
<text class="person_itm_sign_tit">资质证</text>
|
||||||
<view class="person_itm_sign_right">
|
<view class="person_itm_sign_right">
|
||||||
<!-- <text>地址</text> -->
|
|
||||||
<u-icon name="arrow-right"></u-icon>
|
<u-icon name="arrow-right"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
Loading…
Reference in New Issue