|
|
@@ -1,6 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div class="news"> |
|
|
|
<van-nav-bar title="消息通知" left-arrow @click-left="onNavBack" left-text="返回" /> |
|
|
|
<!-- <van-nav-bar title="消息通知" left-arrow @click-left="onNavBack" left-text="返回" /> --> |
|
|
|
<NavBar title="消息通知" @on-click-left="onNavBack"> </NavBar> |
|
|
|
<div class="list-con"> |
|
|
|
<van-list v-model="loading" :finished="finished" :immediate-check="false" @load="onLoad"> |
|
|
|
<div class="item"> |
|
|
@@ -33,7 +34,11 @@ |
|
|
|
import DialogService from '@/services/dialog-service'; |
|
|
|
import ToastService from '@/services/toast-service'; |
|
|
|
import APIUser from '@/api/user'; |
|
|
|
import NavBar from '@/components/NavBar'; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
NavBar |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
personName: '', |
|
|
@@ -50,7 +55,8 @@ export default { |
|
|
|
onNavBack() { |
|
|
|
// this.$router.go(-1); |
|
|
|
// todo 此处不能修改为 go(-1);因为情景有:微信推送时进入该页面,此时点击返回就该路由至首页。 |
|
|
|
this.$router.push({ name: 'location' }); |
|
|
|
|
|
|
|
this.$router.push({ name: this.$route.query.toRouter || 'location' }); |
|
|
|
}, |
|
|
|
getData(begNumber, pageNumber, firstLoad) { |
|
|
|
/* let url = "/api/Alarm/AlarmList"; |
|
|
|