statistics.vue 23 KB

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