mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-09-20 20:02:02 +08:00
Merge branch 'master' into feat/mp-wechat-avatar-nickname
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div v-if="!wechatLogin" class="login-body">
|
<div v-if="!wechatLogin" class="login-body">
|
||||||
<u-navbar :auto-back="showBack" :border="false" :fixed="true" :placeholder="true"></u-navbar>
|
<u-navbar :auto-back="false" :border="false" :fixed="true" :placeholder="true" @leftClick="back"></u-navbar>
|
||||||
<div class="login-header">
|
<div class="login-header">
|
||||||
<div class="title">{{ loginTitleWay[current].title }}</div>
|
<div class="title">{{ loginTitleWay[current].title }}</div>
|
||||||
<div :class="current == 1 ? 'desc-light' : 'desc'">
|
<div :class="current == 1 ? 'desc-light' : 'desc'">
|
||||||
@@ -173,7 +173,6 @@ const loginTitleWay = [
|
|||||||
{ title: '请输入验证码', desc: '已经发送验证码至' },
|
{ title: '请输入验证码', desc: '已经发送验证码至' },
|
||||||
]
|
]
|
||||||
const userData = reactive({ username: '', password: '' })
|
const userData = reactive({ username: '', password: '' })
|
||||||
const showBack = ref(false)
|
|
||||||
const enableFetchCode = ref(false)
|
const enableFetchCode = ref(false)
|
||||||
const enableUserBtnColor = ref(false)
|
const enableUserBtnColor = ref(false)
|
||||||
const enablePrivacy = ref(false)
|
const enablePrivacy = ref(false)
|
||||||
@@ -284,10 +283,6 @@ onMounted(() => {
|
|||||||
// #endif
|
// #endif
|
||||||
})
|
})
|
||||||
|
|
||||||
watch(current, (val) => {
|
|
||||||
showBack.value = val ? true : false
|
|
||||||
})
|
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
userData,
|
userData,
|
||||||
() => {
|
() => {
|
||||||
@@ -577,6 +572,22 @@ function handleVerification(val: string) {
|
|||||||
flage.value = val == store.state.verificationKey ? true : false
|
flage.value = val == store.state.verificationKey ? true : false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function back() {
|
||||||
|
if (current.value === 1) {
|
||||||
|
current.value = 0
|
||||||
|
code.value = ''
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const pages = getCurrentPages()
|
||||||
|
if (pages.length > 1) {
|
||||||
|
uni.navigateBack({ delta: 1 })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
uni.switchTab({
|
||||||
|
url: '/pages/tabbar/home/index',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
function navigateToPrivacy(val: string) {
|
function navigateToPrivacy(val: string) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/mine/help/tips?type=' + val,
|
url: '/pages/mine/help/tips?type=' + val,
|
||||||
|
|||||||
Reference in New Issue
Block a user