statistic.vue 24 KB

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