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

84 lines
1.6 KiB

5 months ago
  1. <template>
  2. <!-- 景区详情 -->
  3. <view class="page">
  4. <navbar
  5. :title="detail.areaName"
  6. leftClick
  7. @leftClick="$utils.navigateBack" />
  8. <view class=""
  9. style="padding: 20rpx;">
  10. <uv-parse :content="detail.areaDetail"></uv-parse>
  11. </view>
  12. <!-- <StudyAndPathDetailSubmit
  13. article
  14. submiitTitle="线上预约"
  15. v-if="type == 'experience'"
  16. :detail="detail"
  17. @getData="queryArticleById"
  18. @submit="toPayUrl(detail, type)"
  19. :collectonFlag="collectonFlag"
  20. :collectType="dict.collectType"
  21. /> -->
  22. </view>
  23. </template>
  24. <script>
  25. import StudyAndPathDetailSubmit from '../components/submit/StudyAndPathDetailSubmit.vue'
  26. export default {
  27. components : {
  28. StudyAndPathDetailSubmit,
  29. },
  30. data() {
  31. return {
  32. detail : {},
  33. id : 0,
  34. type : '',
  35. dict : {},
  36. collectonFlag : false,
  37. }
  38. },
  39. onLoad(args) {
  40. this.id = args.id
  41. // this.type = args.type
  42. // this.dict = this.$config.dict[args.type]
  43. },
  44. onShow() {
  45. this.queryArticleById()
  46. },
  47. onPullDownRefresh(){
  48. this.queryArticleById()
  49. },
  50. methods: {
  51. queryArticleById(){
  52. let data = {
  53. areaId : this.id,
  54. }
  55. if(uni.getStorageSync('token')){
  56. data.token = uni.getStorageSync('token')
  57. }
  58. this.$api('queryAreaListById', data, res => {
  59. uni.stopPullDownRefresh()
  60. if(res.code == 200){
  61. this.detail = res.result.travelExperience || res.result
  62. this.collectonFlag = res.result.collectonFlag
  63. }
  64. })
  65. },
  66. toPayUrl(item, dictKey){
  67. uni.navigateTo({
  68. url: `/pages_order/order/orderSubscribe?type=${dictKey}&id=${item.id}`
  69. })
  70. },
  71. }
  72. }
  73. </script>
  74. <style scoped lang="scss">
  75. .page{
  76. }
  77. </style>