刘翔宇-旅管家 3 years ago
parent bcaa607248
commit 1cdb2e8c51

@ -1,4 +1,5 @@
<template> <template>
<div :class="classObj" class="app-wrapper"> <div :class="classObj" class="app-wrapper">
<div class="top-head-bar"> <div class="top-head-bar">
<div class="top-head-bar__logo"> <div class="top-head-bar__logo">
@ -69,7 +70,7 @@
<div <div
style="width: 100%; height: 100%; padding-top: 50px; overflow-x: hidden" style="width: 100%; height: 100%; padding-top: 50px; overflow-x: hidden"
> >
<iframe ref="oldIframe">你的浏览器不支持该iframe</iframe> <iframe ref="oldIframe" :src="oldUrl">你的浏览器不支持该iframe</iframe>
</div> </div>
</template> </template>
<template v-else> <template v-else>
@ -106,7 +107,7 @@ export default {
active: 0, active: 0,
bookUrl: process.env.VUE_APP_OUT_Book, bookUrl: process.env.VUE_APP_OUT_Book,
gdzcUrl: `${process.env.VUE_APP_OUT_GDZC}?id=${this.$store.state.user.userId}&username=${this.$store.state.user.username}`, gdzcUrl: `${process.env.VUE_APP_OUT_GDZC}?id=${this.$store.state.user.userId}&username=${this.$store.state.user.username}`,
oldUrl: ``, oldUrl: `${process.env.VUE_APP_OUT_OLD}/login/oss_login?id=${this.$store.state.user.userId}&username=${this.$store.state.user.username}`,
}; };
}, },
computed: { computed: {
@ -159,23 +160,27 @@ export default {
}, },
"*" "*"
); );
}); },800);
return; return;
} }
if (url === "/old") { if (url === "/old") {
axios return false;
.get('/old', { this.gdzcUrl = `${process.env.VUE_APP_OUT_OLD}/login/oss_login?id=`+this.$store.state.user.userId+`&username=`+this.$store.state.user.username;
url:'/index.php', //this.$refs['oldIframe'].src = this.oldUrl;
params: {
s: "/login/oss_login", // axios
id: this.$store.state.user.userId, // .get('/old', {
username: this.$store.state.user.username, // url:'/index.php',
}, // params: {
}) // s: "/login/oss_login",
.then((res) => { // id: this.$store.state.user.userId,
this.oldUrl = `${process.env.VUE_APP_OUT_OLD}${res.data.data}` // username: this.$store.state.user.username,
this.$refs['oldIframe'].src = this.oldUrl // },
}); // })
// .then((res) => {
// this.oldUrl = `${process.env.VUE_APP_OUT_OLD}${res.data.data}`
// this.$refs['oldIframe'].src = this.oldUrl
// });
} }
}, },
immediate: true, immediate: true,

Loading…
Cancel
Save