景徳镇旅游微信小程序
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.

47 lines
867 B

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <!-- 0文化遗产详情1申遗历程详情2非遗体验详情 三合一 -->
  3. <view class="page">
  4. <navbar :title="titles[type]" leftClick @leftClick="$utils.navigateBack" />
  5. <uv-parse :content="detail.articleContent"></uv-parse>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. titles: ['文化遗产', '申遗历程', '非遗体验'],
  13. detail : {},
  14. id : 0,
  15. type : 0,
  16. }
  17. },
  18. onLoad(args) {
  19. this.id = args.id
  20. },
  21. onShow() {
  22. this.queryArticleById()
  23. },
  24. onPullDownRefresh(){
  25. this.queryArticleById()
  26. },
  27. methods: {
  28. queryArticleById(){
  29. this.$api('queryArticleById', {
  30. articleId : this.id
  31. }, res => {
  32. uni.stopPullDownRefresh()
  33. if(res.code == 200){
  34. this.detail = res.result
  35. }
  36. })
  37. },
  38. }
  39. }
  40. </script>
  41. <style scoped lang="scss">
  42. .page{
  43. }
  44. </style>