detail.vue 39 KB

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