提交 077b9c66 authored 作者: lhh's avatar lhh

update

上级 d144b90d
...@@ -67,7 +67,7 @@ const rules = ref<FormRules>({ ...@@ -67,7 +67,7 @@ const rules = ref<FormRules>({
grade: [{ required: true, message: '请输入年级' }], grade: [{ required: true, message: '请输入年级' }],
teacher_name: [{ required: true, message: '请输入指导教师' }], teacher_name: [{ required: true, message: '请输入指导教师' }],
photo: [{ required: true, message: '请上传证件照' }], photo: [{ required: true, message: '请上传证件照' }],
// code: [{ required: true, message: '请输入验证码' }], code: [{ required: true, message: '请输入验证码' }],
protocol: [{ validator: checkProtocol, trigger: 'change' }] protocol: [{ validator: checkProtocol, trigger: 'change' }]
}) })
...@@ -93,6 +93,11 @@ const step = ref(0) ...@@ -93,6 +93,11 @@ const step = ref(0)
const goPage = function () { const goPage = function () {
window.open('https://mp.weixin.qq.com/s/YCrp7zFbmurfNr5JDOBlAQ') window.open('https://mp.weixin.qq.com/s/YCrp7zFbmurfNr5JDOBlAQ')
} }
onMounted(() => {
window.document.cookie =
'TGC=VEdULTE4NzYtbFJtckJTNmxKcENRd0lMWG1FSlZwSzBNQUx3RUhiek5HdFhROXlseXJnalVLQWRTRk51RjlleWpsTjM4RmRRcTVkVS1jb20tY2FzLWFwaS03OGJjODdkOTktZzZ2anJAQEAxNzIuMjUuMTEuMTkyQEBATW96aWxsYS81LjAgKE1hY2ludG9zaDsgSW50ZWwgTWFjIE9TIFggMTBfMTVfNykgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzExMi4wLjAuMCBTYWZhcmkvNTM3LjM2QEBANjExMzU5NzkxODQ1Nzg4ODc2OA=='
})
</script> </script>
<template> <template>
...@@ -107,6 +112,7 @@ const goPage = function () { ...@@ -107,6 +112,7 @@ const goPage = function () {
</div> </div>
</div> </div>
<div class="register-form" v-if="step === 1"> <div class="register-form" v-if="step === 1">
<div class="bg"></div>
<AppCard> <AppCard>
<h1>2023年全国大学生商业数据分析与应用大赛</h1> <h1>2023年全国大学生商业数据分析与应用大赛</h1>
<el-form ref="formRef" :model="form" :rules="rules" label-width="124px" style="width: 600px; margin: 0 auto"> <el-form ref="formRef" :model="form" :rules="rules" label-width="124px" style="width: 600px; margin: 0 auto">
...@@ -161,13 +167,13 @@ const goPage = function () { ...@@ -161,13 +167,13 @@ const goPage = function () {
<template #tip>证件照说明:请上传蓝底1寸或蓝底2寸证件照,照片大小控制在500kb以内。</template> <template #tip>证件照说明:请上传蓝底1寸或蓝底2寸证件照,照片大小控制在500kb以内。</template>
</AppUpload> </AppUpload>
</el-form-item> </el-form-item>
<!-- <el-form-item label="验证码" prop="code"> <el-form-item label="验证码" prop="code">
<el-input v-model="form.code"> <el-input v-model="form.code">
<template #append> <template #append>
<el-button type="primary" :disabled="disabled" @click="sendSMS">{{ countdownText }}</el-button> <el-button type="primary" :disabled="disabled" @click="sendSMS">{{ countdownText }}</el-button>
</template> </template>
</el-input> </el-input>
</el-form-item> --> </el-form-item>
<el-form-item prop="protocol"> <el-form-item prop="protocol">
<el-checkbox label="我已确认上述信息输入无误,并对上述信息填写内容负责。" v-model="form.protocol" /> <el-checkbox label="我已确认上述信息输入无误,并对上述信息填写内容负责。" v-model="form.protocol" />
</el-form-item> </el-form-item>
...@@ -244,6 +250,10 @@ const goPage = function () { ...@@ -244,6 +250,10 @@ const goPage = function () {
} }
} }
.register-form { .register-form {
.bg {
background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/pages/assa/register-bg.png);
background-size: cover;
}
h1 { h1 {
font-size: 36px; font-size: 36px;
font-weight: bold; font-weight: bold;
......
...@@ -7,7 +7,9 @@ const router = createRouter({ ...@@ -7,7 +7,9 @@ const router = createRouter({
}) })
router.beforeEach(async (to, from, next) => { router.beforeEach(async (to, from, next) => {
if (to.path !== '/register') { if (window.location.origin === 'https://dasai.ezijing.com') {
next()
} else {
const whiteList = ['/401'] const whiteList = ['/401']
const user = useUserStore() const user = useUserStore()
if (!user.isLogin && !whiteList.includes(to.path)) { if (!user.isLogin && !whiteList.includes(to.path)) {
...@@ -20,8 +22,6 @@ router.beforeEach(async (to, from, next) => { ...@@ -20,8 +22,6 @@ router.beforeEach(async (to, from, next) => {
return return
} }
next() next()
} else {
next()
} }
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论