detail.vue 39 KB

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