notice-list.html 9.4 KB

1
  1. <!doctype html><html><head><meta charset="utf-8"><title>消息列表</title><meta name="keywords" content="消息列表"><meta name="description" content="消息列表"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1,shrink-to-fit=no,user-scalable=no" viewport="cover"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta content="telephone=no" name="format-detection"><meta content="email=no" name="format-detection"><meta name="apple-mobile-web-app-title" content="消息列表"><meta http-equiv="Cache-Control" content="no-siteapp"><link rel="icon" href="favicon.ico"><script>(function(){"use strict";var n={},r={};function t(e){var o=r[e];if(void 0!==o)return o.exports;var u=r[e]={exports:{}};return n[e].call(u.exports,u,u.exports,t),u.exports}t.m=n,function(){var n=[];t.O=function(r,e,o,u){if(!e){var i=1/0;for(l=0;l<n.length;l++){e=n[l][0],o=n[l][1],u=n[l][2];for(var f=!0,c=0;c<e.length;c++)(!1&u||i>=u)&&Object.keys(t.O).every((function(n){return t.O[n](e[c])}))?e.splice(c--,1):(f=!1,u<i&&(i=u));if(f){n.splice(l--,1);var a=o();void 0!==a&&(r=a)}}return r}u=u||0;for(var l=n.length;l>0&&n[l-1][2]>u;l--)n[l]=n[l-1];n[l]=[e,o,u]}}(),function(){t.n=function(n){var r=n&&n.__esModule?function(){return n["default"]}:function(){return n};return t.d(r,{a:r}),r}}(),function(){t.d=function(n,r){for(var e in r)t.o(r,e)&&!t.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:r[e]})}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}()}(),function(){t.o=function(n,r){return Object.prototype.hasOwnProperty.call(n,r)}}(),function(){t.p=""}(),function(){var n={86:0,582:0};t.O.j=function(r){return 0===n[r]};var r=function(r,e){var o,u,i=e[0],f=e[1],c=e[2],a=0;if(i.some((function(r){return 0!==n[r]}))){for(o in f)t.o(f,o)&&(t.m[o]=f[o]);if(c)var l=c(t)}for(r&&r(e);a<i.length;a++)u=i[a],t.o(n,u)&&n[u]&&n[u][0](),n[u]=0;return t.O(l)},e=self["webpackChunkskb"]=self["webpackChunkskb"]||[];e.forEach(r.bind(null,0)),e.push=r.bind(null,e.push.bind(e))}()})();</script><script defer="defer" src="./static/js/public.chunk.js"></script><script defer="defer" src="./static/js/npm.vant.chunk.js"></script><script defer="defer" src="./static/js/npm.vue.chunk.js"></script><script defer="defer" src="./static/js/npm.crypto-js.chunk.js"></script><script defer="defer" src="./static/js/npm.axios.chunk.js"></script><script defer="defer" src="./static/js/npm.core-js.chunk.js"></script><script defer="defer" src="./static/js/npm.md5.chunk.js"></script><script defer="defer" src="./static/js/npm.crypt.chunk.js"></script><script defer="defer" src="./static/js/npm.charenc.chunk.js"></script><script defer="defer" src="./static/js/npm.is-buffer.chunk.js"></script><script defer="defer" src="./static/js/npm.babel.chunk.js"></script><script defer="defer" src="./static/js/npm.vue-loader.chunk.js"></script><script defer="defer" src="./static/js/npm.form-data.chunk.js"></script><script>(self["webpackChunkskb"]=self["webpackChunkskb"]||[]).push([[755],{4180:function(i,e,t){"use strict";var s=t(9242),a=t(3396),o=t(7139);const n={class:"back-color pb0 bgcf7f7f7"},l={id:"app"},c=["src"],A={class:"notice-list"},d={class:"pt16 pl16 pr16"},r=["onClick"],g={class:"tc"},h={class:"notice-time dib"},u={class:"cfff db"},p={class:"notice-box pt16 ovh"},f={class:"notice-title"},m={key:0,class:"dib rel pr6"},k={class:"f16 c333"},v={key:0,class:"notice-img pt8"},I=["src","id"],E={class:"notice-info pt8 pb16"},w={class:"f12 c999"},y={key:1,class:"notice-btn van-hairline--top"};function C(i,e,s,C,P,b){const U=(0,a.up)("van-nav-bar"),R=(0,a.up)("van-empty"),T=(0,a.up)("van-badge"),z=(0,a.up)("van-cell"),B=(0,a.up)("van-list"),O=(0,a.up)("van-pull-refresh");return(0,a.wg)(),(0,a.iD)("div",n,[(0,a._)("div",l,[P.toptitleisshow?((0,a.wg)(),(0,a.j4)(U,{key:0,class:"user_rank_explan_title user_title_normal",title:P.noticetype,onClickLeft:b.goback,"left-arrow":""},{left:(0,a.w5)((()=>[(0,a._)("img",{src:t(5786),alt:""},null,8,c)])),_:1},8,["title","onClickLeft"])):(0,a.kq)("",!0),(0,a._)("div",A,[(0,a.Wm)(O,{modelValue:P.refreshing,"onUpdate:modelValue":e[1]||(e[1]=i=>P.refreshing=i),onRefresh:b.onRefresh,class:(0,o.C_)(0===P.noticelist.length?"isnodata":"")},{default:(0,a.w5)((()=>[(0,a._)("ul",d,[P.isnodata?((0,a.wg)(),(0,a.j4)(R,{key:0,class:"custom-image",image:t(6256),description:"暂无数据"},null,8,["image"])):(0,a.kq)("",!0),(0,a.Wm)(B,{modelValue:P.loading,"onUpdate:modelValue":e[0]||(e[0]=i=>P.loading=i),finished:P.finished,"finished-text":"没有更多数据了",onLoad:b.onLoad,"immediate-check":!1},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(P.noticelist,((e,t)=>((0,a.wg)(),(0,a.iD)("li",{class:"mb20",key:e.Id,onClick:i=>b.articledetail(e.Id,e.MsgType,e.Url,t)},[(0,a._)("div",g,[(0,a._)("div",h,[(0,a._)("span",u,(0,o.zw)(e.CreateDate),1)])]),(0,a._)("div",p,[(0,a._)("div",f,[1!==e.ReadFlag?((0,a.wg)(),(0,a.iD)("div",m,[(0,a.Wm)(T,{content:" ",dot:""})])):(0,a.kq)("",!0),(0,a._)("span",k,(0,o.zw)(e.Title),1)]),""!==e.BgPic?((0,a.wg)(),(0,a.iD)("div",v,[(0,a._)("img",{class:"db",src:i.PublicLib.CachePicture({picUrl:e.BgPic,domid:"noticeimg"+t}),id:"noticeimg"+t,style:{width:"100%"}},null,8,I)])):(0,a.kq)("",!0),(0,a._)("div",E,[(0,a._)("span",w,(0,o.zw)(e.CreateDate)+" "+(0,o.zw)(e.Title),1)]),2!==e.MsgType?((0,a.wg)(),(0,a.iD)("div",y,[(0,a.Wm)(z,{title:"查看详情","is-link":""})])):(0,a.kq)("",!0)])],8,r)))),128))])),_:1},8,["modelValue","finished","onLoad"])])])),_:1},8,["modelValue","onRefresh","class"])])])])}t(7658);var P=t(6539),b=(t(6265),t(3753)),U={data(){return{isnodata:!1,toptitleisshow:!1,noticetype:"消息",noticelist:[],loading:!1,finished:!1,refreshing:!1,pageinfo:{PageSize:10,PageNum:1}}},created(){this.toptitleisshow=P.Z.isTitle,this.noticetype=P.Z.getCookieInfo("noticeType"),this.getnoticelist()},methods:{onLoad(){this.refreshing&&(this.noticelist=[],this.refreshing=!1,this.pageinfo.PageNum=0),this.pageinfo.PageNum++,this.getnoticelist()},onRefresh(){this.finished=!1,this.loading=!0,this.onLoad()},async getnoticelist(){let i="";i="个人消息"===P.Z.getCookieInfo("noticeType")?"/api/v1/msgpersonal/list?t="+Math.random(6):"/api/v1/msgplacard/list?t="+Math.random(6);const e=P.Z.getCookieInfo("userId"),t=await(0,b.A_)(i,JSON.stringify({UserId:e,...this.pageinfo}));"1"===t.status&&(P.Z.HideLoading(),t.data.length<this.pageinfo.PageSize&&(this.finished=!0),this.noticelist.push(...t.data),this.loading=!1,0===this.noticelist.length?this.isnodata=!0:this.isnodata=!1,t.data.forEach((i=>{P.Z.CachePicture({picUrl:i.BgPic})})))},goback(){P.Z.GoBack({Level:1})},articledetail(i,e,t,s){2===e?this.readflag(i,s):0===e?(P.Z.putCookieInfo("noticeArticleDetail",i),P.Z.Goto({Url:"notice-detail"})):1===e&&P.Z.Goto({Url:t})},async readflag(i,e){let t="";t="个人消息"===P.Z.getCookieInfo("noticeType")?"/api/v1/msgpersonal/read?t="+Math.random(6):"/api/v1/msgplacard/read?t="+Math.random(6);const s=P.Z.getCookieInfo("userId"),a=await(0,b.j0)(t,JSON.stringify({UserId:s,Id:i}));"1"===a.status&&(this.noticelist[e].ReadFlag=1)}}},R=t(89);const T=(0,R.Z)(U,[["render",C]]);var z=T,B=t(1086);t(6028),t(6931);const O=(0,s.ri)(z);O.use(B.ZP),O.mount("#app")},5786:function(i){"use strict";i.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAMKADAAQAAAABAAAAMAAAAADbN2wMAAAD4UlEQVRoBe2ZSU9TURiGaUsVbOOKhHHRlRsSI1P4BTKIC+M8RIkmJooQdefaH+EUFdi48kewcWGAIiBx4UTEluIUDEZACfi8TW9zISbSc8+pJHCSk/Pd2zO87/e93zn39paU7JQdD2xvD0T+J/36+vpdsVgsOj8/v2KKI2w6MOi4pqamrvLy8mcVFRXPsY+YzhcyHRhkXEtLy9HV1dXBcDgc1zzY0zQHRkdHv+u6kFJaSGcbfZubm48BeCAUCsVpS2hVI/F43MiZRZUQUjmBE7Lg19bWsuC5/o19e2hoaN7EQUVLYmRzCoCPqXE/eKJwM5lM3jcBrzFFIYBsTrOWwMd84H9h3wD8HQExLc4lhGzOAu4Rdc8G8NdJ2rumwL1xTiOAbE6ykDy/DjxJ2zcyMmIsGw+8WmcRkObxeD9rlPs8vwz43uHh4Qd+EEFso63rXwui+TP0eUj1e34ZIr3IRvetFevnQE7zArnO81z3AF5yslqsSqixsfEcElkHnuslEPegeevg5QlrEmpoaDgfiUSUmOs8zz5/ha1yQIu5KFYkhOYvAE7gy7yElecB3+cSvBwSWEJovvtv4F0krABvLIEIoPmLePoek+Y9j70E+GtoXoeX82IsITR/icdhPQbs9mSDvYhselzLxu8Vo5OYQ0q7jQ6jLHhNyPUihK7i+UH/Aq7tgneh1tbWvSsrK+MATvg8/xP7Mvv8E9eAN84fKAf8k0GgYGf4x5vaBUsolUot19XVfWHBLqJQqihQosins7q6+uPs7Oy4KRiTcQUT0CLpdHqysrIyDegOkdA92ii1vaqqKgWJF7pXjGJEQMAymcyYwAq0SOTyQSQ6amtr4ZguCgljAiIhT0s2Au0jUYrdXlNTk4HEmPq5LIEICJg0D9gZzE6PBLZItEFujt+T6ueqBCYgYHh6nJz4kMuJaC6xs5GAxIxIbmkCAkdOTJAT03hekciSUEREymVOWImA5108PYnH3wP8kEeC37ycmHWRE1YJiIhIkBPvMPOREAlqB/etk7BOAKDKiZfI5i1mPhKSE9ft3J/jd2uJ7YRAjsQUYN9gH/bk5CPxCRKj6he0OCMgYICcyuVEXk6Q0Jo6Jz7bIOGUgEj4csIvJ62rc+Irv4+on2lxTkDA8LSXE4rErtxjRwS7ja33GySGtzSBHAnJ6TWgFQk/iYPch4PZiV30Z3j+wThOBPoh4f+bfYYPHPtNvhFYe6HZrAR45XzK6dwNiR+02Y8c2KsLCwvZF4vNzuP1K0oOeIt5LTnxil1ogut9VL0c3eJ11Nnzkreu9VafWROJRJn1iXcm3PHANvLAH0IgvQ9EyzDlAAAAAElFTkSuQmCC"},6256:function(i,e,t){"use strict";i.exports=t.p+"static/img/no-data.png"},2480:function(){}},function(i){var e=function(e){return i(i.s=e)};i.O(0,[501,196,445,134,252,580,808,927,854,959,447,116,344,582],(function(){return e(4180)}));i.O()}]);</script><link href="./static/css/npm.vant.chunk.css" rel="stylesheet"><link href="./static/css/SkbChunk.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but 消息列表 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>