Commit f483a814 authored by 黄奎's avatar 黄奎

页面修改

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