feat: 备案版本调试
This commit is contained in:
@@ -13,6 +13,19 @@
|
|||||||
<image class="w-full h-full" :src="logo" mode="widthFix" />
|
<image class="w-full h-full" :src="logo" mode="widthFix" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="form">
|
||||||
|
<view
|
||||||
|
class="bg-white border-box p-12 rounded-10 flex flex-items-center mb-16"
|
||||||
|
>
|
||||||
|
<uni-icons class="mr-8" type="phone-filled" size="20" color="#999" />
|
||||||
|
<input class="w-272" type="tel" placeholder="请输入手机号" />
|
||||||
|
</view>
|
||||||
|
<view class="bg-white border-box p-12 rounded-10 flex flex-items-center">
|
||||||
|
<uni-icons class="mr-8" type="locked-filled" size="20" color="#999" />
|
||||||
|
<input class="w-272" type="text" password placeholder="请输入密码" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- 协议勾选 -->
|
<!-- 协议勾选 -->
|
||||||
<view class="login-agreement flex flex-items-center">
|
<view class="login-agreement flex flex-items-center">
|
||||||
<CheckBox v-model="isAgree">
|
<CheckBox v-model="isAgree">
|
||||||
@@ -36,36 +49,8 @@
|
|||||||
<!-- 按钮区域 -->
|
<!-- 按钮区域 -->
|
||||||
<view class="login-btn-area">
|
<view class="login-btn-area">
|
||||||
<!-- 同意隐私协议并获取手机号按钮 -->
|
<!-- 同意隐私协议并获取手机号按钮 -->
|
||||||
|
<button class="login-btn" type="primary" @click="onSubmitForm">
|
||||||
<button
|
登 录
|
||||||
v-if="!isAgree"
|
|
||||||
class="login-btn"
|
|
||||||
type="primary"
|
|
||||||
@click="handleAgreeAndGetPhone"
|
|
||||||
>
|
|
||||||
<uni-icons type="weixin" size="20" color="#fff"></uni-icons>
|
|
||||||
微信一键登录
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button
|
|
||||||
v-if="isAgree && !appStore.tokenExpired"
|
|
||||||
class="login-btn"
|
|
||||||
type="primary"
|
|
||||||
open-type="getPhoneNumber"
|
|
||||||
@getphonenumber="getPhoneNumber"
|
|
||||||
>
|
|
||||||
<uni-icons type="weixin" size="20" color="#fff"></uni-icons>
|
|
||||||
微信一键登录
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<button
|
|
||||||
v-if="isAgree && appStore.tokenExpired"
|
|
||||||
class="login-btn"
|
|
||||||
type="primary"
|
|
||||||
@click="handleLogin"
|
|
||||||
>
|
|
||||||
<uni-icons type="weixin" size="20" color="#fff"></uni-icons>
|
|
||||||
微信一键登录
|
|
||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -100,8 +85,8 @@ const privacyAgreement = ref("");
|
|||||||
const AgreeType = ref("service");
|
const AgreeType = ref("service");
|
||||||
const logo = computed(() => getCurrentConfig().logo);
|
const logo = computed(() => getCurrentConfig().logo);
|
||||||
|
|
||||||
// 同意隐私协议并获取手机号
|
// 提交表单操作
|
||||||
const handleAgreeAndGetPhone = () => {
|
const onSubmitForm = () => {
|
||||||
if (!isAgree.value) {
|
if (!isAgree.value) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "请先同意服务协议和隐私协议",
|
title: "请先同意服务协议和隐私协议",
|
||||||
@@ -111,18 +96,6 @@ const handleAgreeAndGetPhone = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const getPhoneNumber = (e) => {
|
|
||||||
onLogin(e)
|
|
||||||
.then(() => {
|
|
||||||
uni.showToast({
|
|
||||||
title: "登录成功",
|
|
||||||
icon: "success",
|
|
||||||
});
|
|
||||||
goBack();
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleLogin = () => {
|
const handleLogin = () => {
|
||||||
console.log("handleLogin");
|
console.log("handleLogin");
|
||||||
onLogin()
|
onLogin()
|
||||||
|
|||||||
@@ -36,8 +36,16 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form {
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.w-272 {
|
||||||
|
width: 272px;
|
||||||
|
}
|
||||||
|
|
||||||
.login-agreement {
|
.login-agreement {
|
||||||
margin-top: 80px;
|
margin-top: 40px;
|
||||||
width: 304px;
|
width: 304px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user