detail.vue 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767
  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. let tokenId = uni.getStorageSync('tokenId')
  679. if (flag && tokenId) {
  680. if (!this.startTime) {
  681. uni.showToast({
  682. title: '请选择入住时间',
  683. icon: 'none'
  684. })
  685. return
  686. }
  687. if (!this.endTime) {
  688. uni.showToast({
  689. title: '请选择离店时间',
  690. icon: 'none'
  691. })
  692. return
  693. }
  694. if (item.remainRooms * 1 > 0) {
  695. this.$refs.popup.close()
  696. this.showPage = false
  697. let info = JSON.stringify({
  698. nightNum: this.nightNum,
  699. startTimeDay: this.startTime.slice(8, 10),
  700. startTimeMonth: this.startTime.slice(5, 7),
  701. startTimeWeek: this.getWeek(this.startTime),
  702. endTimeDay: this.endTime.slice(8, 10),
  703. endTimeMonth: this.endTime.slice(5, 7),
  704. endTimeWeek: this.getWeek(this.endTime),
  705. item: item,
  706. queryStartTime: this.startTime,
  707. queryEndTime: this.endTime,
  708. dayList: this.dayList,
  709. hTypeName: this.info.hTypeName,
  710. hotelName: this.info.hotel_name,
  711. hotelId: this.hotelId
  712. })
  713. uni.navigateTo({
  714. url: `/pages/affirmOrder/affirmOrder?info=${info}`
  715. })
  716. } else {
  717. uni.showToast({
  718. title: '该房间已售罄',
  719. icon: 'none',
  720. mask: true
  721. })
  722. }
  723. } else {
  724. uni.showToast({
  725. title: '请先登录',
  726. icon: 'none',
  727. mask: true
  728. })
  729. setTimeout(() => {
  730. uni.navigateTo({
  731. url: '/pages/login/login'
  732. })
  733. }, 1500)
  734. }
  735. },
  736. // 点击日期区域回调
  737. async handleOpen(time) {
  738. const res = await this.$myRequest({
  739. url: '/mhotel/house/price/priceCalendar.action',
  740. data: {
  741. merchantId: this.info.managerId,
  742. startTime: time ? time : this.startTime
  743. }
  744. })
  745. if (res.code === 200) {
  746. this.selected = res.data
  747. }
  748. if (!time) {
  749. this.$refs.calendar.open()
  750. }
  751. },
  752. // 传入参数获取当前是星期几
  753. getWeek(time) {
  754. let date = new Date(time)
  755. let week = date.getDay()
  756. let weekList = ['日', '一', '二', '三', '四', '五', '六']
  757. let res = '周' + weekList[week]
  758. return res
  759. },
  760. // 获取今明两天的日期 YYYY-MM-DD
  761. getTimes() {
  762. // 今天
  763. let today = new Date()
  764. // 明天
  765. let tomorrow = new Date(today.getTime() + 24 * 60 * 60 * 1000)
  766. this.startTime = `${today.getFullYear()}-${(today.getMonth() + 1).toString().padStart(2, 0)}-${today.getDate().toString().padStart(2, 0)}`
  767. this.endTime = `${tomorrow.getFullYear()}-${(tomorrow.getMonth() + 1).toString().padStart(2, 0)}-${tomorrow.getDate().toString().padStart(2, 0)}`
  768. this.dayList = [this.startTime, this.endTime]
  769. },
  770. handleGoPull(linkProUrl) {
  771. let temURL = linkProUrl.slice(22)
  772. let url = 'https://f10mfe54bri.720yun.com' + temURL
  773. uni.navigateTo({
  774. url: `/pages/web/web?url=${url}`
  775. })
  776. },
  777. // 点击每一个评价回调
  778. handleGoDetail(item) {
  779. uni.navigateTo({
  780. url: `/pages/appraiseDetail/appraiseDetail?id=${item.id}`
  781. })
  782. },
  783. // 点击评价图片回调
  784. handleClickImg(url, index) {
  785. if (this.videoContext) {
  786. this.videoContext.stop()
  787. }
  788. // 预览图片
  789. uni.previewImage({
  790. current: index,
  791. urls: [url]
  792. })
  793. },
  794. handleGoPage() {
  795. uni.navigateTo({
  796. url: `/pages/appraise/appraise?hotelId=${this.hotelId}`
  797. })
  798. },
  799. handleClickSwiper(urls, current) {
  800. const temList = urls.map((ele) => ele.url)
  801. uni.previewImage({
  802. urls: temList,
  803. current
  804. })
  805. },
  806. // 计算两个点之间的距离
  807. calculateDistance(lat, lng) {
  808. let centerLat = lat
  809. let centerLng = lng
  810. let red1 = (this.myLat * Math.PI) / 180.0
  811. let red2 = (centerLat * Math.PI) / 180.0
  812. let a = red1 - red2
  813. let b = (this.myLng * Math.PI) / 180.0 - (centerLng * Math.PI) / 180.0
  814. let R = 6378137
  815. 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)))
  816. let res = (distance / 1000).toFixed(2) * 1
  817. return res
  818. }
  819. }
  820. }
  821. </script>
  822. <style lang="scss" scoped>
  823. .container {
  824. display: flex;
  825. flex-direction: column;
  826. align-items: center;
  827. position: relative;
  828. padding-bottom: 20rpx;
  829. min-height: 100vh;
  830. background-color: #f2f3f5;
  831. .control {
  832. z-index: 999;
  833. position: sticky;
  834. top: 0;
  835. width: 100%;
  836. height: 100rpx;
  837. background-color: #fff;
  838. }
  839. .banner {
  840. position: relative;
  841. width: 750rpx;
  842. height: 422rpx;
  843. .swiper {
  844. height: 422rpx;
  845. .swiper_item {
  846. width: 100%;
  847. height: 100%;
  848. .img {
  849. width: 100%;
  850. height: 100%;
  851. }
  852. }
  853. }
  854. .img {
  855. width: 100%;
  856. height: 100%;
  857. }
  858. .slogan {
  859. position: absolute;
  860. top: 0;
  861. left: 0;
  862. display: flex;
  863. justify-content: center;
  864. align-items: center;
  865. width: 163rpx;
  866. height: 60rpx;
  867. background-color: rgba(255, 255, 255, 0.4);
  868. img {
  869. width: 125rpx;
  870. height: 44rpx;
  871. }
  872. }
  873. .full {
  874. position: absolute;
  875. top: 13rpx;
  876. right: 20rpx;
  877. display: flex;
  878. align-items: center;
  879. justify-content: space-around;
  880. width: 173rpx;
  881. height: 60rpx;
  882. color: #fff;
  883. font-size: 24rpx;
  884. border-radius: 11rpx;
  885. background-color: rgba(0, 0, 0, 0.5);
  886. img {
  887. width: 40rpx;
  888. height: 40rpx;
  889. }
  890. }
  891. .collect {
  892. position: absolute;
  893. top: 68rpx;
  894. left: 8rpx;
  895. }
  896. }
  897. .detail {
  898. z-index: 1;
  899. float: left;
  900. margin-top: -177rpx;
  901. box-sizing: border-box;
  902. padding: 0 30rpx 30rpx;
  903. width: 710rpx;
  904. border-radius: 10rpx;
  905. background-color: #fff;
  906. .detail_name {
  907. margin-top: 25rpx;
  908. font-size: 34rpx;
  909. font-weight: bold;
  910. }
  911. .detail_info {
  912. display: flex;
  913. justify-content: space-between;
  914. margin-top: 10rpx;
  915. .info_left {
  916. color: #999999;
  917. font-size: 20rpx;
  918. }
  919. .info_right {
  920. display: flex;
  921. align-items: center;
  922. color: #096562;
  923. font-size: 24rpx;
  924. img {
  925. margin-left: 6rpx;
  926. width: 10rpx;
  927. height: 20rpx;
  928. }
  929. }
  930. }
  931. .detail_group {
  932. display: flex;
  933. flex-wrap: wrap;
  934. margin-top: 5rpx;
  935. width: 450rpx;
  936. .group_item {
  937. display: flex;
  938. align-items: center;
  939. margin-right: 10rpx;
  940. margin-bottom: 10rpx;
  941. color: #999999;
  942. font-size: 20rpx;
  943. img {
  944. margin-right: 5rpx;
  945. width: 22rpx;
  946. height: 22rpx;
  947. }
  948. }
  949. }
  950. .address {
  951. display: flex;
  952. justify-content: space-between;
  953. margin-top: 8rpx;
  954. font-size: 28rpx;
  955. font-weight: bold;
  956. .address_left {
  957. width: 480rpx;
  958. overflow: hidden;
  959. text-overflow: ellipsis;
  960. white-space: nowrap;
  961. }
  962. .address_right {
  963. display: flex;
  964. .right_box {
  965. margin-left: 28rpx;
  966. width: 50rpx;
  967. height: 78rpx;
  968. img {
  969. width: 100%;
  970. height: 100%;
  971. }
  972. }
  973. }
  974. }
  975. .distance {
  976. margin-top: -35rpx;
  977. color: #999999;
  978. font-size: 24rpx;
  979. }
  980. }
  981. .body {
  982. float: left;
  983. margin-top: 20rpx;
  984. // padding-bottom: 30rpx;
  985. width: 710rpx;
  986. border-radius: 10rpx;
  987. background-color: #fff;
  988. .body_header {
  989. display: flex;
  990. justify-content: space-around;
  991. box-sizing: border-box;
  992. padding: 0 30rpx;
  993. height: 150rpx;
  994. .header_start {
  995. display: flex;
  996. flex-direction: column;
  997. justify-content: center;
  998. align-items: center;
  999. width: 213rpx;
  1000. height: 150rpx;
  1001. font-size: 30rpx;
  1002. .header_top {
  1003. margin-bottom: 10rpx;
  1004. color: #999999;
  1005. font-size: 24rpx;
  1006. }
  1007. .header_bottom {
  1008. font-size: 34rpx;
  1009. font-weight: bold;
  1010. }
  1011. }
  1012. .header_night {
  1013. display: flex;
  1014. justify-content: center;
  1015. align-items: center;
  1016. .night_line {
  1017. width: 17rpx;
  1018. height: 1rpx;
  1019. background-color: #296de3;
  1020. }
  1021. .night_box {
  1022. display: flex;
  1023. align-items: center;
  1024. justify-content: center;
  1025. width: 81rpx;
  1026. height: 46rpx;
  1027. font-size: 24rpx;
  1028. border-radius: 66rpx;
  1029. border: 1rpx solid #296de3;
  1030. }
  1031. }
  1032. .header_end {
  1033. display: flex;
  1034. flex-direction: column;
  1035. justify-content: center;
  1036. align-items: center;
  1037. width: 213rpx;
  1038. height: 150rpx;
  1039. font-size: 30rpx;
  1040. .header_top {
  1041. margin-bottom: 10rpx;
  1042. color: #999999;
  1043. font-size: 24rpx;
  1044. }
  1045. .header_bottom {
  1046. font-size: 34rpx;
  1047. font-weight: bold;
  1048. }
  1049. }
  1050. }
  1051. .body_content {
  1052. .body_box {
  1053. box-sizing: border-box;
  1054. padding: 0 30rpx;
  1055. margin-bottom: 30rpx;
  1056. display: flex;
  1057. height: 193rpx;
  1058. border-bottom: 1rpx solid #cccccc;
  1059. .box_left {
  1060. width: 213rpx;
  1061. height: 161rpx;
  1062. border-radius: 5rpx;
  1063. img {
  1064. width: 100%;
  1065. height: 100%;
  1066. }
  1067. }
  1068. .box_center {
  1069. margin-left: 16rpx;
  1070. .center_top {
  1071. font-size: 34rpx;
  1072. font-weight: bold;
  1073. }
  1074. .center_center {
  1075. display: flex;
  1076. flex-wrap: wrap;
  1077. margin-top: 10rpx;
  1078. color: #999999;
  1079. font-size: 24rpx;
  1080. .center_item {
  1081. margin-right: 15rpx;
  1082. }
  1083. }
  1084. .center_bottom {
  1085. margin-top: 25rpx;
  1086. .img {
  1087. margin-right: 15rpx;
  1088. width: 30rpx;
  1089. height: 30rpx;
  1090. }
  1091. }
  1092. }
  1093. .box_right {
  1094. display: flex;
  1095. flex-direction: column;
  1096. align-items: flex-end;
  1097. margin-left: auto;
  1098. margin-top: 20rpx;
  1099. .right_price {
  1100. color: #ff5733;
  1101. font-size: 42rpx;
  1102. text {
  1103. font-size: 24rpx;
  1104. }
  1105. }
  1106. .right_btn {
  1107. display: flex;
  1108. justify-content: center;
  1109. align-items: center;
  1110. margin-top: 10rpx;
  1111. width: 100rpx;
  1112. height: 66rpx;
  1113. color: #fff;
  1114. font-size: 36rpx;
  1115. border-radius: 11rpx;
  1116. background-color: #096562;
  1117. }
  1118. .inactive {
  1119. background-color: #cccccc;
  1120. }
  1121. }
  1122. }
  1123. .body_pop {
  1124. position: relative;
  1125. height: 955rpx;
  1126. border-radius: 22rpx 22rpx 0 0;
  1127. background-color: #fff;
  1128. overflow-y: auto;
  1129. .pop_swiper {
  1130. height: 422rpx;
  1131. border-radius: 22rpx 22rpx 0 0;
  1132. .pop_swiper_item {
  1133. width: 100%;
  1134. height: 100%;
  1135. .img {
  1136. width: 100%;
  1137. height: 100%;
  1138. border-radius: 22rpx 22rpx 0 0;
  1139. }
  1140. }
  1141. }
  1142. .pop_icon {
  1143. position: absolute;
  1144. top: 20rpx;
  1145. right: 30rpx;
  1146. width: 58rpx;
  1147. height: 58rpx;
  1148. }
  1149. .pop_body {
  1150. box-sizing: border-box;
  1151. padding: 0 20rpx 30rpx;
  1152. .body_title {
  1153. margin-top: 30rpx;
  1154. font-size: 32rpx;
  1155. font-weight: bold;
  1156. }
  1157. .body_tags {
  1158. display: flex;
  1159. flex-wrap: wrap;
  1160. margin-top: 20rpx;
  1161. .tags_item {
  1162. display: flex;
  1163. align-items: center;
  1164. margin-right: 76rpx;
  1165. margin-bottom: 20rpx;
  1166. color: #383838;
  1167. font-size: 24rpx;
  1168. .img {
  1169. margin-right: 5rpx;
  1170. width: 28rpx;
  1171. height: 28rpx;
  1172. }
  1173. }
  1174. }
  1175. .body_title2 {
  1176. margin-top: 20rpx;
  1177. font-size: 28rpx;
  1178. }
  1179. .body_detail {
  1180. display: flex;
  1181. flex-direction: column;
  1182. justify-content: space-between;
  1183. // align-items: flex-end;
  1184. box-sizing: border-box;
  1185. padding: 20rpx 30rpx;
  1186. margin-top: 18rpx;
  1187. width: 710rpx;
  1188. height: 266rpx;
  1189. font-size: 24rpx;
  1190. border-radius: 7rpx;
  1191. background-color: #f2f2f2;
  1192. .detail_old {
  1193. text-align: end;
  1194. text-decoration: line-through;
  1195. }
  1196. .detail_box {
  1197. display: flex;
  1198. justify-content: space-between;
  1199. color: #808080;
  1200. text {
  1201. color: #ff5733;
  1202. }
  1203. }
  1204. .detail_new {
  1205. display: flex;
  1206. justify-content: flex-end;
  1207. align-items: center;
  1208. font-size: 24rpx;
  1209. .color {
  1210. color: #ff5733;
  1211. }
  1212. .price {
  1213. font-size: 36rpx;
  1214. }
  1215. .ml_10 {
  1216. margin-left: 10rpx;
  1217. }
  1218. }
  1219. }
  1220. .body_bottom {
  1221. display: flex;
  1222. justify-content: space-between;
  1223. align-items: center;
  1224. margin-top: 250rpx;
  1225. height: 80rpx;
  1226. .bottom_left {
  1227. display: flex;
  1228. align-items: center;
  1229. color: #333333;
  1230. font-size: 24rpx;
  1231. .img {
  1232. margin-right: 10rpx;
  1233. width: 48rpx;
  1234. height: 48rpx;
  1235. }
  1236. }
  1237. .bottom_right {
  1238. display: flex;
  1239. align-items: center;
  1240. color: #ff5733;
  1241. font-size: 40rpx;
  1242. font-weight: bold;
  1243. text {
  1244. font-size: 24rpx;
  1245. }
  1246. .btn {
  1247. display: flex;
  1248. justify-content: center;
  1249. align-items: center;
  1250. margin-left: 30rpx;
  1251. width: 238rpx;
  1252. height: 80rpx;
  1253. color: #fff;
  1254. font-size: 32rpx;
  1255. font-weight: 400;
  1256. border-radius: 64rpx;
  1257. background-color: #096562;
  1258. }
  1259. .inactive {
  1260. background-color: #cccccc;
  1261. }
  1262. }
  1263. }
  1264. }
  1265. }
  1266. }
  1267. .noData {
  1268. display: flex;
  1269. flex-direction: column;
  1270. justify-content: center;
  1271. align-items: center;
  1272. padding-bottom: 20rpx;
  1273. img {
  1274. margin-top: 60rpx;
  1275. width: 600rpx;
  1276. height: 600rpx;
  1277. }
  1278. }
  1279. }
  1280. .evaluate {
  1281. width: 710rpx;
  1282. background-color: #f2f3f5;
  1283. .evaluate_title {
  1284. line-height: 83rpx;
  1285. font-size: 32rpx;
  1286. font-weight: bold;
  1287. }
  1288. .evaluate_body {
  1289. display: flex;
  1290. flex-direction: column;
  1291. // margin-bottom: 20rpx;
  1292. width: 710rpx;
  1293. border-radius: 11rpx;
  1294. background-color: #fff;
  1295. .header {
  1296. display: flex;
  1297. align-items: center;
  1298. margin: 25rpx 20rpx;
  1299. width: 670rpx;
  1300. height: 120rpx;
  1301. border-radius: 13rpx;
  1302. background-color: #e4f0ef;
  1303. .header_box {
  1304. display: flex;
  1305. height: 70rpx;
  1306. .box_left {
  1307. display: flex;
  1308. justify-content: center;
  1309. align-items: center;
  1310. width: 140rpx;
  1311. color: #096562;
  1312. font-size: 60rpx;
  1313. font-weight: 900;
  1314. border-right: 1rpx solid #cccccc;
  1315. }
  1316. .box_right {
  1317. flex: 1;
  1318. display: flex;
  1319. flex-wrap: wrap;
  1320. color: #808080;
  1321. font-size: 24rpx;
  1322. .right_item {
  1323. display: flex;
  1324. align-items: center;
  1325. width: 50%;
  1326. .item_info {
  1327. margin-left: 33rpx;
  1328. }
  1329. .item_progress {
  1330. margin-right: 20rpx;
  1331. padding: 0 13rpx;
  1332. flex: 1;
  1333. }
  1334. }
  1335. }
  1336. }
  1337. }
  1338. .evaluate_box {
  1339. box-sizing: border-box;
  1340. padding: 0 20rpx;
  1341. margin: 0 auto 20rpx;
  1342. width: 710rpx;
  1343. border-radius: 18rpx;
  1344. background-color: #fff;
  1345. .box_userInfo {
  1346. display: flex;
  1347. align-items: center;
  1348. height: 115rpx;
  1349. img {
  1350. width: 70rpx;
  1351. height: 70rpx;
  1352. border-radius: 50%;
  1353. }
  1354. .userInfo_msg {
  1355. margin-left: 18rpx;
  1356. .msg_name {
  1357. font-size: 28rpx;
  1358. }
  1359. .msg_star {
  1360. margin-left: -5rpx;
  1361. margin-top: 5rpx;
  1362. }
  1363. }
  1364. }
  1365. .box_time {
  1366. display: flex;
  1367. align-items: center;
  1368. color: #a6a6a6;
  1369. font-size: 24rpx;
  1370. }
  1371. .box_content {
  1372. margin-top: 15rpx;
  1373. font-size: 24rpx;
  1374. color: #000;
  1375. }
  1376. .box_img {
  1377. display: grid;
  1378. grid-template-columns: 1fr 1fr 1fr;
  1379. grid-auto-rows: auto;
  1380. gap: 10rpx;
  1381. margin-top: 20rpx;
  1382. img {
  1383. width: 216rpx;
  1384. height: 216rpx;
  1385. border-radius: 20rpx;
  1386. }
  1387. .video {
  1388. width: 216rpx;
  1389. height: 216rpx;
  1390. border-radius: 20rpx;
  1391. }
  1392. }
  1393. }
  1394. .foot {
  1395. display: flex;
  1396. justify-content: center;
  1397. align-items: center;
  1398. padding-bottom: 20rpx;
  1399. height: 68rpx;
  1400. font-size: 24rpx;
  1401. font-weight: bold;
  1402. color: #096663;
  1403. img {
  1404. margin-left: 10rpx;
  1405. width: 10rpx;
  1406. height: 18rpx;
  1407. }
  1408. }
  1409. .noData {
  1410. display: flex;
  1411. flex-direction: column;
  1412. justify-content: center;
  1413. align-items: center;
  1414. padding-bottom: 60rpx;
  1415. img {
  1416. margin-top: 160rpx;
  1417. width: 600rpx;
  1418. height: 600rpx;
  1419. }
  1420. }
  1421. }
  1422. }
  1423. .rim {
  1424. width: 710rpx;
  1425. background-color: #f2f3f5;
  1426. .rim_title {
  1427. line-height: 80rpx;
  1428. font-size: 32rpx;
  1429. font-weight: bold;
  1430. }
  1431. .rim_control {
  1432. margin-bottom: 10rpx;
  1433. line-height: 85rpx;
  1434. font-size: 28rpx;
  1435. color: #808080;
  1436. white-space: nowrap;
  1437. overflow-x: auto;
  1438. background-color: #fff;
  1439. .control_box {
  1440. padding: 0 15rpx 0 20rpx;
  1441. .text {
  1442. padding-bottom: 5rpx;
  1443. }
  1444. .active {
  1445. color: #096562;
  1446. border-bottom: 5rpx solid #096562;
  1447. }
  1448. }
  1449. }
  1450. .rim_body {
  1451. .rim_box {
  1452. display: flex;
  1453. margin-bottom: 20rpx;
  1454. width: 710rpx;
  1455. height: 150rpx;
  1456. background-color: #fff;
  1457. img {
  1458. width: 126rpx;
  1459. height: 150rpx;
  1460. }
  1461. .box_info {
  1462. display: flex;
  1463. flex-direction: column;
  1464. justify-content: space-evenly;
  1465. padding: 0 24rpx;
  1466. box-sizing: border-box;
  1467. width: 584rpx;
  1468. height: 150rpx;
  1469. .info_top {
  1470. font-size: 28rpx;
  1471. font-weight: bold;
  1472. }
  1473. .info_center {
  1474. font-size: 24rpx;
  1475. color: #808080;
  1476. }
  1477. .info_bottom {
  1478. display: flex;
  1479. align-items: center;
  1480. font-size: 24rpx;
  1481. .bottom_rate {
  1482. color: #ff5733;
  1483. }
  1484. .bottom_num {
  1485. margin-left: 15rpx;
  1486. color: #a6a6a6;
  1487. }
  1488. .bottom_price {
  1489. margin-left: auto;
  1490. font-size: 28rpx;
  1491. color: #ff5733;
  1492. text {
  1493. font-size: 20rpx;
  1494. color: #a6a6a6;
  1495. }
  1496. }
  1497. }
  1498. }
  1499. }
  1500. }
  1501. .noData {
  1502. display: flex;
  1503. flex-direction: column;
  1504. justify-content: center;
  1505. align-items: center;
  1506. padding-bottom: 60rpx;
  1507. img {
  1508. margin-top: 160rpx;
  1509. width: 500rpx;
  1510. height: 500rpx;
  1511. }
  1512. }
  1513. .rim_more {
  1514. display: flex;
  1515. justify-content: center;
  1516. align-items: center;
  1517. width: 710rpx;
  1518. height: 70rpx;
  1519. color: #096663;
  1520. font-size: 24rpx;
  1521. font-weight: bold;
  1522. background-color: #fff;
  1523. img {
  1524. margin-left: 10rpx;
  1525. margin-top: 2rpx;
  1526. width: 10rpx;
  1527. height: 18rpx;
  1528. }
  1529. }
  1530. }
  1531. .scenicSpot {
  1532. width: 710rpx;
  1533. background-color: #f2f3f5;
  1534. .scenicSpot_title {
  1535. line-height: 83rpx;
  1536. font-size: 32rpx;
  1537. font-weight: bold;
  1538. }
  1539. .scenicSpot_body {
  1540. .scenicSpot_box {
  1541. display: flex;
  1542. margin-bottom: 20rpx;
  1543. width: 710rpx;
  1544. height: 150rpx;
  1545. background-color: #fff;
  1546. img {
  1547. width: 126rpx;
  1548. height: 150rpx;
  1549. }
  1550. .box_info {
  1551. display: flex;
  1552. flex-direction: column;
  1553. justify-content: space-evenly;
  1554. padding: 0 24rpx;
  1555. box-sizing: border-box;
  1556. width: 584rpx;
  1557. height: 150rpx;
  1558. .info_top {
  1559. font-size: 28rpx;
  1560. font-weight: bold;
  1561. }
  1562. .info_center {
  1563. font-size: 24rpx;
  1564. color: #808080;
  1565. }
  1566. .info_bottom {
  1567. display: flex;
  1568. align-items: center;
  1569. font-size: 24rpx;
  1570. .bottom_rate {
  1571. color: #ff5733;
  1572. }
  1573. .bottom_num {
  1574. margin-left: 15rpx;
  1575. color: #a6a6a6;
  1576. }
  1577. .bottom_price {
  1578. margin-left: auto;
  1579. font-size: 28rpx;
  1580. color: #ff5733;
  1581. text {
  1582. font-size: 20rpx;
  1583. color: #a6a6a6;
  1584. }
  1585. }
  1586. }
  1587. }
  1588. }
  1589. }
  1590. .scenicSpot_more {
  1591. display: flex;
  1592. justify-content: center;
  1593. align-items: center;
  1594. width: 710rpx;
  1595. height: 70rpx;
  1596. color: #096663;
  1597. font-size: 24rpx;
  1598. font-weight: bold;
  1599. background-color: #fff;
  1600. img {
  1601. margin-left: 10rpx;
  1602. margin-top: 2rpx;
  1603. width: 10rpx;
  1604. height: 18rpx;
  1605. }
  1606. }
  1607. }
  1608. }
  1609. </style>