detail.vue 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713
  1. <template>
  2. <view class="container" :style="'overflow:' + (showPage ? 'hidden' : 'visible')" v-if="info">
  3. <!-- 顶部分段器区域 -->
  4. <view class="control">
  5. <uni-segmented-control :current="activeIndex" :values="headerList" style-type="text" active-color="#096562" @clickItem="onClickItem" />
  6. </view>
  7. <!-- 顶部民宿图片区域 -->
  8. <view class="banner">
  9. <swiper autoplay circular class="swiper">
  10. <swiper-item class="swiper_item" v-for="(item, current) in info.hotelFileInfoList" :key="item.id" @click="handleClickSwiper(info.hotelFileInfoList, current)">
  11. <img mode="aspectFill" class="img" :src="item.url" />
  12. </swiper-item>
  13. </swiper>
  14. <view class="slogan">
  15. <img src="../../static/index/slogan.png" />
  16. </view>
  17. <!-- 720°全景链接区域 -->
  18. <view class="full" v-if="info.linkProUrl" @click="handleGoPull(info.linkProUrl)">
  19. <img src="../../static/index/full.png" />
  20. 720°全景
  21. </view>
  22. <!-- 收藏按钮区域 -->
  23. <view class="collect">
  24. <uni-fav circle bgColorChecked="#096562" :checked="info.is_collect_hotel" @click="changeCollect(info.is_collect_hotel)" />
  25. </view>
  26. </view>
  27. <!-- 民宿详细信息区域 -->
  28. <view class="detail">
  29. <view class="detail_name">{{ info.hotel_name }}</view>
  30. <view class="detail_info">
  31. <view class="info_left">{{ info.fitupTime }}装修 | {{ info.openTime }}开业</view>
  32. <view class="info_right" @click="goPageDetailInfo">
  33. 设施/详情
  34. <img src="../../static/index/right.png" />
  35. </view>
  36. </view>
  37. <view class="detail_group">
  38. <view class="group_item" v-for="item in info.hconfigList" :key="item.id">
  39. <img :src="item.fileUrl" />
  40. {{ item.name }}
  41. </view>
  42. </view>
  43. <view class="address">
  44. <view class="address_left">{{ info.hposition }}</view>
  45. <view class="address_right">
  46. <view class="right_box" @click="handleMap(info)">
  47. <img src="../../static/index/map.png" />
  48. </view>
  49. <view class="right_box" @click="handlePhone(info.managerPhone)">
  50. <img src="../../static/index/phone.png" />
  51. </view>
  52. </view>
  53. </view>
  54. <view class="distance" v-if="distance">距离我{{ distance }}km</view>
  55. </view>
  56. <!-- 房型信息区域 -->
  57. <view class="body">
  58. <!-- 选择日期区域 -->
  59. <view class="body_header" @click="handleOpen()">
  60. <view class="header_start">
  61. <view class="header_top">{{ getWeek(startTime) }}入住</view>
  62. <view class="header_bottom">{{ startTime.slice(5, 7) }}月{{ startTime.slice(8, 10) }}日</view>
  63. </view>
  64. <view class="header_night">
  65. <view class="night_line"></view>
  66. <view class="night_box">{{ nightNum }}晚</view>
  67. <view class="night_line"></view>
  68. </view>
  69. <view class="header_end">
  70. <view class="header_top">{{ getWeek(endTime) }}离店</view>
  71. <view class="header_bottom">{{ endTime.slice(5, 7) }}月{{ endTime.slice(8, 10) }}日</view>
  72. </view>
  73. </view>
  74. <!-- 日历组件 -->
  75. <uv-calendars
  76. ref="calendar"
  77. range
  78. title="选择日期"
  79. start-text="住店"
  80. end-text="离店"
  81. color="#096562"
  82. confirmColor="#096562"
  83. :selected="selected"
  84. :startDate="earlyTime"
  85. :endDate="lateTime"
  86. @monthSwitch="monthSwitch"
  87. @confirm="handleConfirm"
  88. />
  89. <!-- 房型列表区域 -->
  90. <view class="body_content" v-if="list.length">
  91. <!-- 每一个房型盒子区域 -->
  92. <view class="body_box" v-for="item in list" :key="item.id" @click="handleLookDetail(item)">
  93. <view class="box_left">
  94. <img mode="aspectFill" :src="item.fileInfoList[0].url" />
  95. </view>
  96. <view class="box_center">
  97. <view class="center_top">{{ item.hName }}</view>
  98. <view class="center_center">
  99. <view class="center_item" v-if="item.hAreas">{{ item.hAreas }}㎡ 剩余{{ item.remainRooms }}间</view>
  100. </view>
  101. <view class="center_bottom">
  102. <img v-for="item2 in item.hConfigList" :key="item2.id" class="img" :src="item2.fileUrl" />
  103. </view>
  104. </view>
  105. <view class="box_right">
  106. <view class="right_price">
  107. <text>¥</text>
  108. {{ item.price }}
  109. </view>
  110. <view class="right_btn" :class="{ inactive: item.remainRooms * 1 <= 0 }" @click.stop="goPageAffOrder(item)">订</view>
  111. </view>
  112. </view>
  113. <!-- 点击房型弹窗区域 -->
  114. <uv-popup ref="popup" bgColor="none" :safeAreaInsetBottom="false">
  115. <view class="body_pop">
  116. <!-- 轮播图区域 -->
  117. <swiper indicator-dots circular indicator-color="#FFFFFF" indicator-active-color="#096562" class="pop_swiper">
  118. <swiper-item class="pop_swiper_item" v-for="item in roomInfo.fileInfoList" :key="item.id">
  119. <img class="img" :src="item.url" />
  120. </swiper-item>
  121. </swiper>
  122. <!-- 轮播图关闭图标区域 -->
  123. <img class="pop_icon" src="../../static/index/close.png" @click="handleClosePop" />
  124. <view class="pop_body">
  125. <view class="body_title">{{ roomInfo.hName }}</view>
  126. <view class="body_tags">
  127. <view class="tags_item">
  128. <img class="img" src="../../static/index/place.png" />
  129. {{ roomInfo.hAreas }}㎡
  130. </view>
  131. <view class="tags_item" v-for="item2 in roomInfo.hConfigList" :key="item2.id">
  132. <img class="img" :src="item2.fileUrl" />
  133. {{ item2.name }}
  134. </view>
  135. </view>
  136. <view class="body_title2">费用明细</view>
  137. <view class="body_detail">
  138. <!-- <view class="detail_old">¥{{ roomInfo.price }}</view> -->
  139. <!-- <view class="detail_box">
  140. 黄金会员9折
  141. <text>-¥25</text>
  142. </view>
  143. <view class="detail_box">
  144. 活动
  145. <text>-¥2.5</text>
  146. </view> -->
  147. <view class="detail_new">
  148. 每间每晚
  149. <view class="ml_10 color">¥</view>
  150. <view class="price color">{{ roomInfo.price }}</view>
  151. </view>
  152. </view>
  153. <view class="body_bottom">
  154. <view class="bottom_left" @click="handlePhone(info.managerPhone)">
  155. <img class="img" src="../../static/index/phone2.png" />
  156. 联系商家
  157. </view>
  158. <view class="bottom_right">
  159. <text>¥</text>
  160. {{ roomInfo.price }}
  161. <view class="btn" :class="{ inactive: roomInfo.remainRooms * 1 <= 0 }" @click="goPageAffOrder(roomInfo)">预定</view>
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. </uv-popup>
  167. </view>
  168. <view class="noData" v-else>
  169. <img src="../../static/images/noData.png" />
  170. 暂无数据
  171. </view>
  172. </view>
  173. <!-- 评价区域 -->
  174. <view class="evaluate">
  175. <view class="evaluate_title">评价</view>
  176. <view class="evaluate_body">
  177. <!-- 评分区域 -->
  178. <view class="header" v-if="score">
  179. <view class="header_box">
  180. <!-- 总评分区域 -->
  181. <view class="box_left">{{ score }}</view>
  182. <view class="box_right">
  183. <!-- 位置评分区域 -->
  184. <view class="right_item">
  185. <view class="item_info">位置 {{ scoreWz }}</view>
  186. <view class="item_progress">
  187. <progress activeColor="#0BAD8B" backgroundColor="#CCCCCC" stroke-width="10" border-radius="92" :percent="((scoreWz * 1) / 5) * 100" />
  188. </view>
  189. </view>
  190. <!-- 设施评分区域 -->
  191. <view class="right_item">
  192. <view class="item_info">设施 {{ scoreSs }}</view>
  193. <view class="item_progress">
  194. <progress activeColor="#0BAD8B" backgroundColor="#CCCCCC" stroke-width="10" border-radius="92" :percent="((scoreSs * 1) / 5) * 100" />
  195. </view>
  196. </view>
  197. <!-- 服务评分区域 -->
  198. <view class="right_item">
  199. <view class="item_info">服务 {{ scoreFw }}</view>
  200. <view class="item_progress">
  201. <progress activeColor="#0BAD8B" backgroundColor="#CCCCCC" stroke-width="10" border-radius="92" :percent="((scoreFw * 1) / 5) * 100" />
  202. </view>
  203. </view>
  204. <!-- 卫生评分区域 -->
  205. <view class="right_item">
  206. <view class="item_info">卫生 {{ scoreWs }}</view>
  207. <view class="item_progress">
  208. <progress activeColor="#0BAD8B" backgroundColor="#CCCCCC" stroke-width="10" border-radius="92" :percent="((scoreWs * 1) / 5) * 100" />
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. </view>
  214. <!-- 每一个评价区域 -->
  215. <view class="evaluate_box" v-for="item in commentList" :key="item.id" @click="handleGoDetail(item)">
  216. <!-- 用户信息区域 -->
  217. <view class="box_userInfo">
  218. <img mode="aspectFill" :src="item.headPhoto" />
  219. <view class="userInfo_msg">
  220. <view class="msg_name">{{ item.userName }}</view>
  221. <view class="msg_star">
  222. <uni-rate readonly activeColor="#FFC300" :size="16" :value="item.score" />
  223. </view>
  224. </view>
  225. </view>
  226. <!-- 入住时间区域 -->
  227. <view class="box_time" v-if="item.liveTime && item.commentTime">
  228. {{ item.liveTime.slice(0, 10) }}入住,{{ item.commentTime.slice(0, 10) }}发表 | {{ item.houseName }}
  229. </view>
  230. <!-- 评价内容区域 -->
  231. <uv-read-more show-height="85rpx" closeText="全文" color="#096663" fontSize="24rpx" textIndent="0" :toggle="true" :shadowStyle="shadowStyle">
  232. <view class="box_content">
  233. {{ item.content }}
  234. </view>
  235. </uv-read-more>
  236. <!-- 图片区域 -->
  237. <view class="box_img">
  238. <img
  239. v-for="(ele, index) in item.url"
  240. :key="index"
  241. mode="aspectFill"
  242. v-if="ele.indexOf('jpg') !== -1 || ele.indexOf('png') !== -1"
  243. :src="ele"
  244. @click.stop="handleClickImg(ele, index)"
  245. />
  246. <video
  247. :id="item.id + index2"
  248. class="video"
  249. :show-fullscreen-btn="false"
  250. :show-play-btn="false"
  251. v-for="(video, index2) in item.url"
  252. :key="index2"
  253. v-if="video.indexOf('mp4') !== -1"
  254. :src="video"
  255. @fullscreenchange="fullscreenchange"
  256. @click.stop="handleClickVideo(item.id + index2)"
  257. ></video>
  258. </view>
  259. </view>
  260. <view class="foot" @click="handleGoPage" v-if="commentList.length">
  261. 查看全部{{ total }}条评价
  262. <img src="../../static/index/right.png" />
  263. </view>
  264. <view class="noData" v-if="commentList.length === 0">
  265. <img src="../../static/images/noData.png" />
  266. 暂无评论
  267. </view>
  268. </view>
  269. </view>
  270. <!-- 周边区域 -->
  271. <view class="rim">
  272. <!-- 标题区域 -->
  273. <view class="rim_title">周边</view>
  274. <!-- 周边分段器区域 -->
  275. <view class="rim_control">
  276. <span class="control_box" v-for="(item, index) in rimHeaderList" :key="index" @click="onClickItemRim(index)">
  277. <text class="text" :class="{ active: rimActiveIndex === index }">{{ item }}</text>
  278. </span>
  279. </view>
  280. <!-- 周边列表区域 -->
  281. <view class="rim_body">
  282. <!-- 每一个盒子区域 -->
  283. <view class="rim_box" v-for="item in rimList" :key="item.id" @click="GoRimDetail">
  284. <img mode="aspectFill" :src="item.url" />
  285. <view class="box_info">
  286. <view class="info_top">{{ item.name }}</view>
  287. <view class="info_center">{{ item.leave }}</view>
  288. <view class="info_bottom">
  289. <view class="bottom_rate">{{ item.rate }}分</view>
  290. <view class="bottom_num">{{ item.num }}条评论</view>
  291. <view class="bottom_price">
  292. ¥{{ item.price }}
  293. <text>起</text>
  294. </view>
  295. </view>
  296. </view>
  297. </view>
  298. </view>
  299. <!-- 查看全部 -->
  300. <view class="rim_more" @click="test">
  301. 查看全部
  302. <img src="../../static/index/right.png" />
  303. </view>
  304. </view>
  305. </view>
  306. </template>
  307. <script>
  308. export default {
  309. data() {
  310. return {
  311. // 滚动穿透控制
  312. showPage: false,
  313. // 房型数据数组
  314. list: [],
  315. // 住几晚
  316. nightNum: 1,
  317. // 选择日期数组
  318. dayList: [],
  319. // 酒店信息
  320. info: null,
  321. // 房间信息
  322. roomInfo: {},
  323. // 民宿Id
  324. hotelId: '',
  325. // 是否有定位权限
  326. showLocation: false,
  327. // 是否展示距离
  328. distance: '',
  329. // 入住时间 YYYY-MM-DD
  330. startTime: '',
  331. // 离店时间 YYYY-MM-DD
  332. endTime: '',
  333. // 日历可以选择的最早日期
  334. earlyTime: '',
  335. // 日历可以选择的最晚日期
  336. lateTime: '',
  337. activeIndex: 0,
  338. headerList: ['预定', '评价', '周边'],
  339. // 评价列表数据
  340. commentList: [],
  341. queryDom: null,
  342. // 评价Dom距离页面顶部的距离
  343. domTop: null,
  344. // 周边Dom距离页面顶部的距离
  345. domTopRim: null,
  346. selected: [],
  347. // 总评分
  348. score: '',
  349. // 服务评分
  350. scoreFw: '',
  351. // 设施评分
  352. scoreSs: '',
  353. // 卫生评分
  354. scoreWs: '',
  355. // 位置评分
  356. scoreWz: '',
  357. // 评论总条数
  358. total: null,
  359. // 是否收藏
  360. ischecked: false,
  361. // video 上下文 videoContext 对象
  362. videoContext: null,
  363. // 是否是全屏状态
  364. isFullScreen: false,
  365. // 周边列表数组
  366. rimList: [
  367. {
  368. id: 1726150980,
  369. url: 'https://chtech.ncjti.edu.cn/hotelReservation/fileload/download/16311442750812_8.jpg',
  370. name: '九岭山房民宿',
  371. leave: '金宿',
  372. rate: 4.8,
  373. num: 109,
  374. price: 180
  375. },
  376. {
  377. id: 1102488098,
  378. url: 'https://chtech.ncjti.edu.cn/hotelReservation/fileload/download/1933617026前台.jpg',
  379. name: '云上九岭',
  380. leave: '白金',
  381. rate: 4.5,
  382. num: 21,
  383. price: 880
  384. },
  385. {
  386. id: 1147515780,
  387. url: 'https://chtech.ncjti.edu.cn/hotelReservation/fileload/download/1922593201民宿图片2.jpg',
  388. name: '靖安三闲居民宿',
  389. leave: '白金',
  390. rate: 4.6,
  391. num: 89,
  392. price: 680
  393. },
  394. {
  395. id: 1851521611,
  396. url: 'https://chtech.ncjti.edu.cn/hotelReservation/fileload/download/14323863982h0k15000000ym7ji8285_W_1080_808_R5_D.jpg',
  397. name: '野塘隐夏民宿',
  398. leave: '白金',
  399. rate: 4.7,
  400. num: 81,
  401. price: 650
  402. }
  403. ],
  404. // 周边分段器当前索引
  405. rimActiveIndex: 0,
  406. // 周边分段器数组
  407. rimHeaderList: ['民宿', '美食', '景点', '洗浴', '健身', 'KTV', '电影院', '酒店']
  408. }
  409. },
  410. mounted() {
  411. // 开启转发功能
  412. uni.showShareMenu({
  413. withShareTicket: true,
  414. menus: ['shareAppMessage', 'shareTimeline']
  415. })
  416. },
  417. onLoad(options) {
  418. this.getTimes()
  419. this.hotelId = options.id
  420. this.distance = options.distance === 'undefined' ? false : options.distance
  421. uni.getSetting({
  422. success: (res) => {
  423. this.showLocation = res.authSetting['scope.userLocation']
  424. this.getHotelInfo()
  425. this.getEvaData()
  426. }
  427. })
  428. },
  429. onPageScroll(e) {
  430. if (!this.queryDom) {
  431. this.queryDom = uni.createSelectorQuery().in(this)
  432. this.queryDom
  433. .select('.evaluate')
  434. .boundingClientRect((data) => {
  435. this.domTop = data.top
  436. })
  437. .exec()
  438. this.queryDom
  439. .select('.rim')
  440. .boundingClientRect((data) => {
  441. this.domTopRim = data.top
  442. })
  443. .exec()
  444. }
  445. if (e.scrollTop > this.domTopRim) {
  446. this.activeIndex = 2
  447. } else if (e.scrollTop > this.domTop) {
  448. this.activeIndex = 1
  449. } else {
  450. this.activeIndex = 0
  451. }
  452. },
  453. methods: {
  454. test() {
  455. uni.showToast({
  456. title: '功能开发中',
  457. icon: 'none',
  458. mask: true
  459. })
  460. },
  461. GoRimDetail() {
  462. uni.navigateTo({
  463. url: '/pages/rimDetail/rimDetail'
  464. })
  465. },
  466. // 进入全屏和退出全屏时触发的回调
  467. fullscreenchange(e) {
  468. this.isFullScreen = e.detail.fullScreen
  469. },
  470. // 点击视频控件时触发的回调
  471. handleClickVideo(id) {
  472. this.videoContext = uni.createVideoContext(id)
  473. if (this.isFullScreen) {
  474. this.videoContext.stop()
  475. this.videoContext.exitFullScreen()
  476. } else {
  477. this.videoContext.requestFullScreen()
  478. this.videoContext.play()
  479. }
  480. },
  481. // 点击收藏按钮回调
  482. async changeCollect(is_collect_hotel) {
  483. let userInfo = uni.getStorageSync('userInfo')
  484. let openid = uni.getStorageSync('openid')
  485. if (userInfo && openid) {
  486. const res = await this.$myRequest({
  487. url: is_collect_hotel ? '/mhotel/ahpdelCollectHotel.action' : '/mhotel/ahpcollectHotel.action',
  488. data: {
  489. userId: uni.getStorageSync('userInfo').id,
  490. hotelId: this.hotelId
  491. }
  492. })
  493. // console.log(res)
  494. if (res.code === 200) {
  495. uni.showToast({
  496. title: is_collect_hotel ? '取消收藏成功' : '收藏成功',
  497. icon: 'success',
  498. mask: true
  499. })
  500. this.info.is_collect_hotel = !this.info.is_collect_hotel
  501. }
  502. } else {
  503. uni.showToast({
  504. title: '请先登录',
  505. icon: 'none',
  506. mask: true
  507. })
  508. setTimeout(() => {
  509. uni.navigateTo({
  510. url: '/pages/login/login'
  511. })
  512. }, 1500)
  513. }
  514. },
  515. // 获取评论数据
  516. async getEvaData(id) {
  517. const res = await this.$myRequest({
  518. url: '/mhotel/abcaevaluatePage.action',
  519. data: {
  520. hotelId: id ? id : this.hotelId,
  521. page: 1,
  522. rows: 5,
  523. status: 0
  524. }
  525. })
  526. // console.log(res);
  527. if (res.code === 200 && res.page.pageList) {
  528. this.score = res.score.score.toFixed(1)
  529. this.scoreFw = res.score.scoreFw.toFixed(1)
  530. this.scoreSs = res.score.scoreSs.toFixed(1)
  531. this.scoreWs = res.score.scoreWs.toFixed(1)
  532. this.scoreWz = res.score.scoreWz.toFixed(1)
  533. this.commentList = res.page.pageList
  534. this.total = res.page.total
  535. }
  536. },
  537. // 获取民宿信息
  538. async getHotelInfo(id) {
  539. const res = await this.$myRequest({
  540. url: '/mhotel/ahpgetHouseByHotelId.action',
  541. data: {
  542. hotelId: id ? id : this.hotelId,
  543. userId: uni.getStorageSync('userInfo').id,
  544. queryStartTime: this.startTime,
  545. queryEndTime: this.endTime
  546. }
  547. })
  548. // console.log(res)
  549. if (res.code === 200) {
  550. this.info = res.data.data
  551. this.list = res.data.data.houseList
  552. uni.setNavigationBarTitle({
  553. title: res.data.data.hotel_name
  554. })
  555. }
  556. },
  557. onClickItem(e) {
  558. this.activeIndex = e.currentIndex
  559. if (this.activeIndex === 1) {
  560. uni.pageScrollTo({
  561. selector: '.evaluate'
  562. })
  563. } else if (this.activeIndex === 0) {
  564. uni.pageScrollTo({
  565. scrollTop: 0
  566. })
  567. } else if (this.activeIndex === 2) {
  568. uni.pageScrollTo({
  569. selector: '.rim'
  570. })
  571. }
  572. },
  573. onClickItemRim(index) {
  574. this.rimActiveIndex = index
  575. },
  576. monthSwitch(e) {
  577. let time = e.year + '-' + e.month.toString().padStart(2, 0) + '-01'
  578. this.handleOpen(time)
  579. },
  580. // 选择日期确定回调
  581. handleConfirm(e) {
  582. this.startTime = e.range.before
  583. this.endTime = e.range.after
  584. this.dayList = e.range.data
  585. this.nightNum = e.range.data.length - 1
  586. this.getHotelInfo()
  587. },
  588. // 点击地图图标回调
  589. handleMap(item) {
  590. if (this.showLocation) {
  591. let lat = item.hpositionWens.split(',')[0] * 1
  592. let lng = item.hpositionWens.split(',')[1] * 1
  593. uni.openLocation({
  594. latitude: lat,
  595. longitude: lng,
  596. name: item.hname,
  597. address: item.hposition,
  598. success: () => {}
  599. })
  600. } else {
  601. uni.showModal({
  602. content: '当前没有定位权限,是否去设置打开?',
  603. confirmText: '确认',
  604. cancelText: '取消',
  605. success: (res) => {
  606. if (res.confirm) {
  607. uni.openSetting({
  608. success: (res) => {
  609. this.showLocation = true
  610. this.handleMap(item)
  611. }
  612. })
  613. } else {
  614. uni.showToast({
  615. title: '获取定位权限失败,无法使用地图功能',
  616. icon: 'none',
  617. mask: true
  618. })
  619. }
  620. }
  621. })
  622. }
  623. },
  624. // 点击电话图标回调
  625. handlePhone(phone) {
  626. uni.makePhoneCall({
  627. phoneNumber: phone
  628. })
  629. },
  630. // 点击弹窗关闭图标回调
  631. handleClosePop() {
  632. this.showPage = false
  633. this.$refs.popup.close()
  634. },
  635. // 点击每一个户型回调
  636. handleLookDetail(item) {
  637. this.roomInfo = item
  638. this.showPage = true
  639. this.$refs.popup.open('bottom')
  640. },
  641. // 点击设施详情回调
  642. goPageDetailInfo() {
  643. uni.navigateTo({
  644. url: `/pages/detailInfo/detailInfo?hotelId=${this.hotelId}`
  645. })
  646. },
  647. // 点击 订 预定 按钮回调
  648. goPageAffOrder(item) {
  649. let flag = uni.getStorageSync('openid')
  650. if (flag) {
  651. if (!this.startTime) {
  652. uni.showToast({
  653. title: '请选择入住时间',
  654. icon: 'none'
  655. })
  656. return
  657. }
  658. if (!this.endTime) {
  659. uni.showToast({
  660. title: '请选择离店时间',
  661. icon: 'none'
  662. })
  663. return
  664. }
  665. if (item.remainRooms * 1 > 0) {
  666. this.$refs.popup.close()
  667. this.showPage = false
  668. let info = JSON.stringify({
  669. nightNum: this.nightNum,
  670. startTimeDay: this.startTime.slice(8, 10),
  671. startTimeMonth: this.startTime.slice(5, 7),
  672. startTimeWeek: this.getWeek(this.startTime),
  673. endTimeDay: this.endTime.slice(8, 10),
  674. endTimeMonth: this.endTime.slice(5, 7),
  675. endTimeWeek: this.getWeek(this.endTime),
  676. item: item,
  677. queryStartTime: this.startTime,
  678. queryEndTime: this.endTime,
  679. dayList: this.dayList,
  680. hTypeName: this.info.hTypeName,
  681. hotelName: this.info.hotel_name,
  682. hotelId: this.hotelId
  683. })
  684. uni.navigateTo({
  685. url: `/pages/affirmOrder/affirmOrder?info=${info}`
  686. })
  687. } else {
  688. uni.showToast({
  689. title: '该房间已售罄',
  690. icon: 'none',
  691. mask: true
  692. })
  693. }
  694. } else {
  695. uni.showToast({
  696. title: '请先登录',
  697. icon: 'none',
  698. mask: true
  699. })
  700. setTimeout(() => {
  701. uni.navigateTo({
  702. url: '/pages/login/login'
  703. })
  704. }, 1500)
  705. }
  706. },
  707. // 点击日期区域回调
  708. async handleOpen(time) {
  709. const res = await this.$myRequest({
  710. url: '/mhotel/house/price/priceCalendar.action',
  711. data: {
  712. merchantId: this.info.managerId,
  713. startTime: time ? time : this.startTime
  714. }
  715. })
  716. if (res.code === 200) {
  717. this.selected = res.data
  718. }
  719. if (!time) {
  720. this.$refs.calendar.open()
  721. }
  722. },
  723. // 传入参数获取当前是星期几
  724. getWeek(time) {
  725. let date = new Date(time)
  726. let week = date.getDay()
  727. let weekList = ['日', '一', '二', '三', '四', '五', '六']
  728. let res = '周' + weekList[week]
  729. return res
  730. },
  731. // 获取今明两天的日期 YYYY-MM-DD
  732. getTimes() {
  733. // 今天
  734. let today = new Date()
  735. // 明天
  736. let tomorrow = new Date(today.getTime() + 24 * 60 * 60 * 1000)
  737. let late = new Date(today.getTime() + 24 * 60 * 60 * 1000 * 14)
  738. this.startTime = `${today.getFullYear()}-${(today.getMonth() + 1).toString().padStart(2, 0)}-${today.getDate().toString().padStart(2, 0)}`
  739. this.endTime = `${tomorrow.getFullYear()}-${(tomorrow.getMonth() + 1).toString().padStart(2, 0)}-${tomorrow.getDate().toString().padStart(2, 0)}`
  740. this.dayList = [this.startTime, this.endTime]
  741. this.earlyTime = this.startTime
  742. this.lateTime = `${late.getFullYear()}-${(late.getMonth() + 1).toString().padStart(2, 0)}-${late.getDate().toString().padStart(2, 0)}`
  743. },
  744. handleGoPull(linkProUrl) {
  745. let temURL = linkProUrl.slice(22)
  746. let url = 'https://f10mfe54bri.720yun.com' + temURL
  747. uni.navigateTo({
  748. url: `/pages/web/web?url=${url}`
  749. })
  750. },
  751. // 点击每一个评价回调
  752. handleGoDetail(item) {
  753. uni.navigateTo({
  754. url: `/pages/appraiseDetail/appraiseDetail?id=${item.id}`
  755. })
  756. },
  757. // 点击评价图片回调
  758. handleClickImg(url, index) {
  759. if (this.videoContext) {
  760. this.videoContext.stop()
  761. }
  762. // 预览图片
  763. uni.previewImage({
  764. current: index,
  765. urls: [url]
  766. })
  767. },
  768. handleGoPage() {
  769. uni.navigateTo({
  770. url: `/pages/appraise/appraise?hotelId=${this.hotelId}`
  771. })
  772. },
  773. handleClickSwiper(urls, current) {
  774. const temList = urls.map((ele) => ele.url)
  775. uni.previewImage({
  776. urls: temList,
  777. current
  778. })
  779. }
  780. }
  781. }
  782. </script>
  783. <style lang="scss" scoped>
  784. .container {
  785. display: flex;
  786. flex-direction: column;
  787. align-items: center;
  788. position: relative;
  789. padding-bottom: 20rpx;
  790. min-height: 100vh;
  791. background-color: #f2f3f5;
  792. .control {
  793. z-index: 999;
  794. position: sticky;
  795. top: 0;
  796. width: 100%;
  797. height: 100rpx;
  798. background-color: #fff;
  799. }
  800. .banner {
  801. position: relative;
  802. width: 750rpx;
  803. height: 422rpx;
  804. .swiper {
  805. height: 422rpx;
  806. .swiper_item {
  807. width: 100%;
  808. height: 100%;
  809. .img {
  810. width: 100%;
  811. height: 100%;
  812. }
  813. }
  814. }
  815. .img {
  816. width: 100%;
  817. height: 100%;
  818. }
  819. .slogan {
  820. position: absolute;
  821. top: 0;
  822. left: 0;
  823. display: flex;
  824. justify-content: center;
  825. align-items: center;
  826. width: 163rpx;
  827. height: 60rpx;
  828. background-color: rgba(255, 255, 255, 0.4);
  829. img {
  830. width: 125rpx;
  831. height: 44rpx;
  832. }
  833. }
  834. .full {
  835. position: absolute;
  836. top: 13rpx;
  837. right: 20rpx;
  838. display: flex;
  839. align-items: center;
  840. justify-content: space-around;
  841. width: 173rpx;
  842. height: 60rpx;
  843. color: #fff;
  844. font-size: 24rpx;
  845. border-radius: 11rpx;
  846. background-color: rgba(0, 0, 0, 0.5);
  847. img {
  848. width: 40rpx;
  849. height: 40rpx;
  850. }
  851. }
  852. .collect {
  853. position: absolute;
  854. top: 68rpx;
  855. left: 8rpx;
  856. }
  857. }
  858. .detail {
  859. z-index: 1;
  860. float: left;
  861. margin-top: -177rpx;
  862. box-sizing: border-box;
  863. padding: 0 30rpx 30rpx;
  864. width: 710rpx;
  865. border-radius: 10rpx;
  866. background-color: #fff;
  867. .detail_name {
  868. margin-top: 25rpx;
  869. font-size: 34rpx;
  870. font-weight: bold;
  871. }
  872. .detail_info {
  873. display: flex;
  874. justify-content: space-between;
  875. margin-top: 10rpx;
  876. .info_left {
  877. color: #999999;
  878. font-size: 20rpx;
  879. }
  880. .info_right {
  881. display: flex;
  882. align-items: center;
  883. color: #096562;
  884. font-size: 24rpx;
  885. img {
  886. margin-left: 6rpx;
  887. width: 10rpx;
  888. height: 20rpx;
  889. }
  890. }
  891. }
  892. .detail_group {
  893. display: flex;
  894. flex-wrap: wrap;
  895. margin-top: 5rpx;
  896. width: 450rpx;
  897. .group_item {
  898. display: flex;
  899. align-items: center;
  900. margin-right: 10rpx;
  901. margin-bottom: 10rpx;
  902. color: #999999;
  903. font-size: 20rpx;
  904. img {
  905. margin-right: 5rpx;
  906. width: 22rpx;
  907. height: 22rpx;
  908. }
  909. }
  910. }
  911. .address {
  912. display: flex;
  913. justify-content: space-between;
  914. margin-top: 8rpx;
  915. font-size: 28rpx;
  916. font-weight: bold;
  917. .address_left {
  918. width: 480rpx;
  919. overflow: hidden;
  920. text-overflow: ellipsis;
  921. white-space: nowrap;
  922. }
  923. .address_right {
  924. display: flex;
  925. .right_box {
  926. margin-left: 28rpx;
  927. width: 50rpx;
  928. height: 78rpx;
  929. img {
  930. width: 100%;
  931. height: 100%;
  932. }
  933. }
  934. }
  935. }
  936. .distance {
  937. margin-top: -35rpx;
  938. color: #999999;
  939. font-size: 24rpx;
  940. }
  941. }
  942. .body {
  943. float: left;
  944. margin-top: 20rpx;
  945. // padding-bottom: 30rpx;
  946. width: 710rpx;
  947. border-radius: 10rpx;
  948. background-color: #fff;
  949. .body_header {
  950. display: flex;
  951. justify-content: space-around;
  952. box-sizing: border-box;
  953. padding: 0 30rpx;
  954. height: 150rpx;
  955. .header_start {
  956. display: flex;
  957. flex-direction: column;
  958. justify-content: center;
  959. align-items: center;
  960. width: 213rpx;
  961. height: 150rpx;
  962. font-size: 30rpx;
  963. .header_top {
  964. margin-bottom: 10rpx;
  965. color: #999999;
  966. font-size: 24rpx;
  967. }
  968. .header_bottom {
  969. font-size: 34rpx;
  970. font-weight: bold;
  971. }
  972. }
  973. .header_night {
  974. display: flex;
  975. justify-content: center;
  976. align-items: center;
  977. .night_line {
  978. width: 17rpx;
  979. height: 1rpx;
  980. background-color: #296de3;
  981. }
  982. .night_box {
  983. display: flex;
  984. align-items: center;
  985. justify-content: center;
  986. width: 81rpx;
  987. height: 46rpx;
  988. font-size: 24rpx;
  989. border-radius: 66rpx;
  990. border: 1rpx solid #296de3;
  991. }
  992. }
  993. .header_end {
  994. display: flex;
  995. flex-direction: column;
  996. justify-content: center;
  997. align-items: center;
  998. width: 213rpx;
  999. height: 150rpx;
  1000. font-size: 30rpx;
  1001. .header_top {
  1002. margin-bottom: 10rpx;
  1003. color: #999999;
  1004. font-size: 24rpx;
  1005. }
  1006. .header_bottom {
  1007. font-size: 34rpx;
  1008. font-weight: bold;
  1009. }
  1010. }
  1011. }
  1012. .body_content {
  1013. .body_box {
  1014. box-sizing: border-box;
  1015. padding: 0 30rpx;
  1016. margin-bottom: 30rpx;
  1017. display: flex;
  1018. height: 193rpx;
  1019. border-bottom: 1rpx solid #cccccc;
  1020. .box_left {
  1021. width: 213rpx;
  1022. height: 161rpx;
  1023. border-radius: 5rpx;
  1024. img {
  1025. width: 100%;
  1026. height: 100%;
  1027. }
  1028. }
  1029. .box_center {
  1030. margin-left: 16rpx;
  1031. .center_top {
  1032. font-size: 34rpx;
  1033. font-weight: bold;
  1034. }
  1035. .center_center {
  1036. display: flex;
  1037. flex-wrap: wrap;
  1038. margin-top: 10rpx;
  1039. color: #999999;
  1040. font-size: 24rpx;
  1041. .center_item {
  1042. margin-right: 15rpx;
  1043. }
  1044. }
  1045. .center_bottom {
  1046. margin-top: 25rpx;
  1047. .img {
  1048. margin-right: 15rpx;
  1049. width: 30rpx;
  1050. height: 30rpx;
  1051. }
  1052. }
  1053. }
  1054. .box_right {
  1055. display: flex;
  1056. flex-direction: column;
  1057. align-items: flex-end;
  1058. margin-left: auto;
  1059. margin-top: 20rpx;
  1060. .right_price {
  1061. color: #ff5733;
  1062. font-size: 42rpx;
  1063. text {
  1064. font-size: 24rpx;
  1065. }
  1066. }
  1067. .right_btn {
  1068. display: flex;
  1069. justify-content: center;
  1070. align-items: center;
  1071. margin-top: 10rpx;
  1072. width: 100rpx;
  1073. height: 66rpx;
  1074. color: #fff;
  1075. font-size: 36rpx;
  1076. border-radius: 11rpx;
  1077. background-color: #096562;
  1078. }
  1079. .inactive {
  1080. background-color: #cccccc;
  1081. }
  1082. }
  1083. }
  1084. .body_pop {
  1085. position: relative;
  1086. height: 955rpx;
  1087. border-radius: 22rpx 22rpx 0 0;
  1088. background-color: #fff;
  1089. overflow-y: auto;
  1090. .pop_swiper {
  1091. height: 422rpx;
  1092. border-radius: 22rpx 22rpx 0 0;
  1093. .pop_swiper_item {
  1094. width: 100%;
  1095. height: 100%;
  1096. .img {
  1097. width: 100%;
  1098. height: 100%;
  1099. border-radius: 22rpx 22rpx 0 0;
  1100. }
  1101. }
  1102. }
  1103. .pop_icon {
  1104. position: absolute;
  1105. top: 20rpx;
  1106. right: 30rpx;
  1107. width: 58rpx;
  1108. height: 58rpx;
  1109. }
  1110. .pop_body {
  1111. box-sizing: border-box;
  1112. padding: 0 20rpx 30rpx;
  1113. .body_title {
  1114. margin-top: 30rpx;
  1115. font-size: 32rpx;
  1116. font-weight: bold;
  1117. }
  1118. .body_tags {
  1119. display: flex;
  1120. flex-wrap: wrap;
  1121. margin-top: 20rpx;
  1122. .tags_item {
  1123. display: flex;
  1124. align-items: center;
  1125. margin-right: 76rpx;
  1126. margin-bottom: 20rpx;
  1127. color: #383838;
  1128. font-size: 24rpx;
  1129. .img {
  1130. margin-right: 5rpx;
  1131. width: 28rpx;
  1132. height: 28rpx;
  1133. }
  1134. }
  1135. }
  1136. .body_title2 {
  1137. margin-top: 20rpx;
  1138. font-size: 28rpx;
  1139. }
  1140. .body_detail {
  1141. display: flex;
  1142. flex-direction: column;
  1143. justify-content: space-between;
  1144. // align-items: flex-end;
  1145. box-sizing: border-box;
  1146. padding: 20rpx 30rpx;
  1147. margin-top: 18rpx;
  1148. width: 710rpx;
  1149. height: 266rpx;
  1150. font-size: 24rpx;
  1151. border-radius: 7rpx;
  1152. background-color: #f2f2f2;
  1153. .detail_old {
  1154. text-align: end;
  1155. text-decoration: line-through;
  1156. }
  1157. .detail_box {
  1158. display: flex;
  1159. justify-content: space-between;
  1160. color: #808080;
  1161. text {
  1162. color: #ff5733;
  1163. }
  1164. }
  1165. .detail_new {
  1166. display: flex;
  1167. justify-content: flex-end;
  1168. align-items: center;
  1169. font-size: 24rpx;
  1170. .color {
  1171. color: #ff5733;
  1172. }
  1173. .price {
  1174. font-size: 36rpx;
  1175. }
  1176. .ml_10 {
  1177. margin-left: 10rpx;
  1178. }
  1179. }
  1180. }
  1181. .body_bottom {
  1182. display: flex;
  1183. justify-content: space-between;
  1184. align-items: center;
  1185. margin-top: 250rpx;
  1186. height: 80rpx;
  1187. .bottom_left {
  1188. display: flex;
  1189. align-items: center;
  1190. color: #333333;
  1191. font-size: 24rpx;
  1192. .img {
  1193. margin-right: 10rpx;
  1194. width: 48rpx;
  1195. height: 48rpx;
  1196. }
  1197. }
  1198. .bottom_right {
  1199. display: flex;
  1200. align-items: center;
  1201. color: #ff5733;
  1202. font-size: 40rpx;
  1203. font-weight: bold;
  1204. text {
  1205. font-size: 24rpx;
  1206. }
  1207. .btn {
  1208. display: flex;
  1209. justify-content: center;
  1210. align-items: center;
  1211. margin-left: 30rpx;
  1212. width: 238rpx;
  1213. height: 80rpx;
  1214. color: #fff;
  1215. font-size: 32rpx;
  1216. font-weight: 400;
  1217. border-radius: 64rpx;
  1218. background-color: #096562;
  1219. }
  1220. .inactive {
  1221. background-color: #cccccc;
  1222. }
  1223. }
  1224. }
  1225. }
  1226. }
  1227. }
  1228. .noData {
  1229. display: flex;
  1230. flex-direction: column;
  1231. justify-content: center;
  1232. align-items: center;
  1233. padding-bottom: 20rpx;
  1234. img {
  1235. margin-top: 60rpx;
  1236. width: 600rpx;
  1237. height: 600rpx;
  1238. }
  1239. }
  1240. }
  1241. .evaluate {
  1242. width: 710rpx;
  1243. background-color: #f2f3f5;
  1244. .evaluate_title {
  1245. line-height: 83rpx;
  1246. font-size: 32rpx;
  1247. font-weight: bold;
  1248. }
  1249. .evaluate_body {
  1250. display: flex;
  1251. flex-direction: column;
  1252. // margin-bottom: 20rpx;
  1253. width: 710rpx;
  1254. border-radius: 11rpx;
  1255. background-color: #fff;
  1256. .header {
  1257. display: flex;
  1258. align-items: center;
  1259. margin: 25rpx 20rpx;
  1260. width: 670rpx;
  1261. height: 120rpx;
  1262. border-radius: 13rpx;
  1263. background-color: #e4f0ef;
  1264. .header_box {
  1265. display: flex;
  1266. height: 70rpx;
  1267. .box_left {
  1268. display: flex;
  1269. justify-content: center;
  1270. align-items: center;
  1271. width: 140rpx;
  1272. color: #096562;
  1273. font-size: 60rpx;
  1274. font-weight: 900;
  1275. border-right: 1rpx solid #cccccc;
  1276. }
  1277. .box_right {
  1278. flex: 1;
  1279. display: flex;
  1280. flex-wrap: wrap;
  1281. color: #808080;
  1282. font-size: 24rpx;
  1283. .right_item {
  1284. display: flex;
  1285. align-items: center;
  1286. width: 50%;
  1287. .item_info {
  1288. margin-left: 33rpx;
  1289. }
  1290. .item_progress {
  1291. margin-right: 20rpx;
  1292. padding: 0 13rpx;
  1293. flex: 1;
  1294. }
  1295. }
  1296. }
  1297. }
  1298. }
  1299. .evaluate_box {
  1300. box-sizing: border-box;
  1301. padding: 0 20rpx;
  1302. margin: 0 auto 20rpx;
  1303. width: 710rpx;
  1304. border-radius: 18rpx;
  1305. background-color: #fff;
  1306. .box_userInfo {
  1307. display: flex;
  1308. align-items: center;
  1309. height: 115rpx;
  1310. img {
  1311. width: 70rpx;
  1312. height: 70rpx;
  1313. border-radius: 50%;
  1314. }
  1315. .userInfo_msg {
  1316. margin-left: 18rpx;
  1317. .msg_name {
  1318. font-size: 28rpx;
  1319. }
  1320. .msg_star {
  1321. margin-left: -5rpx;
  1322. margin-top: 5rpx;
  1323. }
  1324. }
  1325. }
  1326. .box_time {
  1327. display: flex;
  1328. align-items: center;
  1329. color: #a6a6a6;
  1330. font-size: 24rpx;
  1331. }
  1332. .box_content {
  1333. margin-top: 15rpx;
  1334. font-size: 24rpx;
  1335. color: #000;
  1336. }
  1337. .box_img {
  1338. display: grid;
  1339. grid-template-columns: 1fr 1fr 1fr;
  1340. grid-auto-rows: auto;
  1341. gap: 10rpx;
  1342. margin-top: 20rpx;
  1343. img {
  1344. width: 216rpx;
  1345. height: 216rpx;
  1346. border-radius: 20rpx;
  1347. }
  1348. .video {
  1349. width: 216rpx;
  1350. height: 216rpx;
  1351. border-radius: 20rpx;
  1352. }
  1353. }
  1354. }
  1355. .foot {
  1356. display: flex;
  1357. justify-content: center;
  1358. align-items: center;
  1359. padding-bottom: 20rpx;
  1360. height: 68rpx;
  1361. font-size: 24rpx;
  1362. font-weight: bold;
  1363. color: #096663;
  1364. img {
  1365. margin-left: 10rpx;
  1366. width: 10rpx;
  1367. height: 18rpx;
  1368. }
  1369. }
  1370. .noData {
  1371. display: flex;
  1372. flex-direction: column;
  1373. justify-content: center;
  1374. align-items: center;
  1375. padding-bottom: 60rpx;
  1376. img {
  1377. margin-top: 160rpx;
  1378. width: 600rpx;
  1379. height: 600rpx;
  1380. }
  1381. }
  1382. }
  1383. }
  1384. .rim {
  1385. width: 710rpx;
  1386. background-color: #f2f3f5;
  1387. .rim_title {
  1388. line-height: 80rpx;
  1389. font-size: 32rpx;
  1390. font-weight: bold;
  1391. }
  1392. .rim_control {
  1393. margin-bottom: 10rpx;
  1394. line-height: 85rpx;
  1395. font-size: 28rpx;
  1396. color: #808080;
  1397. white-space: nowrap;
  1398. overflow-x: auto;
  1399. background-color: #fff;
  1400. .control_box {
  1401. padding: 0 15rpx 0 20rpx;
  1402. .text {
  1403. padding-bottom: 5rpx;
  1404. }
  1405. .active {
  1406. color: #096562;
  1407. border-bottom: 5rpx solid #096562;
  1408. }
  1409. }
  1410. }
  1411. .rim_body {
  1412. .rim_box {
  1413. display: flex;
  1414. margin-bottom: 20rpx;
  1415. width: 710rpx;
  1416. height: 150rpx;
  1417. background-color: #fff;
  1418. img {
  1419. width: 126rpx;
  1420. height: 150rpx;
  1421. }
  1422. .box_info {
  1423. display: flex;
  1424. flex-direction: column;
  1425. justify-content: space-evenly;
  1426. padding: 0 24rpx;
  1427. box-sizing: border-box;
  1428. width: 584rpx;
  1429. height: 150rpx;
  1430. .info_top {
  1431. font-size: 28rpx;
  1432. font-weight: bold;
  1433. }
  1434. .info_center {
  1435. font-size: 24rpx;
  1436. color: #808080;
  1437. }
  1438. .info_bottom {
  1439. display: flex;
  1440. align-items: center;
  1441. font-size: 24rpx;
  1442. .bottom_rate {
  1443. color: #ff5733;
  1444. }
  1445. .bottom_num {
  1446. margin-left: 15rpx;
  1447. color: #a6a6a6;
  1448. }
  1449. .bottom_price {
  1450. margin-left: auto;
  1451. font-size: 28rpx;
  1452. color: #ff5733;
  1453. text {
  1454. font-size: 20rpx;
  1455. color: #a6a6a6;
  1456. }
  1457. }
  1458. }
  1459. }
  1460. }
  1461. }
  1462. .rim_more {
  1463. display: flex;
  1464. justify-content: center;
  1465. align-items: center;
  1466. width: 710rpx;
  1467. height: 70rpx;
  1468. color: #096663;
  1469. font-size: 24rpx;
  1470. font-weight: bold;
  1471. background-color: #fff;
  1472. img {
  1473. margin-left: 10rpx;
  1474. margin-top: 2rpx;
  1475. width: 10rpx;
  1476. height: 18rpx;
  1477. }
  1478. }
  1479. }
  1480. .scenicSpot {
  1481. width: 710rpx;
  1482. background-color: #f2f3f5;
  1483. .scenicSpot_title {
  1484. line-height: 83rpx;
  1485. font-size: 32rpx;
  1486. font-weight: bold;
  1487. }
  1488. .scenicSpot_body {
  1489. .scenicSpot_box {
  1490. display: flex;
  1491. margin-bottom: 20rpx;
  1492. width: 710rpx;
  1493. height: 150rpx;
  1494. background-color: #fff;
  1495. img {
  1496. width: 126rpx;
  1497. height: 150rpx;
  1498. }
  1499. .box_info {
  1500. display: flex;
  1501. flex-direction: column;
  1502. justify-content: space-evenly;
  1503. padding: 0 24rpx;
  1504. box-sizing: border-box;
  1505. width: 584rpx;
  1506. height: 150rpx;
  1507. .info_top {
  1508. font-size: 28rpx;
  1509. font-weight: bold;
  1510. }
  1511. .info_center {
  1512. font-size: 24rpx;
  1513. color: #808080;
  1514. }
  1515. .info_bottom {
  1516. display: flex;
  1517. align-items: center;
  1518. font-size: 24rpx;
  1519. .bottom_rate {
  1520. color: #ff5733;
  1521. }
  1522. .bottom_num {
  1523. margin-left: 15rpx;
  1524. color: #a6a6a6;
  1525. }
  1526. .bottom_price {
  1527. margin-left: auto;
  1528. font-size: 28rpx;
  1529. color: #ff5733;
  1530. text {
  1531. font-size: 20rpx;
  1532. color: #a6a6a6;
  1533. }
  1534. }
  1535. }
  1536. }
  1537. }
  1538. }
  1539. .scenicSpot_more {
  1540. display: flex;
  1541. justify-content: center;
  1542. align-items: center;
  1543. width: 710rpx;
  1544. height: 70rpx;
  1545. color: #096663;
  1546. font-size: 24rpx;
  1547. font-weight: bold;
  1548. background-color: #fff;
  1549. img {
  1550. margin-left: 10rpx;
  1551. margin-top: 2rpx;
  1552. width: 10rpx;
  1553. height: 18rpx;
  1554. }
  1555. }
  1556. }
  1557. }
  1558. </style>