Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

1038 lignes
23 KiB

  1. <template>
  2. <view class="pages">
  3. <!-- 日报内容部分 -->
  4. <view class="container">
  5. <!-- 头部日报卡 -->
  6. <view class="c-head-card">
  7. <view class="c-title-text">
  8. {{ projectName || '' }}数智工牌周报
  9. </view>
  10. <text class="date">{{ weekObj.createTimeName }}</text>
  11. <view class="creative-time">
  12. 生成时间:{{ weekObj.createTime || '--' }}
  13. </view>
  14. </view>
  15. </view>
  16. <!-- 简报 -->
  17. <view class="briefing">
  18. <view class="briefing-title">
  19. 简报
  20. </view>
  21. <!-- 简报表格部分 -->
  22. <view class="briefing-box">
  23. <block v-for="(data, index) in numlist" :key="index">
  24. <view class="briefing-box-item">
  25. <view class="tops" :class="[data.class || '']">
  26. {{ data.name }}
  27. </view>
  28. <view class="middle" :class="[data.class || '']">
  29. {{ data.num || 0 }}
  30. </view>
  31. <view class="bottom">
  32. 对比上周: {{ data.preNum || 0 }}
  33. <text class="b-text"
  34. :class="{up: data.percent > 0, down: data.percent < 0}">{{ data.percent || '0' }}</text>
  35. <template v-if="data.percent != 0">
  36. <text style="margin-left: 8rpx;font-size: 34rpx;font-weight: bold;"
  37. :class="{up: data.percent > 0, down: data.percent < 0}">{{ data.percent > 0 ? '↑' : '↓' }}</text>
  38. </template>
  39. </view>
  40. </view>
  41. </block>
  42. </view>
  43. </view>
  44. <!-- 销讲场景执行排名 -->
  45. <view class="execution-ranking">
  46. <view class="execution-ranking-title">
  47. 销讲场景执行排名
  48. </view>
  49. <template v-if="isShowXJTop1List">
  50. <view class="execution-ranking-desc" v-if="false">
  51. <text>销讲场景平均执行对比上周</text>
  52. <text>{{ rankTop('fractionPKName') }}</text>
  53. <text>{{ rankTop('fractionPK') }}</text>
  54. <text>%</text>
  55. <template v-if="rankTop('fractionBastValue') > 0">
  56. <text>,其中【{{ rankTop('fractionBastName') }}】最强为</text>
  57. <text class="up">{{ rankTop('fractionBastValue') }}</text>
  58. <text>%</text>
  59. </template>
  60. <template v-if="rankTop('fractionLastValue') < 0">
  61. <text>,【{{ rankTop('fractionLastName') }}】执行最弱为</text>
  62. <text class="down">{{ rankTop('fractionLastValue') }}</text>
  63. <text>%;</text>
  64. </template>
  65. </view>
  66. <!-- 排名百分比列表 -->
  67. <view class="ranking-box">
  68. <block v-for="(percent, index) in weekObj.XJTop1List" :key="index">
  69. <view class="ranking-item">
  70. <view class="left">{{ percent.title }}</view>
  71. <view class="middle">
  72. <u-line-progress :active-color="$options.filters.setColor(index)"
  73. inactive-color="#F2F2F2" :show-percent="false" :percent="percent.value">
  74. </u-line-progress>
  75. </view>
  76. <view class="right"> {{ percent.value || '0' }} %</view>
  77. </view>
  78. </block>
  79. </view>
  80. </template>
  81. <template v-else>
  82. <view class="empity">
  83. 暂无数据
  84. </view>
  85. </template>
  86. </view>
  87. <!-- 接待统计 -->
  88. <view class="statistics">
  89. <view class="statistics-title">
  90. 接待统计
  91. </view>
  92. <template v-if="isShowStatistics">
  93. <view class="statistics-desc" v-if="false">
  94. <text>
  95. 顾问平均执行率对比上周
  96. </text>
  97. <text>
  98. {{ rankTop('ranktype') || '' }}
  99. </text>
  100. <text :class="[rankTop('class')]">{{ rankTop('people') || '' }}</text>
  101. <text class="">
  102. 人,其中{{ rankTop('topName') || '' }}上升
  103. </text>
  104. <text class="up">{{ rankTop('topPk') || '0' }}</text>
  105. <text class="">
  106. %为最高,{{ rankTop('lastName') || '' }}下降
  107. </text>
  108. <text class="down">{{ rankTop('lastPk') || '0' }}</text>
  109. <text class="">
  110. %降幅最大。
  111. </text>
  112. </view>
  113. <view class="table">
  114. <view class="thead">
  115. <block v-for="(head, headIndex) in tableHead" :key="headIndex">
  116. <view class="thead-item" :style="[head.style]">
  117. {{ head.title }}
  118. </view>
  119. </block>
  120. </view>
  121. <view class="tbody">
  122. <block v-for="(data, index) in weekObj.customerInfo1" :key="index">
  123. <view class="tbody-item">
  124. <view class="tbody-items name">{{ data.name }}</view>
  125. <view class="tbody-items nums">{{ data.activeCustomer }}</view>
  126. <view class="tbody-items time">{{ data.avgDuration }}m</view>
  127. <view class="tbody-items percent">{{ data.fraction }}%</view>
  128. <view class="tbody-items week" :class="{up: data.pk > 0, down: data.pk < 0}">
  129. {{ data.pk > 0 ? `+${data.pk}` : data.pk }}%
  130. </view>
  131. </view>
  132. </block>
  133. </view>
  134. </view>
  135. </template>
  136. <template v-else>
  137. <view class="empity">
  138. 暂无数据
  139. </view>
  140. </template>
  141. </view>
  142. <!-- 顾问排名 -->
  143. <view class="guwen-ranking">
  144. <view class="guwen-ranking-title">
  145. 顾问销讲执行率排名(TOP10)
  146. </view>
  147. <template v-if="isShowZXLTopList">
  148. <!-- 排名百分比列表 -->
  149. <view class="ranking-box">
  150. <block v-for="(percent, index) in weekObj.ZXLTopList" :key="index">
  151. <view class="ranking-item">
  152. <view class="left">{{ percent.title }}</view>
  153. <view class="middle">
  154. <u-line-progress :active-color="$options.filters.setColor(index)"
  155. inactive-color="#F2F2F2" :show-percent="false" :percent="percent.value">
  156. </u-line-progress>
  157. </view>
  158. <view class="right"> {{ percent.value || '0' }} %</view>
  159. </view>
  160. </block>
  161. </view>
  162. </template>
  163. <template v-else>
  164. <view class="empity">
  165. 暂无数据
  166. </view>
  167. </template>
  168. </view>
  169. <!-- 顾问排名 -->
  170. <view class="guwen-ranking">
  171. <view class="guwen-ranking-title">
  172. 顾问接待量排名(TOP10)
  173. </view>
  174. <template v-if="isShowJDLTopList">
  175. <!-- 排名百分比列表 -->
  176. <view class="ranking-box">
  177. <block v-for="(percent, index) in weekObj.JDLTopList" :key="index">
  178. <view class="ranking-item">
  179. <view class="left">{{ percent.title }}</view>
  180. <view class="middle">
  181. <u-line-progress :active-color="$options.filters.setColor(index)"
  182. inactive-color="#F2F2F2" :show-percent="false" :percent="percent.value">
  183. </u-line-progress>
  184. </view>
  185. <view class="right"> {{ percent.value || '0' }} </view>
  186. </view>
  187. </block>
  188. </view>
  189. </template>
  190. <template v-else>
  191. <view class="empity">
  192. 暂无数据
  193. </view>
  194. </template>
  195. </view>
  196. <!-- 使用建议 -->
  197. <view class="proposal" v-if="weekObj.suggest">
  198. <view class="proposal-title">
  199. 使用建议
  200. </view>
  201. <!-- 建议的文字 -->
  202. <view class="proposal-box">
  203. <u-parse class="ql-editor" :content="weekObj.suggest" />
  204. </view>
  205. </view>
  206. <!-- 底部按钮 -->
  207. <view class="nav-footer">
  208. <view class="footer-item full">
  209. <button open-type="share" class="fulls">
  210. 分享给好友
  211. </button>
  212. </view>
  213. </view>
  214. </view>
  215. </template>
  216. <script>
  217. import uParse from '@/components/gaoyia-parse/parse.vue'
  218. export default {
  219. components: {
  220. uParse
  221. },
  222. data() {
  223. return {
  224. tableHead: [{
  225. title: '顾问',
  226. style: {
  227. flex: 1
  228. }
  229. },
  230. {
  231. title: '接待量',
  232. style: {
  233. flex: 1
  234. }
  235. },
  236. {
  237. title: '平均接待时长',
  238. style: {
  239. flex: 2
  240. }
  241. },
  242. {
  243. title: '平均执行率',
  244. style: {
  245. flex: 2
  246. }
  247. },
  248. {
  249. title: '对比上周',
  250. style: {
  251. flex: 1.5
  252. }
  253. },
  254. ],
  255. id: '', // id
  256. needList: ['JDLTop', 'ZXLTop', 'XJTop1'], // 需要转换数组的内容
  257. // 简报
  258. numlist: [{
  259. name: '接待量 (次)',
  260. num: '',
  261. setName: 'receptionCount1',
  262. percent: '',
  263. percentName: 'receptionCountPK',
  264. preNum: '', // 上周数量
  265. preNumName: 'receptionCount2', //
  266. }, {
  267. name: '有效接待 (次)',
  268. num: '',
  269. setName: 'activeCustomer1',
  270. percent: '',
  271. percentName: 'activeCustomerPK',
  272. preNum: '', // 上周数量
  273. preNumName: 'activeCustomer2', //
  274. },
  275. {
  276. name: '平均执行率(%)',
  277. num: '',
  278. setName: 'fraction1',
  279. percent: '',
  280. percentName: 'fractionPK',
  281. preNum: '', // 上周数量
  282. preNumName: 'fraction2', //
  283. },
  284. {
  285. name: '平均接待时长(分)',
  286. num: '',
  287. setName: 'avgDuration1',
  288. percent: '',
  289. percentName: 'avgDurationPK',
  290. preNum: '', // 上周数量
  291. preNumName: 'avgDuration2', //
  292. },
  293. {
  294. name: '违禁接待 (次)',
  295. num: '',
  296. setName: 'prohibitedNum1',
  297. percent: '',
  298. percentName: 'prohibitedNumPK',
  299. preNum: '', // 上周数量
  300. preNumName: 'prohibitedNum2', //
  301. class: 'down',
  302. },
  303. {
  304. name: '客户画像触达 (次)',
  305. num: '',
  306. setName: 'reachSum1',
  307. percent: '',
  308. percentName: 'reachSumPK',
  309. preNum: '', // 上周数量
  310. preNumName: 'reachSum2', //
  311. },
  312. {
  313. name: '已标记',
  314. num: '',
  315. setName: 'labelledReceptionNum1',
  316. percent: '',
  317. percentName: 'labelledReceptionNumPK',
  318. preNum: '', // 上周数量
  319. preNumName: 'labelledReceptionNum2', //
  320. },
  321. {
  322. name: '未标记',
  323. num: '',
  324. setName: 'unlabelledReceptionNum1',
  325. percent: '',
  326. percentName: 'unlabelledReceptionNumPK',
  327. preNum: '', // 上周数量
  328. preNumName: 'unlabelledReceptionNum2', //
  329. class: 'down',
  330. },
  331. ],
  332. // 周报详情
  333. weekObj: {},
  334. projectName: '', // 项目名称
  335. }
  336. },
  337. computed: {
  338. // 排名最高与最低
  339. rankTop() {
  340. return name => {
  341. let obj = {}
  342. try {
  343. if (this.weekObj.customerInfo1.length && this.weekObj.customerInfo2.length) {
  344. obj.ranktype = (this.weekObj.customerInfo1.length - this.weekObj.customerInfo2.length) >
  345. 0 ? '上升' : '下降'
  346. obj.people = Math.abs(this.weekObj.customerInfo1.length - this.weekObj.customerInfo2
  347. .length)
  348. }
  349. if (this.weekObj.customerInfo1 && this.weekObj.customerInfo1.length > 0) {
  350. obj.topName = this.weekObj.customerInfo1[0].name
  351. obj.topPk = Math.abs(this.weekObj.customerInfo1[0].pk)
  352. obj.lastName = this.weekObj.customerInfo1[this.weekObj.customerInfo1.length - 1].name,
  353. obj.lastPk = Math.abs(this.weekObj.customerInfo1[this.weekObj.customerInfo1.length - 1]
  354. .pk)
  355. }
  356. if (this.weekObj.customerInfo1.length && this.weekObj.customerInfo2.length) {
  357. obj.class = (this.weekObj.customerInfo1.length - this.weekObj.customerInfo2.length) > 0 ?
  358. 'up' : 'down'
  359. }
  360. if (this.weekObj.fractionPK) {
  361. obj.fractionPKName = this.weekObj.fractionPK > 0 ? '上涨' : '下跌'
  362. obj.fractionPK = Math.abs(this.weekObj.fractionPK)
  363. }
  364. if (this.weekObj.XJTop1List && this.weekObj.XJTop1List.length > 0) {
  365. obj.fractionBastName = this.weekObj.XJTop1List[0].title
  366. obj.fractionBastValue = this.weekObj.XJTop1List[0].value
  367. }
  368. if (this.weekObj.XJTop1List && this.weekObj.XJTop1List.length > 0) {
  369. obj.fractionLastName = this.weekObj.XJTop1List[this.weekObj.XJTop1List.length - 1].title
  370. obj.fractionLastValue = this.weekObj.XJTop1List[this.weekObj.XJTop1List.length - 1].value
  371. }
  372. return obj[name] || ''
  373. } catch (e) {
  374. console.log(e)
  375. return ''
  376. }
  377. }
  378. },
  379. // 接待统计
  380. isShowStatistics() {
  381. // return this.rankTop('ranktype') && this.rankTop('class') && this.rankTop('people') && this.rankTop('topName') && this.rankTop('topPk') && this.rankTop('lastName') && this.rankTop('lastPk') && this.weekObj.customerInfo1 && this.weekObj.customerInfo1.length > 0
  382. return this.weekObj.customerInfo1 && this.weekObj.customerInfo1.length > 0
  383. },
  384. isShowXJTop1List() {
  385. // return this.weekObj.XJTop1List && this.weekObj.XJTop1List.length > 0 && this.rankTop('fractionPKName') && this.rankTop('fractionPK') && this.rankTop('fractionBastName') && this.rankTop('fractionBastValue') && this.rankTop('fractionLastName') && this.rankTop('fractionLastName') && this.rankTop('fractionLastValue')
  386. return this.weekObj.XJTop1List && this.weekObj.XJTop1List.length > 0
  387. },
  388. isShowZXLTopList() {
  389. return this.weekObj.ZXLTopList && this.weekObj.ZXLTopList.length > 0
  390. },
  391. isShowJDLTopList() {
  392. return this.weekObj.JDLTopList && this.weekObj.JDLTopList.length > 0
  393. },
  394. },
  395. onLoad(option) {
  396. if (option.id) this.id = option.id
  397. this.getMessage()
  398. },
  399. onShareAppMessage() {
  400. return {
  401. title: `${this.projectName}数智工牌周报`,
  402. path: `/pages/reportExcel/weekReport?id=${this.id}`
  403. }
  404. },
  405. methods: {
  406. // 获取周报详情
  407. getMessage() {
  408. this.$u.get('/zkMessage/findByProjectId', {
  409. id: this.id
  410. }).then(res => {
  411. console.log(res)
  412. let data = JSON.parse(res.zkMessage.content)
  413. console.log(data)
  414. this.bubbleSort(data.customerInfo1, 'pk')
  415. this.bubbleSort(data.customerInfo2, 'pk')
  416. data.customerInfo1.reverse()
  417. data.customerInfo2.reverse()
  418. this.weekObj = {
  419. ...res.zkMessage,
  420. ...data
  421. }
  422. this.weekObj.createTimeName = this.getTimeLines(this.weekObj.weekDate, 1)
  423. console.log(this.weekObj, 'this.weekObj')
  424. this.projectName = res.projectName
  425. this.numlist.forEach(item => {
  426. if (data[item.setName]) {
  427. item.num = data[item.setName]
  428. }
  429. if (data[item.percentName]) {
  430. item.percent = data[item.percentName]
  431. }
  432. if (data[item.preNumName]) {
  433. item.preNum = data[item.preNumName]
  434. }
  435. })
  436. this.init()
  437. }).catch(e => {
  438. console.log(e)
  439. })
  440. },
  441. // 把对象转成数组并在后续的步骤方便处理
  442. init() {
  443. console.log(this.weekObj, 'this.weekObj')
  444. this.needList.forEach(item => {
  445. if (this.weekObj[item] && Object.keys(this.weekObj[item]).length > 0) {
  446. this.weekObj[item + 'List'] = [] // 销讲执行
  447. for (let i in this.weekObj[item]) {
  448. this.weekObj[item + 'List'].push({
  449. title: i,
  450. value: this.weekObj[item][i]
  451. })
  452. }
  453. }
  454. })
  455. this.sortInitArr()
  456. },
  457. // 排序对象转换后的数组
  458. sortInitArr() {
  459. this.needList.forEach(item => {
  460. if (this.weekObj[item + 'List']) {
  461. this.bubbleSort(this.weekObj[item + 'List'])
  462. }
  463. })
  464. this.reverseList()
  465. },
  466. // 反转数组
  467. reverseList() {
  468. this.needList.forEach(item => {
  469. if (this.weekObj[item + 'List']) {
  470. this.weekObj[item + 'List'].reverse()
  471. }
  472. })
  473. console.log(this.weekObj, '12312312312')
  474. },
  475. // 冒泡排序
  476. bubbleSort(arr, keys = 'value') {
  477. for (let i = 0; i < arr.length - 1; i += 1) {
  478. //通过 arr.length 次把第一位放到最后,完成排序
  479. //-i是因为最后的位置是会动态改变的,当完成一次后,最后一位会变成倒数第二位
  480. for (let j = 0; j < arr.length - 1 - i; j += 1) {
  481. if (arr[j][keys] > arr[j + 1][keys]) {
  482. const temp = arr[j];
  483. arr[j] = arr[j + 1];
  484. arr[j + 1] = temp;
  485. }
  486. }
  487. }
  488. },
  489. // 转换时间
  490. getTimeLine(date, type = 1) {
  491. let resu = '--'
  492. if (!date) return resu
  493. let time = new Date(date.replace(/-/g, '/'))
  494. time.setDate(time.getDate() - 7)
  495. let arr = date.split(' ')
  496. let str = arr[0]
  497. let result = str.split('-')
  498. let m = (time.getMonth() + 1) < 10 ? `0${time.getMonth() + 1}` : (time.getMonth() + 1)
  499. let d = time.getDate() < 10 ? `0${time.getDate()}` : time.getDate()
  500. if (type == 1) {
  501. resu = `${m}.${d}-${result[1]}.${result[2]}`
  502. } else {
  503. resu = `${m}月${d}日~${result[1]}月${result[2]}日`
  504. }
  505. return resu
  506. },
  507. // 转换时间
  508. getTimeLines(date) {
  509. if (!date) return ''
  510. let arr = date.split('~')
  511. let str0 = arr[0].split('-')
  512. let str1 = arr[1].split('-')
  513. return `${str0[1]}月${str0[2]}日~${str1[1]}月${str1[2]}日`
  514. },
  515. },
  516. filters: {
  517. // 时间格式转换
  518. fomatDate(date) {
  519. if (!date) return '--'
  520. let arr = date.split(' ')
  521. let str = arr[0]
  522. let result = str.split('-')
  523. return `${result[1]}-${result[2]}`
  524. },
  525. // 转换时间
  526. getTimeLine(date, type = 1) {
  527. if (!date) return '--'
  528. console.log(date.replace(/-/g, '/'))
  529. let time = new Date(date.replace(/-/g, '/'))
  530. time.setDate(time.getDate() - 7)
  531. let arr = date.split(' ')
  532. let str = arr[0]
  533. let result = str.split('-')
  534. let m = (time.getMonth() + 1) < 10 ? `0${time.getMonth() + 1}` : (time.getMonth() + 1)
  535. let d = time.getDate() < 10 ? `0${time.getDate()}` : time.getDate()
  536. if (type == 1) {
  537. return `${m}.${d}-${result[1]}.${result[2]}`
  538. } else {
  539. return `${m}月${d}日~${result[1]}月${result[2]}日`
  540. }
  541. },
  542. // 设置颜色
  543. setColor(index) {
  544. let color = ''
  545. switch (index) {
  546. case 0:
  547. color = '#E7483C';
  548. break;
  549. case 1:
  550. color = '#FF8C13';
  551. break;
  552. case 2:
  553. color = '#FFCC00';
  554. break;
  555. default:
  556. color = '#4FC78F';
  557. break;
  558. }
  559. return color
  560. },
  561. }
  562. }
  563. </script>
  564. <style lang="scss" scoped>
  565. @import '@/static/css/quill/quill.core.css';
  566. @import '@/static/css/quill/quill.snow.css';
  567. @import '@/static/css/quill/quill.bubble.css';
  568. .pages {
  569. width: 100vw;
  570. min-height: 100vh;
  571. display: flex;
  572. flex-direction: column;
  573. background: #F8F8F8;
  574. .nav-header {
  575. flex-shrink: 0;
  576. }
  577. .container {
  578. padding: 30rpx 30rpx 40rpx;
  579. display: flex;
  580. flex-direction: column;
  581. background: #fff;
  582. .c-head-card {
  583. padding: 30rpx;
  584. width: 100%;
  585. min-height: 252rpx;
  586. border: 2rpx solid #000000;
  587. border-radius: 12rpx;
  588. box-shadow: 10rpx 10rpx #2671E2;
  589. display: flex;
  590. flex-direction: column;
  591. .c-title-text {
  592. // position: relative;
  593. flex-grow: 1;
  594. font-size: 48rpx;
  595. font-weight: bold;
  596. color: #303030;
  597. }
  598. .date {
  599. // position: absolute;
  600. // right: 0;
  601. // bottom: 6rpx;
  602. font-size: 30rpx;
  603. color: #303030;
  604. }
  605. .creative-time {
  606. margin: 20rpx 0 0 0;
  607. flex-shrink: 0;
  608. }
  609. }
  610. }
  611. .briefing {
  612. background: #fff;
  613. .briefing-title {
  614. padding: 0 30rpx;
  615. height: 90rpx;
  616. display: flex;
  617. align-items: center;
  618. border: 1rpx solid #E0E0E0;
  619. font-size: 32rpx;
  620. font-weight: bold;
  621. }
  622. .briefing-box {
  623. width: 100%;
  624. display: flex;
  625. flex-wrap: wrap;
  626. .briefing-box-item {
  627. padding: 20rpx 30rpx;
  628. width: 50%;
  629. height: 186rpx;
  630. border: 1px solid #E0E0E0;
  631. border-left: none;
  632. border-top: none;
  633. &:nth-of-type(2n) {
  634. border-right: none;
  635. }
  636. .top {
  637. font-size: 28rpx;
  638. }
  639. .middle {
  640. margin: 14rpx 0 12rpx;
  641. font-size: 32rpx;
  642. font-weight: 600;
  643. color: #333333;
  644. }
  645. .bottom {
  646. font-size: 26rpx;
  647. color: #666666;
  648. .b-text {
  649. margin-left: 20rpx;
  650. &.down {
  651. color: #43CD80;
  652. font-size: 34rpx;
  653. }
  654. &.up {
  655. font-size: 34rpx;
  656. color: #E7483C;
  657. }
  658. }
  659. }
  660. }
  661. }
  662. }
  663. .execution-ranking {
  664. margin: 20rpx 0 0 0;
  665. padding: 30rpx;
  666. background: #fff;
  667. .execution-ranking-title {
  668. font-size: 32rpx;
  669. font-weight: bold;
  670. }
  671. .execution-ranking-desc {
  672. margin-top: 20rpx;
  673. font-size: 30rpx;
  674. }
  675. .ranking-box {
  676. margin: 30rpx 0 0 0;
  677. .ranking-item {
  678. margin-bottom: 18rpx;
  679. display: flex;
  680. &:nth-last-of-type(1) {
  681. margin-bottom: 0;
  682. }
  683. .left {
  684. flex-shrink: 0;
  685. width: 140rpx;
  686. font-size: 30rpx;
  687. overflow: hidden;
  688. text-overflow: ellipsis;
  689. white-space: nowrap;
  690. }
  691. .middle {
  692. flex-grow: 1;
  693. }
  694. .right {
  695. flex-shrink: 0;
  696. width: 118rpx;
  697. font-size: 30rpx;
  698. text-align: center;
  699. }
  700. }
  701. }
  702. }
  703. .statistics {
  704. margin: 20rpx 0 0 0;
  705. background: #fff;
  706. .statistics-title {
  707. padding: 30rpx 30rpx 0;
  708. width: 100%;
  709. font-size: 32rpx;
  710. font-weight: bold;
  711. }
  712. .statistics-desc {
  713. padding: 0 30rpx;
  714. margin-top: 20rpx;
  715. }
  716. .table {
  717. margin: 30rpx 0 0 0;
  718. .thead {
  719. padding: 0 30rpx;
  720. width: 100%;
  721. height: 72rpx;
  722. display: flex;
  723. align-items: center;
  724. border: 1rpx solid #E0E0E0;
  725. border-left: none;
  726. border-right: none;
  727. font-size: 26rpx;
  728. .thead-item {
  729. text-align: center;
  730. }
  731. }
  732. .tbody {
  733. .tbody-item {
  734. padding: 0 30rpx;
  735. display: flex;
  736. align-items: center;
  737. height: 72rpx;
  738. background: #FAFCFF;
  739. &:nth-of-type(2n) {
  740. background: #FFFFFF;
  741. }
  742. .tbody-items {
  743. flex: 1;
  744. display: flex;
  745. justify-content: center;
  746. }
  747. .name {
  748. justify-content: flex-start;
  749. overflow: hidden;
  750. text-overflow: ellipsis;
  751. white-space: nowrap;
  752. }
  753. .time {
  754. flex: 2;
  755. }
  756. .percent {
  757. flex: 2;
  758. }
  759. .week {
  760. flex: 1.5;
  761. }
  762. }
  763. }
  764. .tbottom {
  765. width: 100%;
  766. height: 72rpx;
  767. display: flex;
  768. justify-content: center;
  769. align-items: center;
  770. font-size: 30rpx;
  771. color: #2671E2;
  772. background: #FAFCFF;
  773. }
  774. }
  775. }
  776. .guwen-ranking {
  777. margin: 20rpx 0 0 0;
  778. width: 100%;
  779. padding: 30rpx;
  780. background: #fff;
  781. .guwen-ranking-title {
  782. font-size: 32rpx;
  783. font-weight: 500;
  784. }
  785. .guwen-ranking-desc {
  786. margin-top: 20rpx;
  787. font-size: 30rpx;
  788. }
  789. .ranking-box {
  790. margin: 30rpx 0 0 0;
  791. .ranking-item {
  792. margin-bottom: 18rpx;
  793. display: flex;
  794. &:nth-last-of-type(1) {
  795. margin-bottom: 0;
  796. }
  797. .left {
  798. flex-shrink: 0;
  799. width: 140rpx;
  800. font-size: 30rpx;
  801. overflow: hidden;
  802. text-overflow: ellipsis;
  803. white-space: nowrap;
  804. }
  805. .middle {
  806. flex-grow: 1;
  807. }
  808. .right {
  809. flex-shrink: 0;
  810. width: 118rpx;
  811. font-size: 30rpx;
  812. text-align: center;
  813. }
  814. }
  815. }
  816. }
  817. .proposal {
  818. margin: 20rpx 0 0 0;
  819. padding: 30rpx;
  820. background: #fff;
  821. .proposal-title {
  822. font-size: 32rpx;
  823. font-weight: 500;
  824. }
  825. .proposal-box {
  826. margin: 30rpx 0 0 0;
  827. .proposal-item {
  828. margin: 20rpx 0 0 0;
  829. display: flex;
  830. .lside {
  831. flex-shrink: 0;
  832. margin: 0 12rpx 0 0;
  833. width: 44rpx;
  834. height: 44rpx;
  835. border-radius: 50%;
  836. background: #2671E2;
  837. text-align: center;
  838. line-height: 44rpx;
  839. color: #fff;
  840. }
  841. .rside {
  842. .rside-title {
  843. font-size: 32rpx;
  844. }
  845. .rside-box {
  846. margin: 16rpx 0 0 0;
  847. }
  848. }
  849. }
  850. }
  851. }
  852. .nav-footer {
  853. position: sticky;
  854. bottom: 0;
  855. padding: 32rpx 0;
  856. width: 100%;
  857. display: flex;
  858. justify-content: center;
  859. background: #fff;
  860. .footer-item {
  861. width: 686rpx;
  862. height: 88rpx;
  863. display: flex;
  864. justify-content: center;
  865. align-items: center;
  866. color: #2671E2;
  867. border: 2rpx solid #2671E2;
  868. border-radius: 8rpx;
  869. overflow: hidden;
  870. font-size: 32rpx;
  871. &.full {
  872. background: #2671E2;
  873. color: #fff;
  874. .fulls {
  875. width: 100%;
  876. height: 100%;
  877. background: transparent;
  878. color: #fff;
  879. }
  880. }
  881. }
  882. }
  883. .up {
  884. color: #43CD80 !important;
  885. }
  886. .down {
  887. color: #E6273A !important;
  888. }
  889. .empity {
  890. width: 100%;
  891. height: 300rpx;
  892. display: flex;
  893. justify-content: center;
  894. align-items: center;
  895. font-size: 28rpx;
  896. color: #666666;
  897. }
  898. }
  899. </style>