Commit f483a814 authored by 黄奎's avatar 黄奎

页面修改

parent 4f63bc65
......@@ -272,7 +272,6 @@
this.init();
this.getNotify();
this.socektArr = this.socektObj;
this.goMsgDetail('/course/prepareclassDetails?ClassId=5&ClassPlanId=2898');
},
methods: {
init() {
......@@ -301,11 +300,6 @@
compType: "shenpi"
}
})
// this.$q.dialog({
// title: '功能提示',
// message: '灰度测试功能,即将在下版本中开启'
// }).onOk(() => {
// });
},
//请求公告数据
getNotify() {
......@@ -335,19 +329,23 @@
//跳转链接 新页面打开
goMsgDetail(url) {
let locationName = window.location.hostname;
var host = window.location.host;
var hostName = window.location.hostname;
var port = window.location.port;
var newurl = ""
if (url != null && url.length > 0) {
if (url.indexOf('http://') == -1 || url.indexOf('https://') == -1) {
newurl = "http://" + locationName + (host != 80 ? ":" + host : "") + "/#" + url;
if (url.indexOf("www") == -1) {
newurl = "http://" + hostName + (port != 80 ? ":" + port : "") + "/#" + url;
} else {
newurl = "http://" + url;
}
} else {
newurl = url
}
}
console.log("newurl", newurl);
//window.open(url, "_blank");
if (newurl) {
window.open(newurl, "_blank");
}
},
//看过后删除
readMsgLog(Id, index) {
......
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