|
@@ -1,36 +1,50 @@
|
|
<template>
|
|
<template>
|
|
<div class="login">
|
|
<div class="login">
|
|
- <div class="title">{{ appStore.globalConfig.orgTitle }}</div>
|
|
|
|
- <div class="sub-title">{{ appStore.globalConfig.taskTitle }}</div>
|
|
|
|
- <van-form @submit="onSubmit" class="login-form">
|
|
|
|
- <van-cell-group inset>
|
|
|
|
- <van-field
|
|
|
|
- v-model="account"
|
|
|
|
- name="学号"
|
|
|
|
- label=""
|
|
|
|
- placeholder="请输入学号"
|
|
|
|
- clearable
|
|
|
|
- label-width="0px"
|
|
|
|
- :rules="[{ required: true, message: '请输入学号' }]"
|
|
|
|
- />
|
|
|
|
- <van-field
|
|
|
|
- v-model="password"
|
|
|
|
- :type="passwordShow ? 'text' : 'password'"
|
|
|
|
- name="密码"
|
|
|
|
- label=""
|
|
|
|
- placeholder="请输入证件号后六位"
|
|
|
|
- :right-icon="passwordShow ? 'closed-eye' : 'eye-o'"
|
|
|
|
- @click-right-icon="passwordShow = !passwordShow"
|
|
|
|
- label-width="0px"
|
|
|
|
- :rules="[{ required: true, message: '请输入证件号后六位' }]"
|
|
|
|
- />
|
|
|
|
- <div style="margin: 16px">
|
|
|
|
- <van-button block type="success" native-type="submit">
|
|
|
|
- 提交
|
|
|
|
- </van-button>
|
|
|
|
- </div>
|
|
|
|
- </van-cell-group>
|
|
|
|
- </van-form>
|
|
|
|
|
|
+ <div v-if="!appStore.globalConfig.taskTitle" class="sys-disabled">
|
|
|
|
+ <div class="text-center">
|
|
|
|
+ <NoData>
|
|
|
|
+ <template #img>
|
|
|
|
+ <img src="../assets/imgs/sys_disabled.png" />
|
|
|
|
+ </template>
|
|
|
|
+ <template #title>{{ appStore.globalConfig.orgTitle }}</template>
|
|
|
|
+ 当前预约系统未开放</NoData
|
|
|
|
+ >
|
|
|
|
+ <div class="cus-btn" @click="exit">退出</div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <template v-else>
|
|
|
|
+ <div class="title">{{ appStore.globalConfig.orgTitle }}</div>
|
|
|
|
+ <div class="sub-title">{{ appStore.globalConfig.taskTitle }}</div>
|
|
|
|
+ <van-form @submit="onSubmit" class="login-form">
|
|
|
|
+ <van-cell-group inset>
|
|
|
|
+ <van-field
|
|
|
|
+ v-model="account"
|
|
|
|
+ name="学号"
|
|
|
|
+ label=""
|
|
|
|
+ placeholder="请输入学号"
|
|
|
|
+ clearable
|
|
|
|
+ label-width="0px"
|
|
|
|
+ :rules="[{ required: true, message: '请输入学号' }]"
|
|
|
|
+ />
|
|
|
|
+ <van-field
|
|
|
|
+ v-model="password"
|
|
|
|
+ :type="passwordShow ? 'text' : 'password'"
|
|
|
|
+ name="密码"
|
|
|
|
+ label=""
|
|
|
|
+ placeholder="请输入证件号后六位"
|
|
|
|
+ :right-icon="passwordShow ? 'closed-eye' : 'eye-o'"
|
|
|
|
+ @click-right-icon="passwordShow = !passwordShow"
|
|
|
|
+ label-width="0px"
|
|
|
|
+ :rules="[{ required: true, message: '请输入证件号后六位' }]"
|
|
|
|
+ />
|
|
|
|
+ <div style="margin: 16px">
|
|
|
|
+ <van-button block type="success" native-type="submit">
|
|
|
|
+ 提交
|
|
|
|
+ </van-button>
|
|
|
|
+ </div>
|
|
|
|
+ </van-cell-group>
|
|
|
|
+ </van-form>
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script name="Login" setup>
|
|
<script name="Login" setup>
|
|
@@ -52,17 +66,28 @@ const onSubmit = () => {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+const exit = () => {
|
|
|
|
+ window.location.href = "about:blank";
|
|
|
|
+ window.close();
|
|
|
|
+};
|
|
</script>
|
|
</script>
|
|
<style lang="less" scoped>
|
|
<style lang="less" scoped>
|
|
.login {
|
|
.login {
|
|
background-color: #fff !important;
|
|
background-color: #fff !important;
|
|
height: 100vh;
|
|
height: 100vh;
|
|
- padding-top: 48px;
|
|
|
|
|
|
+ .sys-disabled {
|
|
|
|
+ height: 100%;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ background: #f0f0f0;
|
|
|
|
+ }
|
|
.title {
|
|
.title {
|
|
font-size: 24px;
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
font-weight: 600;
|
|
color: #262626;
|
|
color: #262626;
|
|
padding-left: 24px;
|
|
padding-left: 24px;
|
|
|
|
+ padding-top: 48px;
|
|
}
|
|
}
|
|
.sub-title {
|
|
.sub-title {
|
|
font-size: 16px;
|
|
font-size: 16px;
|