index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  1. <template>
  2. <view class="content">
  3. <view class="one">
  4. <video :src="info.vUrl" :poster="info.iUrl" :title="info.title" controls :show-center-play-btn="false"
  5. :show-mute-btn="true" :enable-play-gesture="true" :vslide-gesture-in-fullscreen="true"></video>
  6. </view>
  7. <view class="two">
  8. <view class="two_1">
  9. <view :class="['list',active==index?'active':'']" v-for="(item,index) in tabList" :key="index"
  10. @tap="tabChange(index)">
  11. <span>{{item.title}}</span>
  12. </view>
  13. </view>
  14. <view class="two_2">
  15. <view class="tab_1" v-if="active===0">
  16. <view class="btn">
  17. <view class="btn_1" @tap="toLikes()">
  18. <span class="span">
  19. <uni-icons :type="likeInfo.is==true?'heart-filled':'heart'" size="15"
  20. color="va(--rgbfff)">
  21. </uni-icons>
  22. <span>喜欢</span>
  23. </span>
  24. </view>
  25. <view class="btn_1" @tap="toCollects()">
  26. <span class="span">
  27. <uni-icons :type="collectInfo.is==true?'heart-filled':'heart'" size="15"
  28. color="va(--rgbfff)">
  29. </uni-icons>
  30. <span>收藏</span>
  31. </span>
  32. </view>
  33. <view class="btn_1" @tap="toShare()">
  34. <span class="span">
  35. <uni-icons type="redo-filled" size="15" color="va(--rgbfff)"></uni-icons>
  36. <span>分享</span>
  37. </span>
  38. </view>
  39. </view>
  40. <view class="title">
  41. <span>
  42. <uni-icons type="heart-filled" size="15" color="var(--rgbfff)"></uni-icons>:
  43. </span>
  44. <span>{{info.title}}</span>
  45. </view>
  46. <view class="actor">
  47. <span>
  48. <uni-icons type="person-filled" size="15" color="var(--rgbfff)"></uni-icons>:
  49. </span>
  50. <span
  51. @tap="toCommon('pagesVideo/more/index',`head_actor=${info.head_actor}`)">{{info.head_actor_name}}</span>
  52. </view>
  53. <view class="actor">
  54. <view class="actor_1">
  55. <uni-icons type="staff" size="15" color="var(--rgbfff)"></uni-icons>:
  56. </view>
  57. <view class="actor_2">
  58. <scroll-view class="actor_scroll_view" scroll-x="true">
  59. <view class="actorList" v-for="(item,index) in info.actorList" :key="index"
  60. @tap="toCommon('pagesVideo/more/index',`head_actor=${item._id}`)">
  61. <image class="image"
  62. :src="item.img_url&&item.img_url.length>0?item.img_url[0].url:''" mode="">
  63. </image>
  64. <view class="name textOver">
  65. {{item.title}}
  66. </view>
  67. </view>
  68. </scroll-view>
  69. </view>
  70. </view>
  71. <view class="brief">
  72. <span>
  73. <uni-icons type="star-filled" size="15" color="var(--rgbfff)"></uni-icons>:
  74. </span>
  75. <span>{{info.brief}}</span>
  76. </view>
  77. <view class="other">
  78. <view class="other_1">
  79. <uni-icons type="videocam-filled" size="15" color="var(--rgbfff)"></uni-icons>:
  80. </view>
  81. <view class="other_2" s>
  82. <view class="firmvideoList" v-for="(item,index) in firmvideoList" :key="index"
  83. @tap="videoView(item)">
  84. <image class="image" :src="item.img_url&&item.img_url.length>0?item.img_url[0].url:''"
  85. mode="">
  86. </image>
  87. <view class="name textOver">
  88. {{item.title}}
  89. </view>
  90. <view class="other">
  91. <view class="other_1">
  92. <uni-icons type="eye" color="var(--rgbfff)" size="12"></uni-icons>
  93. {{item.view_num}}
  94. </view>
  95. <view class="other_2">
  96. {{item.time_num}}
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. </view>
  102. </view>
  103. <view class="tab_2" v-else-if="active===1">
  104. <scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
  105. <view class="list-scroll-view">
  106. <view class="tab_2_1">
  107. <view class="discussList" v-for="(item,index) in discussList" :key="index">
  108. <view class="dis_1">
  109. <view class="l">
  110. <image class="image"
  111. :src="item.user_img_url&&item.user_img_url.length>0?item.user_img_url[0].url:''"
  112. mode="">
  113. </view>
  114. <view class="c">
  115. {{item.user_name}}
  116. </view>
  117. <view class="r">
  118. {{item.create_time}}
  119. </view>
  120. </view>
  121. <view class="dis_2">
  122. {{item.content}}
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. </scroll-view>
  128. <view class="chatBtn">
  129. <button size="mini" @tap="diaChat">评论</button>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. <uni-popup ref="dialog" type="dialog">
  135. <uni-popup-dialog mode="input" title="评论" :before-close="true" @close="diaClose" @confirm="diaSave">
  136. </uni-popup-dialog>
  137. </uni-popup>
  138. </view>
  139. </template>
  140. <script>
  141. export default {
  142. data() {
  143. return {
  144. // 基本信息
  145. basicInfo: {},
  146. // 用户信息
  147. user: {},
  148. // 获取当前地址
  149. locationInfo: {},
  150. id: '',
  151. info: {
  152. // 其他演员
  153. actorList: []
  154. },
  155. tabList: [ // 选项卡
  156. {
  157. title: '详情'
  158. },
  159. {
  160. title: '评论'
  161. }
  162. ],
  163. active: 0,
  164. // 详情-start
  165. firmvideoList: [ // 相关视频
  166. ],
  167. // 是否喜欢
  168. likeInfo: {},
  169. // 是否收藏
  170. collectInfo: {},
  171. // 详情-ends
  172. // 讨论-start
  173. discussList: [],
  174. dtotal: 0,
  175. dpage: 0,
  176. dskip: 0,
  177. dlimit: 5,
  178. // 数据是否触底
  179. is_bottom: false,
  180. scrollTop: 0,
  181. // 讨论-end
  182. }
  183. },
  184. onShow() {
  185. const that = this;
  186. // 基本信息
  187. that.searchBasic();
  188. // 获取当前地址
  189. that.searchLocal();
  190. // 已登录,相关信息查询
  191. that.searchUser();
  192. },
  193. onLoad(options) {
  194. const that = this;
  195. that.$set(that, `id`, options.id || '63fd915b134900004000482c');
  196. // 详细信息
  197. that.search()
  198. // 查看评论
  199. that.searchDiscuss();
  200. },
  201. methods: {
  202. // 基本信息
  203. searchBasic() {
  204. const that = this;
  205. uni.getStorage({
  206. key: 'basicInfo',
  207. success: (res) => {
  208. let data = res.data
  209. data.account_btn = data.account_btn.sort((a, b) => {
  210. return a.sort - b.sort
  211. });
  212. that.$set(that, `basicInfo`, data);
  213. }
  214. })
  215. },
  216. // 获取当前地址
  217. searchLocal() {
  218. const that = this;
  219. // 获取位置信息,待做
  220. // uni.getLocation({
  221. // type: 'gcj02',
  222. // isHighAccuracy: true,
  223. // geocode: true,
  224. // success: (res) => {
  225. // console.log(res);
  226. // },
  227. // fail: (err) => {
  228. // console.log(err);
  229. // }
  230. // })
  231. },
  232. // 查询用户
  233. searchUser() {
  234. const that = this;
  235. uni.getStorage({
  236. key: 'token',
  237. success: (res) => {
  238. let user = that.$jwt(res.data);
  239. that.$set(that, `user`, user);
  240. // 已有用户信息,查询是否喜欢/收藏
  241. that.searchLikes();
  242. that.searchCollects();
  243. },
  244. fail: (err) => {
  245. console.log('暂无用户信息');
  246. }
  247. })
  248. },
  249. // 查询喜欢
  250. async searchLikes() {
  251. const that = this;
  252. let user = that.user;
  253. let res = await that.$api('likes/selikes', 'POST', {
  254. user_id: user._id,
  255. video_id: that.id
  256. })
  257. if (res.errcode == '0') {
  258. that.$set(that, `likeInfo`, res.data)
  259. }
  260. },
  261. // 查询收藏
  262. async searchCollects() {
  263. const that = this;
  264. let user = that.user;
  265. let res = await that.$api('collects/secollects', 'POST', {
  266. user_id: user._id,
  267. video_id: that.id
  268. })
  269. if (res.errcode == '0') {
  270. that.$set(that, `collectInfo`, res.data)
  271. }
  272. },
  273. // 详细信息
  274. async search() {
  275. const that = this;
  276. let res;
  277. res = await that.$api(`videos/${that.id}`, 'GET', {})
  278. if (res.errcode == '0') {
  279. // 赋值名字
  280. let data = res.data;
  281. uni.setNavigationBarTitle({
  282. title: data.title
  283. });
  284. if (data.video_url && data.video_url.length > 0) data.vUrl = data.video_url[0].url;
  285. if (data.img_url && data.img_url.length > 0) data.iUrl = data.img_url[0].url;
  286. if (data && data.head_actor) data.head_actor_name = await that.searchName(data.head_actor);
  287. if (data && data.actor && data.actor.length > 0) data.actorList = await that
  288. .searchlistName(data
  289. .actor);
  290. that.$set(that, `info`, data);
  291. // 观看次数统计
  292. that.updateNum(data);
  293. // 查询相关视频,相同厂商
  294. that.searchfirm(data.firm_id);
  295. }
  296. },
  297. // 领衔演员姓名
  298. async searchName(e) {
  299. const that = this;
  300. let res;
  301. res = await that.$api(`scenedata/${e}`, 'GET', {});
  302. if (res.errcode == '0') {
  303. if (res.data && res.data.title) return res.data.title
  304. else return '暂无'
  305. }
  306. },
  307. // 演员姓名列表
  308. async searchlistName(e) {
  309. const that = this;
  310. let list = [];
  311. for (let val of e) {
  312. let res = await that.$api(`scenedata/${val}`, 'GET', {})
  313. if (res.errcode = '0') {
  314. list.push({
  315. _id: res.data._id,
  316. title: res.data.title,
  317. img_url: res.data.img_url
  318. })
  319. }
  320. }
  321. return list
  322. },
  323. // 观看次数统计
  324. async updateNum(e) {
  325. const that = this;
  326. let data = {
  327. id: e.id,
  328. view_num: e.view_num + 1
  329. }
  330. let res = await that.$api(`videos/${data.id}`, 'POST', data)
  331. if (res.errcode == '0') {
  332. console.log('观看统计完成,+1');
  333. }
  334. },
  335. // 相同厂商其他视频
  336. async searchfirm(firm_id) {
  337. const that = this;
  338. let res;
  339. res = await that.$api('videos', 'GET', {
  340. firm_id: firm_id,
  341. skip: 0,
  342. limit: 6
  343. })
  344. if (res.errcode == '0') {
  345. that.$set(that, `firmvideoList`, res.data)
  346. }
  347. },
  348. // 选项卡选择
  349. tabChange(e) {
  350. const that = this;
  351. that.$set(that, `active`, e)
  352. },
  353. // 视频查看
  354. videoView(e) {
  355. uni.navigateTo({
  356. url: `/pagesVideo/video/index?id=${e._id}`
  357. })
  358. },
  359. // 更多
  360. toCommon(route, query) {
  361. uni.navigateTo({
  362. url: `/${route}?${query}`
  363. })
  364. },
  365. // 我的喜欢
  366. async toLikes() {
  367. const that = this;
  368. let user = that.user;
  369. let info = that.info;
  370. let res;
  371. if (user && user._id) {
  372. let data = {
  373. user_id: user._id,
  374. user_name: user.nick_name,
  375. video_id: info._id,
  376. title: info.title,
  377. img_url: info.img_url,
  378. view_num: info.view_num,
  379. time_num: info.time_num,
  380. follow_time: that.$moment().format('YYYY-MM-DD HH:mm:ss'),
  381. }
  382. if (that.likeInfo && that.likeInfo.is == true) {
  383. res = await that.$api(`likes/${that.likeInfo.id}`, 'delete', {})
  384. if (res.errcode == '0') {
  385. uni.showToast({
  386. title: '取消喜欢成功!',
  387. icon: 'success'
  388. })
  389. that.searchLikes()
  390. } else {
  391. uni.showToast({
  392. title: res.errmsg,
  393. icon: 'none'
  394. })
  395. }
  396. } else {
  397. res = await that.$api('likes', 'POST', data);
  398. if (res.errcode == '0') {
  399. uni.showToast({
  400. title: '关注喜欢成功!',
  401. icon: 'success'
  402. })
  403. that.searchLikes()
  404. } else {
  405. uni.showToast({
  406. title: res.errmsg,
  407. icon: 'none'
  408. })
  409. }
  410. }
  411. } else {
  412. uni.showToast({
  413. title: '暂无用户信息,无法关注喜欢!',
  414. icon: 'none'
  415. })
  416. }
  417. },
  418. // 我的收藏
  419. async toCollects() {
  420. const that = this;
  421. let user = that.user;
  422. let info = that.info;
  423. let res;
  424. if (user && user._id) {
  425. let data = {
  426. user_id: user._id,
  427. user_name: user.nick_name,
  428. video_id: info._id,
  429. title: info.title,
  430. img_url: info.img_url,
  431. time_num: info.time_num,
  432. follow_time: that.$moment().format('YYYY-MM-DD HH:mm:ss'),
  433. }
  434. if (that.collectInfo && that.collectInfo.is == true) {
  435. res = await that.$api(`collects/${that.collectInfo.id}`, 'delete', {})
  436. if (res.errcode == '0') {
  437. uni.showToast({
  438. title: '取消收藏成功!',
  439. icon: 'success'
  440. })
  441. that.searchCollects()
  442. } else {
  443. uni.showToast({
  444. title: res.errmsg,
  445. icon: 'none'
  446. })
  447. }
  448. } else {
  449. res = await that.$api('collects', 'POST', data);
  450. if (res.errcode == '0') {
  451. uni.showToast({
  452. title: '关注收藏成功!',
  453. icon: 'success'
  454. })
  455. that.searchCollects()
  456. } else {
  457. uni.showToast({
  458. title: res.errmsg,
  459. icon: 'none'
  460. })
  461. }
  462. }
  463. } else {
  464. uni.showToast({
  465. title: '暂无用户信息,无法关注收藏!',
  466. icon: 'none'
  467. })
  468. }
  469. },
  470. // 分享
  471. toShare() {
  472. const that = this;
  473. let system = that.$config.system
  474. let basicInfo = that.basicInfo;
  475. if (system.uniPlatform == 'app') {
  476. uni.share({
  477. provider: "weixin",
  478. scene: "WXSceneSession",
  479. type: 0,
  480. href: that.$config.app_url,
  481. title: system.appName,
  482. summary: "我正在玩自由天空,赶紧和我一起体验吧",
  483. imageUrl: basicInfo.logo_url && basicInfo.logo_url.length > 0 ? basicInfo.logo_url[
  484. 0].url : '',
  485. success: function(res) {
  486. console.log("success:" + JSON.stringify(res));
  487. },
  488. fail: function(err) {
  489. console.log("fail:" + JSON.stringify(err));
  490. uni.showToast({
  491. title: JSON.stringify(err),
  492. icon: 'none'
  493. })
  494. }
  495. });
  496. } else if (system.uniPlatform == 'mp-weixin') {
  497. uni.showToast({
  498. title: '小程序未开通分享功能!',
  499. icon: "none"
  500. })
  501. }
  502. },
  503. // 讨论
  504. async searchDiscuss() {
  505. const that = this;
  506. let info = {
  507. skip: that.dskip,
  508. limit: that.dlimit,
  509. video_id: that.id
  510. }
  511. let res = await that.$api('discuss', 'GET', {
  512. ...info
  513. })
  514. if (res.errcode == '0') {
  515. let list = [...that.discussList, ...res.data]
  516. that.$set(that, `discussList`, list)
  517. that.$set(that, `dtotal`, res.total)
  518. }
  519. },
  520. // 打开评论
  521. diaChat() {
  522. const that = this;
  523. let user = that.user;
  524. if (user && user._id) {
  525. that.$refs.dialog.open()
  526. } else {
  527. uni.showToast({
  528. title: '暂无用户信息,无法发表评论',
  529. icon: 'none'
  530. })
  531. }
  532. },
  533. // 提交
  534. async diaSave(e) {
  535. const that = this;
  536. let user = that.user;
  537. if (user && user._id) {
  538. if (e) {
  539. let data = {
  540. user_id: user._id,
  541. user_name: user.nick_name,
  542. user_img_url: user.logo_url,
  543. video_id: that.info._id,
  544. video_title: that.info.title,
  545. content: e,
  546. create_time: that.$moment().format('YYYY-MM-DD HH:mm:ss'),
  547. }
  548. let res = await that.$api('discuss', 'POST', data)
  549. if (res.errcode == '0') {
  550. uni.showToast({
  551. title: '评论成功!',
  552. icon: 'success'
  553. })
  554. that.dclearPage()
  555. that.searchDiscuss()
  556. that.diaClose()
  557. } else {
  558. uni.showToast({
  559. title: res.errmsg,
  560. icon: 'none'
  561. })
  562. }
  563. } else {
  564. uni.showToast({
  565. title: '暂无评论内容,无法发表评论',
  566. icon: 'none'
  567. })
  568. }
  569. } else {
  570. uni.showToast({
  571. title: '暂无用户信息,无法发表评论',
  572. icon: 'none'
  573. })
  574. }
  575. },
  576. // 关闭
  577. diaClose() {
  578. const that = this;
  579. that.$refs.dialog.close()
  580. },
  581. toPage() {
  582. const that = this;
  583. let list = that.discussList;
  584. let limit = that.dlimit;
  585. if (that.dtotal > list.length) {
  586. uni.showLoading({
  587. title: '加载中',
  588. mask: true
  589. })
  590. let page = that.dpage + 1;
  591. that.$set(that, `dpage`, page)
  592. let skip = page * limit;
  593. that.$set(that, `dskip`, skip)
  594. that.searchDiscuss();
  595. uni.hideLoading();
  596. } else that.$set(that, `is_bottom`, true)
  597. },
  598. toScroll(e) {
  599. const that = this;
  600. let up = that.scrollTop;
  601. that.$set(that, `scrollTop`, e.detail.scrollTop);
  602. let num = Math.sign(up - e.detail.scrollTop);
  603. if (num == 1) that.$set(that, `is_bottom`, false);
  604. },
  605. // 清空评论列表
  606. dclearPage() {
  607. const that = this;
  608. that.$set(that, `discussList`, [])
  609. that.$set(that, `dskip`, 0)
  610. that.$set(that, `dlimit`, 5)
  611. that.$set(that, `dpage`, 0)
  612. },
  613. }
  614. }
  615. </script>
  616. <style lang="scss">
  617. .content {
  618. background-color: var(--rgb111);
  619. overflow: hidden;
  620. .one {
  621. padding: 0 2vw;
  622. margin: 0 0 2vw 0;
  623. video {
  624. width: 100%;
  625. height: 210px;
  626. overflow: hidden;
  627. border: 1px solid var(--rgbf1f);
  628. }
  629. }
  630. .two {
  631. position: relative;
  632. flex-grow: 1;
  633. padding: 0 2vw;
  634. .two_1 {
  635. display: flex;
  636. justify-content: space-around;
  637. margin: 0 0 3vw 0;
  638. .list {
  639. span {
  640. background-color: var(--rgbfff);
  641. color: var(--rgb000);
  642. padding: 1vw 4vw;
  643. font-size: 14px;
  644. border-radius: 5px;
  645. }
  646. }
  647. .active {
  648. span {
  649. background-color: var(--rgbfa4);
  650. color: var(--rgbfff);
  651. }
  652. }
  653. }
  654. .two_2 {
  655. .tab_1 {
  656. display: flex;
  657. flex-direction: column;
  658. width: 96vw;
  659. height: 57vh;
  660. overflow-y: auto;
  661. padding: 1vw 0 0 0;
  662. .btn {
  663. display: flex;
  664. justify-content: space-around;
  665. margin: 0 0 2vw 0;
  666. .btn_1 {
  667. .span {
  668. display: inline-block;
  669. background-color: var(--rgb313);
  670. color: var(--rgbfff);
  671. padding: 1vw 4vw;
  672. border-radius: 5px;
  673. span {
  674. font-size: 14px;
  675. padding: 0 0 0 1vw;
  676. }
  677. }
  678. }
  679. }
  680. .title {
  681. font-size: 15px;
  682. color: var(--rgbfff);
  683. margin: 0 0 2vw 0;
  684. }
  685. .actor {
  686. font-size: 15px;
  687. color: var(--rgbfff);
  688. margin: 0 0 2vw 0;
  689. .actor_1 {
  690. margin: 0 0 2vw 0;
  691. }
  692. .actor_2 {
  693. .actor_scroll_view {
  694. white-space: nowrap;
  695. .actorList {
  696. display: inline-block;
  697. text-align: center;
  698. margin: 0 6px 0 0;
  699. .image {
  700. width: 66px;
  701. height: 66px;
  702. overflow: hidden;
  703. border-radius: 90%;
  704. }
  705. .name {
  706. font-size: 15px;
  707. }
  708. }
  709. }
  710. }
  711. }
  712. .brief {
  713. font-size: 15px;
  714. color: var(--rgbfff);
  715. margin: 0 0 2vw 0;
  716. }
  717. .other {
  718. .other_1 {
  719. font-size: 15px;
  720. color: var(--rgbfff);
  721. margin: 0 0 2vw 0;
  722. }
  723. .other_2 {
  724. display: flex;
  725. flex-wrap: wrap;
  726. .firmvideoList {
  727. width: 48%;
  728. margin: 0 10px 5px 0;
  729. .image {
  730. width: 100%;
  731. height: 100px;
  732. overflow: hidden;
  733. border-radius: 5px;
  734. box-shadow: 0 0 5px var(--rgbf1f);
  735. margin: 0 0 5px 0;
  736. }
  737. .name {
  738. font-size: 14px;
  739. color: var(--rgbfff);
  740. margin: 0 0 5px 0;
  741. }
  742. .other {
  743. display: flex;
  744. color: var(--rgbfff);
  745. font-size: 12px;
  746. justify-content: space-between;
  747. }
  748. }
  749. .firmvideoList:nth-child(2n) {
  750. margin: 0 0 5px 0;
  751. }
  752. }
  753. }
  754. }
  755. .tab_2 {
  756. display: flex;
  757. flex-direction: column;
  758. width: 96vw;
  759. height: 57vh;
  760. overflow-y: auto;
  761. padding: 1vw 0 0 0;
  762. position: relative;
  763. .tab_2_1 {
  764. display: flex;
  765. flex-direction: column;
  766. .discussList {
  767. margin: 0 0 2vw 0;
  768. background-color: var(--rgb000);
  769. padding: 2vw;
  770. border-radius: 5px;
  771. .dis_1 {
  772. display: flex;
  773. margin: 0 0 1vw 0;
  774. .l {
  775. width: 8vw;
  776. height: 8vw;
  777. margin: 0 2vw 0 0;
  778. .image {
  779. width: 100%;
  780. height: 100%;
  781. border-radius: 90%;
  782. }
  783. }
  784. .c {
  785. flex-grow: 1;
  786. font-size: 14px;
  787. color: var(--rgbfff);
  788. padding: 1vw 0;
  789. }
  790. .r {
  791. font-size: 12px;
  792. color: var(--rgbf1f);
  793. padding: 2vw 0 0 0;
  794. }
  795. }
  796. .dis_2 {
  797. font-size: 15px;
  798. color: var(--rgbfff);
  799. }
  800. }
  801. }
  802. .chatBtn {
  803. position: fixed;
  804. width: 100vw;
  805. bottom: 5vw;
  806. right: 4vw;
  807. text-align: right;
  808. button {
  809. width: 50px;
  810. height: 50px;
  811. line-height: 50px;
  812. padding: 0;
  813. border-radius: 90%;
  814. font-size: 14px;
  815. font-weight: bold;
  816. background-color: var(--rgbfa4);
  817. color: var(--rgbfff);
  818. }
  819. }
  820. }
  821. }
  822. }
  823. }
  824. .scroll-view {
  825. position: absolute;
  826. top: 0;
  827. left: 0;
  828. right: 0;
  829. bottom: 0;
  830. .list-scroll-view {
  831. display: flex;
  832. flex-direction: column;
  833. }
  834. }
  835. .is_bottom {
  836. text-align: center;
  837. text {
  838. padding: 2vw 0;
  839. display: inline-block;
  840. color: #858585;
  841. font-size: 14px;
  842. }
  843. }
  844. </style>