search.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. <template>
  2. <view class="container">
  3. <!-- 轮播图区域 -->
  4. <swiper class="banner" indicator-dots indicator-color="rgba(255, 255, 255, 0.5)" indicator-active-color="#1E7DFB" autoplay circular>
  5. <swiper-item v-for="item in lunbo" :key="item.id">
  6. <img :src="item" />
  7. </swiper-item>
  8. </swiper>
  9. <!-- 游客服务区域 -->
  10. <view class="search">
  11. <view class="search_title">游客服务</view>
  12. <view class="search_box">
  13. <!-- 每一个图标区域 -->
  14. <view class="box_item" v-for="item in iconsList" :key="item.id">
  15. <img :src="item.imgUrl"></img>
  16. <view class="item_text">
  17. {{item.text}}
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 景区导览区域 -->
  23. <view class="trave">
  24. <view class="trave_title">
  25. 景区导览
  26. <view class="trave_she"></view>
  27. </view>
  28. <view class="trave_box">
  29. <!-- 每一个图标区域 -->
  30. <view class="box_item" v-for="item in traveList" :key="item.id">
  31. <view style="height: 218rpx;">
  32. <img :src="item.imgUrl"></img>
  33. <view class="trave_dian">
  34. <img src="../../static/search/trave_map.png"></img>
  35. <view class="trave_length">{{item.juli}}</view>
  36. </view>
  37. </view>
  38. <!-- <view>2</view> -->
  39. <view class="item_kuang">
  40. <view class="item_name">{{item.name}}</view>
  41. <view class="item_jibie">{{item.jibie}}</view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <!-- 特产推荐区域 -->
  47. <view class="techan">
  48. <view class="trave_title">
  49. 特产推荐
  50. <view class="trave_she"></view>
  51. </view>
  52. <view class="techan_box">
  53. <view class="techan_list" v-for="item in techanList" :key="item.id">
  54. <img :src="item.imgUrl" class="techan_img"></img>
  55. <view>
  56. <text class="techan_name">{{item.name}}</text>
  57. <text class="techan_type">{{item.type}}</text>
  58. <text class="techan_liang">{{item.liang}}</text>
  59. <text class="techan_price">{{item.price}}</text>
  60. </view>
  61. <img src="../../static/search/gouwuche.png" class="techan_jiagou"></img>
  62. <view class="techan_line"></view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </template>
  68. <script>
  69. export default {
  70. data() {
  71. return {
  72. //轮播图
  73. lunbo:['https://jtishfw.ncjti.edu.cn/homestay/banner/7.png',
  74. 'https://jtishfw.ncjti.edu.cn/homestay/banner/8.jpg',
  75. 'https://jtishfw.ncjti.edu.cn/homestay/banner/9.png'],
  76. // 图标数组
  77. iconsList:[
  78. {
  79. id:1,
  80. imgUrl:'../../static/search/icon.png',
  81. text:'投诉建议'
  82. },
  83. {
  84. id:2,
  85. imgUrl:'../../static/search/icon2.png',
  86. text:'租车服务'
  87. },{
  88. id:3,
  89. imgUrl:'../../static/search/icon3.png',
  90. text:'车位查询'
  91. },{
  92. id:4,
  93. imgUrl:'../../static/search/icon4.png',
  94. text:'厕所查询'
  95. },{
  96. id:5,
  97. imgUrl:'../../static/search/icon5.png',
  98. text:'寻找向导'
  99. },{
  100. id:6,
  101. imgUrl:'../../static/search/icon6.png',
  102. text:'服务热线'
  103. },{
  104. id:7,
  105. imgUrl:'../../static/search/icon7.png',
  106. text:'服务热线'
  107. },{
  108. id:8,
  109. imgUrl:'../../static/search/icon8.png',
  110. text:'招商平台'
  111. }
  112. ],
  113. // 景区导览
  114. traveList:[
  115. {id:1,imgUrl:'https://jtishfw.ncjti.edu.cn/homestay/scenicguide/中部梦幻城.png',juli:'45.96km',name:'中部梦幻城',jibie:'4A'},
  116. {id:2,imgUrl:'https://jtishfw.ncjti.edu.cn/homestay/scenicguide/中华传统文化园.png',juli:'45.96km',name:'中华传统文化园',jibie:'4A'},
  117. {id:3,imgUrl:'https://jtishfw.ncjti.edu.cn/homestay/scenicguide/靖安宝峰寺.png',juli:'45.96km',name:'靖安宝峰寺',jibie:'4A'},
  118. {id:4,imgUrl:'https://jtishfw.ncjti.edu.cn/homestay/scenicguide/九岭森林温泉度假村.png',juli:'45.96km',name:'九岭森林温泉度假村',jibie:'4A'},
  119. ],
  120. // 特产
  121. techanList:[
  122. {id:1,imgUrl:'https://jtishfw.ncjti.edu.cn/homestay/productpicture/靖安木耳.png',name:'靖安木耳',type:'手工产品 营养丰富',liang:'500kg',price:'¥200',},
  123. {id:1,imgUrl:'https://jtishfw.ncjti.edu.cn/homestay/productpicture/靖安白茶.jpg',name:'靖安白茶',type:'经典茶品 营养丰富',liang:'500kg',price:'¥400',},
  124. {id:1,imgUrl:'https://jtishfw.ncjti.edu.cn/homestay/productpicture/靖安椪柑.jpg',name:'靖安椪柑',type:'汁水丰富 营养丰富',liang:'500kg',price:'¥80',},
  125. {id:1,imgUrl:'https://jtishfw.ncjti.edu.cn/homestay/productpicture/猕猴桃糕.jpg',name:'猕猴桃糕',type:'手工制作 回味无穷',liang:'500kg',price:'¥50',}
  126. ],
  127. }
  128. }
  129. }
  130. </script>
  131. <style lang="scss" scoped>
  132. .container {
  133. display: flex;
  134. flex-direction: column;
  135. min-height: 100vh;
  136. background-color: #ebeced;
  137. .banner {
  138. margin-top: 20rpx;
  139. width: 750rpx;
  140. height: 326rpx;
  141. img {
  142. width: 100%;
  143. height: 100%;
  144. }
  145. }
  146. .search {
  147. margin: 20rpx 0;
  148. width: 750rpx;
  149. height: 475rpx;
  150. background-color: #fff;
  151. .search_title {
  152. padding: 0 30rpx;
  153. height: 93rpx;
  154. line-height: 93rpx;
  155. font-size: 32rpx;
  156. font-weight: bold;
  157. border-bottom: 1rpx solid #e6e6e6;
  158. }
  159. .search_box {
  160. display: flex;
  161. flex-wrap: wrap;
  162. padding: 0 30rpx;
  163. height: 382rpx;
  164. .box_item {
  165. display: flex;
  166. flex-direction: column;
  167. justify-content: center;
  168. align-items: center;
  169. width: 25%;
  170. height: 190rpx;
  171. image {
  172. width: 78rpx;
  173. height: 78rpx;
  174. }
  175. .item_text{
  176. margin-top: 13rpx;
  177. font-size: 28rpx;
  178. }
  179. }
  180. }
  181. }
  182. // 景区导览
  183. .trave {
  184. margin: 20rpx 0;
  185. width: 750rpx;
  186. height: 869rpx;
  187. background-color: #fff;
  188. .trave_title {
  189. padding: 0 30rpx;
  190. height: 93rpx;
  191. line-height: 93rpx;
  192. font-size: 32rpx;
  193. font-weight: bold;
  194. border-bottom: 1rpx solid #e6e6e6;
  195. }
  196. .trave_she{
  197. margin: -40px 0 0 634rpx;
  198. width: 67rpx;
  199. height: 67rpx;
  200. background-image: url('../../static/search/trave_she.png');
  201. background-size: 100%;
  202. }
  203. .trave_box {
  204. display: flex;
  205. flex-wrap: wrap;
  206. padding: 32rpx 10rpx;
  207. height: 766rpx;
  208. .box_item {
  209. display: flex;
  210. flex-direction: column;
  211. justify-content: center;
  212. align-items: center;
  213. height: 331rpx;
  214. width: 50%;
  215. image {
  216. width: 335rpx;
  217. height: 218rpx;
  218. z-index: 2;
  219. }
  220. .trave_dian{
  221. width: 109rpx;
  222. height: 37rpx;
  223. border-radius: 73rpx;
  224. background: rgba(0, 0, 0, 0.4);
  225. margin: -57rpx 0 0 213rpx;
  226. z-index: 3;
  227. position: absolute;
  228. image {
  229. width: 26rpx;
  230. height: 26rpx;
  231. margin: 6rpx 0 0 8rpx;
  232. float: left;
  233. }
  234. .trave_length{
  235. font-size: 16rpx;
  236. line-height: 23rpx;
  237. color: rgba(255, 255, 255, 1);
  238. margin: 10rpx 0 0 8rpx;
  239. }
  240. }
  241. .item_kuang{
  242. width: 335rpx;
  243. height: 113rpx;
  244. background: rgba(255, 255, 255, 1);
  245. box-shadow: 0px 0px 7rpx rgba(0, 0, 0, 0.25);
  246. font-size: 28rpx;
  247. .item_name{
  248. margin: 11rpx 0 0 17rpx;
  249. line-height: 41rpx;
  250. color: rgba(0, 0, 0, 1);
  251. }
  252. .item_jibie{
  253. margin: 11rpx 0 0 17rpx;
  254. width: 48rpx;
  255. height: 30rpx;
  256. border-radius: 136rpx;
  257. background: rgba(255, 223, 117, 1);
  258. font-size: 22rpx;
  259. line-height: 30rpx;
  260. color: rgba(189, 120, 17, 1);
  261. text-align: center;
  262. }
  263. }
  264. }
  265. }
  266. }
  267. // 特产推荐
  268. .techan{
  269. margin: 20rpx 0;
  270. width: 750rpx;
  271. height: 110%;
  272. background-color: #fff;
  273. .trave_title {
  274. padding: 0 30rpx;
  275. height: 93rpx;
  276. line-height: 93rpx;
  277. font-size: 32rpx;
  278. font-weight: bold;
  279. border-bottom: 1rpx solid #e6e6e6;
  280. }
  281. .trave_she{
  282. margin: -40px 0 0 634rpx;
  283. width: 67rpx;
  284. height: 67rpx;
  285. background-image: url('../../static/search/trave_she.png');
  286. background-size: 100%;
  287. }
  288. .techan_box{
  289. display: flex;
  290. flex-wrap: wrap;
  291. margin-left: 30rpx;
  292. height: 110%;
  293. .techan_list{
  294. display: flex;
  295. height: 231rpx;
  296. margin-top: 30rpx;
  297. .techan_img{
  298. width: 200rpx;
  299. height: 200rpx;
  300. }
  301. .techan_name{
  302. display: flex;
  303. margin: 0 0 0 23rpx;
  304. font-size: 28rpx;
  305. font-weight: 500;
  306. line-height: 41rpx;
  307. color: rgba(0, 0, 0, 1);
  308. }
  309. .techan_type{
  310. display: flex;
  311. margin: 11rpx 0 0 23rpx;
  312. font-size: 24rpx;
  313. line-height: 35rpx;
  314. color: rgba(166, 166, 166, 1);
  315. }
  316. .techan_liang{
  317. display: flex;
  318. margin: 14rpx 0 0 28rpx;
  319. width: 61rpx;
  320. height: 32rpx;
  321. border-radius: 4rpx;
  322. background: rgba(230, 230, 230, 1);
  323. font-size: 20rpx;
  324. line-height: 32rpx;
  325. color: rgba(166, 166, 166, 1);
  326. text-align: center;
  327. }
  328. .techan_price{
  329. display: flex;
  330. margin: 19rpx 0 0 23rpx;
  331. font-size: 36rpx;
  332. font-weight: 500;
  333. line-height: 52rpx;
  334. color: rgba(255, 87, 51, 1);
  335. }
  336. .techan_jiagou{
  337. margin: 143rpx 0 0 207rpx;
  338. width: 62rpx;
  339. height: 62rpx;
  340. }
  341. .techan_line{
  342. position: absolute;
  343. margin: 230rpx 0 0 0;
  344. width: 690px;
  345. border: 1px solid #e6e6e6;
  346. }
  347. }
  348. }
  349. }
  350. }
  351. </style>