|
@@ -14,7 +14,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
|
<div class="text-link">
|
|
<div class="text-link">
|
|
|
- <span @click="click" v-if="service.getSystemInfo('shwoRegister')">立即注册</span>
|
|
|
|
|
|
|
+ <span @click="isRegister = true" v-if="shwoRegister">立即注册</span>
|
|
|
<span @click="islogin = false">忘记密码?</span>
|
|
<span @click="islogin = false">忘记密码?</span>
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -59,10 +59,11 @@ const router = useRouter()
|
|
|
const menuStore = useMenuStore()
|
|
const menuStore = useMenuStore()
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
|
|
|
+const shwoRegister = shallowRef(false)
|
|
|
const islogin = shallowRef(true)
|
|
const islogin = shallowRef(true)
|
|
|
const isRegister = shallowRef(false)
|
|
const isRegister = shallowRef(false)
|
|
|
const qrContent = shallowRef('')
|
|
const qrContent = shallowRef('')
|
|
|
-const rloading = shallowRef(false)
|
|
|
|
|
|
|
+const rloading = shallowRef(true)
|
|
|
|
|
|
|
|
const formRules: FormRules = {
|
|
const formRules: FormRules = {
|
|
|
userName: [
|
|
userName: [
|
|
@@ -73,16 +74,6 @@ const formRules: FormRules = {
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-const click = () => {
|
|
|
|
|
- isRegister.value = true
|
|
|
|
|
- rloading.value = true
|
|
|
|
|
- service.onReady().then((res) => {
|
|
|
|
|
- qrContent.value = res.mobileOpenUrl
|
|
|
|
|
- }).finally(() => {
|
|
|
|
|
- rloading.value = false
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
const formSubmit = () => {
|
|
const formSubmit = () => {
|
|
|
formRef.value?.validate(async (valid) => {
|
|
formRef.value?.validate(async (valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
@@ -104,6 +95,13 @@ const formSubmit = () => {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+service.onReady().then(() => {
|
|
|
|
|
+ shwoRegister.value = service.getSystemInfo('shwoRegister')
|
|
|
|
|
+ qrContent.value = service.getConfig('mobileOpenUrl')
|
|
|
|
|
+}).finally(() => {
|
|
|
|
|
+ rloading.value = false
|
|
|
|
|
+})
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|