pnkx-admin-mongo/pnkx-app-apk/static/js/chunk-bb86fb3e.f0c1dbaa.js

1 line
3.4 KiB
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bb86fb3e"],{"09e7":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"a",(function(){return r}));var s=a("b775");function n(t){return Object(s["a"])({url:"/admin/article/listArticleNotContent",method:"get",params:t})}function r(t){return Object(s["a"])({url:"/admin/article/"+t,method:"get"})}},"7d94":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"a",(function(){return r})),a.d(e,"c",(function(){return i}));var s=a("b775");function n(t){return Object(s["a"])({url:"/admin/message/getMessageList",method:"get",params:t})}function r(t){return Object(s["a"])({url:"/admin/message/getMessageExamine",method:"get",params:t})}function i(t){return Object(s["a"])({url:"/admin/message/updateMessage",method:"put",data:t})}},c6bd:function(t,e,a){},e523:function(t,e,a){"use strict";a("c6bd")},ef64:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"article"},[a("van-nav-bar",{attrs:{fixed:"","left-arrow":"","left-text":"返回",title:"文章详情"},on:{"click-left":function(e){return t.$router.go(-1)}}}),a("div",{staticClass:"article-content"},[a("van-row",{staticClass:"article-title",attrs:{justify:"center",type:"flex"}},[a("van-col",[t._v(t._s(t.article.title))])],1),a("van-row",{staticClass:"article-author",attrs:{align:"center",justify:"center",type:"flex"}},[a("van-col",{attrs:{offset:1}},[t._v(t._s(t.article.nickName))]),a("van-col",{attrs:{offset:1}},[t._v(t._s(t.article.createTime))]),a("van-col",{attrs:{offset:1}},[a("van-tag",{attrs:{type:["success","primary","warning","danger"][parseInt(3*Math.random())]}},[t._v(" "+t._s(t.article.typeName)+" ")])],1)],1),a("van-row",{staticClass:"article-html",attrs:{justify:"center",type:"flex"}},[a("van-col",{staticStyle:{width:"86vw"},domProps:{innerHTML:t._s(t.article.content)}})],1),a("van-row",{staticClass:"message"},[0===t.leaveMessageList.length?a("div",{staticClass:"no-leave-message message-label"},[t._v(" 还没有童鞋留言,快来留言吧! ")]):t._e(),t.leaveMessageList.length>0?a("div",{staticClass:"message-label"},[t._v(" 已经有"+t._s(t.leaveMessageList.length)+"位童鞋留言了,还不来盖楼! ")]):t._e(),t._l(t.leaveMessageList,(function(e){return a("div",{staticClass:"one-message d-flex flex-items-start"},[a("div",{staticClass:"header"},[a("van-image",{attrs:{src:e.authorHeader?e.authorHeader:t.avatar(e.avatar),fit:"scale-down",height:"4rem",width:"4rem"}}),a("div",{staticClass:"author"},[t._v(" "+t._s(e.authorName?e.authorName:e.nickName)+" ")])],1),a("div",{staticClass:"right"},[a("div",{staticClass:"content",domProps:{innerHTML:t._s(e.content)}}),a("div",{staticClass:"message-info d-flex flex-items-center flex-justify-end"},[a("div",{staticClass:"time"},[t._v(t._s(t._f("timeFilter")(e.createTime)))])])])])}))],2)],1)],1)},n=[],r=a("09e7"),i=a("7d94"),c={name:"article",data:function(){return{article:{},leaveMessageList:[]}},mounted:function(){this.getArticle(),this.getMessage()},methods:{avatar:function(t){return"http://120.53.247.15/"+t},getArticle:function(){var t=this;Object(r["a"])(this.$route.query.articleId).then((function(e){t.article=e.data}))},getMessage:function(){var t=this;Object(i["b"])({articleId:this.$route.query.articleId,messageBoard:"0"}).then((function(e){t.leaveMessageList=e.rows}))}}},l=c,o=(a("e523"),a("2877")),u=Object(o["a"])(l,s,n,!1,null,"b0924406",null);e["default"]=u.exports}}]);