|
|
|
|
@ -7,7 +7,7 @@
|
|
|
|
|
<!-- 标题 -->
|
|
|
|
|
<view class="head-box u-m-b-60 u-flex-col ">
|
|
|
|
|
<view class="u-flex u-m-b-20">
|
|
|
|
|
<view class="head-title u-m-r-40 head-title-animation">账号登录</view>
|
|
|
|
|
<!-- <view class="head-title u-m-r-40 head-title-animation" style="display:none">账号登录</view> -->
|
|
|
|
|
<view class="head-title-active head-title-line" @tap="showAuthModal('smsLogin')">
|
|
|
|
|
短信登录
|
|
|
|
|
</view>
|
|
|
|
|
@ -47,18 +47,19 @@
|
|
|
|
|
</button>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 2.短信登录 -->
|
|
|
|
|
<view v-if="authType === 'smsLogin'">
|
|
|
|
|
<view class="head-box u-m-b-60">
|
|
|
|
|
<view class="u-flex u-m-b-20">
|
|
|
|
|
<view class="head-title-active u-m-r-40" @tap="showAuthModal('accountLogin')">
|
|
|
|
|
<view class="head-title-active u-m-r-40" @tap="showAuthModal('accountLogin')" style="display: none;">
|
|
|
|
|
账号登录
|
|
|
|
|
</view>
|
|
|
|
|
<view class="head-title head-title-line head-title-animation">
|
|
|
|
|
短信登录
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="head-subtitle">未注册手机号请先点击下方立即注册</view>
|
|
|
|
|
<!-- <view class="head-subtitle">未注册手机号请先点击下方立即注册</view> -->
|
|
|
|
|
</view>
|
|
|
|
|
<view class="form-item u-border-bottom">
|
|
|
|
|
<view class="item-content u-flex u-col-center">
|
|
|
|
|
@ -88,7 +89,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
<view class="message-error">{{ form["smsLogin"].error.code || "" }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
<button class="u-reset-button type-btn" @tap="showAuthModal('register')">
|
|
|
|
|
<button class="u-reset-button type-btn" @tap="showAuthModal('register')" style="display: none;">
|
|
|
|
|
立即注册
|
|
|
|
|
</button>
|
|
|
|
|
</view>
|
|
|
|
|
@ -493,13 +494,26 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() { },
|
|
|
|
|
|
|
|
|
|
watch: {
|
|
|
|
|
authType(newAuthType, oldAuthType) {
|
|
|
|
|
// 在这里执行你的逻辑,例如设置默认值
|
|
|
|
|
if (newAuthType === "accountLogin") {
|
|
|
|
|
this.$store.commit("setAuthType", "smsLogin");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
...mapActions(["getUserInfo", "showAuthModal"]),
|
|
|
|
|
|
|
|
|
|
// 检测
|
|
|
|
|
checkValue(e, key) {
|
|
|
|
|
console.log("checkValue@@@@")
|
|
|
|
|
|
|
|
|
|
// this.validation(key);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|