|
@@ -20,6 +20,7 @@
|
|
import { PageEnum } from '/@/enums/pageEnum';
|
|
import { PageEnum } from '/@/enums/pageEnum';
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
import { useUserStore } from '/@/store/modules/user';
|
|
import { addressKey } from '/@/api/jyUserPlatform/index';
|
|
import { addressKey } from '/@/api/jyUserPlatform/index';
|
|
|
|
+ import { useMessage } from '/@/hooks/web/useMessage';
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
/**
|
|
/**
|
|
* The theme of the current parent component
|
|
* The theme of the current parent component
|
|
@@ -35,12 +36,17 @@
|
|
alwaysShowTitle: { type: Boolean },
|
|
alwaysShowTitle: { type: Boolean },
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ const { createConfirm } = useMessage();
|
|
const { prefixCls } = useDesign('app-logo');
|
|
const { prefixCls } = useDesign('app-logo');
|
|
const { getCollapsedShowTitle } = useMenuSetting();
|
|
const { getCollapsedShowTitle } = useMenuSetting();
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
const { title1 } = useGlobSetting();
|
|
const { title1 } = useGlobSetting();
|
|
const zdyTitile = ref(title1)
|
|
const zdyTitile = ref(title1)
|
|
const go = useGo();
|
|
const go = useGo();
|
|
|
|
+ const onClose = () => {
|
|
|
|
+ window.opener = null;
|
|
|
|
+ window.open('about:blank', '_top')?.close();
|
|
|
|
+ };
|
|
function getUrlParams2() {
|
|
function getUrlParams2() {
|
|
let url = window.location.href
|
|
let url = window.location.href
|
|
let urlStr = url.split('?')[1]
|
|
let urlStr = url.split('?')[1]
|
|
@@ -51,6 +57,19 @@
|
|
if(address){
|
|
if(address){
|
|
addressKey(address).then(res => {
|
|
addressKey(address).then(res => {
|
|
console.log(res, 'getUrlParams2')
|
|
console.log(res, 'getUrlParams2')
|
|
|
|
+ if(res.status == 1){
|
|
|
|
+ createConfirm({
|
|
|
|
+ iconType: 'warning',
|
|
|
|
+ title: '警告',
|
|
|
|
+ content: `当前账户已停用,请联系平台管理员`,
|
|
|
|
+ onOk: async () => {
|
|
|
|
+ onClose()
|
|
|
|
+ },
|
|
|
|
+ onCancel: async () => {
|
|
|
|
+ onClose()
|
|
|
|
+ },
|
|
|
|
+ });
|
|
|
|
+ }
|
|
zdyTitile.value = res.platformName
|
|
zdyTitile.value = res.platformName
|
|
})
|
|
})
|
|
}
|
|
}
|