detail.vue 40 KB

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