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

101 lines
2.0 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
  1. <template>
  2. <!-- 非遗体验 -->
  3. <view class="experience">
  4. <navbar title="非遗体验" leftClick @leftClick="$utils.navigateBack" />
  5. <view class="experience-img">
  6. <uv-swiper
  7. :list="banner.experience"
  8. indicator
  9. height="420rpx"
  10. keyName="imageContent"></uv-swiper>
  11. </view>
  12. <view class="experience-box" v-for="(item,index) in list"
  13. @click="toUrl(item)"
  14. :key="index">
  15. <view class="experience-box-img">
  16. <uv-image :src="item.experienceImage" radius="16rpx" width="100%" height="360rpx"
  17. :fade="false" />
  18. </view>
  19. <view class="experience-box-font">
  20. <view style="font-weight: 600;">{{ item.experienceTitle }}</view>
  21. <view style="font-size: 24rpx; color: #999999;">{{ item.experienceOpentime }}</view>
  22. <view class="experience-box-button">
  23. <view>线上预订</view>
  24. </view>
  25. </view>
  26. </view>
  27. <tabber/>
  28. </view>
  29. </template>
  30. <script>
  31. import { mapState } from 'vuex'
  32. import mixinsList from '@/mixins/list.js'
  33. export default {
  34. mixins : [mixinsList],
  35. data() {
  36. return {
  37. mixinsListApi : 'queryExperienceList',
  38. list : [],
  39. }
  40. },
  41. computed : {
  42. ...mapState(['banner']),
  43. },
  44. onLoad() {
  45. },
  46. onShow() {
  47. this.getData()
  48. },
  49. methods: {
  50. toUrl(item){
  51. this.$utils.navigateTo(`/pages_order/service/articleDetail?id=${item.id}&type=2`)
  52. },
  53. }
  54. }
  55. </script>
  56. <style scoped lang="scss">
  57. .experience {
  58. .experience-img {
  59. }
  60. .experience-box {
  61. width: 94%;
  62. margin-left: 3%;
  63. margin-top: 20rpx;
  64. background-color: #fff;
  65. box-shadow: 0px 0px 10rpx 0rpx #00000022;
  66. border-radius: 12rpx;
  67. .experience-box-img {
  68. width: 94%;
  69. margin-left: 3%;
  70. padding-top: 20rpx;
  71. }
  72. .experience-box-font {
  73. width: 94%;
  74. margin-left: 3%;
  75. margin-top: 30rpx;
  76. .experience-box-button {
  77. display: flex;
  78. justify-content: flex-end;
  79. align-items: center;
  80. font-size: 28rpx;
  81. color: #fff;
  82. padding-bottom: 40rpx;
  83. view {
  84. padding: 10rpx 40rpx;
  85. border-radius: 40rpx;
  86. background-color: #C83741;
  87. }
  88. }
  89. }
  90. }
  91. }
  92. </style>