|
@@ -1,19 +1,16 @@
|
|
<!-- 短信登录 - smsLogin -->
|
|
<!-- 短信登录 - smsLogin -->
|
|
<template>
|
|
<template>
|
|
<view>
|
|
<view>
|
|
- <!-- 标题栏 -->
|
|
|
|
- <!-- <view class="head-box ss-m-b-60">
|
|
|
|
- <view class="ss-flex ss-m-b-20">
|
|
|
|
- <view class="head-title-active ss-m-r-40" @tap="showAuthModal('accountLogin')">
|
|
|
|
- 账号登录
|
|
|
|
- </view>
|
|
|
|
- <view class="head-title head-title-line head-title-animation">短信登录</view>
|
|
|
|
-
|
|
|
|
- </view>
|
|
|
|
- <view class="head-subtitle">未注册的手机号,验证后自动注册账号</view>
|
|
|
|
- </view> -->
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ <view class="head-box " >
|
|
|
|
+ <view class="ss-flex ss-m-b-20">
|
|
|
|
+ <view
|
|
|
|
+ class="isActive head-title"
|
|
|
|
+ >
|
|
|
|
+ 您首次登录,请输入手机号验证
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<!-- 表单项 -->
|
|
<!-- 表单项 -->
|
|
<uni-forms ref="smsLoginRef" v-model="state.model" :rules="state.rules" validateTrigger="bind" labelWidth="140"
|
|
<uni-forms ref="smsLoginRef" v-model="state.model" :rules="state.rules" validateTrigger="bind" labelWidth="140"
|
|
labelAlign="center" class="loginUniForm">
|
|
labelAlign="center" class="loginUniForm">
|
|
@@ -32,17 +29,11 @@
|
|
<uni-forms-item name="code" label="验证码" class="loginUniFormItem">
|
|
<uni-forms-item name="code" label="验证码" class="loginUniFormItem">
|
|
<uni-easyinput placeholder="请输入验证码" v-model="state.model.code" :inputBorder="false" type="number"
|
|
<uni-easyinput placeholder="请输入验证码" v-model="state.model.code" :inputBorder="false" type="number"
|
|
maxlength="4">
|
|
maxlength="4">
|
|
- <!-- <template v-slot:right>
|
|
|
|
- <button class="ss-reset-button login-btn-start" @tap="smsLoginSubmit"> 登录 </button>
|
|
|
|
- </template> -->
|
|
|
|
</uni-easyinput>
|
|
</uni-easyinput>
|
|
</uni-forms-item>
|
|
</uni-forms-item>
|
|
</uni-forms>
|
|
</uni-forms>
|
|
<view style="display: flex;justify-content: space-between;margin-top: 20rpx;">
|
|
<view style="display: flex;justify-content: space-between;margin-top: 20rpx;">
|
|
- <!-- <button class="ss-reset-button forgot-btn" @tap="showAuthModal('resetPassword')">
|
|
|
|
- 忘记密码
|
|
|
|
- </button> -->
|
|
|
|
- <button class="ss-reset-button login-btn-start" @tap="smsLoginSubmit"> 登录 </button>
|
|
|
|
|
|
+ <button class="ss-reset-button login-btn-start" @tap="OfficialEnterLogin"> 继续登录 </button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -93,7 +84,7 @@
|
|
});
|
|
});
|
|
|
|
|
|
// 短信登录
|
|
// 短信登录
|
|
- async function smsLoginSubmit() {
|
|
|
|
|
|
+ async function OfficialEnterLogin() {
|
|
|
|
|
|
// 参数校验
|
|
// 参数校验
|
|
const validate = await unref(smsLoginRef)
|
|
const validate = await unref(smsLoginRef)
|
|
@@ -104,12 +95,7 @@
|
|
if (!validate) {
|
|
if (!validate) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (!props.agreeStatus) {
|
|
|
|
- emits('onConfirm', true)
|
|
|
|
- //onConfirm(true)
|
|
|
|
- sheep.$helper.toast('请勾选同意');
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
// 提交数据
|
|
// 提交数据
|
|
const {
|
|
const {
|
|
code
|
|
code
|