Commit 4f63bc65 authored by 黄奎's avatar 黄奎

页面修改

parent 434bb1c8
...@@ -40,8 +40,7 @@ ...@@ -40,8 +40,7 @@
</q-avatar> </q-avatar>
</q-item-section> --> </q-item-section> -->
<q-item-section avatar> <q-item-section avatar>
<q-avatar :style="{'background-color':'#e1f0ff'}" rounded size="40px" <q-avatar :style="{'background-color':'#e1f0ff'}" rounded size="40px" text-color="negative">
text-color="negative">
<inline-svg :class="['svg-icon',`svg-icon-primary`]" src="icons/svg/Shopping/Bag2.svg"></inline-svg> <inline-svg :class="['svg-icon',`svg-icon-primary`]" src="icons/svg/Shopping/Bag2.svg"></inline-svg>
</q-avatar> </q-avatar>
</q-item-section> </q-item-section>
...@@ -55,8 +54,9 @@ ...@@ -55,8 +54,9 @@
<none-data v-else></none-data> <none-data v-else></none-data>
</q-tab-panel> </q-tab-panel>
<q-tab-panel name="notify" class="scroll _scrollbar"> <q-tab-panel name="notify" class="scroll _scrollbar">
<q-card flat v-for="(item,index) in noticeList" :key="index" class="relative-position overflow-hidden q-pa-md text-grey-1 cursor-pointer q-mb-md" <q-card flat v-for="(item,index) in noticeList" :key="index"
style="height:130px" @click="goNoticeDetail(item)"> class="relative-position overflow-hidden q-pa-md text-grey-1 cursor-pointer q-mb-md" style="height:130px"
@click="goNoticeDetail(item)">
<div class="gonggao-bg"> <div class="gonggao-bg">
<img src="../../assets/images/noticeBg.png" /> <img src="../../assets/images/noticeBg.png" />
</div> </div>
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
{{item.Title}} {{item.Title}}
</div> </div>
<div class="relative-position q-mt-md text-right"> <div class="relative-position q-mt-md text-right">
编号:{{item.Number}} 编号:{{item.Number}}
</div> </div>
</q-card> </q-card>
<div class="notifyLoadMore" v-if="noticeMsg.pageSize<Count" @click="getMoreNotify()"> <div class="notifyLoadMore" v-if="noticeMsg.pageSize<Count" @click="getMoreNotify()">
...@@ -106,8 +106,8 @@ ...@@ -106,8 +106,8 @@
type: Object, type: Object,
default: null default: null
}, },
socektObj:{ socektObj: {
type:Array, type: Array,
default: null default: null
}, },
}, },
...@@ -259,19 +259,20 @@ ...@@ -259,19 +259,20 @@
imgCov: 'http://192.168.20.214:8130/Upload/studentIcon/20201201044129361.png', imgCov: 'http://192.168.20.214:8130/Upload/studentIcon/20201201044129361.png',
//通知请求参数 //通知请求参数
noticeMsg:{ noticeMsg: {
pageIndex:1, pageIndex: 1,
pageSize:5 pageSize: 5
}, },
Count:0, Count: 0,
noticeList:[], noticeList: [],
socektArr:[], socektArr: [],
} }
}, },
created() { created() {
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() {
...@@ -293,7 +294,13 @@ ...@@ -293,7 +294,13 @@
}, },
undefinedGongneng(item) { undefinedGongneng(item) {
this.$router.push("/AssetsShenpi") this.$router.push("/AssetsShenpi")
this.$router.push({path:"/AssetsShenpi",query:{Id:115,compType:"shenpi"}}) this.$router.push({
path: "/AssetsShenpi",
query: {
Id: 115,
compType: "shenpi"
}
})
// this.$q.dialog({ // this.$q.dialog({
// title: '功能提示', // title: '功能提示',
// message: '灰度测试功能,即将在下版本中开启' // message: '灰度测试功能,即将在下版本中开启'
...@@ -310,42 +317,47 @@ ...@@ -310,42 +317,47 @@
}) })
}, },
//加载更多一次加载一条 //加载更多一次加载一条
getMoreNotify(){ getMoreNotify() {
this.noticeMsg.pageSize+=5; this.noticeMsg.pageSize += 5;
this.getNotify(); this.getNotify();
}, },
//跳转详情 //跳转详情
goNoticeDetail(item){ goNoticeDetail(item) {
var url = window.location.host; var url = window.location.host;
   let routeUrl = this.$router.resolve({ let routeUrl = this.$router.resolve({
     path: "/noticeView", path: "/noticeView",
     query: {NoticeId:item.Id} query: {
   }); NoticeId: item.Id
   window.open(routeUrl.href, '_blank'); }
});
window.open(routeUrl.href, '_blank');
}, },
//跳转链接 新页面打开 //跳转链接 新页面打开
goMsgDetail(url){ goMsgDetail(url) {
let url2='/course/prepareclassDetails?ClassId=5&ClassPlanId=2898' let locationName = window.location.hostname;
if(url!=null&&url.length>0){ var host = window.location.host;
if(url.indexOf('http://')==-1 || url.indexOf('https://')==-1){
url='http://'+url; var newurl = ""
}else{ if (url != null && url.length > 0) {
url=document.domain+url2; if (url.indexOf('http://') == -1 || url.indexOf('https://') == -1) {
console.log(url,'url'); newurl = "http://" + locationName + (host != 80 ? ":" + host : "") + "/#" + url;
} else {
newurl = url
} }
window.open(url, "_blank");
} }
console.log("newurl", newurl);
//window.open(url, "_blank");
}, },
//看过后删除 //看过后删除
readMsgLog(Id,index){ readMsgLog(Id, index) {
let msg = { let msg = {
Ids:[] Ids: []
} }
msg.Ids.push(Id); msg.Ids.push(Id);
BeatchReadMsgLog(msg).then(res => { BeatchReadMsgLog(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.socektArr.splice(index,1); this.socektArr.splice(index, 1);
} }
}) })
} }
...@@ -388,10 +400,12 @@ ...@@ -388,10 +400,12 @@
margin-top: -8%; margin-top: -8%;
margin-left: -5%; margin-left: -5%;
} }
.notifyLoadMore{
text-align:right; .notifyLoadMore {
text-align: right;
cursor: pointer; cursor: pointer;
font-size:12px; font-size: 12px;
color:#2961FE; color: #2961FE;
} }
</style> </style>
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