statistic.vue 23 KB

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