courseItem.vue 20 KB

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