mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
Merge branch 'master' into ebiz-uat-2025-11-06
This commit is contained in:
@@ -52,7 +52,12 @@ const formRequest=axios.create({
|
|||||||
if (code === 401) {
|
if (code === 401) {
|
||||||
//Message({message: msg, type: 'error'});
|
//Message({message: msg, type: 'error'});
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = this.webBaseUrl + ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 403) {
|
} else if (code === 403) {
|
||||||
var msg = '当前操作没有权限';
|
var msg = '当前操作没有权限';
|
||||||
|
|||||||
@@ -54,7 +54,12 @@ const formRequest=axios.create({
|
|||||||
} else {
|
} else {
|
||||||
if (code === 401) {
|
if (code === 401) {
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = this.webBaseUrl + ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 403) {
|
} else if (code === 403) {
|
||||||
var msg = '当前操作没有权限';
|
var msg = '当前操作没有权限';
|
||||||
|
|||||||
@@ -53,7 +53,12 @@ jsonRequest.interceptors.response.use(res => {
|
|||||||
} else {
|
} else {
|
||||||
if (code == 6001) { //对方是字符串,所以这里不要使用三个等号
|
if (code == 6001) { //对方是字符串,所以这里不要使用三个等号
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 403) {
|
} else if (code === 403) {
|
||||||
var msg = '当前操作没有权限';
|
var msg = '当前操作没有权限';
|
||||||
@@ -117,7 +122,12 @@ formRequest.interceptors.response.use(res => {
|
|||||||
} else {
|
} else {
|
||||||
if (code == 6001) { //对方是字符串,所以这里不要使用三个等号
|
if (code == 6001) { //对方是字符串,所以这里不要使用三个等号
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 403) {
|
} else if (code === 403) {
|
||||||
var msg = '当前操作没有权限';
|
var msg = '当前操作没有权限';
|
||||||
|
|||||||
@@ -50,7 +50,12 @@ jsonRequest.interceptors.response.use(res => {
|
|||||||
} else {
|
} else {
|
||||||
if (code === 401) {
|
if (code === 401) {
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = this.webBaseUrl + ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 403) {
|
} else if (code === 403) {
|
||||||
var msg = '当前操作没有权限';
|
var msg = '当前操作没有权限';
|
||||||
@@ -112,7 +117,12 @@ formRequest.interceptors.response.use(res => {
|
|||||||
} else {
|
} else {
|
||||||
if (code === 401) {
|
if (code === 401) {
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = this.webBaseUrl + ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 403) {
|
} else if (code === 403) {
|
||||||
var msg = '当前操作没有权限';
|
var msg = '当前操作没有权限';
|
||||||
|
|||||||
@@ -50,7 +50,12 @@ jsonRequest.interceptors.response.use(res => {
|
|||||||
} else {
|
} else {
|
||||||
if (code === 401) {
|
if (code === 401) {
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = this.webBaseUrl + ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 403) {
|
} else if (code === 403) {
|
||||||
var msg = '当前操作没有权限';
|
var msg = '当前操作没有权限';
|
||||||
@@ -112,7 +117,12 @@ formRequest.interceptors.response.use(res => {
|
|||||||
} else {
|
} else {
|
||||||
if (code === 401) {
|
if (code === 401) {
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = this.webBaseUrl + ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = this.webBaseUrl + ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 403) {
|
} else if (code === 403) {
|
||||||
var msg = '当前操作没有权限';
|
var msg = '当前操作没有权限';
|
||||||
|
|||||||
@@ -86,7 +86,12 @@ router.beforeEach((to, from, next) => {
|
|||||||
//console.log(location.href,'location.href');
|
//console.log(location.href,'location.href');
|
||||||
//let urlPre=window.location.protocol+'//'+window.location.host;
|
//let urlPre=window.location.protocol+'//'+window.location.host;
|
||||||
//let backUrl=location.href.substring(urlPre.length); encodeURIComponent()
|
//let backUrl=location.href.substring(urlPre.length); encodeURIComponent()
|
||||||
location.href=process.env.VUE_APP_LOGIN_URL+"?returnUrl="+encodeURIComponent(location.href);
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = process.env.VUE_APP_LOGIN_URL + "?returnUrl=" + encodeURIComponent(location.href);
|
||||||
|
} else {
|
||||||
|
window.location.href = process.env.VUE_APP_LOGIN_URL + "?returnUrl=" + encodeURIComponent(location.href);
|
||||||
|
}
|
||||||
|
// location.href=process.env.VUE_APP_LOGIN_URL+"?returnUrl="+encodeURIComponent(location.href);
|
||||||
NProgress.done()
|
NProgress.done()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,15 +53,30 @@ jsonRequest.interceptors.response.use(res => {
|
|||||||
} else {
|
} else {
|
||||||
if (code == 6001) { //针对于老系统的处理
|
if (code == 6001) { //针对于老系统的处理
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 401) {
|
} else if (code === 401) {
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 402) {
|
} else if (code === 402) {
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 403) {
|
} else if (code === 403) {
|
||||||
var msg = '当前操作没有权限';
|
var msg = '当前操作没有权限';
|
||||||
@@ -69,7 +84,12 @@ jsonRequest.interceptors.response.use(res => {
|
|||||||
return Promise.reject(new Error(msg))
|
return Promise.reject(new Error(msg))
|
||||||
//return res.data;
|
//return res.data;
|
||||||
} else if (code === 302) {
|
} else if (code === 302) {
|
||||||
location.href = ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = ReLoginUrl;
|
||||||
} else {
|
} else {
|
||||||
//Message({message: res.data.message, type: 'error'});
|
//Message({message: res.data.message, type: 'error'});
|
||||||
//console.log('err:' + res.data.error);
|
//console.log('err:' + res.data.error);
|
||||||
@@ -127,22 +147,42 @@ formRequest.interceptors.response.use(res => {
|
|||||||
} else {
|
} else {
|
||||||
if (code == 6001) { //针对于老系统的处理,因为老系统是字符串,所以这里不使用三等于号
|
if (code == 6001) { //针对于老系统的处理,因为老系统是字符串,所以这里不使用三等于号
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 401) {
|
} else if (code === 401) {
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 402) {
|
} else if (code === 402) {
|
||||||
store.dispatch('LogOut').then(() => {
|
store.dispatch('LogOut').then(() => {
|
||||||
location.href = ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = ReLoginUrl;
|
||||||
})
|
})
|
||||||
} else if (code === 403) {
|
} else if (code === 403) {
|
||||||
var msg = '当前操作没有权限';
|
var msg = '当前操作没有权限';
|
||||||
Message({ message: msg, type: 'error' });
|
Message({ message: msg, type: 'error' });
|
||||||
return Promise.reject(new Error(msg))
|
return Promise.reject(new Error(msg))
|
||||||
} else if (code === 302) {
|
} else if (code === 302) {
|
||||||
location.href = ReLoginUrl;
|
if (top !== window) { // 判断当前是否在iframe内
|
||||||
|
top.location.href = ReLoginUrl;
|
||||||
|
} else {
|
||||||
|
window.location.href = ReLoginUrl;
|
||||||
|
}
|
||||||
|
// location.href = ReLoginUrl;
|
||||||
} else {
|
} else {
|
||||||
//Message({message: res.data.message, type: 'error'});
|
//Message({message: res.data.message, type: 'error'});
|
||||||
//console.log('err' + res.data.error);
|
//console.log('err' + res.data.error);
|
||||||
|
|||||||
@@ -163,11 +163,12 @@
|
|||||||
<!-- 精品课模块 -->
|
<!-- 精品课模块 -->
|
||||||
<div class="xcontent2-main">
|
<div class="xcontent2-main">
|
||||||
<div class="modules-title xindex-main" v-if="this.qusisityList.list.length > 0">
|
<div class="modules-title xindex-main" v-if="this.qusisityList.list.length > 0">
|
||||||
<!-- <span class="modules-text" style="color: #3D86F4;">精品课</span> -->
|
<!-- <span class="jin-text">精品课</span> -->
|
||||||
|
<div class="jin-zhe"></div>
|
||||||
<span class="quyer-tag" style="margin-left: 0px;">
|
<span class="quyer-tag" style="margin-left: 0px;">
|
||||||
<!-- <img src="../assets/images/tutoring1.pn" alt=""> -->
|
|
||||||
<img class="modules-text" style="height: 28px;" src="../assets/images/course/courseTitle.png" alt="">
|
<img class="modules-text" style="height: 28px;" src="../assets/images/course/courseTitle.png" alt="">
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="more">
|
<span class="more">
|
||||||
<router-link to="/qualityCourse">查看更多>></router-link>
|
<router-link to="/qualityCourse">查看更多>></router-link>
|
||||||
</span>
|
</span>
|
||||||
@@ -2826,6 +2827,15 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.modules-title {
|
.modules-title {
|
||||||
|
position: relative;
|
||||||
|
.jin-zhe{
|
||||||
|
width: 410px;
|
||||||
|
height: 30px;
|
||||||
|
background: #f7f7f9;
|
||||||
|
position: absolute;
|
||||||
|
left: 86px;
|
||||||
|
|
||||||
|
}
|
||||||
.modules-text {
|
.modules-text {
|
||||||
height: 28px;
|
height: 28px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
@@ -3136,4 +3146,13 @@ export default {
|
|||||||
border: 1px solid #d9edf7;
|
border: 1px solid #d9edf7;
|
||||||
//overflow: hidden;
|
//overflow: hidden;
|
||||||
}
|
}
|
||||||
|
.jin-text{
|
||||||
|
font-family: "Source Han Sans CN", "SourceHanSansCN", sans-serif !important;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 20px;
|
||||||
|
color: #3E87F5;
|
||||||
|
// line-height: 29px;/
|
||||||
|
text-align: justify;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Cookies from 'vue-cookies'
|
import Cookies from "vue-cookies";
|
||||||
import apiLogin from '@/api/login.js'
|
import apiLogin from "@/api/login.js";
|
||||||
import { getToken,setToken } from '@/utils/token'
|
import { getToken, setToken } from "@/utils/token";
|
||||||
export default {
|
export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.toUrl = this.$route.query.returnUrl;
|
this.toUrl = this.$route.query.returnUrl;
|
||||||
@@ -19,11 +19,16 @@
|
|||||||
$this.curToken = getToken();
|
$this.curToken = getToken();
|
||||||
if (!$this.curToken) {
|
if (!$this.curToken) {
|
||||||
//console.log(token,'第二次未获取token');
|
//console.log(token,'第二次未获取token');
|
||||||
location.href = process.env.VUE_APP_LOGIN_URL;
|
if (top !== window) {
|
||||||
|
// 判断当前是否在iframe内
|
||||||
|
top.location.href = process.env.VUE_APP_LOGIN_URL;
|
||||||
|
} else {
|
||||||
|
window.location.href = process.env.VUE_APP_LOGIN_URL;
|
||||||
|
}
|
||||||
|
// location.href = process.env.VUE_APP_LOGIN_URL;
|
||||||
} else {
|
} else {
|
||||||
$this.boeLogin();
|
$this.boeLogin();
|
||||||
}
|
}
|
||||||
|
|
||||||
}, 500);
|
}, 500);
|
||||||
} else {
|
} else {
|
||||||
this.curToken = token;
|
this.curToken = token;
|
||||||
@@ -32,29 +37,29 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
curToken:'',
|
curToken: "",
|
||||||
toUrl:''
|
toUrl: "",
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
boeLogin() {
|
boeLogin() {
|
||||||
apiLogin.boeLogin(this.curToken).then(rs=>{
|
apiLogin.boeLogin(this.curToken).then((rs) => {
|
||||||
if (rs.status == 200) {
|
if (rs.status == 200) {
|
||||||
//setToken(rs.result.access_token);
|
//setToken(rs.result.access_token);
|
||||||
localStorage.setItem(this.$xpage.constants.newLoginKey, 1);
|
localStorage.setItem(this.$xpage.constants.newLoginKey, 1);
|
||||||
if (this.toUrl) {
|
if (this.toUrl) {
|
||||||
location.href = this.toUrl;
|
location.href = this.toUrl;
|
||||||
} else {
|
} else {
|
||||||
this.$router.push({ path: "/index" })
|
this.$router.push({ path: "/index" });
|
||||||
}
|
}
|
||||||
//this.$router.push({ path: "/index" })
|
//this.$router.push({ path: "/index" })
|
||||||
} else {
|
} else {
|
||||||
this.$message.error("登录失败:" + rs.message);
|
this.$message.error("登录失败:" + rs.message);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -2590,7 +2590,7 @@ a.custom2 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.course-tags {
|
.course-tags {
|
||||||
margin: 5px 0;
|
margin: 10px 0 0;
|
||||||
min-height: 20px;
|
min-height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2477,6 +2477,10 @@ export default {
|
|||||||
background-color: #f4f4f5;
|
background-color: #f4f4f5;
|
||||||
border-color: #e9e9eb;
|
border-color: #e9e9eb;
|
||||||
}
|
}
|
||||||
|
.course-tags {
|
||||||
|
margin: 10px 0 0;
|
||||||
|
min-height: 20px;
|
||||||
|
}
|
||||||
.course-tags ::v-deep .el-tag .keyword-highlight,
|
.course-tags ::v-deep .el-tag .keyword-highlight,
|
||||||
.course-tags ::v-deep .el-tag .exact-match-highlight {
|
.course-tags ::v-deep .el-tag .exact-match-highlight {
|
||||||
color: #387DF7 !important;
|
color: #387DF7 !important;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user