景徳镇旅游微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.0 KiB

3 months ago
  1. <template>
  2. <!-- 0文化遗产详情1申遗历程详情2非遗体验详情 三合一 -->
  3. <view class="page">
  4. <navbar title="新闻详情" leftClick @leftClick="$utils.navigateBack" />
  5. <view class=""
  6. style="padding: 20rpx;">
  7. <uv-parse :content="detail.newsContent"></uv-parse>
  8. </view>
  9. </view>
  10. </template>
  11. <script>
  12. export default {
  13. components : {
  14. },
  15. data() {
  16. return {
  17. detail : {},
  18. id : 0,
  19. type : '',
  20. dict : {},
  21. collectonFlag : false,
  22. }
  23. },
  24. onLoad(args) {
  25. this.id = args.id
  26. },
  27. onShow() {
  28. this.queryArticleById()
  29. },
  30. onPullDownRefresh(){
  31. this.queryArticleById()
  32. },
  33. methods: {
  34. queryArticleById(){
  35. let data = {
  36. newsId : this.id,
  37. }
  38. // if(uni.getStorageSync('token')){
  39. // data.token = uni.getStorageSync('token')
  40. // }
  41. this.$api('queryNewsById', data, res => {
  42. uni.stopPullDownRefresh()
  43. if(res.code == 200){
  44. this.detail = res.result
  45. }
  46. })
  47. },
  48. }
  49. }
  50. </script>
  51. <style scoped lang="scss">
  52. .page{
  53. }
  54. </style>