courseItem.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. <template>
  2. <view class="courselist-item" style="height: 100%;">
  3. <view class="courselist-con x-start" @click="toCourseDetail(info)">
  4. <view class="courselist-img">
  5. <!-- <view class="status">进行中</view> -->
  6. <image :src="info.thumbnail" mode="aspectFill"></image>
  7. </view>
  8. <view class="courselist-con-r">
  9. <view @click.passive.stop>
  10. <text class="more-t ">{{info.title}}</text>
  11. <view class="btn_icon" style="margin-left: 5px;" @click="copyId">ID
  12. <image :src="imgpath+'/app/images/copy_icon.png'" mode="aspectFill"></image>
  13. </view>
  14. </view>
  15. <view class="courselist-desc one-t" v-show="from != 'course'">{{info.courseName}}</view>
  16. <view :class="from == 'course' ? 'courselist-con-timebox ':'courselist-con-timebox x-f'"
  17. @click.passive.stop>
  18. <view class="x-f acea-row">
  19. <u-icon class="icon" name="hourglass" color="#999" size="20"></u-icon>
  20. 开始时间:{{info.startDateTime?info.startDateTime:''}}
  21. </view>
  22. <view class="x-f acea-row">
  23. <u-icon class="icon" name="hourglass-half-fill" color="#999" size="20"></u-icon>
  24. 结束时间:{{info.endDateTime?info.endDateTime:''}}
  25. </view>
  26. <view class="justify-between align-center">
  27. <view class="x-f acea-row">
  28. <u-icon class="icon" name="clock" color="#999" size="16"></u-icon>
  29. {{$formatSeconds(info.duration,1)}}
  30. </view>
  31. <view class="u-border radius50 ptb8 plr18 base-color-6" style="width: fit-content;"
  32. @click="showtime=!showtime">调整看课时间</view>
  33. </view>
  34. <u-modal :show="showtime" :title="titletime" @confirm="confirmtime" @close="showtime=!showtime"
  35. @cancel="showtime=!showtime" :closeOnClickOverlay="true" :showCancelButton="true">
  36. <view class="slot-content">
  37. <view class="justify-start align-center">
  38. <view class="mr20">开始时间:</view>
  39. <u-input v-model="startTimevalue" placeholder="请选择开始时间" @focus="startTime=!startTime">
  40. </u-input>
  41. </view>
  42. <view class="justify-start align-center mt20">
  43. <view class="mr20">结束时间:</view>
  44. <u-input v-model="endTimevalue" placeholder="请选择结束时间" @focus="endtime=!endtime">
  45. </u-input>
  46. </view>
  47. </view>
  48. </u-modal>
  49. <u-datetime-picker :show="startTime" v-model="value1" mode="time" @cancel="startTime=!startTime"
  50. @confirm="confirmstart"></u-datetime-picker>
  51. <u-datetime-picker :show="endtime" v-model="value2" mode="time" @cancel="endtime=!endtime"
  52. @confirm="confirmend"></u-datetime-picker>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="justify-start align-center ml20">
  57. <view class="base-color-6 mr20">所属项目</view>
  58. <view>{{info.projectName}}</view>
  59. <view class="base-color-6 ml30 mr20" v-if="info.periodName">营期</view>
  60. <view v-if="info.periodName">{{info.periodName}}</view>
  61. </view>
  62. <view class="courselist-footer x-f ">
  63. <!--#ifdef MP-WEIXIN-->
  64. <view class="courselist-footer-item x-c " @click="handleClick()">
  65. <u-icon name="share-square" color="#1677ff" size="18"></u-icon>分享课程
  66. </view>
  67. <!--#endif-->
  68. <!--#ifdef H5-->
  69. <view class="courselist-footer-item x-c " @click="handleShare">
  70. <u-icon name="share-square" color="#1677ff" size="18"></u-icon>分享课程
  71. </view>
  72. <!--#endif-->
  73. <view class="courselist-footer-item x-c shishi" v-show="activeTab == 1" @click="handleStatistics">
  74. <u-icon name="share-square" color="#1677ff" size="18"></u-icon>课程统计
  75. </view>
  76. <view class="courselist-footer-item x-c shuju" v-show="activeTab == 2" @click="handleStatistics">
  77. <u-icon name="share-square" color="#1677ff" size="18"></u-icon>数据统计
  78. </view>
  79. </view>
  80. <!-- 分享弹窗 -->
  81. <u-popup :show="showShare" :closeOnClickOverlay="true" :round='20' @close="closeShare" @open="openShare">
  82. <view class="sharePop x-ac">
  83. <!--#ifdef MP-WEIXIN-->
  84. <view class="sharePop-item y-f card-share">
  85. <image :src="imgPath+'/app/images/card_icon.png'" mode="aspectFill"
  86. style="width: 80rpx; height: 80rpx;margin-top: 20rpx;"></image>
  87. <view style="font-weight: bold;margin-bottom: 4px;">生成卡片</view>
  88. <view style="font-size: 12px;color: #888;">指导分享轻松转发</view>
  89. </view>
  90. <!--#endif-->
  91. <!--#ifdef H5-->
  92. <view class="sharePop-item y-f" @click="buildimg">
  93. <image :src="imgPath+'/app/images/poster_icon.png'" mode="aspectFill"></image>
  94. <view style="font-weight: bold;margin-bottom: 4px;">生成海报</view>
  95. <view style="font-size: 12px;color: #888;">保存海报美观宣传</view>
  96. </view>
  97. <view class="sharePop-item y-f" @click="copyLink">
  98. <image :src="imgPath+'/app/images/link_icon.png'" mode="aspectFill"></image>
  99. <view style="font-weight: bold;margin-bottom: 4px;">复制链接</view>
  100. <view style="font-size: 12px;color: #888;">生成链接一键复制</view>
  101. </view>
  102. <!--#endif-->
  103. </view>
  104. </u-popup>
  105. <!-- 设置链接有效时长弹窗 -->
  106. <u-modal :show="setTimeShow" content='content' class="model" @confirm="confirmTime" :closeOnClickOverlay='true'
  107. @close="closetext">
  108. <view class="setTimebox">
  109. <view class="timetip">不传默认以系统参数为准</view>
  110. <view class="x-f">
  111. <text style="margin-right: 20px;">链接有效时长(分钟)</text>
  112. <u-input fontSize="14px" placeholder="链接有效时长" border="none" v-model="time" maxlength="5" />
  113. </view>
  114. </view>
  115. </u-modal>
  116. <u-notify ref="uNotify" message=""></u-notify>
  117. <!-- 生成海报 -->
  118. <u-popup :show="setImg" @close="closeimg" :round="12" style="z-index: 999;">
  119. <view class="w100 h540 center">
  120. <image :src="codeLink.url" mode="aspectFill"></image>
  121. </view>
  122. <view class="justify-around mb40">
  123. <!-- <view class="column justify-center align-center" @click="shareimg">
  124. <image :src=:src="imgPath+'/app/image/wechat.png'" class="w80 h80"></image>
  125. <view class="mt10">微信好友</view>
  126. </view> -->
  127. <view class="column justify-center align-center" @click="downimg">
  128. <image :src="imgPath+'/app/image/downicon.png'" class="w80 h80"></image>
  129. <view class=" mb10">长按图片保存</view>
  130. </view>
  131. </view>
  132. </u-popup>
  133. <u-overlay :show="showzhidao" @click="showzhidao = false" style="z-index: 9999;">
  134. <view class="point-box">
  135. <view class="imgshe">
  136. <image :src="imgPath+'/app/image/point.png'" class="w300 h300"></image>
  137. </view>
  138. <view class="column colorf fs32 xu-box fs40 align-center justify-center">
  139. <view class="justify-center">点击右上角
  140. <image :src="imgPath+'/app/image/wxmore.png'" class="w50 h50 mlr10"></image>
  141. </view>
  142. <view class="mt20">选择 “转发给朋友”</view>
  143. <view style="color: #cbcbcb;" class="fs28 mt40">点击任意位置关闭弹窗</view>
  144. </view>
  145. </view>
  146. </u-overlay>
  147. </view>
  148. </template>
  149. <script>
  150. // import {
  151. // sharecourselink,
  152. // buildCode,
  153. // getSDK,
  154. // updataTime
  155. // } from '@/api/courseManage'
  156. export default {
  157. props: {
  158. activeTab: {
  159. type: [Number, String],
  160. default: 0
  161. },
  162. // 来源
  163. from: {
  164. type: String,
  165. default: 'live'
  166. },
  167. info: {
  168. type: Object,
  169. default: () => {
  170. return {}
  171. }
  172. },
  173. parentMethod: {
  174. type: Function
  175. }
  176. },
  177. data() {
  178. return {
  179. cavansimg: false,
  180. showShare: false,
  181. setTimeShow: false,
  182. time: "",
  183. user: [],
  184. type: 1,
  185. copylink: '',
  186. setImg: '',
  187. codeLink: '',
  188. setImg: false,
  189. painterId: 'myPainter',
  190. isLongPress: false,
  191. painterSrc: '',
  192. showzhidao: false,
  193. // imgPath:this.$store.state.imgpath,
  194. imgs: this.$store.state.imgpath + '/app/image/logoshare.png',
  195. showtime: false,
  196. titletime: '调整看课时间',
  197. endTimevalue: '',
  198. startTimevalue: '',
  199. startTime: false,
  200. endtime: false,
  201. value1: '00:00',
  202. value2: "23:59"
  203. }
  204. },
  205. computed: {
  206. imgPath() {
  207. return this.$store.state.imgpath
  208. }
  209. },
  210. onLoad() {},
  211. mounted() {
  212. this.user = uni.getStorageSync("companyUserInfo") ? JSON.parse(uni.getStorageSync("companyUserInfo")) : {}
  213. },
  214. methods: {
  215. confirmstart(e) {
  216. this.startTimevalue = e.value
  217. this.startTime = !this.startTime
  218. console.log(e)
  219. },
  220. confirmend(e) {
  221. this.endTimevalue = e.value
  222. this.endtime = !this.endtime
  223. console.log(e)
  224. },
  225. confirmtime() {
  226. if (this.startTimevalue == '') {
  227. uni.showToast({
  228. title: '请选择开始时间',
  229. icon: 'none',
  230. duration: 1000
  231. });
  232. return
  233. }
  234. if (this.endTimevalue == '') {
  235. uni.showToast({
  236. title: '请选择结束时间',
  237. icon: 'none',
  238. duration: 1000
  239. });
  240. return
  241. }
  242. this.showtime = !this.showtime
  243. const data = {
  244. periodId: this.info.periodId,
  245. courseId: this.info.courseId,
  246. videoId: this.info.videoId,
  247. startDateTime: this.info.startDateTime.substring(0, 10) + ' ' + this.startTimevalue + ":00",
  248. endDateTime: this.info.endDateTime.substring(0, 10) + ' ' + this.endTimevalue + ":59"
  249. }
  250. updataTime([data]).then(res => {
  251. if (res.code == 200) {
  252. uni.showToast({
  253. title: '完成看课时间调整!',
  254. icon: 'none',
  255. duration: 1000
  256. });
  257. this.$emit('retime', 1)
  258. } else {
  259. uni.showToast({
  260. title: res.msg,
  261. icon: 'none',
  262. duration: 1000
  263. });
  264. }
  265. })
  266. },
  267. handleClick() {
  268. this.parentMethod();
  269. this.$emit('trigger-share', {
  270. title: this.info.courseName + this.info.title,
  271. path: "pages_course/videovip",
  272. onshow: true,
  273. params: {
  274. companyId: this.user.companyId,
  275. companyUserId: this.user.userId,
  276. id: this.info.id,
  277. projectId: this.info.projectId,
  278. courseId: this.info.courseId,
  279. videoId: this.info.videoId,
  280. periodId: this.info.periodId
  281. },
  282. img: this.info.thumbnail || this.imgs
  283. });
  284. },
  285. // 获取jssdk
  286. getjssdklist() {
  287. const param = {
  288. url: window.location.href.split('#')[0] // 注意去除 hash
  289. }
  290. getSDK(param).then(res => {
  291. wx.config({
  292. debug: false,
  293. appId: res.data.appId, // 必填,公众号的唯一标识
  294. timestamp: res.data.timestamp, // 必填,生成签名的时间戳
  295. nonceStr: res.data.nonceStr, // 必填,生成签名的随机串
  296. signature: res.data.signature, // 必填,签名
  297. jsApiList: ["updateAppMessageShareData",
  298. "onMenuShareAppMessage", ] // 必填,需要使用的JS接口列表
  299. });
  300. })
  301. },
  302. shareimg() {
  303. let self = this
  304. //分享好友
  305. // 配置--配置全局
  306. console.log(self.info.thumbnail + self.copylink, 11111)
  307. wx.ready(function() { //需在用户可能点击分享按钮前就先调用
  308. wx.updateAppMessageShareData({
  309. title: self.info.courseName + self.info.title, // 分享标题
  310. desc: self.info.description, // 分享描述
  311. // link: self.copylink,
  312. link: self.copylink,
  313. // 分享链接,该链接域名或路径必须与当前页面对应的公众 号JS安全域名一致
  314. imgUrl: self.info.thumbnail || self.imgs, // 分享图标
  315. success: function(res) {
  316. console.log(self.info, '456');
  317. self.showzhidao = true
  318. self.setImg = false
  319. self.showShare = false
  320. // 设置成功
  321. uni.showToast({
  322. title: '卡片已生成',
  323. icon: 'none',
  324. duration: 1000
  325. });
  326. },
  327. })
  328. // 另外一个方法·
  329. wx.onMenuShareAppMessage({
  330. title: self.info.courseName + self.info.title, // 分享标题
  331. desc: self.info.title, // 分享描述
  332. link: self.copylink,
  333. // 分享链接,该链接域名或路径必须与当前页面对应的公众 号JS安全域名一致
  334. imgUrl: self.info.thumbnail, // 分享图标
  335. success: function(res) {
  336. console.log(self.info, '456');
  337. self.showzhidao = true
  338. self.setImg = false
  339. self.showShare = false
  340. // 设置成功
  341. uni.showToast({
  342. title: '卡片已生成',
  343. icon: 'none',
  344. duration: 1000
  345. });
  346. },
  347. // complete: function(res) {
  348. // uni.showToast({
  349. // title: JSON.stringify(res),
  350. // icon: 'none',
  351. // duration: 2000
  352. // })
  353. // }
  354. })
  355. // wx.error((res) => {
  356. // console.log('wx.error:', res);
  357. // })
  358. });
  359. },
  360. downimg() {
  361. },
  362. handleLongPress() {
  363. this.isLongPress = true;
  364. // 延时执行保存操作,避免误触
  365. setTimeout(() => {
  366. if (this.isLongPress) {
  367. this.saveImage();
  368. }
  369. }, 1000); // 1000毫秒后执行保存操作
  370. },
  371. saveImage() {
  372. const painter = this.$painter.getPainter(this.painterId);
  373. painter.saveImage('jpg', (path) => {
  374. uni.saveImageToPhotosAlbum({
  375. filePath: path,
  376. success: () => {
  377. uni.showToast({
  378. title: '保存成功'
  379. });
  380. },
  381. fail: () => {
  382. uni.showToast({
  383. title: '保存失败',
  384. icon: 'none'
  385. });
  386. }
  387. });
  388. }, 'myCanvas');
  389. },
  390. closeimg() {
  391. this.setImg = false
  392. this.showShare = false
  393. },
  394. closetext() {
  395. this.setTimeShow = false
  396. },
  397. buildimg() {
  398. this.buildimgAcode()
  399. },
  400. //生成海报和二维码
  401. buildimgAcode() {
  402. uni.showLoading({
  403. title: '正在生成中...'
  404. })
  405. buildCode({
  406. companyId: this.user.companyId,
  407. companyUserId: this.user.userId,
  408. courseId: this.info.courseId,
  409. effectiveDuration: this.time,
  410. videoId: this.info.videoId,
  411. imgUrl: this.info.thumbnail,
  412. title: this.info.title,
  413. duration: this.info.duration,
  414. periodId: this.info.periodId,
  415. id: this.info.id
  416. }).then(res => {
  417. if (res.code == 200) {
  418. this.codeLink = res.posterImage
  419. this.setImg = true
  420. this.getlink()
  421. console.log(this.codeLink)
  422. } else {
  423. uni.showToast({
  424. icon: 'none',
  425. title: res.msg
  426. })
  427. }
  428. })
  429. },
  430. toCourseDetail(info) {
  431. uni.navigateTo({
  432. // url: '/pages/courseManage/course/learning?course='+JSON.stringify(info)
  433. // url: `/pages/courseManage/course/learning?course=${JSON.stringify(info)}&isvip=1`
  434. url: '/pages_managedata/coursedetail?videoId=' + info.videoId + '&id=' + info.id +
  435. '&periodId=' + info.periodId
  436. })
  437. },
  438. handleShare() {
  439. // #ifdef H5
  440. this.getjssdklist()
  441. this.showShare = true
  442. // #endif
  443. // this.getlink('preload'); // 提前加载链接
  444. },
  445. closeShare() {
  446. this.showShare = false
  447. // console.log('open');
  448. },
  449. openShare() {
  450. // this.showShare = false
  451. // console.log('close');
  452. },
  453. copyLink() {
  454. this.setTimeShow = true
  455. },
  456. confirmTime() {
  457. this.setTimeShow = !this.setTimeShow
  458. this.showShare = !this.showShare
  459. const params = {
  460. companyId: this.user.companyId,
  461. companyUserId: this.user.userId,
  462. courseId: this.info.courseId,
  463. effectiveDuration: this.time,
  464. videoId: this.info.videoId,
  465. periodId: this.info.periodId,
  466. id: this.info.id
  467. }
  468. sharecourselink(params).then(res => {
  469. if (res.code == 200) {
  470. this.copylink = res.url
  471. // if (this.copylink.startsWith('http://')) {
  472. // this.copylink = this.copylink.replace('http://', 'https://');
  473. // }
  474. // console.log(this.copylink)
  475. setTimeout(() => {
  476. uni.setClipboardData({
  477. data: this.copylink,
  478. success: () => {
  479. uni.showToast({
  480. title: '链接已复制',
  481. icon: 'none',
  482. duration: 2000
  483. });
  484. },
  485. fail: () => {
  486. uni.showToast({
  487. title: '复制失败',
  488. icon: 'none'
  489. });
  490. }
  491. });
  492. }, 100)
  493. console.log(this.copylink)
  494. } else {
  495. uni.showToast({
  496. icon: 'none',
  497. title: res.msg
  498. })
  499. }
  500. })
  501. },
  502. getlink(type) {
  503. const params = {
  504. companyId: this.user.companyId,
  505. companyUserId: this.user.userId,
  506. courseId: this.info.courseId,
  507. time: this.time,
  508. periodId: this.info.periodId,
  509. id: this.info.id,
  510. // type: this.type,
  511. videoId: this.info.videoId,
  512. }
  513. sharecourselink(params).then(res => {
  514. if (res.code == 200) {
  515. this.copylink = res.url
  516. // 强制使用 HTTPS
  517. // if (this.copylink.startsWith('http://')) {
  518. // this.copylink = this.copylink.replace('http://', 'https://');
  519. // }
  520. } else {
  521. uni.showToast({
  522. icon: 'none',
  523. title: res.msg
  524. })
  525. }
  526. })
  527. },
  528. handleStatistics() {
  529. const info = {
  530. courseId: this.info.courseId,
  531. title: this.info.title,
  532. thumbnail: this.info.thumbnail,
  533. createTime: this.info.createTime,
  534. duration: this.info.duration,
  535. fileId: this.info.fileId,
  536. courseName: this.info.courseName,
  537. videoId: this.info.videoId,
  538. periodId: this.info.periodId
  539. }
  540. console.log()
  541. uni.navigateTo({
  542. url: '/pages_manage/statistic?info=' + JSON.stringify(info)
  543. })
  544. },
  545. copyId() {
  546. uni.setClipboardData({
  547. data: this.info.title,
  548. success: () => {
  549. // this.$refs.uNotify.show({
  550. // top: 0,
  551. // type: 'success',
  552. // // color: '#000',
  553. // // bgColor: '#e8e8e8',
  554. // message: '复制课程标题成功',
  555. // duration: 1000 * 2,
  556. // fontSize: 20,
  557. // safeAreaInsetTop: true
  558. // })
  559. uni.showToast({
  560. icon: 'none',
  561. title: '复制课程标题成功'
  562. })
  563. }
  564. });
  565. }
  566. }
  567. }
  568. </script>
  569. <style scoped lang="scss">
  570. .card-share {
  571. position: relative;
  572. }
  573. .share {
  574. display: inline-block;
  575. position: absolute;
  576. top: 0;
  577. left: 0;
  578. width: 100%;
  579. height: 100%;
  580. opacity: 0;
  581. }
  582. .imgshe {
  583. display: flex;
  584. flex-direction: row-reverse
  585. }
  586. .point-box {
  587. height: 100%;
  588. width: 100%;
  589. .xu-box {
  590. border: #f5f5f5 4rpx dashed;
  591. padding: 20rpx 20rpx;
  592. }
  593. }
  594. #codeurl {
  595. position: relative;
  596. }
  597. ::v-deep {
  598. .model .u-fade-enter-active {
  599. z-index: 10075 !important;
  600. }
  601. }
  602. .sharePop {
  603. background-color: #fff;
  604. padding: 30rpx 0;
  605. border-radius: 20px 20px 0 0;
  606. /* #ifdef MP-WEIXIN */
  607. /* #endif */
  608. /* #ifdef H5 */
  609. padding-bottom: 100px;
  610. /* #endif */
  611. &-item {
  612. padding: 0 10px;
  613. box-sizing: border-box;
  614. font-family: PingFang SC, PingFang SC;
  615. font-weight: 400;
  616. font-size: 14px;
  617. display: inline-flex !important;
  618. image {
  619. height: 48px;
  620. width: 48px;
  621. margin-bottom: 10px;
  622. }
  623. }
  624. }
  625. .setTimebox {
  626. font-family: PingFang SC, PingFang SC;
  627. font-weight: 400;
  628. font-size: 14px;
  629. }
  630. .timetip {
  631. font-family: PingFang SC, PingFang SC;
  632. font-weight: 400;
  633. font-size: 14px;
  634. color: #2979ff;
  635. text-align: center;
  636. margin-bottom: 5px;
  637. }
  638. .courselist {
  639. font-family: PingFang SC, PingFang SC;
  640. font-weight: 400;
  641. font-size: 14px;
  642. &-item {
  643. width: 100%;
  644. border-radius: 14px;
  645. background-color: #fff;
  646. overflow: hidden;
  647. margin-bottom: 10px;
  648. }
  649. &-con {
  650. padding: 10px 10px 5px 10px;
  651. font-size: 12px;
  652. color: #777;
  653. }
  654. &-con-r {
  655. flex: 1;
  656. overflow: hidden;
  657. .more-t {
  658. flex: 1;
  659. font-size: 14px;
  660. color: #222;
  661. display: inline;
  662. }
  663. image {
  664. width: 20px;
  665. height: 20px;
  666. }
  667. .btn_icon {
  668. font-size: 14px;
  669. color: #1677ff;
  670. display: inline-flex;
  671. align-items: center;
  672. }
  673. }
  674. &-img {
  675. width: 110px;
  676. height: 70px;
  677. border-radius: 10px;
  678. overflow: hidden;
  679. flex-shrink: 0;
  680. margin-right: 10px;
  681. position: relative;
  682. image {
  683. height: 100%;
  684. width: 100%;
  685. }
  686. .status {
  687. position: absolute;
  688. top: 0;
  689. left: 0;
  690. z-index: 2;
  691. height: 21px;
  692. padding: 0 5px;
  693. box-sizing: border-box;
  694. line-height: 21px;
  695. border-radius: 10px 0 10px 0;
  696. text-align: center;
  697. color: #fff;
  698. background-color: #08ce36;
  699. }
  700. }
  701. &-desc {
  702. flex: 1;
  703. margin-top: 7px;
  704. }
  705. &-con-timebox {
  706. margin-top: 7px;
  707. flex-wrap: wrap;
  708. .acea-row {
  709. margin-right: 12px;
  710. margin-bottom: 5px;
  711. flex-wrap: nowrap;
  712. }
  713. .icon {
  714. margin-right: 5px;
  715. }
  716. }
  717. &-footer {
  718. padding: 5px;
  719. font-size: 14px;
  720. &-item {
  721. flex: 1;
  722. text-align: center;
  723. color: #1677ff;
  724. padding: 6px;
  725. box-sizing: border-box;
  726. }
  727. .shishi {
  728. border-left: 1px solid #f5f5f5;
  729. }
  730. .shuju {
  731. border-radius: 5px;
  732. border: 1px solid #1677ff;
  733. }
  734. }
  735. }
  736. </style>