courseItem.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  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/manageCompany'
  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. // console.log([data])
  250. if (res.code == 200) {
  251. uni.showToast({
  252. title: '完成看课时间调整!',
  253. icon: 'none',
  254. duration: 1000
  255. });
  256. this.$emit('retime', 1)
  257. } else {
  258. uni.showToast({
  259. title: res.msg,
  260. icon: 'none',
  261. duration: 1000
  262. });
  263. }
  264. })
  265. },
  266. handleClick() {
  267. this.parentMethod();
  268. this.$emit('trigger-share', {
  269. title: this.info.courseName + this.info.title,
  270. path: "pages_course/videovip",
  271. onshow: true,
  272. params: {
  273. companyId: this.user.companyId,
  274. companyUserId: this.user.userId,
  275. id: this.info.id,
  276. projectId: this.info.projectId,
  277. courseId: this.info.courseId,
  278. videoId: this.info.videoId,
  279. periodId: this.info.periodId
  280. },
  281. img: this.info.thumbnail || this.imgs
  282. });
  283. },
  284. // 获取jssdk
  285. getjssdklist() {
  286. const param = {
  287. url: window.location.href.split('#')[0] // 注意去除 hash
  288. }
  289. getSDK(param).then(res => {
  290. wx.config({
  291. debug: false,
  292. appId: res.data.appId, // 必填,公众号的唯一标识
  293. timestamp: res.data.timestamp, // 必填,生成签名的时间戳
  294. nonceStr: res.data.nonceStr, // 必填,生成签名的随机串
  295. signature: res.data.signature, // 必填,签名
  296. jsApiList: ["updateAppMessageShareData",
  297. "onMenuShareAppMessage", ] // 必填,需要使用的JS接口列表
  298. });
  299. })
  300. },
  301. shareimg() {
  302. let self = this
  303. //分享好友
  304. // 配置--配置全局
  305. console.log(self.info.thumbnail + self.copylink, 11111)
  306. wx.ready(function() { //需在用户可能点击分享按钮前就先调用
  307. wx.updateAppMessageShareData({
  308. title: self.info.courseName + self.info.title, // 分享标题
  309. desc: self.info.description, // 分享描述
  310. // link: self.copylink,
  311. link: self.copylink,
  312. // 分享链接,该链接域名或路径必须与当前页面对应的公众 号JS安全域名一致
  313. imgUrl: self.info.thumbnail || self.imgs, // 分享图标
  314. success: function(res) {
  315. console.log(self.info, '456');
  316. self.showzhidao = true
  317. self.setImg = false
  318. self.showShare = false
  319. // 设置成功
  320. uni.showToast({
  321. title: '卡片已生成',
  322. icon: 'none',
  323. duration: 1000
  324. });
  325. },
  326. })
  327. // 另外一个方法·
  328. wx.onMenuShareAppMessage({
  329. title: self.info.courseName + self.info.title, // 分享标题
  330. desc: self.info.title, // 分享描述
  331. link: self.copylink,
  332. // 分享链接,该链接域名或路径必须与当前页面对应的公众 号JS安全域名一致
  333. imgUrl: self.info.thumbnail, // 分享图标
  334. success: function(res) {
  335. console.log(self.info, '456');
  336. self.showzhidao = true
  337. self.setImg = false
  338. self.showShare = false
  339. // 设置成功
  340. uni.showToast({
  341. title: '卡片已生成',
  342. icon: 'none',
  343. duration: 1000
  344. });
  345. },
  346. // complete: function(res) {
  347. // uni.showToast({
  348. // title: JSON.stringify(res),
  349. // icon: 'none',
  350. // duration: 2000
  351. // })
  352. // }
  353. })
  354. // wx.error((res) => {
  355. // console.log('wx.error:', res);
  356. // })
  357. });
  358. },
  359. downimg() {
  360. },
  361. handleLongPress() {
  362. this.isLongPress = true;
  363. // 延时执行保存操作,避免误触
  364. setTimeout(() => {
  365. if (this.isLongPress) {
  366. this.saveImage();
  367. }
  368. }, 1000); // 1000毫秒后执行保存操作
  369. },
  370. saveImage() {
  371. const painter = this.$painter.getPainter(this.painterId);
  372. painter.saveImage('jpg', (path) => {
  373. uni.saveImageToPhotosAlbum({
  374. filePath: path,
  375. success: () => {
  376. uni.showToast({
  377. title: '保存成功'
  378. });
  379. },
  380. fail: () => {
  381. uni.showToast({
  382. title: '保存失败',
  383. icon: 'none'
  384. });
  385. }
  386. });
  387. }, 'myCanvas');
  388. },
  389. closeimg() {
  390. this.setImg = false
  391. this.showShare = false
  392. },
  393. closetext() {
  394. this.setTimeShow = false
  395. },
  396. buildimg() {
  397. this.buildimgAcode()
  398. },
  399. //生成海报和二维码
  400. buildimgAcode() {
  401. uni.showLoading({
  402. title: '正在生成中...'
  403. })
  404. buildCode({
  405. companyId: this.user.companyId,
  406. companyUserId: this.user.userId,
  407. courseId: this.info.courseId,
  408. effectiveDuration: this.time,
  409. videoId: this.info.videoId,
  410. imgUrl: this.info.thumbnail,
  411. title: this.info.title,
  412. duration: this.info.duration,
  413. periodId: this.info.periodId,
  414. id: this.info.id
  415. }).then(res => {
  416. if (res.code == 200) {
  417. this.codeLink = res.posterImage
  418. this.setImg = true
  419. this.getlink()
  420. console.log(this.codeLink)
  421. } else {
  422. uni.showToast({
  423. icon: 'none',
  424. title: res.msg
  425. })
  426. }
  427. })
  428. },
  429. toCourseDetail(info) {
  430. uni.navigateTo({
  431. // url: '/pages/courseManage/course/learning?course='+JSON.stringify(info)
  432. // url: `/pages/courseManage/course/learning?course=${JSON.stringify(info)}&isvip=1`
  433. url: '/pages_managedata/coursedetail?videoId=' + info.videoId + '&id=' + info.id +
  434. '&periodId=' + info.periodId
  435. })
  436. },
  437. handleShare() {
  438. // #ifdef H5
  439. this.getjssdklist()
  440. this.showShare = true
  441. // #endif
  442. // this.getlink('preload'); // 提前加载链接
  443. },
  444. closeShare() {
  445. this.showShare = false
  446. // console.log('open');
  447. },
  448. openShare() {
  449. // this.showShare = false
  450. // console.log('close');
  451. },
  452. copyLink() {
  453. this.setTimeShow = true
  454. },
  455. confirmTime() {
  456. this.setTimeShow = !this.setTimeShow
  457. this.showShare = !this.showShare
  458. const params = {
  459. companyId: this.user.companyId,
  460. companyUserId: this.user.userId,
  461. courseId: this.info.courseId,
  462. effectiveDuration: this.time,
  463. videoId: this.info.videoId,
  464. periodId: this.info.periodId,
  465. id: this.info.id
  466. }
  467. sharecourselink(params).then(res => {
  468. if (res.code == 200) {
  469. this.copylink = res.url
  470. // if (this.copylink.startsWith('http://')) {
  471. // this.copylink = this.copylink.replace('http://', 'https://');
  472. // }
  473. // console.log(this.copylink)
  474. setTimeout(() => {
  475. uni.setClipboardData({
  476. data: this.copylink,
  477. success: () => {
  478. uni.showToast({
  479. title: '链接已复制',
  480. icon: 'none',
  481. duration: 2000
  482. });
  483. },
  484. fail: () => {
  485. uni.showToast({
  486. title: '复制失败',
  487. icon: 'none'
  488. });
  489. }
  490. });
  491. }, 100)
  492. console.log(this.copylink)
  493. } else {
  494. uni.showToast({
  495. icon: 'none',
  496. title: res.msg
  497. })
  498. }
  499. })
  500. },
  501. getlink(type) {
  502. const params = {
  503. companyId: this.user.companyId,
  504. companyUserId: this.user.userId,
  505. courseId: this.info.courseId,
  506. time: this.time,
  507. periodId: this.info.periodId,
  508. id: this.info.id,
  509. // type: this.type,
  510. videoId: this.info.videoId,
  511. }
  512. sharecourselink(params).then(res => {
  513. if (res.code == 200) {
  514. this.copylink = res.url
  515. // 强制使用 HTTPS
  516. // if (this.copylink.startsWith('http://')) {
  517. // this.copylink = this.copylink.replace('http://', 'https://');
  518. // }
  519. } else {
  520. uni.showToast({
  521. icon: 'none',
  522. title: res.msg
  523. })
  524. }
  525. })
  526. },
  527. handleStatistics() {
  528. const info = {
  529. courseId: this.info.courseId,
  530. title: this.info.title,
  531. thumbnail: this.info.thumbnail,
  532. createTime: this.info.createTime,
  533. duration: this.info.duration,
  534. fileId: this.info.fileId,
  535. courseName: this.info.courseName,
  536. videoId: this.info.videoId,
  537. periodId: this.info.periodId
  538. }
  539. console.log()
  540. uni.navigateTo({
  541. url: '/pages_manage/statistic?info=' + JSON.stringify(info)
  542. })
  543. },
  544. copyId() {
  545. uni.setClipboardData({
  546. data: this.info.title,
  547. success: () => {
  548. // this.$refs.uNotify.show({
  549. // top: 0,
  550. // type: 'success',
  551. // // color: '#000',
  552. // // bgColor: '#e8e8e8',
  553. // message: '复制课程标题成功',
  554. // duration: 1000 * 2,
  555. // fontSize: 20,
  556. // safeAreaInsetTop: true
  557. // })
  558. uni.showToast({
  559. icon: 'none',
  560. title: '复制课程标题成功'
  561. })
  562. }
  563. });
  564. }
  565. }
  566. }
  567. </script>
  568. <style scoped lang="scss">
  569. .card-share {
  570. position: relative;
  571. }
  572. .share {
  573. display: inline-block;
  574. position: absolute;
  575. top: 0;
  576. left: 0;
  577. width: 100%;
  578. height: 100%;
  579. opacity: 0;
  580. }
  581. .imgshe {
  582. display: flex;
  583. flex-direction: row-reverse
  584. }
  585. .point-box {
  586. height: 100%;
  587. width: 100%;
  588. .xu-box {
  589. border: #f5f5f5 4rpx dashed;
  590. padding: 20rpx 20rpx;
  591. }
  592. }
  593. #codeurl {
  594. position: relative;
  595. }
  596. ::v-deep {
  597. .model .u-fade-enter-active {
  598. z-index: 10075 !important;
  599. }
  600. }
  601. .sharePop {
  602. background-color: #fff;
  603. padding: 30rpx 0;
  604. border-radius: 20px 20px 0 0;
  605. /* #ifdef MP-WEIXIN */
  606. /* #endif */
  607. /* #ifdef H5 */
  608. padding-bottom: 100px;
  609. /* #endif */
  610. &-item {
  611. padding: 0 10px;
  612. box-sizing: border-box;
  613. font-family: PingFang SC, PingFang SC;
  614. font-weight: 400;
  615. font-size: 14px;
  616. display: inline-flex !important;
  617. image {
  618. height: 48px;
  619. width: 48px;
  620. margin-bottom: 10px;
  621. }
  622. }
  623. }
  624. .setTimebox {
  625. font-family: PingFang SC, PingFang SC;
  626. font-weight: 400;
  627. font-size: 14px;
  628. }
  629. .timetip {
  630. font-family: PingFang SC, PingFang SC;
  631. font-weight: 400;
  632. font-size: 14px;
  633. color: #2979ff;
  634. text-align: center;
  635. margin-bottom: 5px;
  636. }
  637. .courselist {
  638. font-family: PingFang SC, PingFang SC;
  639. font-weight: 400;
  640. font-size: 14px;
  641. &-item {
  642. width: 100%;
  643. border-radius: 14px;
  644. background-color: #fff;
  645. overflow: hidden;
  646. margin-bottom: 10px;
  647. }
  648. &-con {
  649. padding: 10px 10px 5px 10px;
  650. font-size: 12px;
  651. color: #777;
  652. }
  653. &-con-r {
  654. flex: 1;
  655. overflow: hidden;
  656. .more-t {
  657. flex: 1;
  658. font-size: 14px;
  659. color: #222;
  660. display: inline;
  661. }
  662. image {
  663. width: 20px;
  664. height: 20px;
  665. }
  666. .btn_icon {
  667. font-size: 14px;
  668. color: #1677ff;
  669. display: inline-flex;
  670. align-items: center;
  671. }
  672. }
  673. &-img {
  674. width: 110px;
  675. height: 70px;
  676. border-radius: 10px;
  677. overflow: hidden;
  678. flex-shrink: 0;
  679. margin-right: 10px;
  680. position: relative;
  681. image {
  682. height: 100%;
  683. width: 100%;
  684. }
  685. .status {
  686. position: absolute;
  687. top: 0;
  688. left: 0;
  689. z-index: 2;
  690. height: 21px;
  691. padding: 0 5px;
  692. box-sizing: border-box;
  693. line-height: 21px;
  694. border-radius: 10px 0 10px 0;
  695. text-align: center;
  696. color: #fff;
  697. background-color: #08ce36;
  698. }
  699. }
  700. &-desc {
  701. flex: 1;
  702. margin-top: 7px;
  703. }
  704. &-con-timebox {
  705. margin-top: 7px;
  706. flex-wrap: wrap;
  707. .acea-row {
  708. margin-right: 12px;
  709. margin-bottom: 5px;
  710. flex-wrap: nowrap;
  711. }
  712. .icon {
  713. margin-right: 5px;
  714. }
  715. }
  716. &-footer {
  717. padding: 5px;
  718. font-size: 14px;
  719. &-item {
  720. flex: 1;
  721. text-align: center;
  722. color: #1677ff;
  723. padding: 6px;
  724. box-sizing: border-box;
  725. }
  726. .shishi {
  727. border-left: 1px solid #f5f5f5;
  728. }
  729. .shuju {
  730. border-radius: 5px;
  731. border: 1px solid #1677ff;
  732. }
  733. }
  734. }
  735. </style>