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

70 lines
1.4 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
  1. <template>
  2. <!-- 0文化遗产详情1申遗历程详情2非遗体验详情 三合一 -->
  3. <view class="page">
  4. <navbar :title="dict.title" leftClick @leftClick="$utils.navigateBack" />
  5. <uv-parse :content="detail.articleContent || detail.experienceDetail"></uv-parse>
  6. <StudyAndPathDetailSubmit
  7. article
  8. submiitTitle="线上预约"
  9. v-if="type == 'experience'"
  10. :detail="detail"
  11. @getData="queryArticleById"
  12. @submit="toPayUrl(detail, type)"
  13. :collectType="dict.collectType"
  14. />
  15. </view>
  16. </template>
  17. <script>
  18. import StudyAndPathDetailSubmit from '../components/submit/StudyAndPathDetailSubmit.vue'
  19. export default {
  20. components : {
  21. StudyAndPathDetailSubmit,
  22. },
  23. data() {
  24. return {
  25. detail : {},
  26. id : 0,
  27. type : '',
  28. dict : {},
  29. }
  30. },
  31. onLoad(args) {
  32. this.id = args.id
  33. this.type = args.type
  34. this.dict = this.$config.dict[args.type]
  35. },
  36. onShow() {
  37. this.queryArticleById()
  38. },
  39. onPullDownRefresh(){
  40. this.queryArticleById()
  41. },
  42. methods: {
  43. queryArticleById(){
  44. this.$api(this.dict.api, {
  45. articleId : this.id,
  46. experienceId : this.id,
  47. }, res => {
  48. uni.stopPullDownRefresh()
  49. if(res.code == 200){
  50. this.detail = res.result
  51. }
  52. })
  53. },
  54. toPayUrl(item, dictKey){
  55. uni.navigateTo({
  56. url: `/pages_order/order/orderSubscribe?type=${dictKey}&id=${item.id}`
  57. })
  58. },
  59. }
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .page{
  64. }
  65. </style>