detail.vue 39 KB

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