Commit 4a108636 authored by 胡占生's avatar 胡占生 🇨🇳

消息中心修改

parent 0ada2345
...@@ -213,10 +213,10 @@ export default { ...@@ -213,10 +213,10 @@ export default {
touchstart(index, item) { touchstart(index, item) {
this.read(item); this.read(item);
this.$router.push({ // this.$router.push({
path: item.appUrl, // path: item.appUrl,
query: {}, // query: {},
}); // });
}, },
//清除所有未读 //清除所有未读
......
...@@ -208,12 +208,12 @@ export default { ...@@ -208,12 +208,12 @@ export default {
}, },
touchstart(index, item) { touchstart(index, item) {
this.read(item); this.read(item);
this.$router.push({ // this.$router.push({
name: "message-details", // name: "message-details",
params: { // params: {
id: JSON.stringify(item), // id: JSON.stringify(item),
}, // },
}); // });
}, },
//清除未读 //清除未读
clearNo() { clearNo() {
......
...@@ -41,8 +41,9 @@ ...@@ -41,8 +41,9 @@
inset inset
v-for="(item, index) in waitList" v-for="(item, index) in waitList"
:key="index" :key="index"
@click="touchstart(index, item)"
> >
<!-- @click="touchstart(index, item)" -->
<van-badge :dot="item.status == 0 ? true : false"> <van-badge :dot="item.status == 0 ? true : false">
<div style="padding: 10px; min-width: calc(100vw - 1.6rem)"> <div style="padding: 10px; min-width: calc(100vw - 1.6rem)">
<div class="messgae-title"> <div class="messgae-title">
...@@ -99,6 +100,10 @@ export default { ...@@ -99,6 +100,10 @@ export default {
activeIndex: 0, activeIndex: 0,
searchVal: "", searchVal: "",
waitList: [], // 待办列表 waitList: [], // 待办列表
params:{
page:1,
num:10,
}
// refreshing: false, // 下拉刷新开关 // refreshing: false, // 下拉刷新开关
// loading: false, // 列表滚动到底部会触发load事件 // loading: false, // 列表滚动到底部会触发load事件
// finished: false // 列表数据全部加载完成 // finished: false // 列表数据全部加载完成
...@@ -174,12 +179,15 @@ export default { ...@@ -174,12 +179,15 @@ export default {
}, },
touchstart(index, item) { touchstart(index, item) {
if(item.appUrl){
this.$router.push({ this.$router.push({
name: item.appUrl, name: item.appUrl,
params: { params: {
id: item.id, id: item.pid,
}, },
}); });
}
}, },
// // 加载完成后将loading改成 false // // 加载完成后将loading改成 false
// this.loading = false; // this.loading = false;
......
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