index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  1. <template>
  2. <view style="position: relative;">
  3. <image class="page_bg" :style="{transform: 'scale('+scale+')'}" :src="info.backGround||defaultBg" mode="aspectFill"></image>
  4. <view class="content-header">
  5. <image class="backicon" src="/static/image/liveStream/back_white_icon.png" mode="aspectFill" @click="$navBack()"></image>
  6. <view class="editinfo" v-if="info.userId&&info.userId == userId" @click="$navTo('/pages/expert/info')">编辑资料</view>
  7. </view>
  8. <u-sticky offsetTop="0" customNavHeight="0" zIndex="999">
  9. <view class="content-header-sticky" :style="{height:`calc(${statusBarHeight}px + 44px)`,opacity:opacity,display:showNav? 'flex':'none'}" @click.stop="">
  10. <image src="/static/image/black_back.png" mode="aspectFill" @click="$navBack()"></image>
  11. <text class="textOne" style="width: 50%;text-align: center;">{{info.nickName}}</text>
  12. </view>
  13. </u-sticky>
  14. <view class="content-body">
  15. <mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption" :up="upOption">
  16. <view class="user">
  17. <u-avatar :src="info.avatar||'/static/logo.png'" size="88"></u-avatar>
  18. <view class="user-left">
  19. <view class="textOne">{{info.nickName}}</view>
  20. <view class="levelbox">
  21. <image class="levelbox-icon" src="/static/image/my/intelligent_icon.png" mode="aspectFill"></image>
  22. <text>LV.{{info.level}}</text>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="content-box">
  27. <view class="rowbox es-pr-24">
  28. <view class="x-f flex">
  29. <view class="rowbox-item">
  30. <view @click="handleNavTo('./friendsList?current=1&userId='+userIdNow+'&talentId='+info.talentId)">{{formatNum(fansCount)}}</view>
  31. <text @click="handleNavTo('./friendsList?current=1&userId='+userIdNow+'&talentId='+info.talentId)">粉丝</text>
  32. </view>
  33. <view class="rowbox-item">
  34. <view @click="handleNavTo('./friendsList?current=0&userId='+userIdNow+'&talentId='+info.talentId)">{{formatNum(idolCount)}}</view>
  35. <text @click="handleNavTo('./friendsList?current=0&userId='+userIdNow+'&talentId='+info.talentId)">关注</text>
  36. </view>
  37. <view class="rowbox-item">
  38. <view @click="handleNavTo('/pages/user/myFavoriteVideo?tabIndex=1')">{{formatNum(favoriteNum)}}</view>
  39. <text @click="handleNavTo('/pages/user/myFavoriteVideo?tabIndex=1')">收藏</text>
  40. </view>
  41. <view class="rowbox-item">
  42. <view>{{formatNum(likeNum)}}</view>
  43. <text>获赞</text>
  44. </view>
  45. </view>
  46. <view class="es-ml-24">
  47. <image class="es-icon-80 es-mr-24" src="/static/images/other/user/dy.png" mode="aspectFill" @click="handleCopy('抖音链接',info.tiktokLink)"></image>
  48. <image class="es-icon-80" src="/static/images/other/user/ks.png" mode="aspectFill" @click="handleCopy('快手链接',info.kwaiLink)"></image>
  49. </view>
  50. </view>
  51. <view class="es-pl-24 es-pr-24 es-mt-32 es-fs-26">{{info.title}}</view>
  52. <view class="taglist es-pl-24 es-mt-26 x-f es-fs-22">
  53. <view class="taglist-view x-c" style="min-width: 60px;">
  54. <u-icon v-show="info.sex==1" class="sexicon" name="woman" color="#FF8394" size="32rpx"></u-icon>
  55. <u-icon v-show="info.sex==0" class="sexicon" name="man" color="#2979ff" size="32rpx"></u-icon>
  56. <text class="taglist-item" v-show="info.sex!=1&&info.sex!=0" style="margin-right: 6rpx;">未知</text>
  57. <text class="taglist-item" >{{info.birthDay&&$getAge(info.birthDay)|| '--'}}岁</text>
  58. <!-- 0男,1女,2未知 -->
  59. </view>
  60. <view class="taglist-view x-c" style="max-width: 320rpx;" v-if="info.address">
  61. <text class="one-t" style="height: 42rpx;line-height: 42rpx;">{{info.province}}</text>
  62. </view>
  63. <view class="taglist-view" v-for="(tag,index) in tags" :key="index">
  64. <text class="one-t" style="height: 42rpx;line-height: 42rpx;">{{tag}}</text>
  65. </view>
  66. </view>
  67. <view class="x-f es-mt-16 es-pr-24 es-pl-24" v-if="info.userId&&info.userId != userId">
  68. <view class="item_btn x-c es-mr-24" @click="handleFollow">
  69. <template v-if="isFollow==1">
  70. 取消关注
  71. </template>
  72. <template v-else>
  73. <u-icon name="plus" color="#fff" size="16" class="es-pr-14"></u-icon>关注
  74. </template>
  75. </view>
  76. <!-- <view class="item_btn x-c">私信</view> -->
  77. </view>
  78. <!-- <view class="x-f es-mt-24 es-pl-24 es-pr-24">
  79. <view class="user-item es-pt-14 es-pb-14 es-pl-22 es-pr-22">
  80. <view class="x-f">
  81. <image class="icon" src="/static/image/liveStream/recommend_icon.png" mode="aspectFill"></image>
  82. <view class="es-ml-17 es-fs-26 es-fw-500">达人推荐</view>
  83. </view>
  84. <view class="es-fs-22 es-mt-4 es-c-99">超多性价比好物</view>
  85. </view>
  86. <view class="user-item es-pt-14 es-pb-14 es-pl-22 es-pr-22">
  87. <view class="x-f">
  88. <image class="icon" src="/static/image/liveStream/my_wallet_icon.png" mode="aspectFill"></image>
  89. <view class="es-ml-17 es-fs-26 es-fw-500">我的钱包</view>
  90. </view>
  91. <view class="es-fs-22 es-mt-4 es-c-99">查看可提现佣金</view>
  92. </view>
  93. <view class="user-item es-pt-14 es-pb-14 es-pl-22 es-pr-22">
  94. <view class="x-f">
  95. <image class="icon" src="/static/image/liveStream/browsing_history_icon.png" mode="aspectFill"></image>
  96. <view class="es-ml-17 es-fs-26 es-fw-500">浏览记录</view>
  97. </view>
  98. <view class="es-fs-22 es-mt-4 es-c-99">我的访问记录</view>
  99. </view>
  100. </view> -->
  101. <u-sticky :offsetTop="0" :customNavHeight="customNavHeight" zIndex="999">
  102. <view class="tab-bar x-c es-mt-8">
  103. <view :class="current == 0 ? 'tab-bar-item active':'tab-bar-item'">主页</view>
  104. <!-- <view :class="current == 1 ? 'tab-bar-item active':'tab-bar-item'">课程视频</view> -->
  105. </view>
  106. </u-sticky>
  107. <view class="es-pl-24 es-pr-24 es-pt-20 es-pb-20">
  108. <!-- <view class="x-bc es-pt-20 es-pb-32">
  109. <view class="x-f es-fs-32 es-fw-500">短视频<text class="x-f es-fs-28 es-ml-22">(6)</text></view>
  110. <view class="x-f es-fs-24 es-c-99">
  111. 查看全部
  112. <image class="es-w-48 es-h-48" src="/static/image/hall/my_right_arrow_right_icon.png" mode="aspectFill"></image>
  113. </view>
  114. </view> -->
  115. <!-- <mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption" :up="upOption"> -->
  116. <view class="x-f video-list">
  117. <view class="video-item es-br-16" v-for="(item,i) in dataList" :key="i"
  118. @click="goVideo(i)">
  119. <view class="mask" v-if="info.userId&&info.userId == userId">
  120. <view v-if="item.isAudit==-1||item.isAudit==0" :class="item.isAudit==-1?'mask-status mask-status2':'mask-status mask-status1'">{{item.isAudit==-1 ? '已驳回':'审核中'}}</view>
  121. <view class="mask-txt textTwo" v-if="item.isAudit==-1">{{item.failReason}}</view>
  122. <view class="mask-event" @click.stop="handleClick(item)">操作</view>
  123. </view>
  124. <image class="video-item-img" :src="item.cover" mode="aspectFill"></image>
  125. <view class="textOne es-pl-20 es-pr-20 es-pt-22 es-pb-22">{{item.title}}</view>
  126. </view>
  127. </view>
  128. <!-- </mescroll-body> -->
  129. </view>
  130. </view>
  131. </mescroll-body>
  132. </view>
  133. <view class="footer x-c" v-if="info.userId&&info.userId == userId">
  134. <view class="x-c footer-fb" @click="$navTo('/pages/expert/releaseVideo')"><image src="/static/image/liveStream/publish_video_icon.png"></image>发布视频</view>
  135. <!-- <view class="x-c footer-zb"><image src="/static/image/liveStream/live_broadcast_icon2.png"></image>开直播</view> -->
  136. </view>
  137. </view>
  138. </template>
  139. <script>
  140. import { getTalentByToken,getVideoList,doFollow,checkFollow,getTalentByUserId,deleteVideo,updateVideoStatus } from "@/api/expert.js"
  141. import MescrollMixin from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-mixins.js";
  142. export default {
  143. // components: {
  144. // videoItem
  145. // },
  146. mixins: [MescrollMixin],
  147. data(){
  148. return {
  149. userId: '',
  150. statusBarHeight:uni.getSystemInfoSync().statusBarHeight,
  151. defaultBg: "https://zkzh-2025.oss-cn-beijing.aliyuncs.com/appimgs/e5fb40b2b6e640b48e5f055c786dd289.png",
  152. avatar:'',
  153. current: 0,
  154. customNavHeight: 22,
  155. showNav: false,
  156. opacity: 1,
  157. info: {},
  158. fansCount: 0,
  159. favoriteNum: 0,
  160. idolCount: 0,
  161. likeNum: 0,
  162. mescroll:null,
  163. downOption: { //下拉刷新
  164. use:true,
  165. auto: false // 不自动加载 (mixin已处理第一个tab触发downCallback)
  166. },
  167. upOption: {
  168. onScroll:false,
  169. use: true, // 是否启用上拉加载; 默认true
  170. page: {
  171. pae: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
  172. size: 10 // 每页数据的数量,默认10
  173. },
  174. noMoreSize: 10, // 配置列表的总数量要大于等于5条才显示'-- END --'的提示
  175. textNoMore:"已经到底了",
  176. empty: {
  177. icon:'https://zkzh-2025.oss-cn-beijing.aliyuncs.com/appimgs/cf4a86b913a04341bb44e34bb4d37aa2.png',
  178. tip: '暂无数据'
  179. }
  180. },
  181. dataList: [],
  182. user: {},
  183. isFollow: 0, // /是否已关注1:已关注,0:未关注
  184. talentUserId: '',
  185. tags:[],
  186. userIdNow: '',
  187. scale: 1,
  188. curPageNum: 0
  189. }
  190. },
  191. computed:{
  192. formatNum(){
  193. return (num)=>{
  194. if(num>10000){
  195. return (num/10000.0).toFixed(1)+"万";
  196. }
  197. return num;
  198. }
  199. }
  200. },
  201. onLoad(option) {
  202. this.customNavHeight = this.statusBarHeight/2 + 44;
  203. this.user=this.$getUserInfo()
  204. this.userId = this.user.userId || ''
  205. this.talentUserId = option.userId || ''
  206. this.userIdNow= this.talentUserId || this.userId
  207. uni.$on('resetData',()=>{
  208. this.mescroll&&this.mescroll.resetUpScroll()
  209. })
  210. },
  211. onUnload() {
  212. uni.$off('resetData')
  213. },
  214. onShow() {
  215. if(this.talentUserId) {
  216. this.getTalentInfo()
  217. } else {
  218. this.getInfo()
  219. }
  220. },
  221. methods: {
  222. handleCopy(name,id) {
  223. if(!id) {
  224. uni.showToast({
  225. title: '暂无'+name,
  226. icon: 'none'
  227. });
  228. return
  229. }
  230. uni.setClipboardData({
  231. data: id,
  232. success: () => {
  233. uni.showToast({
  234. title: '复制'+name+'成功:'+id,
  235. icon: 'none'
  236. });
  237. },
  238. fail: (e) => {
  239. uni.showToast({
  240. title: '复制失败',
  241. icon: 'none'
  242. });
  243. }
  244. });
  245. },
  246. handleClick(item) {
  247. // 5下架,1上架
  248. // 已审核完的视频可操作:删除、上/下架
  249. // 未审核+驳回可操作:删除
  250. // isAudit -1的就是驳回的,1就是通过的,0 审核中
  251. let itemList = ['删除']
  252. if(item.isAudit == 1) {
  253. itemList = item.status == 5? ['删除','上架'] : item.status == 1? ['删除','下架']:['删除']
  254. }
  255. uni.showActionSheet({
  256. itemList: itemList,
  257. success: (res)=>{
  258. console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
  259. if(res.tapIndex==0) {
  260. uni.showModal({
  261. title: '提示',
  262. content: '删除的视频不可恢复,确定删除吗?',
  263. success: (res)=> {
  264. if (res.confirm) {
  265. this.handlesDel(item)
  266. } else if (res.cancel) {
  267. console.log('用户点击取消');
  268. }
  269. }
  270. });
  271. } else if(res.tapIndex==1) {
  272. this.handlesUpdate(item)
  273. }
  274. }
  275. })
  276. },
  277. handlesDel(item) {
  278. deleteVideo({videoId:item.id}).then(res=>{
  279. if(res.code == 200) {
  280. uni.showToast({
  281. title: '删除成功',
  282. icon: 'none'
  283. });
  284. this.mescroll.resetUpScroll()
  285. } else {
  286. uni.showToast({
  287. title: res.msg
  288. })
  289. }
  290. })
  291. },
  292. handlesUpdate(item) {
  293. const param = {
  294. videoId:item.id,
  295. status: item.status == 5 ? 1:item.status == 1 ? 5:1
  296. }
  297. updateVideoStatus(param).then(res=>{
  298. if(res.code == 200) {
  299. uni.showToast({
  300. title: '操作成功',
  301. icon: 'none'
  302. });
  303. this.mescroll.resetUpScroll()
  304. } else {
  305. uni.showToast({
  306. title: res.msg
  307. })
  308. }
  309. })
  310. },
  311. getInfo() {
  312. getTalentByToken().then(res=>{
  313. if(res.code == 200) {
  314. this.info = res.data.fsUserTalent
  315. this.fansCount = res.data.fansCount
  316. this.favoriteNum = res.data.favoriteNum
  317. this.idolCount = res.data.idolCount
  318. this.likeNum = res.data.likeNum
  319. }
  320. })
  321. },
  322. getTalentInfo() {
  323. getTalentByUserId({userId: this.talentUserId}).then(res=>{
  324. if(res.code == 200) {
  325. this.info = res.data.fsUserTalent
  326. this.fansCount = res.data.fansCount
  327. this.favoriteNum = res.data.favoriteNum
  328. this.idolCount = res.data.idolCount
  329. this.likeNum = res.data.likeNum
  330. this.checkFollow()
  331. }
  332. })
  333. },
  334. handleFollow() {
  335. doFollow({talentId:this.info.talentId}).then(res=>{
  336. if(res.code==200) {
  337. if(this.isFollow == 1) {
  338. this.fansCount--
  339. } else {
  340. this.fansCount++
  341. }
  342. this.isFollow = this.isFollow==1?0:1
  343. }
  344. uni.showToast({
  345. title: res.msg
  346. })
  347. })
  348. },
  349. checkFollow() {
  350. checkFollow({talentId:this.info.talentId}).then(res=>{
  351. if(res.code == 200) {
  352. this.isFollow = res.isFollow || 0
  353. }
  354. })
  355. },
  356. mescrollInit(mescroll) {
  357. this.mescroll = mescroll;
  358. },
  359. /*下拉刷新的回调 */
  360. downCallback(mescroll) {
  361. mescroll.resetUpScroll()
  362. if(this.talentUserId) {
  363. this.getTalentInfo()
  364. } else {
  365. this.getInfo()
  366. }
  367. },
  368. upCallback(page) {
  369. let userinfo = uni.getStorageSync('userInfo')
  370. userinfo = userinfo && JSON.parse(userinfo)
  371. //联网加载数据
  372. var that = this;
  373. var data = {
  374. userId:this.talentUserId||userinfo.userId || 0,
  375. pageNum: page.num,
  376. pageSize: page.size
  377. };
  378. this.pageNum = page.num
  379. getVideoList(data).then(res => {
  380. if(res.code==200){
  381. //设置列表数据
  382. if (page.num == 1) {
  383. that.dataList = res.data.list;
  384. } else {
  385. that.dataList = that.dataList.concat(res.data.list);
  386. }
  387. that.mescroll.endBySize(res.data.list.length, res.data.total);
  388. }else{
  389. uni.showToast({
  390. icon:'none',
  391. title: "请求失败",
  392. });
  393. that.dataList = null;
  394. that.mescroll.endErr();
  395. }
  396. });
  397. },
  398. goVideo(i) {
  399. this.curPageNum = Math.floor(i / 10) + 1
  400. this.$navTo('/pages/expert/video?curFlagType=1&talentUserId='+this.userIdNow+'&curPageNum='+this.curPageNum+'&k='+i)
  401. },
  402. handleNavTo(url) {
  403. if(this.info.userId&&this.info.userId == this.userId) {
  404. this.$navTo(url)
  405. }
  406. }
  407. },
  408. onPageScroll(e) {
  409. if (e.scrollTop <= 136) {
  410. this.showNav = false
  411. this.opacity = 0
  412. } else if (e.scrollTop > 136) {
  413. this.opacity = e.scrollTop / 216 * 1 > 1 ? 1 :e.scrollTop / 216 * 1
  414. this.showNav = true
  415. }
  416. }
  417. }
  418. </script>
  419. <style>
  420. page {
  421. background-color: #fff;
  422. }
  423. </style>
  424. <style lang="scss" scoped>
  425. @mixin u-flex($flexD, $alignI, $justifyC) {
  426. display: flex;
  427. flex-direction: $flexD;
  428. align-items: $alignI;
  429. justify-content: $justifyC;
  430. }
  431. .mask {
  432. position: absolute;
  433. top: 0;
  434. left: 0;
  435. z-index: 9;
  436. width: 100%;
  437. height: 100%;
  438. overflow: hidden;
  439. background-color: rgba(0,0,0,0.3);
  440. color: #fff;
  441. @include u-flex(column, center, center);
  442. &-status {
  443. padding: 5rpx 14rpx;
  444. border-radius: 8rpx;
  445. }
  446. &-status1 {
  447. background-color: #F0964C;
  448. }
  449. &-status2 {
  450. background-color: red;
  451. }
  452. &-txt {
  453. margin-top: 10rpx;
  454. width: 90%;
  455. text-align: center;
  456. }
  457. &-event {
  458. position: absolute;
  459. bottom: 0;
  460. right: 0;
  461. padding: 5rpx 14rpx;
  462. background-color: #7CD8A8;
  463. border-radius: 16rpx 0 16rpx 0;
  464. }
  465. }
  466. .page_bg {
  467. width: 100%;
  468. height: 400rpx;
  469. position: absolute;
  470. top: 0;
  471. left: 0;
  472. }
  473. .content-header {
  474. position: relative;
  475. width: 100%;
  476. height: calc(var(--status-bar-height) + 44px);
  477. padding: 12rpx 24rpx;
  478. padding-top: calc(var(--status-bar-height) + 12rpx);
  479. @include u-flex(row-reverse, center, space-between);
  480. &-sticky {
  481. background-color: #fff;
  482. @include u-flex(row, center, center);
  483. position: absolute;
  484. width: 100%;
  485. top: 0;
  486. left: 0;
  487. padding-top: calc(var(--status-bar-height));
  488. image {
  489. width: 64rpx;
  490. height: 64rpx;
  491. position: absolute;
  492. top: calc(var(--status-bar-height));
  493. left: 24rpx;
  494. }
  495. }
  496. }
  497. .backicon {
  498. width: 64rpx;
  499. height: 64rpx;
  500. position: fixed;
  501. left: 24rpx;
  502. top: calc(var(--status-bar-height));
  503. z-index: 998;
  504. }
  505. .editinfo {
  506. background: rgba(0,0,0,0.5);
  507. border-radius: 32rpx 32rpx 32rpx 32rpx;
  508. padding: 15rpx 28rpx;
  509. font-family: PingFang SC;
  510. font-weight: 400;
  511. font-size: 24rpx;
  512. color: #FFFFFF;
  513. }
  514. .content-body {
  515. font-family: PingFang SC;
  516. font-weight: 400;
  517. position: relative;
  518. color: #222222;
  519. .user {
  520. @include u-flex(row, flex-start, flex-start);
  521. padding: 40rpx 24rpx;
  522. &-left {
  523. overflow: hidden;
  524. padding-top: 24rpx;
  525. margin-left: 32rpx;
  526. font-weight: 500;
  527. font-size: 44rpx;
  528. color: #FFFFFF;
  529. }
  530. .levelbox {
  531. display: inline-flex;
  532. padding: 4rpx 12rpx;
  533. margin-top: 14rpx;
  534. background: linear-gradient( 90deg, #F5CE3C 0%, #E39414 100%);
  535. border-radius: 20rpx 20rpx 20rpx 20rpx;
  536. font-weight: 500;
  537. font-size: 22rpx;
  538. color: #FEF5EA;
  539. &-icon {
  540. width: 32rpx;
  541. height: 32rpx;
  542. margin-right: 8rpx;
  543. }
  544. }
  545. }
  546. .content-box {
  547. background: #FFFFFF;
  548. border-radius: 32rpx 32rpx 0rpx 0rpx;
  549. padding: 24rpx 0;
  550. }
  551. .rowbox {
  552. text-align: center;
  553. @include u-flex(row, center, space-between);
  554. &-item {
  555. flex: 1;
  556. font-weight: 400;
  557. font-size: 26rpx;
  558. color: #757575;
  559. view {
  560. margin-bottom: 4rpx;
  561. font-family: DIN, DIN;
  562. font-weight: bold;
  563. font-size: 36rpx;
  564. color: #222222;
  565. }
  566. }
  567. }
  568. .taglist {
  569. color: #757575;
  570. flex-wrap: wrap;
  571. &-view {
  572. height: 42rpx;
  573. max-width: 220rpx;
  574. overflow: hidden;
  575. padding: 0 16rpx;
  576. background: #F3F3F4;
  577. border-radius: 24rpx 24rpx 24rpx 24rpx;
  578. box-sizing: border-box;
  579. margin-right: 16rpx;
  580. margin-bottom: 16rpx;
  581. }
  582. &-item {
  583. line-height: 100%;
  584. }
  585. .sexicon {
  586. margin: 0;
  587. padding: 0;
  588. }
  589. }
  590. .user-item {
  591. min-width: 220rpx;
  592. flex-shrink: 0;
  593. border-radius: 16rpx 16rpx 16rpx 16rpx;
  594. border: 2rpx solid #ECECEC;
  595. box-sizing: border-box;
  596. margin-right: 22rpx;
  597. .icon {
  598. height: 32rpx;
  599. width: 32rpx;
  600. }
  601. }
  602. .tab-bar {
  603. background-color: #fff;
  604. border-bottom: 2rpx solid #ECECEC;
  605. font-weight: 400;
  606. font-size: 32rpx;
  607. color: #757575;
  608. &-item {
  609. padding: 32rpx 40rpx;
  610. }
  611. }
  612. .active {
  613. font-weight: 600;
  614. font-size: 32rpx;
  615. color: #222222;
  616. position: relative;
  617. &::after {
  618. position: absolute;
  619. bottom: 0;
  620. left: 50%;
  621. transform: translateX(-50%);
  622. content: "";
  623. width: 70rpx;
  624. height: 6rpx;
  625. background: #222222;
  626. border-radius: 3rpx 3rpx 3rpx 3rpx;
  627. }
  628. }
  629. .video-list {
  630. flex-wrap: wrap;
  631. margin-right: -18rpx;
  632. margin-bottom: 155rpx;
  633. }
  634. .video-item {
  635. width: 342rpx;
  636. margin-right: 18rpx;
  637. margin-bottom: 18rpx;
  638. background: #F5F7FA;
  639. overflow: hidden;
  640. position: relative;
  641. &-img {
  642. width: 100%;
  643. height: 280rpx;
  644. border-radius: 16rpx 16rpx 0rpx 0rpx;
  645. }
  646. }
  647. }
  648. .item_btn {
  649. flex: 1;
  650. height: 70rpx;
  651. background: #2583EB;
  652. border-radius: 16rpx;
  653. font-family: PingFang SC, PingFang SC;
  654. font-weight: 500;
  655. font-size: 30rpx;
  656. color: #FFFFFF;
  657. }
  658. .footer {
  659. position: fixed;
  660. bottom: 0;
  661. left: 0;
  662. z-index: 999;
  663. width: 100%;
  664. background-color: #fff;
  665. padding: 20rpx 24rpx;
  666. padding-bottom: calc(var(--window-bottom) + 20rpx);
  667. font-family: PingFang SC, PingFang SC;
  668. font-weight: 600;
  669. font-size: 34rpx;
  670. color: #FFFFFF;
  671. &-fb {
  672. flex: 1;
  673. height: 112rpx;
  674. background: linear-gradient( 90deg, #2583EB 0%, #F0964C 100%);
  675. border-radius: 16rpx 16rpx 16rpx 16rpx;
  676. }
  677. &-zb {
  678. flex: 1;
  679. margin-left: 18rpx;
  680. height: 112rpx;
  681. background: linear-gradient( 90deg, #4DC68D 0%, #7CD8A8 100%);
  682. border-radius: 16rpx 16rpx 16rpx 16rpx;
  683. }
  684. image {
  685. height: 48rpx;
  686. width: 48rpx;
  687. margin-right: 16rpx;
  688. }
  689. }
  690. </style>