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

61 lines
1.2 KiB

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
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 || detail.experienceDetail"></uv-parse>
  6. <StudyAndPathDetailSubmit
  7. article
  8. submiitTitle="线上预约"
  9. v-if="type == 2"
  10. />
  11. </view>
  12. </template>
  13. <script>
  14. import StudyAndPathDetailSubmit from '../components/submit/StudyAndPathDetailSubmit.vue'
  15. export default {
  16. components : {
  17. StudyAndPathDetailSubmit,
  18. },
  19. data() {
  20. return {
  21. titles: ['文化遗产', '申遗历程', '非遗体验'],
  22. detail : {},
  23. id : 0,
  24. type : 0,
  25. apis : ['queryArticleById', 'queryArticleById', 'queryExperienceById'],
  26. }
  27. },
  28. onLoad(args) {
  29. this.id = args.id
  30. this.type = args.type
  31. },
  32. onShow() {
  33. this.queryArticleById()
  34. },
  35. onPullDownRefresh(){
  36. this.queryArticleById()
  37. },
  38. methods: {
  39. queryArticleById(){
  40. this.$api(this.apis[this.type], {
  41. articleId : this.id,
  42. experienceId : this.id,
  43. }, res => {
  44. uni.stopPullDownRefresh()
  45. if(res.code == 200){
  46. this.detail = res.result
  47. }
  48. })
  49. },
  50. }
  51. }
  52. </script>
  53. <style scoped lang="scss">
  54. .page{
  55. }
  56. </style>