index.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <template>
  2. <view class="scenic">
  3. <view class="search-box" @click="handleSearch">
  4. <view class="city-box">
  5. <image class="icon" src="@/static/blue-position.png" mode=""></image>
  6. <view class="city">
  7. {{city}}
  8. </view>
  9. </view>
  10. <input class="search" disabled v-model="value" type="text" placeholder="景点名称" />
  11. </view>
  12. <view class="more-box">
  13. <view class="title">
  14. 猜你喜欢
  15. </view>
  16. <view class="btn-box">
  17. 更多 <image class="btn" src="@/static/right.png" mode=""></image>
  18. </view>
  19. </view>
  20. <zs-list class="list" mt="20rpx" @load="loadMore" :status="status">
  21. <view class="item" @click="goDetail">
  22. <zs-img src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe7c9174d67a7dbd842b74/ext/GOODS_INFO/微信图片_20240328145646.png/1.png" width="340rpx" height="340rpx" mode=""></zs-img>
  23. <view class="info">
  24. <view class="title">
  25. 重庆杜莎夫人蜡像馆重庆杜莎夫人蜡像馆
  26. </view>
  27. <view class="price-box">
  28. <view class="unit">
  29. </view>
  30. <view class="price">
  31. 580
  32. </view>
  33. <view class="text">
  34. </view>
  35. </view>
  36. <view class="address-box">
  37. <view class="address">
  38. 重庆
  39. </view>
  40. <view class="distance">
  41. 138.8km
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="item" @click="goDetail">
  47. <zs-img src="http://zswl-dev.oss-cn-chengdu.aliyuncs.com/63b7c68b71a69169d1b33f92/store/65fe7c9174d67a7dbd842b74/ext/GOODS_INFO/微信图片_20240328145646.png/1.png" width="340rpx" height="340rpx" mode=""></zs-img>
  48. <view class="info">
  49. <view class="title">
  50. 重庆杜莎夫人蜡像馆
  51. </view>
  52. <view class="price-box">
  53. <view class="unit">
  54. </view>
  55. <view class="price">
  56. 580
  57. </view>
  58. <view class="text">
  59. </view>
  60. </view>
  61. <view class="address-box">
  62. <view class="address">
  63. 重庆
  64. </view>
  65. <view class="distance">
  66. 138.8km
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </zs-list>
  72. </view>
  73. </template>
  74. <script>
  75. export default {
  76. data() {
  77. return {
  78. city: uni.getStorageSync('city'),
  79. value:'',
  80. status:'more',
  81. }
  82. },
  83. methods: {
  84. handleSearch() {
  85. uni.navigateTo({
  86. url:'/scenic/search'
  87. })
  88. },
  89. goDetail(){
  90. uni.navigateTo({
  91. url:'/scenic/detail'
  92. })
  93. },
  94. loadMore(){
  95. }
  96. },
  97. }
  98. </script>
  99. <style lang="scss" >
  100. .scenic{
  101. background: #F9F9F9;
  102. min-height: 100vh;
  103. padding: 112rpx 24rpx 0;
  104. .search-box{
  105. position: fixed;
  106. top: 20rpx;
  107. left: 24rpx;
  108. width: 702rpx;
  109. height: 72rpx;
  110. // padding: 16rpx;
  111. box-sizing: border-box;
  112. z-index: 9;
  113. .city-box{
  114. position: absolute;
  115. left: 0;
  116. top: 50%;
  117. transform: translateY(-50%);
  118. display: flex;
  119. align-items: center;
  120. padding: 0 28rpx;
  121. border-right: 1rpx solid #F0F0F0;
  122. .icon{
  123. width: 30rpx;
  124. height: 30rpx;
  125. }
  126. .city{
  127. font-weight: 600;
  128. font-size: 28rpx;
  129. color: #222222;
  130. margin-left: 6rpx;
  131. }
  132. }
  133. .search{
  134. width: 702rpx;
  135. height: 72rpx;
  136. background: #FFFFFF;
  137. border-radius: 40rpx 40rpx 40rpx 40rpx;
  138. padding-left: 230rpx;
  139. padding-right: 100rpx;
  140. box-sizing: border-box;
  141. }
  142. }
  143. .more-box{
  144. display: flex;
  145. align-items: center;
  146. justify-content: space-between;
  147. .title{
  148. font-weight: 600;
  149. font-size: 32rpx;
  150. color: #222222;
  151. }
  152. .btn-box{
  153. display: flex;
  154. align-items: center;
  155. font-weight: 300;
  156. font-size: 24rpx;
  157. color: #AAAAAA;
  158. .btn{
  159. width: 48rpx;
  160. height: 48rpx;
  161. }
  162. }
  163. }
  164. .zs-list{
  165. display: flex;
  166. flex-wrap: wrap;
  167. justify-content: space-between;
  168. .item{
  169. background: #FFFFFF;
  170. border-radius: 16rpx;
  171. margin-bottom: 20rpx;
  172. .info{
  173. padding: 16rpx 16rpx 20rpx;
  174. width: 100%;
  175. box-sizing: border-box;
  176. .title{
  177. font-weight: 400;
  178. font-size: 24rpx;
  179. color: #222222;
  180. width: 300rpx;
  181. white-space: nowrap;
  182. overflow: hidden;
  183. text-overflow: ellipsis;
  184. }
  185. .price-box{
  186. display: flex;
  187. align-items: flex-end;
  188. margin-top: 12rpx;
  189. .unit{
  190. font-weight: 600;
  191. font-size: 20rpx;
  192. color: $uni-color-primary;
  193. }
  194. .price{
  195. font-weight: 600;
  196. font-size: 36rpx;
  197. color: $uni-color-primary;
  198. }
  199. .text{
  200. font-weight: 300;
  201. font-size: 24rpx;
  202. color: #AAAAAA;
  203. margin-left: 6rpx;
  204. }
  205. }
  206. .address-box{
  207. display: flex;
  208. align-items: center;
  209. justify-content: space-between;
  210. font-weight: 300;
  211. font-size: 20rpx;
  212. color: #AAAAAA;
  213. margin-top: 12rpx;
  214. }
  215. }
  216. }
  217. }
  218. }
  219. </style>