detail.vue 40 KB

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