|
@@ -23,7 +23,7 @@
|
|
</uni-forms>
|
|
</uni-forms>
|
|
|
|
|
|
<view class="quickLogon">
|
|
<view class="quickLogon">
|
|
- <view></view>
|
|
|
|
|
|
+ <view class="color-666" style="font-size: .85em;" @tap.stop="handleForgotPassword">忘记密码</view>
|
|
<view class="register" @tap="handleChangeRegister">还没有登录账户?去注册</view>
|
|
<view class="register" @tap="handleChangeRegister">还没有登录账户?去注册</view>
|
|
</view>
|
|
</view>
|
|
<button class="send-button" @tap="handleLogin"> 登 录 </button>
|
|
<button class="send-button" @tap="handleLogin"> 登 录 </button>
|
|
@@ -44,7 +44,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<template v-if="changeType === 'register'">
|
|
<template v-if="changeType === 'register'">
|
|
- <view class="head-title pb-20">手机号注册</view>
|
|
|
|
|
|
+ <view class="head-title pb-20">手机号验证</view>
|
|
|
|
|
|
<uni-forms
|
|
<uni-forms
|
|
ref="registerForm"
|
|
ref="registerForm"
|
|
@@ -108,9 +108,7 @@ import { closeAuthModal } from '@/hooks/useModal'
|
|
import { getUserRegisterEnterpriseApply, getEnterpriseRegisterApply } from '@/api/enterprise'
|
|
import { getUserRegisterEnterpriseApply, getEnterpriseRegisterApply } from '@/api/enterprise'
|
|
|
|
|
|
const useUserStore = userStore()
|
|
const useUserStore = userStore()
|
|
-const current = ref(0)
|
|
|
|
const accountLoginRef = ref()
|
|
const accountLoginRef = ref()
|
|
-const smsLoginRef = ref()
|
|
|
|
const registerForm = ref()
|
|
const registerForm = ref()
|
|
const protocol = ref(false)
|
|
const protocol = ref(false)
|
|
const state = ref({
|
|
const state = ref({
|
|
@@ -145,24 +143,14 @@ if (window && window.location && window.location.hostname && window.location.hos
|
|
state.value.account.password = 'Citu123456'
|
|
state.value.account.password = 'Citu123456'
|
|
}
|
|
}
|
|
|
|
|
|
-const changeType = ref('login')
|
|
|
|
-
|
|
|
|
-const onClickItem = (e) => {
|
|
|
|
- current.value = e.currentIndex
|
|
|
|
|
|
+// 忘记密码
|
|
|
|
+const handleForgotPassword = () => {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pagesA/forgotPassword/index'
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
|
|
-// 获取验证码
|
|
|
|
-const handleCode = () => {
|
|
|
|
- if (!state.value.sms.phone) {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '请输入手机号',
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- getSmsCode('smsLogin', state.value.sms.phone)
|
|
|
|
-}
|
|
|
|
|
|
+const changeType = ref('login')
|
|
|
|
|
|
// 获取验证码
|
|
// 获取验证码
|
|
const handleRegisterCode = () => {
|
|
const handleRegisterCode = () => {
|