statistics.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884
  1. <template>
  2. <view class="container">
  3. <image class="topbg" :src="info.thumbnail" mode="aspectFill"></image>
  4. <view class="container-body">
  5. <view class="coursebox">
  6. <view class="coursebox-info">
  7. <view class="coursebox-name">
  8. <text class="more-t">{{info.title}}-{{info.courseName}}</text>
  9. <view class="btn_icon" @click="copyId">ID
  10. <image src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/copy_icon.png" mode="aspectFill"></image>
  11. </view>
  12. </view>
  13. <view style="margin-top: 5px;">{{info.courseName}}</view>
  14. <view class="coursebox-time x-start">
  15. <!-- <view class="coursebox-time-item" style="margin-right: 14px;">
  16. <view>直播时间</view>
  17. <view class="coursebox-time-t">{{info.createTime}}</view>
  18. </view> -->
  19. <view class="coursebox-time-item duration">
  20. <view class="fs24">课程时长</view>
  21. <view class="coursebox-time-t">
  22. {{formatSeconds(info.duration || 0,1)}}</view>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="statistics">
  28. <u-tabs :list="list1" :current='current' :scrollable="false" :lineWidth="40" lineColor="#1677ff"
  29. :activeStyle="activeStyle" :inactiveStyle="inactiveStyle" @click="clickTab"></u-tabs>
  30. <u-collapse :border='false' :value='collapseValue' @change="changeCollapse" v-if="current == 0">
  31. <!-- #ifdef MP-WEIXIN -->
  32. <u-collapse-item name="live" title="课程数据">
  33. <!-- #endif -->
  34. <!-- #ifndef MP-WEIXIN -->
  35. <u-collapse-item name="live">
  36. <text slot="title" class="bold fs32">课程数据</text>
  37. <!-- #endif -->
  38. <view slot="value"
  39. class="statistics-slot-title">{{collapseValue.includes('live')?'收回':'展开'}}</view>
  40. <view slot="right-icon">
  41. <u-icon name="arrow-right" color="#1677ff" size="12"></u-icon>
  42. </view>
  43. <view class="collapse-content x-ac">
  44. <view class="collapse-content-item">
  45. <view class="collapse-content-title">观看人数</view>
  46. <view class="collapse-content-num"><text>{{courseCount.courseWatchNum || 0}}</text>人</view>
  47. </view>
  48. <view class="collapse-content-item">
  49. <view class="collapse-content-title">完播人数</view>
  50. <view class="collapse-content-num"><text>{{courseCount.courseCompleteNum || 0}}</text>人
  51. </view>
  52. </view>
  53. <view class="collapse-content-item">
  54. <view class="collapse-content-title">完播率</view>
  55. <view class="collapse-content-num"><text>{{courseCount.courseCompleteRate || 0}}</text>%</view>
  56. </view>
  57. </view>
  58. </u-collapse-item>
  59. <!-- #ifdef MP-WEIXIN -->
  60. <u-collapse-item name="questions" title="答题数据">
  61. <!-- #endif -->
  62. <!-- #ifndef MP-WEIXIN -->
  63. <u-collapse-item name="questions">
  64. <text slot="title" class="bold fs32">答题数据</text>
  65. <!-- #endif -->
  66. <view slot="value"
  67. class="statistics-slot-title">{{collapseValue.includes('questions')?'收回':'展开'}}</view>
  68. <view slot="right-icon">
  69. <u-icon name="arrow-right" color="#1677ff" size="12"></u-icon>
  70. </view>
  71. <view class="collapse-content">
  72. <view class="x-ac">
  73. <view class="collapse-content-item">
  74. <view class="collapse-content-title">答题人数</view>
  75. <view class="collapse-content-num"><text>{{courseCount.answerNum || 0}}</text>人</view>
  76. </view>
  77. <view class="collapse-content-item">
  78. <view class="collapse-content-title">正确人数</view>
  79. <view class="collapse-content-num"><text>{{courseCount.answerRightNum || 0}}</text>人
  80. </view>
  81. </view>
  82. <view class="collapse-content-item">
  83. <view class="collapse-content-title">答题红包数</view>
  84. <view class="collapse-content-num"><text>{{courseCount.redPacketNum || 0}}</text>个
  85. </view>
  86. </view>
  87. </view>
  88. <view class="redenvelope x-bc">
  89. <view class="x-f">
  90. <image src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/redenvelope.png" mode="aspectFill"></image>
  91. <text>答题红包金额</text>
  92. </view>
  93. <view class="collapse-content-num"><text>{{courseCount.redPacketAmount || '0.00'}}</text>元
  94. </view>
  95. </view>
  96. </view>
  97. </u-collapse-item>
  98. <!-- #ifdef MP-WEIXIN -->
  99. <u-collapse-item name="funnelplot" title="转化漏斗图">
  100. <!-- #endif -->
  101. <!-- #ifndef MP-WEIXIN -->
  102. <u-collapse-item name="funnelplot">
  103. <text slot="title" class="bold fs32">转化漏斗图</text>
  104. <!-- #endif -->
  105. <view slot="value"
  106. class="statistics-slot-title">{{collapseValue.includes('funnelplot')?'收回':'展开'}}</view>
  107. <view slot="right-icon">
  108. <u-icon name="arrow-right" color="#1677ff" size="12"></u-icon>
  109. </view>
  110. <view style="height: 600rpx;" v-if="!ratelistState">
  111. <funnelChart :getratelist="getrateimg"/>
  112. </view>
  113. <view v-show="ratelistState" class="center">暂无数据</view>
  114. </u-collapse-item>
  115. </u-collapse>
  116. </view>
  117. <!-- 参与记录 -->
  118. <view v-if="current == 1">
  119. <view class="participate-search">
  120. <view class="x-bc">
  121. <view class="flex-1">
  122. <u-search placeholder="会员ID、昵称、姓名、手机" v-model="keyword" :showAction="false"
  123. height="30px" @search="getkeyword"></u-search>
  124. </view>
  125. <view>
  126. <u-button type="primary" class="refresh" color='#1677ff' size="small" :disabled="disabled"
  127. text="刷新" @click="refresh"></u-button>
  128. </view>
  129. </view>
  130. <view class="x-bc">
  131. <u-tabs :list="list2" :current='currentType' :lineWidth="40" lineColor="#1677ff"
  132. :activeStyle="activeStyle" :inactiveStyle="inactiveStyle" @click="clickTypeTab"></u-tabs>
  133. <!-- <view class="participate-order x-f">
  134. <image src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/order_icon2.png" mode="aspectFill" v-if="searchTypeIndex == 3">
  135. </image>
  136. <image src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/order_icon.png" mode="aspectFill" v-else></image>
  137. <picker @change="bindPickerChange" :value="searchTypeIndex" :range="typeArray">
  138. {{typeoption[searchTypeIndex]}}
  139. </picker>
  140. </view> -->
  141. </view>
  142. </view>
  143. <mescroll-body top="0" bottom="0" ref="mescrollRef" @init="mescrollInit" :down="downOption"
  144. :up="upOption" @down="downCallback" @up="upCallback">
  145. <view class="list">
  146. <view class="list-item" v-for="(item,index) in dataList" :key="index">
  147. <view class="list-item-head x-bc">
  148. <view class="x-f" style="flex: 1;overflow: hidden;">
  149. <u-avatar :src='item.avatar'></u-avatar>
  150. <view class="list-item-head-l">
  151. <view style="flex: 1;overflow: hidden;display: flex;">
  152. <text class="list-item-name one-t">{{item.nickName}}</text>
  153. <image class="list-item-copy" src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/copy_icon.png"
  154. mode="aspectFill"></image>
  155. </view>
  156. <view class="list-item-re">
  157. 注册时间:{{item.createTime?item.createTime.substring(0,10):'--'}}</view>
  158. </view>
  159. </view>
  160. <image class="phone" src="https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/phone.png" mode="aspectFill"></image>
  161. </view>
  162. <view class="list-item-desc">
  163. <view class="taglist">
  164. <view v-for="(e,i) in item.tags">
  165. <u-tag :text="e.tag" size="mini" color="#999" bgColor="#f5f5f5"
  166. borderColor="#f5f5f5"></u-tag>
  167. </view>
  168. </view>
  169. <view style="margin-top: 5px;">
  170. <text class="label">观看次数</text><text
  171. class="value-num">{{item.watchCount || 0}}</text>
  172. <text class="label">完播次数</text><text
  173. class="value-num">{{item.finishCount || 0}}</text>
  174. <text class="label">累计时长</text><text
  175. class="value-num"> {{$formatSeconds(item.watchTime,1)}}</text>
  176. </view>
  177. <view style="margin-top: 5px;">
  178. <text class="label">红包领取状态</text>
  179. <!-- 发送中 1 已发送 -->
  180. <text
  181. class="value-num">{{item.redStatus == 1 ? '已发送': item.redStatus == 0 ? '发送中': item.redStatus}}</text>
  182. </view>
  183. <view style="margin-top: 5px;"><text class="label">观看时间</text><text
  184. class="value-num">{{item.watchDate}}</text></view>
  185. </view>
  186. <!-- <view class="list-item-footer x-f">
  187. <view class="list-item-footer-btn x-f" @click="openModel('name',item)">改姓名</view>
  188. <view class="list-item-footer-btn x-f" @click="openModel('remark',item)">改备注</view>
  189. <view class="list-item-footer-btn footer-tagbtn x-f" @click="openModel('tag',item)">改标签
  190. </view>
  191. </view> -->
  192. </view>
  193. </view>
  194. </mescroll-body>
  195. </view>
  196. <!-- 修改名字/备注-->
  197. <u-modal :show="modelShow" :title="modelTitle" content='content' class="model" :showCancelButton='true'
  198. @cancel="closeModel" @confirm="confirmModel">
  199. <view class="setTimebox">
  200. <u-input fontSize="14px" :placeholder="modelTitle == '修改姓名' ? '请输入姓名':''" v-model="inputVal"
  201. maxlength="5" style="width: 520rpx;"></u-input>
  202. </view>
  203. </u-modal>
  204. <!-- 修改标签 -->
  205. <u-popup :show="showTagSelect" @close='closetagselect' :closeOnClickOverlay='true' mode="bottom">
  206. <view class=" w100 bgf">
  207. <view class="plr28 ptb16 justify-between" style="flex-direction: row-reverse">
  208. <u-icon class="" name="close-circle" color="#ccc" size="24" @click="closetagselect"></u-icon>
  209. </view>
  210. <view class="justify-start p32">
  211. <view class="mlr10 " v-for="(item,index) in changetag" :key='item.tagId'>
  212. <u-tag :text="item.tag" :plain="!item.checked" :name="index"
  213. @click="choosechangeTag"></u-tag>
  214. </view>
  215. </view>
  216. <view class="justify-between p32">
  217. <view class="changetagbtn base-bg-f8" @click="showTagSelect=!showTagSelect">取消</view>
  218. <view class="changetagbtn colorf base-bg-blue" @click="suretagchangeAll">确定</view>
  219. </view>
  220. </view>
  221. </u-popup>
  222. </view>
  223. </view>
  224. </template>
  225. <script>
  226. import {
  227. getCompanyUserAndUserCount,
  228. getshopCoursenum,
  229. getUserLogListByCourseId,
  230. updateFsUser,
  231. getcompanyTaglist,
  232. changeLable,
  233. changeUserName,
  234. getcourseRates
  235. } from "@/api/courseManage.js"
  236. import funnelChart from '@/components/chart.vue'
  237. export default {
  238. components: {
  239. funnelChart,
  240. },
  241. data() {
  242. return {
  243. modelShow: false,
  244. showTagSelect:false,
  245. changetag:'',
  246. modelTitle: '',
  247. inputVal: '',
  248. info: {},
  249. list1: [{
  250. name: '课程数据',
  251. }, {
  252. name: '参与记录',
  253. }],
  254. current: 0,
  255. list2: [{
  256. name: '答题正确',
  257. label: '答题正确',
  258. value: 0
  259. }, {
  260. name: '仅播完',
  261. label: '仅播完',
  262. value: 2
  263. }, {
  264. name: '未完播',
  265. label: '未完播',
  266. value: 1
  267. }, {
  268. name: '未播放',
  269. label: '未播放',
  270. value: 3
  271. }],
  272. currentType: 0,
  273. activeStyle: {
  274. color: '#1677ff',
  275. fontSize: '14px',
  276. fontWeight: 'bold'
  277. },
  278. inactiveStyle: {
  279. fontSize: '14px'
  280. },
  281. collapseValue: ['live', 'questions', 'funnelplot'],
  282. keyword: '',
  283. disabled: false,
  284. searchTypeIndex: 0,
  285. typeArray: ['按看课时间从晚到早', '按完播时间从晚到早', '按注册时间从晚到早', '按会员姓名0-9-A-Z'],
  286. typeoption: ['看课时间', '完播时间', '注册时间', '会员姓名'],
  287. typeoptionOrder: ['desc', 'watchDesc', 'registerDesc', 'nameDesc'],
  288. mescroll: null,
  289. downOption: {
  290. auto: false //不要自动加载
  291. },
  292. upOption: {
  293. onScroll: false,
  294. use: true, // 是否启用上拉加载; 默认true
  295. page: {
  296. num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始
  297. size: 10 // 每页数据的数量,默认10
  298. },
  299. noMoreSize: 10, // 配置列表的总数量要大于等于5条才显示'-- END --'的提示
  300. textNoMore: "已经到底了",
  301. empty: {
  302. icon: 'https://fbylive.obs.cn-southwest-2.myhuaweicloud.com/app/images/empty.png',
  303. tip: '暂无数据'
  304. }
  305. },
  306. dataList: [],
  307. user: {},
  308. todayday: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd'),
  309. courseCount: {},
  310. courseId: '',
  311. chooseUserId: '',
  312. companytag:[],
  313. selectidtag:[],
  314. getrateimg: {},
  315. ratelistState:false,
  316. videoId:''
  317. }
  318. },
  319. onLoad(option) {
  320. this.info = option.info ? JSON.parse(option.info) : {},
  321. this.videoId=this.info.videoId
  322. console.log(this.info)
  323. uni.setNavigationBarTitle({
  324. title: '数据统计'
  325. });
  326. this.user = uni.getStorageSync("companyUserInfo") ? JSON.parse(uni.getStorageSync("companyUserInfo")) : {}
  327. this.courseId = this.info.courseId || ''
  328. this.getrateList()
  329. if (this.courseId)
  330. this.getCount()
  331. },
  332. methods: {
  333. getkeyword(value){
  334. this.keyword=value
  335. this.upCallback()
  336. },
  337. //转化时间格式
  338. formatSeconds(seconds) {
  339. const hours = Math.floor(seconds / 3600);
  340. const minutes = Math.floor((seconds % 3600) / 60);
  341. const remainingSeconds = seconds % 60;
  342. // 补零函数:确保两位数显示
  343. const pad = (num) => num.toString().padStart(2, '0');
  344. return `${pad(hours)}:${pad(minutes)}:${pad(remainingSeconds)}`;
  345. },
  346. getrateList(){
  347. //获取漏斗图
  348. const params={
  349. videoId:this.info.courseId,
  350. }
  351. getcourseRates(params).then(res=>{
  352. if(res.code==200){
  353. this.ratelistState = res.data.every(item => item.value === 0);
  354. this.getrateimg=res
  355. console.log(res)
  356. }else{
  357. uni.showToast({
  358. icon: 'none',
  359. title: res.msg
  360. })
  361. }
  362. })
  363. },
  364. suretagchangeAll(){
  365. this.selectidtag = this.changetag.filter(item => item.checked).map(v=>v.tagId).join(',')
  366. this.changeLabelmore()
  367. },
  368. changeLabelmore() {
  369. //改标签选择按钮
  370. const selid=[]
  371. selid[0]=this.chooseUserId
  372. const params = {
  373. companyId: this.user.companyId,
  374. companyUserId: this.user.userId,
  375. creatTime: '',
  376. createBy: '',
  377. createTime: '',
  378. id: '',
  379. params: {},
  380. remark: '',
  381. searchValue: '',
  382. updateBy: '',
  383. tagIds:this.selectidtag,
  384. updateTime: '',
  385. userId: selid
  386. }
  387. changeLable(params).then(res => {
  388. if (res.code == 200) {
  389. const timer = setTimeout(function() {
  390. uni.showToast({
  391. icon: 'none',
  392. title: '标签更改成功'
  393. })
  394. }, 500);
  395. this.showTagSelect = !this.showTagSelect
  396. this.mescroll.resetUpScroll()
  397. } else {
  398. uni.showToast({
  399. icon: 'none',
  400. title: res.msg
  401. })
  402. }
  403. })
  404. },
  405. closetagselect() {
  406. this.showTagSelect = !this.showTagSelect
  407. },
  408. choosechangeTag(i) {
  409. this.changetag[i].checked = !this.changetag[i].checked
  410. },
  411. getcompanyTag() {
  412. getcompanyTaglist().then(res => {
  413. this.showCompanytag = res.data
  414. this.companytag = res.data.map(item => {
  415. return {
  416. ...item,
  417. checked: false,
  418. }
  419. })
  420. this.changetag=this.companytag
  421. })
  422. },
  423. copyId() {
  424. uni.setClipboardData({
  425. data: this.info.courseName,
  426. success: () => {
  427. uni.showToast({
  428. title: '复制课程标题成功',
  429. icon: 'none'
  430. })
  431. }
  432. });
  433. },
  434. clickTab(e) {
  435. this.current = e.index
  436. },
  437. clickTypeTab(e) {
  438. this.currentType = e.index
  439. this.mescroll.resetUpScroll()
  440. },
  441. bindPickerChange(e) {
  442. console.log('picker发送选择改变,携带值为', e.detail.value)
  443. this.searchTypeIndex = e.detail.value
  444. },
  445. changeCollapse(e) {
  446. this.collapseValue = e.filter(item => item.status == 'open').map(it => it.name)
  447. },
  448. refresh() {
  449. this.mescroll.resetUpScroll()
  450. },
  451. mescrollInit(mescroll) {
  452. this.mescroll = mescroll;
  453. },
  454. /*下拉刷新的回调 */
  455. downCallback(mescroll) {
  456. mescroll.resetUpScroll()
  457. },
  458. upCallback(page) {
  459. //联网加载数据
  460. var that = this;
  461. var data = {
  462. videoId: this.videoId,
  463. type: this.list2[this.currentType].value, // 0:答题正确 1:未完播 2:已完播 3:未播放
  464. pageNum: page.num,
  465. pageSize: page.size,
  466. keyword:this.keyword
  467. };
  468. uni.showLoading({
  469. title: "加载中..."
  470. })
  471. // this.list2[this.currentType].name = this.list2[this.currentType].label
  472. getUserLogListByCourseId(data).then(res => {
  473. uni.hideLoading()
  474. if (res.code == 200) {
  475. //设置列表数据
  476. if (page.num == 1) {
  477. that.dataList = res.data.list;
  478. } else {
  479. that.dataList = that.dataList.concat(res.data.list);
  480. }
  481. // this.list2[this.currentType].name = this.list2[this.currentType].label + (res.data.total)
  482. that.mescroll.endBySize(res.data.list.length, res.data.total);
  483. } else {
  484. uni.showToast({
  485. icon: 'none',
  486. title: "请求失败",
  487. });
  488. that.dataList = null;
  489. that.mescroll.endErr();
  490. }
  491. });
  492. },
  493. getCount() {
  494. const param = {
  495. videoId: this.courseId,
  496. // endTime: this.todayday + ' 23:59:59',
  497. // startTime: this.todayday + ' 00:00:00',
  498. }
  499. this.getCourseCount(param)
  500. },
  501. getCourseCount(param) {
  502. getshopCoursenum(param).then(res => {
  503. if (res.code == 200) {
  504. this.courseCount = res.data
  505. } else {
  506. uni.showToast({
  507. icon: 'none',
  508. title: res.msg,
  509. });
  510. }
  511. })
  512. },
  513. openModel(type, item) {
  514. this.chooseUserId = item.userId
  515. if (type == 'name') {
  516. this.modelTitle = '修改姓名'
  517. this.inputVal = item.nickName || ''
  518. this.modelShow = true
  519. } else if (type == 'remark') {
  520. this.modelTitle = '修改备注'
  521. this.inputVal = item.remark || ''
  522. this.modelShow = true
  523. }else{
  524. this.getcompanyTag()
  525. this.showTagSelect=!this.showTagSelect
  526. }
  527. },
  528. closeModel() {
  529. this.modelShow = false
  530. this.inputVal = ''
  531. },
  532. confirmModel() {
  533. this.modelShow = false
  534. if (this.modelTitle == '修改姓名') {
  535. const param = {
  536. userId: this.chooseUserId,
  537. nickName: this.inputVal,
  538. }
  539. this.updateFsUser(param)
  540. // this.updataName()
  541. } else if (this.modelTitle == '修改备注') {
  542. const param = {
  543. userId: this.chooseUserId,
  544. remark: this.inputVal,
  545. }
  546. this.updateFsUser(param)
  547. // this.updataName()
  548. }
  549. },
  550. updateFsUser(param) {
  551. console.log(param)
  552. updateFsUser(param).then(res => {
  553. if (res.code == 200) {
  554. uni.showToast({
  555. icon: 'none',
  556. title: '标签更改成功'
  557. })
  558. this.redPacketCount = res.data
  559. this.mescroll.resetUpScroll()
  560. } else {
  561. uni.showToast({
  562. icon: 'none',
  563. title: res.msg,
  564. });
  565. }
  566. })
  567. }
  568. }
  569. }
  570. </script>
  571. <style lang="scss" scoped>
  572. .checked-bg {
  573. border: 1px solid #1677ff !important;
  574. color: #1677ff !important;
  575. background-color: #e7f1fe !important;
  576. }
  577. .changetagbtn{
  578. width: 45%;
  579. height: 80rpx;
  580. border-radius: 50rpx;
  581. text-align: center;
  582. line-height: 80rpx;
  583. }
  584. .container {
  585. position: relative;
  586. z-index: 2;
  587. font-family: PingFang SC, PingFang SC;
  588. font-weight: 400;
  589. font-size: 14px;
  590. color: #222;
  591. .topbg {
  592. position: absolute;
  593. z-index: -1;
  594. top: 0;
  595. left: 0;
  596. width: 100%;
  597. height: 280px;
  598. }
  599. &-body {}
  600. .coursebox {
  601. padding: 120px 50rpx 20px 50rpx;
  602. font-family: PingFang SC, PingFang SC;
  603. font-weight: 400;
  604. font-size: 14px;
  605. color: #888;
  606. .status {
  607. position: absolute;
  608. top: 0;
  609. right: 0;
  610. z-index: 2;
  611. height: 30px;
  612. padding: 0 8px;
  613. box-sizing: border-box;
  614. line-height: 30px;
  615. border-radius: 0 12px 0 12px;
  616. text-align: center;
  617. color: #fff;
  618. background-color: #08ce36;
  619. }
  620. &-info {
  621. padding: 12px;
  622. background-color: rgba(255, 255, 255, 0.8);
  623. border-radius: 12px;
  624. overflow: hidden;
  625. position: relative;
  626. }
  627. &-name {
  628. color: #222;
  629. font-weight: bold;
  630. font-size: 16px;
  631. padding-right: 50px;
  632. .more-t {
  633. flex: 1;
  634. font-size: 14px;
  635. color: #222;
  636. display: inline;
  637. }
  638. }
  639. &-time-item {
  640. flex: 1;
  641. margin-top: 5px;
  642. }
  643. &-time-t {
  644. color: #222;
  645. font-weight: bold;
  646. margin-top: 5px;
  647. font-size: 12px;
  648. }
  649. .duration {
  650. position: relative;
  651. // padding-left: 14px;
  652. &::after {
  653. content: "";
  654. height: 30px;
  655. width: 1px;
  656. background-color: #f5f5f5;
  657. position: absolute;
  658. left: 0;
  659. top: 5px;
  660. }
  661. }
  662. }
  663. }
  664. .statistics {
  665. background-color: #fff;
  666. &-title {
  667. font-family: PingFang SC, PingFang SC;
  668. font-weight: bold;
  669. font-size: 16px;
  670. color: #222222;
  671. }
  672. &-title-tip {
  673. font-weight: 400;
  674. font-size: 11px;
  675. color: #999;
  676. padding-left: 10px;
  677. }
  678. &-slot-title {
  679. font-size: 12px;
  680. color: #1677ff;
  681. }
  682. .collapse-content {
  683. margin: 0 -8px -8rpx 0;
  684. &-item {
  685. flex: 1;
  686. padding: 12px;
  687. box-sizing: border-box;
  688. border-radius: 10px;
  689. background: #f5f5f5;
  690. font-family: PingFang SC, PingFang SC;
  691. font-weight: 400;
  692. font-size: 10px;
  693. color: #222222;
  694. margin: 0 8px 8rpx 0;
  695. }
  696. &-title {
  697. font-size: 14px;
  698. margin-bottom: 10px;
  699. }
  700. &-num {
  701. color: #1677ff;
  702. font-size: 10px;
  703. text {
  704. font-family: DIN, DIN;
  705. font-weight: bold;
  706. font-size: 25px;
  707. }
  708. }
  709. }
  710. .redenvelope {
  711. background-color: #f5f5f5;
  712. margin-right: 8px;
  713. margin-top: 4px;
  714. padding: 15px;
  715. box-sizing: border-box;
  716. border-radius: 10px;
  717. color: #222222;
  718. image {
  719. width: 50px;
  720. height: 50px;
  721. margin-right: 10px;
  722. }
  723. }
  724. }
  725. .participate-search {
  726. background-color: #fff;
  727. padding: 10px 15px;
  728. .refresh {
  729. height: 26px;
  730. min-width: 40px;
  731. width: 40px;
  732. padding: 0;
  733. display: inline-flex;
  734. margin-left: 15px;
  735. border-radius: 5px;
  736. overflow: hidden;
  737. }
  738. }
  739. .participate-order {
  740. font-size: 12px;
  741. image {
  742. width: 15px;
  743. height: 15px;
  744. }
  745. }
  746. .btn_icon {
  747. font-weight: 400;
  748. font-size: 14px;
  749. color: #1677ff;
  750. display: inline-flex;
  751. align-items: center;
  752. margin-left: 5px;
  753. image {
  754. width: 20px;
  755. height: 20px;
  756. }
  757. }
  758. .list {
  759. padding: 20px 10px;
  760. }
  761. .list-item {
  762. padding: 10px;
  763. margin-bottom: 10px;
  764. background-color: #fff;
  765. border-radius: 12px;
  766. &-head {
  767. .phone {
  768. flex-shrink: 0;
  769. width: 30px;
  770. height: 30px;
  771. }
  772. &-l {
  773. flex: 1;
  774. overflow: hidden;
  775. margin-left: 10px;
  776. margin-right: 10px;
  777. }
  778. }
  779. &-copy {
  780. width: 20px;
  781. height: 20px;
  782. }
  783. &-re {
  784. font-size: 10px;
  785. margin-top: 5px;
  786. }
  787. &-desc {
  788. padding: 5px;
  789. color: #999;
  790. font-size: 12px;
  791. }
  792. .label {
  793. margin-right: 4px;
  794. }
  795. .value-num {
  796. margin-right: 18px;
  797. color: #222;
  798. font-weight: bold;
  799. }
  800. .taglist {
  801. display: flex;
  802. align-items: center;
  803. flex-wrap: wrap;
  804. color: #555;
  805. padding-top: 5px;
  806. view {
  807. margin: 0 5px 5px 0;
  808. }
  809. }
  810. &-footer {
  811. justify-content: flex-end;
  812. padding: 6px 0;
  813. .footer-tagbtn {
  814. color: #1677ff;
  815. background-color: #e7f2fe;
  816. border: 1px solid #c9e1fb;
  817. }
  818. &-btn {
  819. height: 26px;
  820. padding: 0 10px;
  821. margin-left: 10px;
  822. background-color: #f5f5f5;
  823. border-radius: 25px;
  824. font-weight: 400;
  825. font-size: 10px;
  826. line-height: 26px;
  827. border: 1px solid #f5f5f5;
  828. box-sizing: border-box;
  829. }
  830. }
  831. }
  832. </style>