|
@@ -12,15 +12,16 @@
|
|
|
<view class="input-item sys-from-background-color sys-radius-30 animate__animated" :class="{'animate__shakeX':shakeNum===1}" >
|
|
<view class="input-item sys-from-background-color sys-radius-30 animate__animated" :class="{'animate__shakeX':shakeNum===1}" >
|
|
|
<en-input type="nickname" class="login-input" placeholder="请输入昵称" v-model="accountData.nickname" ></en-input>
|
|
<en-input type="nickname" class="login-input" placeholder="请输入昵称" v-model="accountData.nickname" ></en-input>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="input-item sys-from-background-color sys-radius-30 animate__animated" :class="{'animate__shakeX':shakeNum===2}">
|
|
|
|
|
- <en-input type="text" class="login-input" placeholder="请输入姓名" v-model="accountData.name" ></en-input>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
<view class="step-item animate__animated animate__fadeIn" v-else>
|
|
<view class="step-item animate__animated animate__fadeIn" v-else>
|
|
|
- <view class="back-set" @click="setStepNum(1)">
|
|
|
|
|
|
|
+ <view class="back-set" @click="setStepNum(1)" v-if="false">
|
|
|
<image class="back-img" src="/static/img/login/Vector.png" mode="widthFix"></image>
|
|
<image class="back-img" src="/static/img/login/Vector.png" mode="widthFix"></image>
|
|
|
<view class="back-text text-color-dominant sys-size-30 sys-weight-400">返回上一步</view>
|
|
<view class="back-text text-color-dominant sys-size-30 sys-weight-400">返回上一步</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="input-item sys-from-background-color sys-radius-30 animate__animated" :class="{'animate__shakeX':shakeNum===2}">
|
|
|
|
|
+ <en-input type="text" class="login-input" placeholder="请输入姓名" v-model="accountData.name" ></en-input>
|
|
|
|
|
+ </view>
|
|
|
<view class="input-item sys-from-background-color sys-radius-30 animate__animated" :class="{'animate__shakeX':shakeNum===3}" >
|
|
<view class="input-item sys-from-background-color sys-radius-30 animate__animated" :class="{'animate__shakeX':shakeNum===3}" >
|
|
|
<en-input type="number" class="login-input" placeholder="请输入手机号" v-model="accountData.phone" ></en-input>
|
|
<en-input type="number" class="login-input" placeholder="请输入手机号" v-model="accountData.phone" ></en-input>
|
|
|
</view>
|
|
</view>
|
|
@@ -77,9 +78,6 @@ import txUploadFile from "@/service/txOssSts";
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {Agreement, EnInput},
|
|
components: {Agreement, EnInput},
|
|
|
- onPullDownRefresh() {
|
|
|
|
|
- return false
|
|
|
|
|
- },
|
|
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
accountData:{
|
|
accountData:{
|
|
@@ -99,7 +97,7 @@ export default {
|
|
|
isConsent: false,
|
|
isConsent: false,
|
|
|
isRegister: false,
|
|
isRegister: false,
|
|
|
shakeNum: 0,
|
|
shakeNum: 0,
|
|
|
- stepNum:1,
|
|
|
|
|
|
|
+ stepNum:2,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
watch:{
|
|
watch:{
|
|
@@ -154,15 +152,15 @@ export default {
|
|
|
this.shakeNum=1
|
|
this.shakeNum=1
|
|
|
tools.error('请输入昵称');
|
|
tools.error('请输入昵称');
|
|
|
}
|
|
}
|
|
|
- }else if(!this.accountData.name){
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ }else {
|
|
|
|
|
+ if(!this.accountData.name){
|
|
|
isRegister=false
|
|
isRegister=false
|
|
|
if(type){
|
|
if(type){
|
|
|
this.shakeNum=2
|
|
this.shakeNum=2
|
|
|
tools.error('请输入姓名');
|
|
tools.error('请输入姓名');
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- }else {
|
|
|
|
|
- if(!this.accountData.phone){
|
|
|
|
|
|
|
+ }else if(!this.accountData.phone){
|
|
|
isRegister=false
|
|
isRegister=false
|
|
|
if(type){
|
|
if(type){
|
|
|
this.shakeNum=3
|
|
this.shakeNum=3
|