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

166 lines
3.0 KiB

8 months ago
  1. <template>
  2. <view class="Locations">
  3. <view class="Locations-list">
  4. <view class="main">
  5. <image
  6. class="main-image"
  7. src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img"
  8. mode="aspectFill"></image>
  9. <view class="info">
  10. <view class="title">
  11. 陶阳里景区
  12. </view>
  13. <view class="tips">
  14. 6个遗产点
  15. </view>
  16. <view class="btn">
  17. <image src="/static/image/tourGuide/a.png"
  18. mode=""></image>
  19. <text class="">
  20. 语音讲解
  21. </text>
  22. </view>
  23. </view>
  24. <view class="controls">
  25. <view class="f">
  26. <image src="/static/image/tourGuide/f.png" mode=""></image>
  27. </view>
  28. <view class="btn"
  29. @click="show = !show">
  30. <text class="">
  31. {{ show ? '收起' : '展开' }}
  32. </text>
  33. <uv-icon
  34. :name="show ? 'arrow-up' : 'arrow-down'"
  35. size="30rpx"></uv-icon>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="list"
  40. v-if="show">
  41. <view class="main"
  42. v-for="(item, index) in 10"
  43. :key="index">
  44. <image
  45. class="main-image"
  46. src="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/BB1msKSi.img"
  47. mode="aspectFill"></image>
  48. <view class="info">
  49. <view class="title">
  50. 陶阳里景区
  51. </view>
  52. <view class="tips">
  53. 6个遗产点
  54. </view>
  55. </view>
  56. <view class="controls">
  57. <view class="f">
  58. <image src="/static/image/tourGuide/f.png" mode=""></image>
  59. </view>
  60. <view class="f">
  61. <image src="/static/image/tourGuide/a.png" mode=""></image>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </template>
  69. <script>
  70. export default {
  71. data() {
  72. return {
  73. show : true,
  74. }
  75. },
  76. methods: {
  77. }
  78. }
  79. </script>
  80. <style scoped lang="scss">
  81. .Locations{
  82. .Locations-list{
  83. .main{
  84. display: flex;
  85. margin: 20rpx;
  86. .main-image{
  87. width: 150rpx;
  88. height: 150rpx;
  89. border-radius: 20rpx;
  90. }
  91. .info{
  92. margin-left: 20rpx;
  93. .title{
  94. font-size: 30rpx;
  95. font-weight: 900;
  96. }
  97. .tips{
  98. font-size: 24rpx;
  99. color: #999999;
  100. margin-top: 10rpx;
  101. }
  102. }
  103. .controls{
  104. margin-left: auto;
  105. display: flex;
  106. flex-direction: column;
  107. justify-content: center;
  108. align-items: center;
  109. .f{
  110. image{
  111. width: 50rpx;
  112. height: 50rpx;
  113. }
  114. }
  115. }
  116. .btn{
  117. padding: 10rpx;
  118. font-size: 22rpx;
  119. color: $uni-color;
  120. border: 1rpx solid $uni-color;
  121. background-color: #F4E4C4;
  122. display: flex;
  123. justify-content: center;
  124. align-items: center;
  125. margin-top: 10rpx;
  126. border-radius: 15rpx;
  127. image{
  128. width: 25rpx;
  129. height: 25rpx;
  130. }
  131. text{
  132. margin: 0 10rpx;
  133. }
  134. }
  135. }
  136. .list{
  137. padding-left: 40rpx;
  138. .main{
  139. align-items: center;
  140. .main-image{
  141. width: 140rpx;
  142. height: 140rpx;
  143. }
  144. .controls{
  145. flex-direction: row;
  146. .f{
  147. margin: 30rpx;
  148. image{
  149. width: 40rpx;
  150. height: 40rpx;
  151. }
  152. }
  153. }
  154. }
  155. }
  156. }
  157. }
  158. </style>