fix: 茅台预约系统,登录增加注册功能。
This commit is contained in:
@@ -27,8 +27,8 @@
|
||||
</view>
|
||||
|
||||
<view class="xieyi text-center">
|
||||
<text @click="handleRegister" class="text-blue">立即注册 </text>
|
||||
<text class="text-grey1">登录即代表同意</text>
|
||||
<text @click="handleUserAgrement" class="text-blue">《用户协议》</text>
|
||||
<text @click="handlePrivacy" class="text-blue">《隐私协议》</text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -79,6 +79,12 @@ function getCode() {
|
||||
})
|
||||
};
|
||||
|
||||
function handleRegister() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/register`
|
||||
});
|
||||
};
|
||||
|
||||
async function handleLogin() {
|
||||
if (loginForm.value.username === "") {
|
||||
modal.msgError("请输入您的账号")
|
||||
@@ -108,7 +114,7 @@ function loginSuccess(result) {
|
||||
// 设置用户信息
|
||||
userStore.getInfo().then(res => {
|
||||
uni.switchTab({
|
||||
url: '/pages/health/homepage/index'
|
||||
url: '/pages/imaotai/iuser/list'
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user