detail.vue 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841
  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. // console.log(temURL)
  845. let url = 'https://f10mfe54bri.720yun.com' + temURL
  846. // console.log(url)
  847. uni.navigateTo({
  848. url: `/pagesSub/web/web?url=${url}`
  849. })
  850. },
  851. // 点击每一个评价回调
  852. handleGoDetail(item) {
  853. uni.navigateTo({
  854. url: `/pagesSub/appraiseDetail/appraiseDetail?id=${item.id}`
  855. })
  856. },
  857. // 点击评价图片回调
  858. handleClickImg(url, index) {
  859. if (this.videoContext) {
  860. this.videoContext.stop()
  861. }
  862. // 预览图片
  863. uni.previewImage({
  864. current: index,
  865. urls: [url]
  866. })
  867. },
  868. handleGoPage() {
  869. uni.navigateTo({
  870. url: `/pagesSub/appraise/appraise?hotelId=${this.hotelId}`
  871. })
  872. },
  873. handleClickSwiper(urls, current) {
  874. const temList = urls.map((ele) => ele.url)
  875. uni.previewImage({
  876. urls: temList,
  877. current
  878. })
  879. },
  880. // 计算两个点之间的距离
  881. calculateDistance(lat, lng) {
  882. let centerLat = lat
  883. let centerLng = lng
  884. let red1 = (this.myLat * Math.PI) / 180.0
  885. let red2 = (centerLat * Math.PI) / 180.0
  886. let a = red1 - red2
  887. let b = (this.myLng * Math.PI) / 180.0 - (centerLng * Math.PI) / 180.0
  888. let R = 6378137
  889. 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)))
  890. let res = (distance / 1000).toFixed(2) * 1
  891. return res
  892. }
  893. }
  894. }
  895. </script>
  896. <style lang="scss" scoped>
  897. .container {
  898. display: flex;
  899. flex-direction: column;
  900. align-items: center;
  901. position: relative;
  902. padding-bottom: 20rpx;
  903. min-height: 100vh;
  904. background-color: #f2f3f5;
  905. .control {
  906. z-index: 999;
  907. position: sticky;
  908. top: 0;
  909. width: 100%;
  910. height: 100rpx;
  911. background-color: #fff;
  912. }
  913. .banner {
  914. position: relative;
  915. width: 750rpx;
  916. height: 422rpx;
  917. .swiper {
  918. height: 422rpx;
  919. .swiper_item {
  920. width: 100%;
  921. height: 100%;
  922. .img {
  923. width: 100%;
  924. height: 100%;
  925. }
  926. }
  927. }
  928. .img {
  929. width: 100%;
  930. height: 100%;
  931. }
  932. .slogan {
  933. position: absolute;
  934. top: 0;
  935. left: 0;
  936. display: flex;
  937. justify-content: center;
  938. align-items: center;
  939. width: 163rpx;
  940. height: 60rpx;
  941. background-color: rgba(255, 255, 255, 0.4);
  942. img {
  943. width: 125rpx;
  944. height: 44rpx;
  945. }
  946. }
  947. .full {
  948. position: absolute;
  949. top: 0;
  950. left: 0;
  951. width: 100%;
  952. height: 100%;
  953. background-color: rgba(0, 0, 0, 0.3);
  954. pointer-events: none;
  955. }
  956. .full_box {
  957. position: absolute;
  958. top: 50%;
  959. left: 50%;
  960. width: 180rpx;
  961. height: 180rpx;
  962. color: #fff;
  963. font-size: 28rpx;
  964. text-align: center;
  965. transform: translate(-50%, -50%);
  966. img {
  967. margin-bottom: -15rpx;
  968. width: 147rpx;
  969. height: 147rpx;
  970. }
  971. }
  972. .collect {
  973. position: absolute;
  974. top: 68rpx;
  975. left: 8rpx;
  976. }
  977. }
  978. .detail {
  979. margin-top: 23rpx;
  980. box-sizing: border-box;
  981. padding: 0 30rpx 30rpx;
  982. width: 710rpx;
  983. border-radius: 10rpx;
  984. background-color: #fff;
  985. .detail_name {
  986. margin-top: 25rpx;
  987. font-size: 34rpx;
  988. font-weight: bold;
  989. }
  990. .detail_info {
  991. display: flex;
  992. justify-content: space-between;
  993. margin-top: 10rpx;
  994. .info_left {
  995. color: #999999;
  996. font-size: 20rpx;
  997. .level {
  998. margin-left: 20rpx;
  999. }
  1000. }
  1001. .info_right {
  1002. display: flex;
  1003. align-items: center;
  1004. color: #096562;
  1005. font-size: 24rpx;
  1006. img {
  1007. margin-left: 6rpx;
  1008. width: 10rpx;
  1009. height: 20rpx;
  1010. }
  1011. }
  1012. }
  1013. .detail_group {
  1014. display: flex;
  1015. flex-wrap: wrap;
  1016. margin-top: 5rpx;
  1017. width: 450rpx;
  1018. .group_item {
  1019. display: flex;
  1020. align-items: center;
  1021. margin-right: 10rpx;
  1022. margin-bottom: 10rpx;
  1023. color: #999999;
  1024. font-size: 20rpx;
  1025. img {
  1026. margin-right: 5rpx;
  1027. width: 22rpx;
  1028. height: 22rpx;
  1029. }
  1030. }
  1031. }
  1032. .address {
  1033. display: flex;
  1034. justify-content: space-between;
  1035. margin-top: 8rpx;
  1036. font-size: 28rpx;
  1037. font-weight: bold;
  1038. .address_left {
  1039. width: 480rpx;
  1040. overflow: hidden;
  1041. text-overflow: ellipsis;
  1042. white-space: nowrap;
  1043. }
  1044. .address_right {
  1045. display: flex;
  1046. .right_box {
  1047. margin-left: 28rpx;
  1048. width: 50rpx;
  1049. height: 78rpx;
  1050. img {
  1051. width: 100%;
  1052. height: 100%;
  1053. }
  1054. }
  1055. }
  1056. }
  1057. .distance {
  1058. margin-top: -35rpx;
  1059. color: #999999;
  1060. font-size: 24rpx;
  1061. }
  1062. }
  1063. .body {
  1064. margin-top: 20rpx;
  1065. width: 710rpx;
  1066. border-radius: 10rpx;
  1067. background-color: #fff;
  1068. .body_header {
  1069. display: flex;
  1070. justify-content: space-around;
  1071. box-sizing: border-box;
  1072. padding: 0 30rpx;
  1073. height: 150rpx;
  1074. .header_start {
  1075. display: flex;
  1076. flex-direction: column;
  1077. justify-content: center;
  1078. align-items: center;
  1079. width: 213rpx;
  1080. height: 150rpx;
  1081. font-size: 30rpx;
  1082. .header_top {
  1083. margin-bottom: 10rpx;
  1084. color: #999999;
  1085. font-size: 24rpx;
  1086. }
  1087. .header_bottom {
  1088. font-size: 34rpx;
  1089. font-weight: bold;
  1090. }
  1091. }
  1092. .header_night {
  1093. display: flex;
  1094. justify-content: center;
  1095. align-items: center;
  1096. .night_line {
  1097. width: 17rpx;
  1098. height: 1rpx;
  1099. background-color: #296de3;
  1100. }
  1101. .night_box {
  1102. display: flex;
  1103. align-items: center;
  1104. justify-content: center;
  1105. width: 81rpx;
  1106. height: 46rpx;
  1107. font-size: 24rpx;
  1108. border-radius: 66rpx;
  1109. border: 1rpx solid #296de3;
  1110. }
  1111. }
  1112. .header_end {
  1113. display: flex;
  1114. flex-direction: column;
  1115. justify-content: center;
  1116. align-items: center;
  1117. width: 213rpx;
  1118. height: 150rpx;
  1119. font-size: 30rpx;
  1120. .header_top {
  1121. margin-bottom: 10rpx;
  1122. color: #999999;
  1123. font-size: 24rpx;
  1124. }
  1125. .header_bottom {
  1126. font-size: 34rpx;
  1127. font-weight: bold;
  1128. }
  1129. }
  1130. }
  1131. .body_content {
  1132. .body_box {
  1133. box-sizing: border-box;
  1134. padding: 0 30rpx;
  1135. margin-bottom: 30rpx;
  1136. display: flex;
  1137. height: 193rpx;
  1138. border-bottom: 1rpx solid #cccccc;
  1139. .box_left {
  1140. width: 213rpx;
  1141. height: 161rpx;
  1142. border-radius: 5rpx;
  1143. img {
  1144. width: 100%;
  1145. height: 100%;
  1146. }
  1147. }
  1148. .box_center {
  1149. margin-left: 16rpx;
  1150. .center_top {
  1151. font-size: 34rpx;
  1152. font-weight: bold;
  1153. }
  1154. .center_center {
  1155. display: flex;
  1156. flex-wrap: wrap;
  1157. margin-top: 10rpx;
  1158. color: #999999;
  1159. font-size: 24rpx;
  1160. .center_item {
  1161. margin-right: 15rpx;
  1162. }
  1163. }
  1164. .center_bottom {
  1165. margin-top: 25rpx;
  1166. .img {
  1167. margin-right: 15rpx;
  1168. width: 30rpx;
  1169. height: 30rpx;
  1170. }
  1171. }
  1172. }
  1173. .box_right {
  1174. display: flex;
  1175. flex-direction: column;
  1176. align-items: flex-end;
  1177. margin-left: auto;
  1178. margin-top: 20rpx;
  1179. .right_price {
  1180. color: #ff5733;
  1181. font-size: 42rpx;
  1182. text {
  1183. font-size: 24rpx;
  1184. }
  1185. }
  1186. .right_btn {
  1187. display: flex;
  1188. justify-content: center;
  1189. align-items: center;
  1190. margin-top: 10rpx;
  1191. width: 100rpx;
  1192. height: 66rpx;
  1193. color: #fff;
  1194. font-size: 36rpx;
  1195. border-radius: 11rpx;
  1196. background-color: #096562;
  1197. }
  1198. .inactive {
  1199. background-color: #cccccc;
  1200. }
  1201. }
  1202. }
  1203. .body_pop {
  1204. position: relative;
  1205. height: 955rpx;
  1206. border-radius: 22rpx 22rpx 0 0;
  1207. background-color: #fff;
  1208. overflow-y: auto;
  1209. .pop_swiper {
  1210. height: 422rpx;
  1211. border-radius: 22rpx 22rpx 0 0;
  1212. .pop_swiper_item {
  1213. width: 100%;
  1214. height: 100%;
  1215. .img {
  1216. width: 100%;
  1217. height: 100%;
  1218. border-radius: 22rpx 22rpx 0 0;
  1219. }
  1220. }
  1221. }
  1222. .pop_icon {
  1223. position: absolute;
  1224. top: 20rpx;
  1225. right: 30rpx;
  1226. width: 58rpx;
  1227. height: 58rpx;
  1228. }
  1229. .pop_body {
  1230. box-sizing: border-box;
  1231. padding: 0 20rpx 30rpx;
  1232. .body_title {
  1233. margin-top: 30rpx;
  1234. font-size: 32rpx;
  1235. font-weight: bold;
  1236. }
  1237. .body_tags {
  1238. display: flex;
  1239. flex-wrap: wrap;
  1240. margin-top: 20rpx;
  1241. .tags_item {
  1242. display: flex;
  1243. align-items: center;
  1244. margin-right: 76rpx;
  1245. margin-bottom: 20rpx;
  1246. color: #383838;
  1247. font-size: 24rpx;
  1248. .img {
  1249. margin-right: 5rpx;
  1250. width: 28rpx;
  1251. height: 28rpx;
  1252. }
  1253. }
  1254. }
  1255. .body_title2 {
  1256. margin-top: 20rpx;
  1257. font-size: 28rpx;
  1258. }
  1259. .body_detail {
  1260. display: flex;
  1261. flex-direction: column;
  1262. justify-content: space-between;
  1263. // align-items: flex-end;
  1264. box-sizing: border-box;
  1265. padding: 20rpx 30rpx;
  1266. margin-top: 18rpx;
  1267. width: 710rpx;
  1268. height: 266rpx;
  1269. font-size: 24rpx;
  1270. border-radius: 7rpx;
  1271. background-color: #f2f2f2;
  1272. .detail_old {
  1273. text-align: end;
  1274. text-decoration: line-through;
  1275. }
  1276. .detail_box {
  1277. display: flex;
  1278. justify-content: space-between;
  1279. color: #808080;
  1280. text {
  1281. color: #ff5733;
  1282. }
  1283. }
  1284. .detail_new {
  1285. display: flex;
  1286. justify-content: flex-end;
  1287. align-items: center;
  1288. font-size: 24rpx;
  1289. .color {
  1290. color: #ff5733;
  1291. }
  1292. .price {
  1293. font-size: 36rpx;
  1294. }
  1295. .ml_10 {
  1296. margin-left: 10rpx;
  1297. }
  1298. }
  1299. }
  1300. .body_bottom {
  1301. display: flex;
  1302. justify-content: space-between;
  1303. align-items: center;
  1304. margin-top: 250rpx;
  1305. height: 80rpx;
  1306. .bottom_left {
  1307. display: flex;
  1308. align-items: center;
  1309. color: #333333;
  1310. font-size: 24rpx;
  1311. .img {
  1312. margin-right: 10rpx;
  1313. width: 48rpx;
  1314. height: 48rpx;
  1315. }
  1316. }
  1317. .bottom_right {
  1318. display: flex;
  1319. align-items: center;
  1320. color: #ff5733;
  1321. font-size: 40rpx;
  1322. font-weight: bold;
  1323. text {
  1324. font-size: 24rpx;
  1325. }
  1326. .btn {
  1327. display: flex;
  1328. justify-content: center;
  1329. align-items: center;
  1330. margin-left: 30rpx;
  1331. width: 238rpx;
  1332. height: 80rpx;
  1333. color: #fff;
  1334. font-size: 32rpx;
  1335. font-weight: 400;
  1336. border-radius: 64rpx;
  1337. background-color: #096562;
  1338. }
  1339. .inactive {
  1340. background-color: #cccccc;
  1341. }
  1342. }
  1343. }
  1344. }
  1345. }
  1346. }
  1347. .noData {
  1348. display: flex;
  1349. flex-direction: column;
  1350. justify-content: center;
  1351. align-items: center;
  1352. padding-bottom: 20rpx;
  1353. img {
  1354. margin-top: 60rpx;
  1355. width: 600rpx;
  1356. height: 600rpx;
  1357. }
  1358. }
  1359. }
  1360. .evaluate {
  1361. width: 710rpx;
  1362. background-color: #f2f3f5;
  1363. .evaluate_title {
  1364. line-height: 83rpx;
  1365. font-size: 32rpx;
  1366. font-weight: bold;
  1367. }
  1368. .evaluate_body {
  1369. display: flex;
  1370. flex-direction: column;
  1371. width: 710rpx;
  1372. border-radius: 11rpx;
  1373. background-color: #fff;
  1374. .header {
  1375. display: flex;
  1376. align-items: center;
  1377. margin: 25rpx 20rpx;
  1378. width: 670rpx;
  1379. height: 120rpx;
  1380. border-radius: 13rpx;
  1381. background-color: #e4f0ef;
  1382. .header_box {
  1383. display: flex;
  1384. height: 70rpx;
  1385. .box_left {
  1386. display: flex;
  1387. justify-content: center;
  1388. align-items: center;
  1389. width: 140rpx;
  1390. color: #096562;
  1391. font-size: 60rpx;
  1392. font-weight: 900;
  1393. border-right: 1rpx solid #cccccc;
  1394. }
  1395. .box_right {
  1396. flex: 1;
  1397. display: flex;
  1398. flex-wrap: wrap;
  1399. color: #808080;
  1400. font-size: 24rpx;
  1401. .right_item {
  1402. display: flex;
  1403. align-items: center;
  1404. width: 50%;
  1405. .item_info {
  1406. margin-left: 33rpx;
  1407. }
  1408. .item_progress {
  1409. margin-right: 20rpx;
  1410. padding: 0 13rpx;
  1411. flex: 1;
  1412. }
  1413. }
  1414. }
  1415. }
  1416. }
  1417. .evaluate_box {
  1418. box-sizing: border-box;
  1419. padding: 0 20rpx;
  1420. margin: 0 auto 20rpx;
  1421. width: 710rpx;
  1422. border-radius: 18rpx;
  1423. background-color: #fff;
  1424. .box_userInfo {
  1425. display: flex;
  1426. align-items: center;
  1427. height: 115rpx;
  1428. img {
  1429. width: 70rpx;
  1430. height: 70rpx;
  1431. border-radius: 50%;
  1432. }
  1433. .userInfo_msg {
  1434. margin-left: 18rpx;
  1435. .msg_name {
  1436. font-size: 28rpx;
  1437. }
  1438. .msg_star {
  1439. margin-left: -5rpx;
  1440. margin-top: 5rpx;
  1441. }
  1442. }
  1443. }
  1444. .box_time {
  1445. display: flex;
  1446. align-items: center;
  1447. color: #a6a6a6;
  1448. font-size: 24rpx;
  1449. }
  1450. .box_content {
  1451. margin-top: 15rpx;
  1452. font-size: 24rpx;
  1453. color: #000;
  1454. }
  1455. .box_img {
  1456. display: grid;
  1457. grid-template-columns: 1fr 1fr 1fr;
  1458. grid-auto-rows: auto;
  1459. gap: 10rpx;
  1460. margin-top: 20rpx;
  1461. img {
  1462. width: 216rpx;
  1463. height: 216rpx;
  1464. border-radius: 20rpx;
  1465. }
  1466. .video {
  1467. width: 216rpx;
  1468. height: 216rpx;
  1469. border-radius: 20rpx;
  1470. }
  1471. }
  1472. }
  1473. .foot {
  1474. display: flex;
  1475. justify-content: center;
  1476. align-items: center;
  1477. padding-bottom: 20rpx;
  1478. height: 68rpx;
  1479. font-size: 24rpx;
  1480. font-weight: bold;
  1481. color: #096663;
  1482. img {
  1483. margin-left: 10rpx;
  1484. width: 10rpx;
  1485. height: 18rpx;
  1486. }
  1487. }
  1488. .noData {
  1489. height: 110rpx;
  1490. line-height: 110rpx;
  1491. text-align: center;
  1492. }
  1493. }
  1494. }
  1495. .rim {
  1496. width: 710rpx;
  1497. background-color: #f2f3f5;
  1498. .rim_title {
  1499. line-height: 80rpx;
  1500. font-size: 32rpx;
  1501. font-weight: bold;
  1502. }
  1503. .rim_control {
  1504. margin-bottom: 10rpx;
  1505. line-height: 85rpx;
  1506. font-size: 28rpx;
  1507. color: #808080;
  1508. white-space: nowrap;
  1509. overflow-x: auto;
  1510. background-color: #fff;
  1511. .control_box {
  1512. padding: 0 15rpx 0 20rpx;
  1513. .text {
  1514. padding-bottom: 5rpx;
  1515. }
  1516. .active {
  1517. color: #096562;
  1518. border-bottom: 5rpx solid #096562;
  1519. }
  1520. }
  1521. }
  1522. .rim_body {
  1523. .rim_box {
  1524. display: flex;
  1525. margin-bottom: 20rpx;
  1526. width: 710rpx;
  1527. height: 150rpx;
  1528. background-color: #fff;
  1529. img {
  1530. width: 126rpx;
  1531. height: 150rpx;
  1532. }
  1533. .box_info {
  1534. display: flex;
  1535. flex-direction: column;
  1536. justify-content: space-evenly;
  1537. padding: 0 24rpx;
  1538. box-sizing: border-box;
  1539. width: 584rpx;
  1540. height: 150rpx;
  1541. .info_top {
  1542. font-size: 28rpx;
  1543. font-weight: bold;
  1544. }
  1545. .info_center {
  1546. font-size: 24rpx;
  1547. color: #808080;
  1548. }
  1549. .info_bottom {
  1550. display: flex;
  1551. align-items: center;
  1552. font-size: 24rpx;
  1553. .bottom_rate {
  1554. color: #ff5733;
  1555. }
  1556. .bottom_num {
  1557. margin-left: 15rpx;
  1558. color: #a6a6a6;
  1559. }
  1560. .bottom_price {
  1561. margin-left: auto;
  1562. font-size: 28rpx;
  1563. color: #ff5733;
  1564. text {
  1565. font-size: 20rpx;
  1566. color: #a6a6a6;
  1567. }
  1568. }
  1569. }
  1570. }
  1571. }
  1572. }
  1573. .noData {
  1574. display: flex;
  1575. flex-direction: column;
  1576. justify-content: center;
  1577. align-items: center;
  1578. padding-bottom: 60rpx;
  1579. img {
  1580. margin-top: 160rpx;
  1581. width: 500rpx;
  1582. height: 500rpx;
  1583. }
  1584. }
  1585. .rim_more {
  1586. display: flex;
  1587. justify-content: center;
  1588. align-items: center;
  1589. width: 710rpx;
  1590. height: 70rpx;
  1591. color: #096663;
  1592. font-size: 24rpx;
  1593. font-weight: bold;
  1594. background-color: #fff;
  1595. img {
  1596. margin-left: 10rpx;
  1597. margin-top: 2rpx;
  1598. width: 10rpx;
  1599. height: 18rpx;
  1600. }
  1601. }
  1602. }
  1603. .scenicSpot {
  1604. width: 710rpx;
  1605. background-color: #f2f3f5;
  1606. .scenicSpot_title {
  1607. line-height: 83rpx;
  1608. font-size: 32rpx;
  1609. font-weight: bold;
  1610. }
  1611. .scenicSpot_body {
  1612. .scenicSpot_box {
  1613. display: flex;
  1614. margin-bottom: 20rpx;
  1615. width: 710rpx;
  1616. height: 150rpx;
  1617. background-color: #fff;
  1618. img {
  1619. width: 126rpx;
  1620. height: 150rpx;
  1621. }
  1622. .box_info {
  1623. display: flex;
  1624. flex-direction: column;
  1625. justify-content: space-evenly;
  1626. padding: 0 24rpx;
  1627. box-sizing: border-box;
  1628. width: 584rpx;
  1629. height: 150rpx;
  1630. .info_top {
  1631. font-size: 28rpx;
  1632. font-weight: bold;
  1633. }
  1634. .info_center {
  1635. font-size: 24rpx;
  1636. color: #808080;
  1637. }
  1638. .info_bottom {
  1639. display: flex;
  1640. align-items: center;
  1641. font-size: 24rpx;
  1642. .bottom_rate {
  1643. color: #ff5733;
  1644. }
  1645. .bottom_num {
  1646. margin-left: 15rpx;
  1647. color: #a6a6a6;
  1648. }
  1649. .bottom_price {
  1650. margin-left: auto;
  1651. font-size: 28rpx;
  1652. color: #ff5733;
  1653. text {
  1654. font-size: 20rpx;
  1655. color: #a6a6a6;
  1656. }
  1657. }
  1658. }
  1659. }
  1660. }
  1661. }
  1662. .scenicSpot_more {
  1663. display: flex;
  1664. justify-content: center;
  1665. align-items: center;
  1666. width: 710rpx;
  1667. height: 70rpx;
  1668. color: #096663;
  1669. font-size: 24rpx;
  1670. font-weight: bold;
  1671. background-color: #fff;
  1672. img {
  1673. margin-left: 10rpx;
  1674. margin-top: 2rpx;
  1675. width: 10rpx;
  1676. height: 18rpx;
  1677. }
  1678. }
  1679. }
  1680. }
  1681. </style>