tweetDetail.vue 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160
  1. <template>
  2. <view class="container" :style="'overflow:' + (showPage ? 'hidden' : 'visible')" v-if="info">
  3. <!-- 作者信息区域 -->
  4. <view class="author">
  5. <img mode="aspectFill" :src="info.userPhoto" @click="handleGoMyHome(info.userId)" />
  6. <view class="author_name">{{ info.userName }}</view>
  7. <view class="author_btn" v-if="info.isFollow !== 2" @click="handleFollow">{{ info.isFollow === 0 ? '关注' : '已关注' }}</view>
  8. </view>
  9. <!-- 轮播图区域 -->
  10. <swiper indicator-color="#ccc" indicator-active-color="#096562" indicator-dots autoplay circular class="swiper" v-if="info.images">
  11. <swiper-item class="swiper_item" v-for="(item, current) in info.images" :key="current" @click="handleClickSwiper(info.images, current)">
  12. <img mode="aspectFill" class="img" :src="item" />
  13. </swiper-item>
  14. </swiper>
  15. <video
  16. v-if="info.video"
  17. class="swiper"
  18. :src="info.video"
  19. id="myVideo"
  20. :show-fullscreen-btn="false"
  21. :direction="0"
  22. @fullscreenchange="fullscreenchange"
  23. @click="handleClickVideo('myVideo')"
  24. ></video>
  25. <!-- 推文信息区域 -->
  26. <view class="tweet">
  27. <view class="tweet_title">{{ info.title }}</view>
  28. <view class="tweet_msg">{{ info.content }}</view>
  29. <view class="tweet_info">{{ info.dateStr }} {{ info.townName }}</view>
  30. </view>
  31. <!-- 关联民宿区域 -->
  32. <view class="and">
  33. <!-- 每一个关联民宿区域 -->
  34. <view class="and_box" v-for="item in info.hotels" :key="item.id" @click="goHotelDetail(item)">
  35. <img mode="aspectFill" :src="item.coverImg" />
  36. <view class="box_detail">
  37. <view class="detail_name">
  38. {{ item.name }}
  39. <img class="img" :src="item.isCollect === 0 ? '../../static/index/like.png' : '../../static/index/like-active.png'" @click.stop="handleLikeHotel(item)" />
  40. </view>
  41. <view class="detail_leave" v-if="item.type === 1">银宿级</view>
  42. <view class="detail_leave" v-if="item.type === 2">金宿级</view>
  43. <view class="detail_leave" v-if="item.type === 3">白金级</view>
  44. <view class="detail_num">
  45. <view class="num_rate">{{ item.score.toFixed(1) }}分</view>
  46. <view class="num_comment">{{ item.comment }}条评论</view>
  47. <view class="num_price">
  48. ¥{{ item.price }}
  49. <text>起</text>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <!-- 关联民宿查看全部区域 -->
  55. <view class="and_all" @click="handleClickALL">查看全部 >></view>
  56. </view>
  57. <!-- 点赞人数区域 -->
  58. <view class="like" v-if="info.likes.length !== 0">
  59. <uv-avatar-group mode="aspectFill" :urls="info.likes" size="30" gap="0.3" maxCount="10"></uv-avatar-group>
  60. <view class="like_text" @click="handleGoPageLike">{{ info.likeNum }}人已赞</view>
  61. </view>
  62. <!-- 评论总条数区域 -->
  63. <view class="total" v-if="info.commentNum">共{{ info.commentNum }}条评论</view>
  64. <!-- 评论输入框区域 -->
  65. <view class="input_box">
  66. <input type="text" confirm-type="send" placeholder="爱评论的人运气都不差" v-model="commentsValue" @confirm="handleInput" />
  67. </view>
  68. <!-- 评论列表区域 -->
  69. <view class="comment_list" v-if="info.comments">
  70. <!-- 每一个评论区域 -->
  71. <view class="comment_box" v-for="item in info.comments" :key="item.id">
  72. <view class="box_left">
  73. <img mode="aspectFill" :src="item.image" @click="handleGoMyHome(item.userId)" />
  74. </view>
  75. <view class="box_right">
  76. <view class="right_name">{{ item.userName }}</view>
  77. <view class="right_content">{{ item.content }}</view>
  78. <view class="right_time">{{ item.date.slice(0, 19) }}</view>
  79. </view>
  80. </view>
  81. <!-- 查看全部评论区域 -->
  82. <view class="comment_all" @click="handleClickComment">查看全部评论 >></view>
  83. </view>
  84. <!-- 相关推文区域 -->
  85. <view class="related" v-if="bindTweetList.length !== 0">
  86. <view class="related_title">相关推文</view>
  87. <!-- 相关推文列表区域 -->
  88. <view class="related_list">
  89. <!-- 每一个推文区域 -->
  90. <view class="related_box" v-for="item in bindTweetList" :key="item.id" @click="handleGoBind(item)">
  91. <img class="box_cover" v-if="item.image" mode="aspectFill" :src="item.image" />
  92. <video class="box_cover" v-if="item.video" :src="item.video" :show-center-play-btn="false" :show-fullscreen-btn="false" :show-play-btn="false"></video>
  93. <view class="box_content">{{ item.title }}</view>
  94. <view class="box_info">
  95. <img class="img" mode="aspectFill" :src="item.userPhoto" />
  96. <view class="info_name">{{ item.userName }}</view>
  97. <img
  98. class="img2"
  99. mode="aspectFill"
  100. :src="item.isCollect === 0 ? '../../static/index/like.png' : '../../static/index/like-active.png'"
  101. @click.stop="handleClickLike(item)"
  102. />
  103. <view class="info_count">{{ item.collectNum }}</view>
  104. </view>
  105. <!-- 乡镇信息区域 -->
  106. <view class="box_town">{{ item.townName }}</view>
  107. <!-- 视频图标 -->
  108. <img v-if="item.video" class="box_play" src="../../static/index/video.png" />
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 底部点赞 评论 收藏区域 -->
  113. <view class="tab">
  114. <!-- 点赞 -->
  115. <view class="tab_box">
  116. <img class="img" :src="info.isLike === 0 ? '../../static/index/upvote.png' : '../../static/index/upvote-active.png'" @click="clickBtnLike" />
  117. {{ info.likeNum }}
  118. </view>
  119. <!-- 评论 -->
  120. <view class="tab_box" @click="handleClickComment">
  121. <img class="img2" src="../../static/index/comment.png" />
  122. {{ info.commentNum }}
  123. </view>
  124. <!-- 收藏 -->
  125. <view class="tab_box">
  126. <img class="img" :src="info.isCollect === 0 ? '../../static/index/like.png' : '../../static/index/like-active.png'" @click="handleClickLike(info)" />
  127. {{ info.collectNum }}
  128. </view>
  129. </view>
  130. <!-- 点击评论弹窗区域 -->
  131. <uv-popup ref="popup" bgColor="none" :safeAreaInsetBottom="false" :closeOnClickOverlay="false">
  132. <view class="body_pop" v-if="commentList.length">
  133. <!-- 评论总数区域 -->
  134. <view class="pop_title">
  135. 共{{ totalComment }}条评论
  136. <img class="pop_icon" src="../../static/index/close3.png" @click="handleClosePop" />
  137. </view>
  138. <!-- 评论列表区域 -->
  139. <scroll-view class="pop_list" scroll-y @scrolltolower="handleTolowerComment">
  140. <!-- 每一条评论区域 -->
  141. <view class="pop_item" v-for="item in commentList" :key="item.id">
  142. <!-- 用户区域 -->
  143. <view class="item_user" @click="handleComment(item)">
  144. <img mode="aspectFill" :src="item.image" @click.stop="handleGoMyHome(item.userId)" />
  145. <view class="user_info">
  146. {{ item.userName }}
  147. </view>
  148. </view>
  149. <!-- 评价内容区域 -->
  150. <view class="item_content" @click="handleComment(item)">
  151. <view class="content_top">
  152. {{ item.content }}
  153. </view>
  154. <view class="content_bottom">
  155. {{ item.date.slice(0, 19) }}
  156. </view>
  157. </view>
  158. <!-- 二级评论区域 -->
  159. <view class="item_child">
  160. <CommentChild3 v-if="item.childrens" :list="item.childrens" :commentParentId="tweetId" />
  161. </view>
  162. </view>
  163. </scroll-view>
  164. </view>
  165. <!-- 评论输入框区域 -->
  166. <view class="body_input" v-if="commentList.length">
  167. <view class="input_box">
  168. <input type="text" confirm-type="send" placeholder="说点什么呢~" v-model="popInputValue" @confirm="handleInputPop" />
  169. </view>
  170. </view>
  171. </uv-popup>
  172. <!-- 点击关联民宿弹窗区域 -->
  173. <uv-popup ref="popup_bind" bgColor="none" :safeAreaInsetBottom="false" :closeOnClickOverlay="false">
  174. <view class="body_pop">
  175. <!-- 评论总数区域 -->
  176. <view class="pop_title">
  177. 全部
  178. <img class="pop_icon" src="../../static/index/close3.png" @click="handleClosePopBind" />
  179. </view>
  180. <!-- 关联民宿列表区域 -->
  181. <scroll-view class="pop_list" v-if="bindList.length" scroll-y @scrolltolower="handleTolower">
  182. <!-- 每一个民宿区域 -->
  183. <view class="pop_item_bind" v-for="item in bindList" :key="item.id" @click="goHotelDetail(item)">
  184. <img mode="aspectFill" :src="item.coverImg" />
  185. <view class="box_detail">
  186. <view class="detail_name">
  187. {{ item.name }}
  188. <img
  189. class="img"
  190. :src="item.isCollect === 0 ? '../../static/index/like.png' : '../../static/index/like-active.png'"
  191. @click.stop="handleLikeHotel(item)"
  192. />
  193. </view>
  194. <view class="detail_leave" v-if="item.type === 1">银宿级</view>
  195. <view class="detail_leave" v-if="item.type === 2">金宿级</view>
  196. <view class="detail_leave" v-if="item.type === 3">白金级</view>
  197. <view class="detail_num">
  198. <view class="num_rate">{{ item.score.toFixed(1) }}分</view>
  199. <view class="num_comment">{{ item.comment }}条评论</view>
  200. <view class="num_price">
  201. ¥{{ item.price }}
  202. <text>起</text>
  203. </view>
  204. </view>
  205. </view>
  206. </view>
  207. </scroll-view>
  208. </view>
  209. </uv-popup>
  210. </view>
  211. </template>
  212. <script>
  213. import CommentChild3 from '@/components/commentChild3.vue'
  214. export default {
  215. components: { CommentChild3 },
  216. data() {
  217. return {
  218. // 滚动穿透控制
  219. showPage: false,
  220. // 推文id
  221. tweetId: '',
  222. // 乡镇id
  223. townId: '',
  224. // 用户id
  225. userId: '',
  226. // 推文信息
  227. info: null,
  228. // 相关推文列表数组
  229. bindTweetList: [],
  230. // 弹窗评论列表当前页
  231. pageComment: 1,
  232. // 弹窗评论列表每页多少条
  233. rowsComment: 10,
  234. // 弹窗评论列表总条数
  235. totalComment: null,
  236. // 弹窗评论列表
  237. commentList: [],
  238. // 弹窗关联民宿列表
  239. bindList: [],
  240. // 弹窗关联民宿当前页
  241. pageBind: 1,
  242. // 弹窗关联民宿每页多少条
  243. rowsBind: 10,
  244. // 弹窗关联民宿总条数
  245. totalBind: null,
  246. // 一级评论框绑定数值
  247. commentsValue: '',
  248. // 评论弹窗评论框绑定数值
  249. popInputValue: '',
  250. // 相关推文当前页
  251. pageTweet: 1,
  252. // 相关推文每页多少条
  253. rowsTweet: 10,
  254. // 相关推文总条数
  255. totalTweet: null,
  256. // video 上下文 videoContext 对象
  257. videoContext: null,
  258. // 是否是全屏状态
  259. isFullScreen: false
  260. }
  261. },
  262. onLoad(options) {
  263. this.userId = uni.getStorageSync('userInfo').id
  264. this.tweetId = options.id
  265. this.townId = options.townId
  266. this.getTweetInfo()
  267. this.getBindTweet()
  268. uni.$on('getReset', this.getReset)
  269. },
  270. onReachBottom() {
  271. if (this.bindTweetList.length < this.totalTweet) {
  272. this.pageTweet++
  273. this.getBindTweet()
  274. } else {
  275. uni.showToast({
  276. title: '没有更多数据了',
  277. icon: 'none'
  278. })
  279. }
  280. },
  281. methods: {
  282. // 获取推文详细信息
  283. async getTweetInfo(id) {
  284. const res = await this.$myRequest({
  285. url: '/mhotel/articlequeryDetail.action',
  286. data: {
  287. id: id ? id : this.tweetId,
  288. userId: this.userId
  289. }
  290. })
  291. // console.log(res)
  292. if (res.code === 200) {
  293. this.info = res.data
  294. }
  295. },
  296. // 获取相关推文数组
  297. async getBindTweet() {
  298. const res = await this.$myRequest({
  299. url: '/mhotel/articlerelatedTweets.action',
  300. data: {
  301. id: this.tweetId,
  302. townId: this.townId,
  303. userId: this.userId,
  304. page: this.pageTweet,
  305. rows: this.rowsTweet
  306. }
  307. })
  308. // console.log(res)
  309. if (res.code === 200) {
  310. this.bindTweetList = res.data.pageList
  311. this.totalTweet = res.data.total
  312. }
  313. },
  314. // 关注或者取消关注请求
  315. async handleFollow() {
  316. const res = await this.$myRequest({
  317. url: '/mhotel/articlefollowAuthor.action',
  318. data: {
  319. authorId: this.info.userId,
  320. userId: this.userId
  321. }
  322. })
  323. // console.log(res)
  324. if (res.code === 200) {
  325. this.info.isFollow === 0 ? (this.info.isFollow = 1) : (this.info.isFollow = 0)
  326. }
  327. },
  328. // 点击关联民宿爱心图标回调
  329. async handleLikeHotel(item) {
  330. const res = await this.$myRequest({
  331. url: item.isCollect === 0 ? '/mhotel/ahpcollectHotel.action' : '/mhotel/ahpdelCollectHotel.action',
  332. data: {
  333. hotelId: item.id,
  334. userId: this.userId
  335. }
  336. })
  337. // console.log(res)
  338. if (res.code === 200) {
  339. item.isCollect === 0 ? (item.isCollect = 1) : (item.isCollect = 0)
  340. this.getTweetInfo()
  341. }
  342. },
  343. // 点击民宿前往民宿详情回调
  344. goHotelDetail(item) {
  345. this.showPage = false
  346. this.$refs.popup_bind.close()
  347. uni.navigateTo({
  348. url: `/pages/detail/detail?id=${item.id}&town=${this.info.townName}`
  349. })
  350. },
  351. // 点击轮播图图片回调
  352. handleClickSwiper(urls, current) {
  353. uni.previewImage({
  354. urls,
  355. current
  356. })
  357. },
  358. // 一级评论框确定输入回调
  359. async handleInput(e) {
  360. const res = await this.$myRequest({
  361. url: '/mhotel/articlecommentArticle.action',
  362. method: 'post',
  363. data: {
  364. articleId: this.tweetId,
  365. parentId: 0,
  366. userId: this.userId,
  367. content: e.detail.value
  368. }
  369. })
  370. // console.log(res)
  371. if (res.code === 200) {
  372. this.commentsValue = ''
  373. this.getTweetInfo()
  374. }
  375. },
  376. // 评论弹窗输入框回调
  377. async handleInputPop(e) {
  378. const res = await this.$myRequest({
  379. url: '/mhotel/articlecommentArticle.action',
  380. method: 'post',
  381. data: {
  382. articleId: this.tweetId,
  383. parentId: 0,
  384. userId: this.userId,
  385. content: e.detail.value
  386. }
  387. })
  388. // console.log(res)
  389. if (res.code === 200) {
  390. this.popInputValue = ''
  391. this.commentList = []
  392. this.pageComment = 1
  393. this.handleClickCommentReq()
  394. this.getTweetInfo()
  395. }
  396. },
  397. // 点击底部tab评论按钮回调
  398. handleClickComment() {
  399. if (this.info.comments) {
  400. this.commentList = []
  401. this.showPage = true
  402. this.$refs.popup.open('bottom')
  403. this.handleClickCommentReq()
  404. } else {
  405. uni.showToast({
  406. title: '暂无评论',
  407. icon: 'none'
  408. })
  409. }
  410. },
  411. async handleClickCommentReq() {
  412. const res = await this.$myRequest({
  413. url: '/mhotel/articlequeryCommentList.action',
  414. data: {
  415. id: this.tweetId,
  416. page: this.pageComment,
  417. rows: this.rowsComment
  418. }
  419. })
  420. // console.log(res)
  421. if (res.code === 200) {
  422. this.commentList = [...this.commentList, ...res.data.pageList]
  423. this.totalComment = res.data.total
  424. }
  425. },
  426. // 点击评论弹窗关闭图标回调
  427. handleClosePop() {
  428. this.showPage = false
  429. this.$refs.popup.close()
  430. },
  431. // 点击关联民宿查看全部按钮回调
  432. handleClickALL() {
  433. this.bindList = []
  434. this.showPage = true
  435. this.$refs.popup_bind.open('bottom')
  436. this.handleClickALLReq()
  437. },
  438. async handleClickALLReq() {
  439. const res = await this.$myRequest({
  440. url: '/mhotel/articlequeryHotelList.action',
  441. data: {
  442. id: this.tweetId,
  443. userId: this.userId,
  444. page: this.pageBind,
  445. rows: this.rowsBind
  446. }
  447. })
  448. // console.log(res)
  449. if (res.code === 200) {
  450. this.bindList = [...this.bindList, ...res.data.pageList]
  451. this.totalBind = res.data.total
  452. }
  453. },
  454. // 点击关联民宿弹窗关闭图标回调
  455. handleClosePopBind() {
  456. this.showPage = false
  457. this.$refs.popup_bind.close()
  458. },
  459. handleGoPageLike() {
  460. uni.navigateTo({
  461. url: `/pages/likeList/likeList?id=${this.info.id}`
  462. })
  463. },
  464. // 相关推文点击爱心回调
  465. async handleClickLike(item) {
  466. const res = await this.$myRequest({
  467. url: '/mhotel/articlecollectArticle.action',
  468. data: {
  469. id: item.id,
  470. userId: this.userId
  471. }
  472. })
  473. // console.log(res)
  474. if (res.code === 200) {
  475. item.isCollect === 1 ? ((item.isCollect = 0), (item.collectNum -= 1)) : ((item.isCollect = 1), (item.collectNum += 1))
  476. }
  477. },
  478. // 点击底部点赞按钮回调
  479. async clickBtnLike() {
  480. const res = await this.$myRequest({
  481. url: '/mhotel/articlelikeArticle.action',
  482. data: {
  483. id: this.tweetId,
  484. userId: this.userId
  485. }
  486. })
  487. // console.log(res)
  488. if (res.code === 200) {
  489. this.getTweetInfo()
  490. }
  491. },
  492. handleGoBind(item) {
  493. this.tweetId = item.id
  494. this.townId = item.townId
  495. this.bindTweetList = []
  496. this.info = null
  497. this.getTweetInfo()
  498. this.getBindTweet()
  499. },
  500. handleComment(item) {
  501. uni.showModal({
  502. title: '请输入评论',
  503. editable: true,
  504. success: async (res) => {
  505. if (res.confirm) {
  506. const result = res.content
  507. if (!res.content) {
  508. uni.showToast({
  509. title: '评论内容不能为空',
  510. icon: 'none',
  511. mask: true
  512. })
  513. setTimeout(() => {
  514. this.handleComment()
  515. }, 1500)
  516. } else {
  517. const res = await this.$myRequest({
  518. url: '/mhotel/articlecommentArticle.action',
  519. method: 'post',
  520. data: {
  521. articleId: this.tweetId,
  522. parentId: item.id,
  523. userId: this.userId,
  524. content: result
  525. }
  526. })
  527. // console.log(res);
  528. if (res.code === 200) {
  529. this.getReset()
  530. }
  531. }
  532. }
  533. }
  534. })
  535. },
  536. getReset() {
  537. this.commentList = []
  538. this.pageComment = 1
  539. this.handleClickCommentReq()
  540. },
  541. handleTolower() {
  542. if (this.bindList.length < this.totalBind) {
  543. this.pageBind++
  544. this.handleClickALLReq()
  545. } else {
  546. uni.showToast({
  547. title: '没有更多数据了',
  548. icon: 'none'
  549. })
  550. }
  551. },
  552. handleTolowerComment() {
  553. if (this.commentList.length < this.totalComment) {
  554. this.pageComment++
  555. this.handleClickCommentReq()
  556. } else {
  557. uni.showToast({
  558. title: '没有更多数据了',
  559. icon: 'none'
  560. })
  561. }
  562. },
  563. // 进入全屏和退出全屏时触发的回调
  564. fullscreenchange(e) {
  565. this.isFullScreen = e.detail.fullScreen
  566. },
  567. // 点击视频控件时触发的回调
  568. handleClickVideo(id) {
  569. this.videoContext = uni.createVideoContext(id)
  570. if (this.isFullScreen) {
  571. this.videoContext.pause()
  572. this.videoContext.exitFullScreen()
  573. } else {
  574. this.videoContext.requestFullScreen()
  575. this.videoContext.play()
  576. }
  577. },
  578. handleGoMyHome(userId) {
  579. uni.navigateTo({
  580. url: `/pages/myHome/myHome?userId=${userId}`
  581. })
  582. }
  583. }
  584. }
  585. </script>
  586. <style lang="scss" scoped>
  587. .container {
  588. padding-bottom: 130rpx;
  589. min-height: 100vh;
  590. background-color: #fff;
  591. .author {
  592. display: flex;
  593. align-items: center;
  594. padding: 0 20rpx;
  595. height: 100rpx;
  596. img {
  597. width: 50rpx;
  598. height: 50rpx;
  599. border-radius: 50%;
  600. }
  601. .author_name {
  602. margin-left: 15rpx;
  603. font-size: 28rpx;
  604. font-weight: bold;
  605. }
  606. .author_btn {
  607. display: flex;
  608. justify-content: center;
  609. align-items: center;
  610. margin-left: auto;
  611. width: 107rpx;
  612. height: 50rpx;
  613. color: #096562;
  614. font-size: 24rpx;
  615. border-radius: 69rpx;
  616. border: 1rpx solid #096562;
  617. }
  618. }
  619. .swiper {
  620. width: 100%;
  621. height: 495rpx;
  622. .swiper_item {
  623. width: 100%;
  624. height: 100%;
  625. .img {
  626. width: 100%;
  627. height: 440rpx;
  628. }
  629. }
  630. }
  631. .tweet {
  632. margin: auto;
  633. width: 710rpx;
  634. border-bottom: 1rpx solid #e6e6e6;
  635. .tweet_title {
  636. line-height: 50rpx;
  637. font-size: 32rpx;
  638. font-weight: bold;
  639. }
  640. .tweet_msg {
  641. margin-top: 10rpx;
  642. line-height: 40rpx;
  643. font-size: 28rpx;
  644. }
  645. .tweet_info {
  646. margin-top: 20rpx;
  647. height: 55rpx;
  648. color: #999999;
  649. font-size: 24rpx;
  650. }
  651. }
  652. .and {
  653. padding: 20rpx 0;
  654. margin: auto;
  655. width: 710rpx;
  656. border-bottom: 1rpx solid #e6e6e6;
  657. .and_box {
  658. display: flex;
  659. margin-bottom: 20rpx;
  660. width: 710rpx;
  661. height: 150rpx;
  662. background-color: #f2f2f2;
  663. img {
  664. width: 126rpx;
  665. height: 150rpx;
  666. }
  667. .box_detail {
  668. flex: 1;
  669. display: flex;
  670. flex-direction: column;
  671. justify-content: space-evenly;
  672. padding: 0 23rpx;
  673. overflow: hidden;
  674. .detail_name {
  675. display: flex;
  676. justify-content: space-between;
  677. align-items: center;
  678. font-size: 28rpx;
  679. font-weight: bold;
  680. overflow: hidden;
  681. text-overflow: ellipsis;
  682. white-space: nowrap;
  683. .img {
  684. width: 40rpx;
  685. height: 40rpx;
  686. }
  687. }
  688. .detail_leave {
  689. color: #808080;
  690. font-size: 24rpx;
  691. }
  692. .detail_num {
  693. display: flex;
  694. align-items: center;
  695. font-size: 24rpx;
  696. .num_rate {
  697. color: #ff5733;
  698. }
  699. .num_comment {
  700. margin-left: 15rpx;
  701. color: #a6a6a6;
  702. }
  703. .num_price {
  704. margin-left: auto;
  705. font-size: 28rpx;
  706. color: #ff5733;
  707. text {
  708. margin-left: 5rpx;
  709. font-size: 20rpx;
  710. color: #a6a6a6;
  711. }
  712. }
  713. }
  714. }
  715. }
  716. .and_all {
  717. display: flex;
  718. justify-content: center;
  719. align-items: center;
  720. width: 710rpx;
  721. height: 80rpx;
  722. color: #096562;
  723. font-size: 28rpx;
  724. background-color: #f2f2f2;
  725. }
  726. }
  727. .like {
  728. display: flex;
  729. align-items: center;
  730. padding: 0 20rpx;
  731. height: 108rpx;
  732. color: #808080;
  733. font-size: 28rpx;
  734. .like_text {
  735. margin-left: 18rpx;
  736. }
  737. }
  738. .total {
  739. margin: auto;
  740. width: 710rpx;
  741. height: 60rpx;
  742. line-height: 60rpx;
  743. font-size: 28rpx;
  744. color: #808080;
  745. }
  746. .input_box {
  747. margin: 10rpx auto 0;
  748. width: 710rpx;
  749. height: 66rpx;
  750. font-size: 24rpx;
  751. border-radius: 47rpx;
  752. background-color: #f2f2f2;
  753. input {
  754. box-sizing: border-box;
  755. padding: 0 33rpx;
  756. width: 100%;
  757. height: 100%;
  758. }
  759. }
  760. .comment_list {
  761. margin: auto;
  762. width: 710rpx;
  763. .comment_box {
  764. display: flex;
  765. box-sizing: border-box;
  766. padding-top: 30rpx;
  767. .box_left {
  768. width: 75rpx;
  769. img {
  770. width: 60rpx;
  771. height: 60rpx;
  772. border-radius: 50%;
  773. }
  774. }
  775. .box_right {
  776. flex: 1;
  777. flex-wrap: wrap;
  778. font-size: 24rpx;
  779. border-bottom: 1rpx solid #e6e6e6;
  780. .right_name {
  781. color: #808080;
  782. }
  783. .right_content {
  784. margin-top: 12rpx;
  785. word-break: break-all;
  786. }
  787. .right_time {
  788. margin: 12rpx 0 20rpx;
  789. color: #808080;
  790. }
  791. }
  792. }
  793. .comment_all {
  794. display: flex;
  795. justify-content: center;
  796. align-items: center;
  797. width: 710rpx;
  798. height: 80rpx;
  799. color: #096562;
  800. font-size: 28rpx;
  801. background-color: #f2f2f2;
  802. }
  803. }
  804. .related {
  805. margin: auto;
  806. width: 710rpx;
  807. .related_title {
  808. line-height: 105rpx;
  809. font-size: 32rpx;
  810. font-weight: bold;
  811. }
  812. .related_list {
  813. display: grid;
  814. grid-template-columns: 1fr 1fr;
  815. grid-auto-rows: auto;
  816. gap: 40rpx;
  817. .related_box {
  818. position: relative;
  819. width: 335rpx;
  820. background-color: #f7f7f7;
  821. .box_cover {
  822. width: 335rpx;
  823. height: 463rpx;
  824. border-radius: 10rpx 10rpx 0 0;
  825. }
  826. .box_content {
  827. padding: 10rpx 60rpx 10rpx 20rpx;
  828. font-size: 28rpx;
  829. font-weight: bold;
  830. word-break: break-all;
  831. overflow: hidden;
  832. text-overflow: ellipsis;
  833. white-space: nowrap;
  834. }
  835. .box_info {
  836. padding: 0 20rpx;
  837. display: flex;
  838. align-items: center;
  839. height: 50rpx;
  840. font-size: 20rpx;
  841. color: #666666;
  842. .img {
  843. width: 30rpx;
  844. height: 30rpx;
  845. border-radius: 50%;
  846. }
  847. .info_name {
  848. margin-left: 10rpx;
  849. }
  850. .img2 {
  851. margin-left: auto;
  852. width: 28rpx;
  853. height: 28rpx;
  854. }
  855. .info_count {
  856. margin-left: 5rpx;
  857. }
  858. }
  859. .box_town {
  860. position: absolute;
  861. top: 405rpx;
  862. left: 22rpx;
  863. padding: 0 20rpx;
  864. display: flex;
  865. justify-content: center;
  866. align-items: center;
  867. height: 43rpx;
  868. color: #fff;
  869. font-size: 20rpx;
  870. border-radius: 42rpx;
  871. background-color: rgba(0, 0, 0, 0.3);
  872. }
  873. .box_play {
  874. position: absolute;
  875. top: 20rpx;
  876. right: 20rpx;
  877. width: 50rpx;
  878. height: 50rpx;
  879. }
  880. }
  881. }
  882. }
  883. .tab {
  884. position: fixed;
  885. bottom: 0;
  886. left: 0;
  887. z-index: 999;
  888. display: flex;
  889. justify-content: space-evenly;
  890. align-items: center;
  891. width: 100%;
  892. height: 110rpx;
  893. border-top: 1rpx solid #e6e6e6;
  894. background-color: #fff;
  895. .tab_box {
  896. display: flex;
  897. justify-content: center;
  898. align-items: center;
  899. width: 200rpx;
  900. .img {
  901. margin-right: 10rpx;
  902. width: 45rpx;
  903. height: 45rpx;
  904. }
  905. .img2 {
  906. margin-right: 10rpx;
  907. width: 35rpx;
  908. height: 35rpx;
  909. }
  910. }
  911. }
  912. .body_pop {
  913. position: relative;
  914. height: 955rpx;
  915. border-radius: 22rpx 22rpx 0 0;
  916. background-color: #fff;
  917. .pop_title {
  918. position: fixed;
  919. top: 0;
  920. left: 0;
  921. right: 0;
  922. display: flex;
  923. justify-content: center;
  924. align-items: center;
  925. height: 110rpx;
  926. font-size: 28rpx;
  927. background-color: #fff;
  928. .pop_icon {
  929. position: absolute;
  930. top: 35rpx;
  931. right: 35rpx;
  932. width: 36rpx;
  933. height: 36rpx;
  934. }
  935. }
  936. .pop_list {
  937. box-sizing: border-box;
  938. padding: 110rpx 20rpx 30rpx;
  939. height: 955rpx;
  940. .pop_item {
  941. margin-bottom: 10rpx;
  942. padding-bottom: 10rpx;
  943. border-bottom: 1rpx solid #e6e6e6;
  944. .item_user {
  945. display: flex;
  946. align-items: center;
  947. height: 70rpx;
  948. img {
  949. width: 60rpx;
  950. height: 60rpx;
  951. border-radius: 50%;
  952. }
  953. .user_info {
  954. display: flex;
  955. align-items: center;
  956. margin-left: 18rpx;
  957. height: 70rpx;
  958. color: #808080;
  959. font-size: 24rpx;
  960. }
  961. }
  962. .item_content {
  963. margin-left: 80rpx;
  964. font-size: 24rpx;
  965. .content_top {
  966. }
  967. .content_bottom {
  968. margin: 10rpx 0;
  969. color: #808080;
  970. }
  971. .content_key {
  972. color: #808080;
  973. }
  974. }
  975. .item_child {
  976. margin-left: 50rpx;
  977. }
  978. }
  979. .pop_item_bind {
  980. display: flex;
  981. margin-bottom: 20rpx;
  982. width: 710rpx;
  983. height: 150rpx;
  984. background-color: #f2f2f2;
  985. img {
  986. width: 126rpx;
  987. height: 150rpx;
  988. }
  989. .box_detail {
  990. flex: 1;
  991. display: flex;
  992. flex-direction: column;
  993. justify-content: space-evenly;
  994. padding: 0 23rpx;
  995. overflow: hidden;
  996. .detail_name {
  997. display: flex;
  998. justify-content: space-between;
  999. align-items: center;
  1000. font-size: 28rpx;
  1001. font-weight: bold;
  1002. overflow: hidden;
  1003. text-overflow: ellipsis;
  1004. white-space: nowrap;
  1005. .img {
  1006. width: 40rpx;
  1007. height: 40rpx;
  1008. }
  1009. }
  1010. .detail_leave {
  1011. color: #808080;
  1012. font-size: 24rpx;
  1013. }
  1014. .detail_num {
  1015. display: flex;
  1016. align-items: center;
  1017. font-size: 24rpx;
  1018. .num_rate {
  1019. color: #ff5733;
  1020. }
  1021. .num_comment {
  1022. margin-left: 15rpx;
  1023. color: #a6a6a6;
  1024. }
  1025. .num_price {
  1026. margin-left: auto;
  1027. font-size: 28rpx;
  1028. color: #ff5733;
  1029. text {
  1030. margin-left: 5rpx;
  1031. font-size: 20rpx;
  1032. color: #a6a6a6;
  1033. }
  1034. }
  1035. }
  1036. }
  1037. }
  1038. }
  1039. }
  1040. .body_input {
  1041. display: flex;
  1042. justify-content: center;
  1043. align-items: center;
  1044. height: 118rpx;
  1045. border-top: 1rpx solid #cccccc;
  1046. background-color: #fff;
  1047. .input_box {
  1048. width: 710rpx;
  1049. border-radius: 77rpx;
  1050. font-size: 24rpx;
  1051. background-color: #f2f2f2;
  1052. input {
  1053. box-sizing: border-box;
  1054. padding: 0 30rpx;
  1055. width: 100%;
  1056. height: 100%;
  1057. }
  1058. }
  1059. }
  1060. }
  1061. </style>