|
@@ -42,7 +42,7 @@
|
|
|
|
|
|
<!-- 账号密码登录 -->
|
|
|
<uni-forms
|
|
|
- v-else
|
|
|
+ v-if="current === 1"
|
|
|
ref="accountLoginRef"
|
|
|
v-model="state.account"
|
|
|
:rules="state.rules"
|
|
@@ -58,15 +58,21 @@
|
|
|
<uni-easyinput type="password" placeholder="请输入密码" v-model="state.account.password" :inputBorder="false"></uni-easyinput>
|
|
|
</uni-forms-item>
|
|
|
</uni-forms>
|
|
|
+
|
|
|
+ <view v-if="current === 2">
|
|
|
+ <button v-if="!protocol" class="send-button" @click="showProtocolToast">微信一键登录</button>
|
|
|
+ <button v-else class="send-button" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">微信一键登录</button>
|
|
|
+ </view>
|
|
|
+
|
|
|
<view class="quickLogon">
|
|
|
<view>
|
|
|
- <button v-if="!protocol" class="wxLogon" type="text" :plain="true" @click="showProtocolToast">微信一键登录</button>
|
|
|
- <button v-else class="wxLogon" type="text" :plain="true" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">微信一键登录</button>
|
|
|
+ <!-- <button v-if="!protocol" class="wxLogon" type="text" :plain="true" @click="showProtocolToast">微信一键登录</button>
|
|
|
+ <button v-else class="wxLogon" type="text" :plain="true" open-type="getPhoneNumber" @getphonenumber="getPhoneNumber">微信一键登录</button> -->
|
|
|
</view>
|
|
|
<view class="register" @tap="handleChangeRegister">还没有登录账户?去注册</view>
|
|
|
</view>
|
|
|
- <button class="send-button" @tap="handleLogin"> 登 录 </button>
|
|
|
- <view class="agreement-box ss-flex ss-row-center">
|
|
|
+ <button v-if="current !== 2" class="send-button" @tap="handleLogin"> 登 录 </button>
|
|
|
+ <view class="agreement-box ss-flex ss-row-center" style="margin-bottom: 30px;">
|
|
|
<uni-icons size="20" :type="protocol ? 'checkbox-filled' : 'circle'" :color="protocol ? '#00897B' : '#ccc'" @tap="protocol = !protocol"></uni-icons>
|
|
|
<view class="color-999 ss-flex ss-col-center ss-m-l-8 font-size-13">
|
|
|
我已阅读并遵守
|
|
@@ -119,11 +125,11 @@
|
|
|
</uni-easyinput>
|
|
|
</uni-forms-item>
|
|
|
</uni-forms>
|
|
|
- <view class="register login" @tap="handleChangeLogin">已有账户?去登陆</view>
|
|
|
+ <view class="register login" style="text-align: end;" @tap="handleChangeLogin">已有账户?去登陆</view>
|
|
|
<view>
|
|
|
<button class="send-button" @tap="handleRegister"> 注 册 </button>
|
|
|
</view>
|
|
|
- <view class="color-999 ss-flex ss-col-center ss-row-center ss-m-l-8 font-size-13">
|
|
|
+ <view class="color-999 ss-flex ss-col-center ss-row-center ss-m-l-8 font-size-13" style="margin-bottom: 30px;">
|
|
|
点击注册即代表您同意
|
|
|
<view class="color-primary" @tap.stop="handleToDetail('user')">
|
|
|
《用户协议》
|
|
@@ -144,7 +150,7 @@ import { getSmsCode, getSmsTimer } from '@/utils/code'
|
|
|
import { userStore } from '@/store/user'
|
|
|
|
|
|
const useUserStore = userStore()
|
|
|
-const items = ['短信登录', '账号登录']
|
|
|
+const items = ['短信登录', '账号登录', '微信一键登录']
|
|
|
const current = ref(0)
|
|
|
const accountLoginRef = ref()
|
|
|
const smsLoginRef = ref()
|