onlineLecture.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878
  1. <template>
  2. <view class="container">
  3. <!-- 搜索栏 -->
  4. <view class="search-bar">
  5. <view class="search-input-wrapper">
  6. <!-- <text class="search-icon"></text> -->
  7. <u-icon name="search" size="24" color="#C8C9CC"></u-icon>
  8. <input
  9. class="search-input"
  10. v-model="keyword"
  11. placeholder="请输入关键字"
  12. @confirm="doSearch"
  13. placeholder-class="placeholder"
  14. />
  15. </view>
  16. </view>
  17. <!-- 标签栏 -->
  18. <view class="tabs-bar">
  19. <view class="tab-item"
  20. :class="{ active: currentTab == 0 }"
  21. @click="switchTab(0)">
  22. 未完结
  23. </view>
  24. <view class="tab-item"
  25. :class="{ active: currentTab ==1}"
  26. @click="switchTab(1)">
  27. 已完结
  28. </view>
  29. </view>
  30. <!-- 讲座列表 -->
  31. <scroll-view class="content" scroll-y>
  32. <view class="lecture-card" v-for="(item, index) in lectureList" :key="index">
  33. <view class="card-thumbnail">
  34. <image class="thumbnail-img" :src="item.coverUrl" mode="aspectFill"></image>
  35. <!-- 直播状态角标: 0-待开播 1-直播中 2-已结束(可回放) 3-已下架 -->
  36. <view class="thumbnail-status" v-if="item.status === 0">
  37. <image mode="aspectFill" src="@/static/image/icon_tobestart.png"></image>
  38. <view class="status">待开播</view>
  39. </view>
  40. <view class="thumbnail-status" v-else-if="item.status === 1">
  41. <image mode="aspectFill" src="@/static/image/icon_goon.png"></image>
  42. <view class="status">直播中</view>
  43. </view>
  44. <view class="thumbnail-status status-end" v-else-if="item.status === 2">
  45. <view class="status">已结束</view>
  46. </view>
  47. <view class="thumbnail-status status-off" v-else-if="item.status === 3">
  48. <view class="status">已下架</view>
  49. </view>
  50. <view class="thumbnail-date" v-if="item.status === 0 && item.scheduledEndTime">
  51. <image mode="aspectFill" src="@/static/image/icon_tobestart.png"></image>
  52. <text class="date-text">{{ formatScheduleTime(item.scheduledEndTime) }}</text>
  53. </view>
  54. </view>
  55. <view class="card-content">
  56. <view class="card-title">{{ item.title }}</view>
  57. <!-- <view class="card-tags">
  58. <view class="tag-item">{{ item.category }}</view>
  59. <view class="tag-item">{{ item.type }}</view>
  60. </view> -->
  61. <view class="card-points">{{ item.taskLiveDto.taskIntegral||0 }} 积分</view>
  62. <view class="card-views" v-if="currentTab == 1">
  63. <text class="eye-icon"></text>
  64. <text>{{ item.viewCount }}</text>
  65. </view>
  66. <view class="card-action">
  67. <view class="action-btn"
  68. v-if="item.status === 0"
  69. @click.stop="openChannelPicker(item)">
  70. 去开播
  71. </view>
  72. <view class="action-btn"
  73. v-else-if="item.status === 1"
  74. @click.stop="openChannelPicker(item)">
  75. 继续开播
  76. </view>
  77. <view class="action-btn action-btn-replay"
  78. v-else-if="item.status === 2"
  79. @click.stop="openChannelPicker(item)">
  80. 看回放
  81. </view>
  82. <view class="action-btn action-btn-disabled" v-else-if="item.status === 3">
  83. 已下架
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="no-more">没有更多了~</view>
  89. </scroll-view>
  90. <!-- 选择开播渠道弹窗 -->
  91. <view class="channel-picker-popup" v-if="showChannelPicker" @click="showChannelPicker = false">
  92. <view class="channel-picker-content" @click.stop>
  93. <view class="picker-header">
  94. <view class="picker-title">选择开播渠道</view>
  95. <view class="picker-close" @click="showChannelPicker = false">
  96. <image class="w32 h32" src="@/static/image/icon_cross.png" mode=""></image>
  97. </view>
  98. </view>
  99. <!-- 电脑浏览器开播 -->
  100. <view class="channel-option">
  101. <view class="option-content">
  102. <view class="x-f mb20">
  103. <image class="w32 h32" mode="aspectFill" src="@/static/image/icon_live_pc.png"></image>
  104. <view class="option-title">电脑浏览器开播</view>
  105. </view>
  106. <view class="option-url-wrapper">
  107. <text class="option-url">{{info.liveUrl}}</text>
  108. <view class="copy-btn" @click="copyUrl(info.liveUrl)">复制链接</view>
  109. </view>
  110. <view class="option-tips">复制至谷歌浏览器,登录账号即可开播</view>
  111. </view>
  112. </view>
  113. <!-- 微信小程序开播 -->
  114. <!-- <view class="channel-option">
  115. <view class="option-content">
  116. <view class="x-f mb20">
  117. <image class="w32 h32" mode="aspectFill" src="@/static/image/icon_live_phone.png"></image>
  118. <view class="option-title">微信小程序开播</view>
  119. </view>
  120. <view class="option-action">
  121. <view class="enter-btn" @click="enterMiniProgram">立即进入</view>
  122. </view>
  123. </view>
  124. </view> -->
  125. </view>
  126. </view>
  127. </view>
  128. </template>
  129. <script>
  130. import { getOnlineLectureList, getBroadcastUrl, enterMiniProgram ,getLectureDetail} from '@/api/onlineLecture'
  131. // 直播状态 status: 0-待开播 1-直播中 2-已结束(可回放) 3-已下架
  132. export default {
  133. data() {
  134. return {
  135. statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px',
  136. currentTab:0,
  137. showFilter: false,
  138. showChannelPicker: false,
  139. dateRange: {
  140. startDate: '',
  141. endDate: ''
  142. },
  143. tempDateRange: {
  144. startDate: '',
  145. endDate: ''
  146. },
  147. keyword:'',
  148. selectedTaskType: 'article', // 默认选中科普文章
  149. tempSelectedTaskType: 'article',
  150. // taskTypeOptions: [
  151. // { label: '科普文章', value: 'article' },
  152. // { label: '科普短视频', value: 'shortVideo' },
  153. // { label: '科普长视频', value: 'longVideo' }
  154. // ],
  155. tabs: [
  156. // { label: '全部', value:''},
  157. { label: '未完成', value: 0},
  158. // { label: '待审核', value: 0},
  159. { label: '已完成', value: 1},
  160. // { label: '已驳回', value: 2}
  161. ],
  162. lectureList: [], // 讲座列表,需在 data 中声明才能响应式更新视图
  163. taskList: [],
  164. pageNum: 1,
  165. pageSize: 10,
  166. hasMore: true,
  167. loading: false,
  168. broadcastUrl:'',
  169. info:{}
  170. }
  171. },
  172. watch: {
  173. showFilter(newVal) {
  174. if (newVal) {
  175. // 打开弹窗时,同步临时日期范围和任务类型为当前值
  176. this.tempDateRange = {
  177. startDate: this.dateRange.startDate,
  178. endDate: this.dateRange.endDate
  179. }
  180. this.tempSelectedTaskType = this.selectedTaskType
  181. }
  182. }
  183. },
  184. onLoad() {
  185. const doctorId=uni.getStorageSync('userInfo').doctorId
  186. if(doctorId){
  187. this.broadcastUrl='http://132.232.83.221:8083/#/live-pusher?doctorId='+doctorId
  188. }
  189. },
  190. onShow() {
  191. this.loadData()
  192. },
  193. onReachBottom() {
  194. this.loadMore()
  195. },
  196. methods: {
  197. // 将 scheduledEndTime 格式化为 03-13 16:30
  198. formatScheduleTime(val) {
  199. if (!val) return ''
  200. const d = new Date(val.replace(/-/g, '/'))
  201. if (isNaN(d.getTime())) return val
  202. const m = String(d.getMonth() + 1).padStart(2, '0')
  203. const day = String(d.getDate()).padStart(2, '0')
  204. const h = String(d.getHours()).padStart(2, '0')
  205. const min = String(d.getMinutes()).padStart(2, '0')
  206. return `${m}-${day} ${h}:${min}`
  207. },
  208. goBack() {
  209. uni.navigateBack()
  210. },
  211. doSearch() {
  212. this.pageNum = 1
  213. this.hasMore = true
  214. this.loadData()
  215. },
  216. switchTab(value) {
  217. this.currentTab = value
  218. this.pageNum = 1
  219. this.hasMore = true
  220. this.loadData()
  221. },
  222. openChannelPicker(item) {
  223. this.getLectureDetail(item.id)
  224. this.currentLecture = item
  225. this.showChannelPicker = true
  226. },
  227. // 看回放:status=2 已结束(可回放) 时跳转
  228. goReplay(item) {
  229. if (item.videoUrl) {
  230. uni.navigateTo({
  231. url: `/pages_live/lessonDetail?groupId=${item.id}`
  232. })
  233. } else {
  234. getLectureDetail(item.id).then(res => {
  235. if (res.code === 200 && res.data && res.data.videoUrl) {
  236. uni.navigateTo({
  237. url: `/pages_live/lessonDetail?groupId=${item.id}`
  238. })
  239. } else {
  240. uni.showToast({ icon: 'none', title: '暂无回放' })
  241. }
  242. }).catch(() => {
  243. uni.showToast({ icon: 'none', title: '暂无回放' })
  244. })
  245. }
  246. },
  247. copyUrl(url) {
  248. uni.setClipboardData({
  249. data: url,
  250. success: () => {
  251. uni.showToast({
  252. icon: 'success',
  253. title: '链接已复制'
  254. })
  255. },fail: (err) => {
  256. // 复制失败提示
  257. uni.showToast({
  258. title: '复制失败,请重试',
  259. icon: 'none'
  260. })
  261. // console.error('复制链接失败:', err)
  262. }
  263. })
  264. },
  265. closeFilter() {
  266. // 关闭弹窗时,恢复临时日期范围和任务类型为当前值
  267. this.tempDateRange = {
  268. startDate: this.dateRange.startDate,
  269. endDate: this.dateRange.endDate
  270. }
  271. this.tempSelectedTaskType = this.selectedTaskType
  272. this.showFilter = false
  273. },
  274. selectTaskType(value) {
  275. // 如果点击的是已选中的,则取消选择
  276. if (this.tempSelectedTaskType === value) {
  277. this.tempSelectedTaskType = ''
  278. } else {
  279. this.tempSelectedTaskType = value
  280. }
  281. },
  282. onStartDateChange(e) {
  283. this.tempDateRange.startDate = e.detail.value
  284. },
  285. onEndDateChange(e) {
  286. this.tempDateRange.endDate = e.detail.value
  287. },
  288. resetFilters() {
  289. this.tempDateRange = {
  290. startDate: '',
  291. endDate: ''
  292. }
  293. this.tempSelectedTaskType = ''
  294. },
  295. getLectureDetail(id){
  296. getLectureDetail(id).then(
  297. res => {
  298. if(res.code==200){
  299. this.info=res.data;
  300. }else{
  301. uni.showToast({
  302. icon:'none',
  303. title: "请求失败",
  304. });
  305. }
  306. },
  307. rej => {}
  308. );
  309. },
  310. confirmFilters() {
  311. // 时间筛选时必须选择结束时间
  312. if (this.tempDateRange.startDate && !this.tempDateRange.endDate) {
  313. uni.showToast({
  314. icon: 'none',
  315. title: '请选择结束时间'
  316. })
  317. return
  318. }
  319. // 验证日期范围
  320. if (this.tempDateRange.startDate && this.tempDateRange.endDate) {
  321. if (new Date(this.tempDateRange.startDate) > new Date(this.tempDateRange.endDate)) {
  322. uni.showToast({
  323. icon: 'none',
  324. title: '开始时间不能大于结束时间'
  325. })
  326. return
  327. }
  328. }
  329. this.dateRange = {
  330. startDate: this.tempDateRange.startDate,
  331. endDate: this.tempDateRange.endDate
  332. }
  333. this.selectedTaskType = this.tempSelectedTaskType
  334. this.showFilter = false
  335. this.pageNum = 1
  336. this.hasMore = true
  337. this.loadData()
  338. },
  339. goComplete(item) {
  340. uni.navigateTo({
  341. url: `/pages_task/completeTask?id=${item.id}`
  342. })
  343. },
  344. goEdit(item) {
  345. uni.navigateTo({
  346. url: `/pages_task/completeTask?id=${item.id}&edit=true`
  347. })
  348. },
  349. // 查看详情
  350. showDetail(item) {
  351. uni.navigateTo({
  352. url: `/pages_task/taskDetail?id=${item.id}`
  353. })
  354. },
  355. async loadData() {
  356. try {
  357. this.pageNum = 1
  358. this.hasMore = true
  359. uni.showLoading({ title: '加载中...' })
  360. // 构建请求参数
  361. const params = {
  362. finishStatus:this.currentTab,
  363. title:this.keyword,
  364. pageNum: this.pageNum,
  365. pageSize: this.pageSize
  366. }
  367. const res = await getOnlineLectureList(params)
  368. uni.hideLoading()
  369. if (res.code == 200) {
  370. this.lectureList = res.rows || []
  371. //.console.log('this.lectureList',this.lectureList)
  372. // 判断是否还有更多数据
  373. if (!res.rows || res.rows.length < this.pageSize) {
  374. this.hasMore = false
  375. }
  376. } else {
  377. uni.showToast({
  378. icon: 'none',
  379. title: res.msg
  380. })
  381. }
  382. } catch (e) {
  383. uni.hideLoading()
  384. }
  385. },
  386. async loadMore() {
  387. // 如果没有更多数据或正在加载,则不执行
  388. if (!this.hasMore || this.loading) {
  389. return
  390. }
  391. try {
  392. this.loading = true
  393. const nextPage = this.pageNum + 1
  394. // 构建请求参数
  395. const params = {
  396. finishStatus:this.currentTab,
  397. title:this.keyword,
  398. pageNum: nextPage,
  399. pageSize: this.pageSize
  400. }
  401. const res = await getOnlineLectureList(params)
  402. if (res.code === 200) {
  403. const newData = res.rows || []
  404. if (newData.length > 0) {
  405. // 追加新数据到列表
  406. this.lectureList = [...this.lectureList, ...newData]
  407. this.pageNum = nextPage
  408. // 如果返回的数据量小于 pageSize,说明没有更多数据了
  409. if (newData.length < this.pageSize) {
  410. this.hasMore = false
  411. }
  412. } else {
  413. // 没有新数据,说明已经加载完所有数据
  414. this.hasMore = false
  415. }
  416. } else {
  417. uni.showToast({
  418. icon: 'none',
  419. title: res.msg || '加载失败'
  420. })
  421. }
  422. } catch (e) {
  423. console.error('加载更多数据失败', e)
  424. uni.showToast({
  425. icon: 'none',
  426. title: '加载失败'
  427. })
  428. } finally {
  429. this.loading = false
  430. }
  431. }
  432. }
  433. }
  434. </script>
  435. <style lang="stylus">
  436. .placeholder{
  437. color: #C8C9CC !important;
  438. }
  439. </style>
  440. <style lang="scss" scoped>
  441. .container {
  442. min-height: 100vh;
  443. background: #f5f5f5;
  444. display: flex;
  445. flex-direction: column;
  446. }
  447. .status-bar {
  448. width: 100%;
  449. background: #fff;
  450. }
  451. .header {
  452. position: relative;
  453. height: 88rpx;
  454. display: flex;
  455. align-items: center;
  456. justify-content: center;
  457. background: #fff;
  458. border-bottom: 1rpx solid #f0f0f0;
  459. .back-btn {
  460. position: absolute;
  461. left: 24rpx;
  462. width: 40rpx;
  463. height: 40rpx;
  464. image {
  465. width: 100%;
  466. height: 100%;
  467. }
  468. }
  469. .title {
  470. font-size: 36rpx;
  471. font-weight: bold;
  472. color: #333;
  473. }
  474. .header-right {
  475. position: absolute;
  476. right: 24rpx;
  477. display: flex;
  478. align-items: center;
  479. gap: 16rpx;
  480. .more-icon {
  481. font-size: 32rpx;
  482. color: #333;
  483. }
  484. }
  485. }
  486. .search-bar {
  487. padding: 24rpx;
  488. background: #fff;
  489. //border-bottom: 1rpx solid #f0f0f0;
  490. .search-input-wrapper {
  491. display: flex;
  492. align-items: center;
  493. height: 72rpx;
  494. background: #F7F8FA;
  495. border-radius: 36rpx;
  496. padding: 0 24rpx;
  497. .search-icon {
  498. font-size: 32rpx;
  499. margin-right: 16rpx;
  500. color: #999;
  501. }
  502. .search-input {
  503. flex: 1;
  504. font-size: 28rpx;
  505. color: #333;
  506. }
  507. }
  508. }
  509. .tabs-bar {
  510. display: flex;
  511. background: #fff;
  512. //border-bottom: 1rpx solid #f0f0f0;
  513. .tab-item {
  514. flex: 1;
  515. height: 88rpx;
  516. line-height: 88rpx;
  517. text-align: center;
  518. font-size: 28rpx;
  519. color: #666;
  520. position: relative;
  521. &.active {
  522. color: #388BFF;
  523. font-weight: bold;
  524. &::after {
  525. content: '';
  526. position: absolute;
  527. bottom: 0;
  528. left: 0;
  529. right: 0;
  530. height: 4rpx;
  531. background: #388BFF;
  532. }
  533. }
  534. }
  535. }
  536. .content {
  537. flex: 1;
  538. padding: 24rpx;
  539. box-sizing:border-box;
  540. }
  541. .lecture-card {
  542. display: flex;
  543. background: #fff;
  544. border-radius: 16rpx;
  545. padding: 24rpx;
  546. margin-bottom: 24rpx;
  547. .card-thumbnail {
  548. position: relative;
  549. width: 240rpx;
  550. height: 180rpx;
  551. border-radius: 12rpx;
  552. overflow: hidden;
  553. margin-right: 24rpx;
  554. flex-shrink: 0;
  555. .thumbnail-img {
  556. width: 100%;
  557. height: 100%;
  558. }
  559. .thumbnail-status {
  560. position: absolute;
  561. top: 0rpx;
  562. left: 0rpx;
  563. width: 112rpx;
  564. height: 32rpx;
  565. display: flex;
  566. align-items: center;
  567. background: rgba(0, 0, 0, 0.4);
  568. border-radius: 16rpx 0rpx 16rpx 0rpx;
  569. font-weight: 500;
  570. font-size: 20rpx;
  571. color: #FFFFFF;
  572. font-family: PingFang SC-Bold, PingFang SC;
  573. image {
  574. width: 36rpx;
  575. height: 32rpx;
  576. margin-right: 8rpx;
  577. };
  578. .status-text {
  579. font-size: 20rpx;
  580. color: #fff;
  581. }
  582. &.status-end {
  583. background: rgba(0, 0, 0, 0.5);
  584. }
  585. &.status-off {
  586. background: rgba(0, 0, 0, 0.6);
  587. color: rgba(255, 255, 255, 0.9);
  588. }
  589. }
  590. .thumbnail-date {
  591. position: absolute;
  592. top: 0rpx;
  593. left: 0rpx;
  594. width: 166rpx;
  595. height: 32rpx;
  596. display: flex;
  597. align-items: center;
  598. background: rgba(0, 0, 0, 0.4);
  599. border-radius: 16rpx 0rpx 16rpx 0rpx;
  600. font-weight: 500;
  601. font-size: 20rpx;
  602. color: #FFFFFF;
  603. font-family: PingFang SC-Bold, PingFang SC;
  604. image {
  605. width: 36rpx;
  606. height: 32rpx;
  607. margin-right: 8rpx;
  608. };
  609. .date-text {
  610. font-size: 20rpx;
  611. color: #fff;
  612. }
  613. }
  614. }
  615. .card-content {
  616. flex: 1;
  617. display: flex;
  618. flex-direction: column;
  619. justify-content: space-between;
  620. .card-title {
  621. font-size: 30rpx;
  622. font-weight: bold;
  623. color: #333;
  624. margin-bottom: 12rpx;
  625. overflow: hidden;
  626. text-overflow: ellipsis;
  627. white-space: nowrap;
  628. }
  629. .card-tags {
  630. display: flex;
  631. align-items: center;
  632. gap: 12rpx;
  633. margin-bottom: 12rpx;
  634. .tag-item {
  635. padding: 4rpx 12rpx;
  636. background: #f5f5f5;
  637. border-radius: 4rpx;
  638. font-size: 22rpx;
  639. color: #666;
  640. }
  641. }
  642. .card-points {
  643. font-size: 26rpx;
  644. color: #999;
  645. margin-bottom: 12rpx;
  646. }
  647. .card-views {
  648. display: flex;
  649. align-items: center;
  650. gap: 4rpx;
  651. font-size: 24rpx;
  652. color: #999;
  653. margin-bottom: 12rpx;
  654. .eye-icon {
  655. font-size: 24rpx;
  656. }
  657. }
  658. .card-action {
  659. display: flex;
  660. justify-content: flex-end;
  661. .action-btn {
  662. display: flex;
  663. align-items: center;
  664. justify-content: center;
  665. width: 144rpx;
  666. height: 56rpx;
  667. background: #388BFF;
  668. border-radius: 34rpx 34rpx 34rpx 34rpx;
  669. font-family: PingFang SC, PingFang SC;
  670. font-weight: 500;
  671. font-size: 24rpx;
  672. color: #FFFFFF;
  673. &.action-btn-replay {
  674. background: #07C160;
  675. }
  676. &.action-btn-disabled {
  677. background: #C8C9CC;
  678. color: #fff;
  679. }
  680. }
  681. }
  682. }
  683. }
  684. .no-more {
  685. text-align: center;
  686. padding: 48rpx 0;
  687. font-size: 24rpx;
  688. color: #999;
  689. }
  690. .channel-picker-popup {
  691. position: fixed;
  692. top: 0;
  693. left: 0;
  694. right: 0;
  695. bottom: 0;
  696. background: rgba(0, 0, 0, 0.5);
  697. z-index: 999;
  698. display: flex;
  699. align-items: center;
  700. justify-content: center;
  701. }
  702. .channel-picker-content {
  703. width: 90%;
  704. max-width: 600rpx;
  705. background: #fff;
  706. border-radius: 24rpx;
  707. padding: 24rpx;
  708. .picker-header {
  709. display: flex;
  710. align-items: center;
  711. justify-content: center;
  712. // padding: 32rpx 24rpx;
  713. position: relative;
  714. margin-bottom: 32rpx;
  715. .picker-title {
  716. font-size: 32rpx;
  717. font-weight: bold;
  718. color: #333;
  719. }
  720. .picker-close {
  721. position: absolute;
  722. right: 0;
  723. top: 50%;
  724. transform: translateY(-50%);
  725. width: 48rpx;
  726. height: 48rpx;
  727. display: flex;
  728. align-items: center;
  729. justify-content: center;
  730. font-size: 40rpx;
  731. color: #999;
  732. }
  733. }
  734. .channel-option {
  735. display: flex;
  736. align-items: flex-start;
  737. margin-bottom: 32rpx;
  738. &:last-child {
  739. margin-bottom: 0;
  740. }
  741. .option-icon {
  742. width: 64rpx;
  743. height: 64rpx;
  744. display: flex;
  745. align-items: center;
  746. justify-content: center;
  747. font-size: 48rpx;
  748. margin-right: 24rpx;
  749. flex-shrink: 0;
  750. &.wechat {
  751. background: #07C160;
  752. border-radius: 8rpx;
  753. }
  754. }
  755. .option-content {
  756. flex: 1;
  757. width: 100%;
  758. .option-title {
  759. font-size: 30rpx;
  760. font-weight: bold;
  761. color: #333;
  762. margin-left:16rpx ;
  763. // margin-bottom: 16rpx;
  764. }
  765. .option-url-wrapper {
  766. display: flex;
  767. align-items: center;
  768. gap: 16rpx;
  769. margin-bottom: 16rpx;
  770. .option-url {
  771. flex: 1;
  772. padding: 16rpx 24rpx;
  773. background: #f5f5f5;
  774. border-radius: 8rpx;
  775. font-size: 24rpx;
  776. color: #666;
  777. overflow: hidden;
  778. text-overflow: ellipsis;
  779. white-space: nowrap;
  780. }
  781. .copy-btn {
  782. padding: 12rpx 24rpx;
  783. background: #388BFF;
  784. border-radius: 8rpx;
  785. font-size: 24rpx;
  786. color: #fff;
  787. white-space: nowrap;
  788. }
  789. }
  790. .option-tips {
  791. font-size: 22rpx;
  792. color: #999;
  793. }
  794. .option-action {
  795. display: flex;
  796. justify-content: flex-end;
  797. .enter-btn {
  798. padding: 12rpx 24rpx;
  799. background: #388BFF;
  800. border-radius: 34rpx 34rpx 34rpx 34rpx;
  801. font-family: PingFang SC, PingFang SC;
  802. font-weight: 500;
  803. font-size: 24rpx;
  804. color: #FFFFFF;
  805. }
  806. }
  807. }
  808. }
  809. }
  810. </style>