12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-01f9d2a2"],{"0b4d8":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;return e("div",{ref:"wrap",staticClass:"wrap"},[e("div",{staticClass:"header"},[e("img",{staticClass:"return-img",attrs:{src:i("f5a4")},on:{click:function(e){return t.$router.back()}}}),e("p",{staticClass:"header-title"},[t._v("消息")])]),e("van-list",{staticStyle:{width:"100%"},attrs:{finished:t.finished,"immediate-check":!1,"finished-text":t.list.length>0?"没有更多了":""},on:{load:t.getList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[e("ul",{staticClass:"list"},[t._l(t.list,(function(i,a){return e("li",{key:a,on:{click:function(e){i.is_read=1,t.$router.push("/message-info?id=".concat(i.id))}}},[e("div",{staticClass:"item-row-between"},[0===i.is_read?e("span",{staticClass:"yuan"}):t._e(),e("p",{staticClass:"item-name",style:{opacity:1===i.is_read?.7:1},domProps:{innerHTML:t._s(i.title)}}),e("span",{staticClass:"item-time"},[t._v(t._s(i.create_at))])]),e("p",{staticClass:"item-content",domProps:{textContent:t._s(i.content)}}),e("div",{staticClass:"item-row-between"},[e("button",{staticClass:"btn",attrs:{type:"button"}},[t._v("查看详情")])])])})),0===t.list.length?e("div",{staticClass:"normal-box-small"},[e("img",{attrs:{src:i("0c93")}}),t._v("\n\t\t\t\t消息列表为空\n\t\t\t")]):t._e()],2)])],1)},s=[],n=(i("57e7"),i("ac6a"),i("6762"),i("2fdb"),i("2909")),c=(i("3b2b"),i("a481"),i("6d67"),i("f523")),o={components:{},data:function(){return{title:"",params:{title:"",page:1,page_num:20},list:[],loading:!1,finished:!1}},mounted:function(){var t=this.$route.query;this.params.title=t.key||"",this.getList()},methods:{search:function(){this.params.title=this.title,this.finished=!1,this.params.page=1,this.getList()},getList:function(){var t=this;this.loading=!0,c["v"].getMessageList(this.params).then((function(e){var i=e.data,a=i.list.map((function(e){return e.title=e.title.replace(RegExp(t.params.title,"g"),'<span style="color: #FF6700">'.concat(t.params.title,"</span>")),e}));t.list=1===t.params.page?a:[].concat(Object(n["a"])(t.list),Object(n["a"])(a)),a.length<t.params.page_num?t.finished=!0:t.params.page++})).catch((function(){t.finished=!0})).finally((function(){t.loading=!1}))}},activated:function(){var t=this;this.$nextTick((function(){t.$refs.wrap.scrollTop=t.scroll||0}))},beforeRouteLeave:function(t,e,i){if(this.scroll=this.$refs.wrap.scrollTop,e.meta.toPagesKeep.includes(t.path))e.meta.keepAlive=!0;else{var a=this.$vnode,s=a&&a.parent;if(s&&s.componentInstance&&s.componentInstance.cache){var n=null==a.key?node.componentOptions.Ctor.cid+(a.componentOptions.tag?"::".concat(a.componentOptions.tag):""):a.key,c=s.componentInstance.cache,o=s.componentInstance.keys;if(c[n]){if(this.$destroy(),o.length){var r=o.indexOf(n);r>-1&&o.splice(r,1)}c[n]=null}}}i()}},r=o,l=(i("2156"),i("2877")),p=Object(l["a"])(r,a,s,!1,null,"70244aee",null);e["default"]=p.exports},"0c93":function(t,e,i){t.exports=i.p+"img/normal-8.ac8a9533.png"},2156:function(t,e,i){"use strict";i("25a9")},"25a9":function(t,e,i){},f5a4:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAm5JREFUWEft2MnLTlEYAPDfZx4yK8WCWLBgwQIbSobIkMiwYiMbJX+JWLFRSmJBUoYyLCjDQoREQgghikQiQ4/OW8eXvPfe976fV31ne8+9z+8+59xzn3O6dHjr6nCfXmCrI9RTGeyH2XiEl2XQPQEci5MJ+AlLcKkost3AcTiH6RloN3Z0AnACzmNqhvmBFTj1r4ETE25KBvmObdhbFBf92jHEgYrMBbLRvmEL9pfBtQM4LeHGZ5Cv2ITDZXF1A2fgLOLDaLQv2IhjVXB1AmfhDMZkkM9YW+aD+NNL1DEH5+I0RmYBPmJ1WmKqJu/Xfa0C5+MEhmWKD2kpudiSLN3cCnARjmNIBnmHZbhaB66VDC7HEQzKIG/Tb+x6XbiqwDU4hAEZ5BUW43aduCrA9TiIqE4a7TliuO/VjSsLjA8hSqV8zj3BQjxsB64scDRiKPPs3UzZe9MJwDBEmbSz2/J0JyFLFaJFX6jKMrMdu7oh76ehflY0cNF+VYDx7K3Ygz5ZoCjnYz4+Lhq8SL+qwHj2ZuxD3yzQ04R8UCR4kT6tAOP5G3AA/bNgL9KcvFsE0KxPq8B4fhQFUesNzIK9Tgv3rWaAZtfrAEaM+P8exeAsYPz6luJaM8TfrtcFjBjxgUTxMDQL+D7hr1RF1gkMw7xUfg3PQFF+rcSFKsi6gWGYkwrYURkoNuwxV2NLUKq1AxiAmWkLEKcKjRZbgHUpw4WR7QIGIE4T4lSh+yZqAS4XFbYTGIY4VYg9cpwyNFrHHH00QJMTchLidGFVOkwqlMR2Z7CBGIHYJsTf5UYhWerUU8Aypt/69gIrp+5/GeKfiUBcKeCBb1YAAAAASUVORK5CYII="}}]);
|