Commit f422d8ef authored by zhengke's avatar zhengke

Access Denied

parent 4204b870
...@@ -14,7 +14,8 @@ export enum ApiResult{ ...@@ -14,7 +14,8 @@ export enum ApiResult{
'FAILED' = 0, 'FAILED' = 0,
'TOKEN_INVALID' = 10000, 'TOKEN_INVALID' = 10000,
'TOKEN_ILLEGAL' = 10001, 'TOKEN_ILLEGAL' = 10001,
'REMOTE_LOGIN' = 10010 'REMOTE_LOGIN' = 10010,
'STATIC_ACCESS' = 20005
} }
export enum VipType{ export enum VipType{
...@@ -116,6 +117,9 @@ service.interceptors.response.use( ...@@ -116,6 +117,9 @@ service.interceptors.response.use(
useUserStore().setUserLoginOut() useUserStore().setUserLoginOut()
}, 1000); }, 1000);
} }
if(response.data.resultCode == ApiResult.STATIC_ACCESS){
window.location.href='/denyAccess'
}
if(response.data.attach){ if(response.data.attach){
if(response.data.attach.userinfo){ if(response.data.attach.userinfo){
useUserStore().setOnlyUserInfo(response.data.attach.userinfo) useUserStore().setOnlyUserInfo(response.data.attach.userinfo)
......
...@@ -81,6 +81,13 @@ const routes: RouteRecordRaw[] = [ ...@@ -81,6 +81,13 @@ const routes: RouteRecordRaw[] = [
title:'下载行程设计' title:'下载行程设计'
} }
}, },
{
path: '/denyAccess',
component: () => import('@/views/SellTemplate/DenyAccess.vue'),
meta:{
title:'禁止访问'
}
},
{ {
path: '/notsupported', path: '/notsupported',
component: () => import('@/views/Mobile/NotSupported.vue'), component: () => import('@/views/Mobile/NotSupported.vue'),
......
<template>
<div class="window-width window-height column flex-center items-center" style="background-color: #f1f2f4">
<div class="rounded bg-white q-pa-xl light-shadow column flex-center items-center" style="width: 650px;">
<div style="width: 100%;">
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/pptTD.png" style="height: 27px;">
</div>
<img src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638533817842486720.png" style="width: 300px;" class="q-mt-xl">
<div class="row items-center q-mt-xl ">
<div class="pingfangr q-ml-xl" style="font-size: 18px;">Access Denied</div>
</div>
<div class="q-mt-lg text-info text-small text-center" style="font-size: 14px;">系统判定你进行了恶意访问,当前无法进行系统使用,需等待xx小时xx分钟xx秒以后才能使用。</div>
<div class="q-mt-xl text-center" style="font-size: 14px;">
<el-button type="info" size="large" class="ppt-button text-weight-bold" @click="redicetTo('https://work.weixin.qq.com/kfid/kfc378aada578ca8b0e')">点击申诉</el-button>
</div>
</div>
</div>
</template>
<script lang="ts" setup>
import { ApiResult } from "@/configs/axios";
import ConfigService from "@/services/ConfigService";
import FileService from "@/services/FileService";
import { ref } from "vue";
import { useRouter } from "vue-router";
import { openNewBlank } from '@/utils/common'
const redicetTo = (url:string)=>openNewBlank(url)
</script>
<style>
</style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment