detail.vue 41 KB

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