"use strict";var e=require("../common/vendor.js"),t=require("../api/article.js");require("../common/request.js");const i={data:()=>({articleId:null,item:{}}),onLoad(e){this.articleId=e.articleId},onShow(){this.getArticleById()},onShareAppMessage(e){return{title:this.item.title,path:"/pages_index/articleDetails?articleId="+this.articleId}},onShareTimeline(e){return{title:this.item.title,query:"articleId="+this.articleId}},methods:{getArticleById(){let i={articleId:this.articleId};t.getArticleById(i).then((t=>{200==t.code?this.item=t.data:e.index.showToast({icon:"none",title:"请求失败"})}),(e=>{}))}}};var r=e._export_sfc(i,[["render",function(t,i,r,a,s,l){return{a:e.t(s.item.title),b:e.t(s.item.views),c:e.t(s.item.publishTime),d:s.item.contents}}]]);i.__runtimeHooks=6,wx.createPage(r);
