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

127 lines
2.3 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="page">
  4. <navbar title="我要研学" leftClick @leftClick="$utils.navigateBack" />
  5. <view class="search">
  6. <uv-search
  7. placeholder="搜索服务"
  8. v-model="keyword"
  9. :animation="true"
  10. height="70"
  11. :showAction="false"
  12. searchIconSize="44"
  13. >
  14. </uv-search>
  15. </view>
  16. <view class="list">
  17. <view class="item"
  18. @click="$utils.navigateTo('/pages_order/service/StudyAndPathDetail?type=1&id=' + item.id)"
  19. v-for="(item,index) in list"
  20. :key="index">
  21. <view class="image">
  22. <image :src="item.amusementImage[0]" mode=""></image>
  23. <view class="type">
  24. 报名中
  25. </view>
  26. </view>
  27. <view class="info">
  28. <view class="title text-ellipsis">
  29. {{ item.amusementTitle }}
  30. </view>
  31. <view class="price">
  32. 5000.00
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <tabber/>
  38. </view>
  39. </template>
  40. <script>
  41. import mixinsList from '@/mixins/list.js'
  42. export default {
  43. mixins : [mixinsList],
  44. data() {
  45. return {
  46. isShow: 0,
  47. mixinsListApi : 'queryAmusementList',
  48. list : [],
  49. }
  50. },
  51. onLoad() {
  52. this.queryParams.amusementType = 1
  53. },
  54. onShow() {
  55. this.getData()
  56. },
  57. methods: {
  58. setPath(i){
  59. this.getData()
  60. },
  61. getDataThen(result){
  62. this.list.forEach(n => n.amusementImage =
  63. n.amusementImage ?
  64. n.amusementImage.split(',') : [])
  65. },
  66. }
  67. }
  68. </script>
  69. <style scoped lang="scss">
  70. .page{
  71. .search{
  72. background-color: #fff;
  73. padding: 20rpx;
  74. }
  75. .list{
  76. .item{
  77. margin: 30rpx 20rpx 50rpx;
  78. padding: 20rpx;
  79. background-color: #fff;
  80. border-radius: 20rpx;
  81. box-shadow: 0 0 10rpx 10rpx #00000011;
  82. .image{
  83. width: 100%;
  84. height: 400rpx;
  85. position: relative;
  86. image{
  87. width: 100%;
  88. height: 90%;
  89. border-radius: 20rpx;
  90. margin-top: 10rpx;
  91. }
  92. .type{
  93. position: absolute;
  94. top: -10rpx;
  95. height: 62rpx;
  96. left: 30rpx;
  97. background-color: darkgoldenrod;
  98. color: #fff;
  99. font-size: 28rpx;
  100. padding: 0 18rpx;
  101. border-radius: 14rpx;
  102. line-height: 56rpx;
  103. }
  104. }
  105. .info{
  106. .title{
  107. margin-left: 14rpx;
  108. margin-bottom: 8rpx;
  109. font-size: 32rpx;
  110. font-weight: 700;
  111. }
  112. .price{
  113. font-size: 30rpx;
  114. margin-left: 12rpx;
  115. margin-bottom: 8rpx;
  116. color: darkgoldenrod;
  117. }
  118. }
  119. }
  120. }
  121. }
  122. </style>