You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1027 lines
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">{{ getTimeLine(weekObj.createTime) }}</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.receptionCount }}</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. type: 2,
  403. path: `/pages/reportExcel/weekReport?id=${this.id}`
  404. }
  405. },
  406. methods: {
  407. // 获取周报详情
  408. getMessage() {
  409. this.$u.get('/zkMessage/findByProjectId', {
  410. id: this.id
  411. }).then(res => {
  412. console.log(res)
  413. let data = JSON.parse(res.zkMessage.content)
  414. console.log(data)
  415. this.bubbleSort(data.customerInfo1, 'pk')
  416. this.bubbleSort(data.customerInfo2, 'pk')
  417. data.customerInfo1.reverse()
  418. data.customerInfo2.reverse()
  419. this.weekObj = {
  420. ...res.zkMessage,
  421. ...data
  422. }
  423. this.weekObj.createTimeName = this.getTimeLine(this.weekObj.createTime, 1)
  424. console.log(this.weekObj, 'this.weekObj')
  425. this.projectName = res.projectName
  426. this.numlist.forEach(item => {
  427. if (data[item.setName]) {
  428. item.num = data[item.setName]
  429. }
  430. if (data[item.percentName]) {
  431. item.percent = data[item.percentName]
  432. }
  433. if (data[item.preNumName]) {
  434. item.preNum = data[item.preNumName]
  435. }
  436. })
  437. this.init()
  438. }).catch(e => {
  439. console.log(e)
  440. })
  441. },
  442. // 把对象转成数组并在后续的步骤方便处理
  443. init() {
  444. console.log(this.weekObj, 'this.weekObj')
  445. this.needList.forEach(item => {
  446. if (this.weekObj[item] && Object.keys(this.weekObj[item]).length > 0) {
  447. this.weekObj[item + 'List'] = [] // 销讲执行
  448. for (let i in this.weekObj[item]) {
  449. this.weekObj[item + 'List'].push({
  450. title: i,
  451. value: this.weekObj[item][i]
  452. })
  453. }
  454. }
  455. })
  456. this.sortInitArr()
  457. },
  458. // 排序对象转换后的数组
  459. sortInitArr() {
  460. this.needList.forEach(item => {
  461. if (this.weekObj[item + 'List']) {
  462. this.bubbleSort(this.weekObj[item + 'List'])
  463. }
  464. })
  465. this.reverseList()
  466. },
  467. // 反转数组
  468. reverseList() {
  469. this.needList.forEach(item => {
  470. if (this.weekObj[item + 'List']) {
  471. this.weekObj[item + 'List'].reverse()
  472. }
  473. })
  474. console.log(this.weekObj, '12312312312')
  475. },
  476. // 冒泡排序
  477. bubbleSort(arr, keys = 'value') {
  478. for (let i = 0; i < arr.length - 1; i += 1) {
  479. //通过 arr.length 次把第一位放到最后,完成排序
  480. //-i是因为最后的位置是会动态改变的,当完成一次后,最后一位会变成倒数第二位
  481. for (let j = 0; j < arr.length - 1 - i; j += 1) {
  482. if (arr[j][keys] > arr[j + 1][keys]) {
  483. const temp = arr[j];
  484. arr[j] = arr[j + 1];
  485. arr[j + 1] = temp;
  486. }
  487. }
  488. }
  489. },
  490. // 转换时间
  491. getTimeLine(date, type = 1) {
  492. let resu = '--'
  493. if (!date) return resu
  494. let time = new Date(date.replace(/-/g, '/'))
  495. time.setDate(time.getDate() - 7)
  496. let arr = date.split(' ')
  497. let str = arr[0]
  498. let result = str.split('-')
  499. let m = (time.getMonth() + 1) < 10 ? `0${time.getMonth() + 1}` : (time.getMonth() + 1)
  500. let d = time.getDate() < 10 ? `0${time.getDate()}` : time.getDate()
  501. if (type == 1) {
  502. resu = `${m}.${d}-${result[1]}.${result[2]}`
  503. } else {
  504. resu = `${m}月${d}日~${result[1]}月${result[2]}日`
  505. }
  506. return resu
  507. },
  508. },
  509. filters: {
  510. // 时间格式转换
  511. fomatDate(date) {
  512. if (!date) return '--'
  513. let arr = date.split(' ')
  514. let str = arr[0]
  515. let result = str.split('-')
  516. return `${result[1]}-${result[2]}`
  517. },
  518. // 转换时间
  519. getTimeLine(date, type = 1) {
  520. if (!date) return '--'
  521. console.log(date.replace(/-/g, '/'))
  522. let time = new Date(date.replace(/-/g, '/'))
  523. time.setDate(time.getDate() - 7)
  524. let arr = date.split(' ')
  525. let str = arr[0]
  526. let result = str.split('-')
  527. let m = (time.getMonth() + 1) < 10 ? `0${time.getMonth() + 1}` : (time.getMonth() + 1)
  528. let d = time.getDate() < 10 ? `0${time.getDate()}` : time.getDate()
  529. if (type == 1) {
  530. return `${m}.${d}-${result[1]}.${result[2]}`
  531. } else {
  532. return `${m}月${d}日~${result[1]}月${result[2]}日`
  533. }
  534. },
  535. // 设置颜色
  536. setColor(index) {
  537. let color = ''
  538. switch (index) {
  539. case 0:
  540. color = '#E7483C';
  541. break;
  542. case 1:
  543. color = '#FF8C13';
  544. break;
  545. case 2:
  546. color = '#FFCC00';
  547. break;
  548. default:
  549. color = '#4FC78F';
  550. break;
  551. }
  552. return color
  553. },
  554. }
  555. }
  556. </script>
  557. <style lang="scss" scoped>
  558. @import '@/static/css/quill/quill.core.css';
  559. @import '@/static/css/quill/quill.snow.css';
  560. @import '@/static/css/quill/quill.bubble.css';
  561. .pages {
  562. width: 100vw;
  563. min-height: 100vh;
  564. display: flex;
  565. flex-direction: column;
  566. background: #F8F8F8;
  567. .nav-header {
  568. flex-shrink: 0;
  569. }
  570. .container {
  571. padding: 30rpx 30rpx 40rpx;
  572. display: flex;
  573. flex-direction: column;
  574. background: #fff;
  575. .c-head-card {
  576. padding: 30rpx;
  577. width: 100%;
  578. min-height: 252rpx;
  579. border: 2rpx solid #000000;
  580. border-radius: 12rpx;
  581. box-shadow: 10rpx 10rpx #2671E2;
  582. display: flex;
  583. flex-direction: column;
  584. .c-title-text {
  585. // position: relative;
  586. flex-grow: 1;
  587. font-size: 48rpx;
  588. font-weight: bold;
  589. color: #303030;
  590. }
  591. .date {
  592. // position: absolute;
  593. // right: 0;
  594. // bottom: 6rpx;
  595. font-size: 30rpx;
  596. color: #303030;
  597. }
  598. .creative-time {
  599. margin: 20rpx 0 0 0;
  600. flex-shrink: 0;
  601. }
  602. }
  603. }
  604. .briefing {
  605. background: #fff;
  606. .briefing-title {
  607. padding: 0 30rpx;
  608. height: 90rpx;
  609. display: flex;
  610. align-items: center;
  611. border: 1rpx solid #E0E0E0;
  612. font-size: 32rpx;
  613. font-weight: bold;
  614. }
  615. .briefing-box {
  616. width: 100%;
  617. display: flex;
  618. flex-wrap: wrap;
  619. .briefing-box-item {
  620. padding: 20rpx 30rpx;
  621. width: 50%;
  622. height: 186rpx;
  623. border: 1px solid #E0E0E0;
  624. border-left: none;
  625. border-top: none;
  626. &:nth-of-type(2n) {
  627. border-right: none;
  628. }
  629. .top {
  630. font-size: 28rpx;
  631. }
  632. .middle {
  633. margin: 14rpx 0 12rpx;
  634. font-size: 32rpx;
  635. font-weight: 600;
  636. color: #333333;
  637. }
  638. .bottom {
  639. font-size: 26rpx;
  640. color: #666666;
  641. .b-text {
  642. margin-left: 20rpx;
  643. &.down {
  644. color: #43CD80;
  645. font-size: 34rpx;
  646. }
  647. &.up {
  648. font-size: 34rpx;
  649. color: #E7483C;
  650. }
  651. }
  652. }
  653. }
  654. }
  655. }
  656. .execution-ranking {
  657. margin: 20rpx 0 0 0;
  658. padding: 30rpx;
  659. background: #fff;
  660. .execution-ranking-title {
  661. font-size: 32rpx;
  662. font-weight: bold;
  663. }
  664. .execution-ranking-desc {
  665. margin-top: 20rpx;
  666. font-size: 30rpx;
  667. }
  668. .ranking-box {
  669. margin: 30rpx 0 0 0;
  670. .ranking-item {
  671. margin-bottom: 18rpx;
  672. display: flex;
  673. &:nth-last-of-type(1) {
  674. margin-bottom: 0;
  675. }
  676. .left {
  677. flex-shrink: 0;
  678. width: 140rpx;
  679. font-size: 30rpx;
  680. overflow: hidden;
  681. text-overflow: ellipsis;
  682. white-space: nowrap;
  683. }
  684. .middle {
  685. flex-grow: 1;
  686. }
  687. .right {
  688. flex-shrink: 0;
  689. width: 118rpx;
  690. font-size: 30rpx;
  691. text-align: center;
  692. }
  693. }
  694. }
  695. }
  696. .statistics {
  697. margin: 20rpx 0 0 0;
  698. background: #fff;
  699. .statistics-title {
  700. padding: 30rpx 30rpx 0;
  701. width: 100%;
  702. font-size: 32rpx;
  703. font-weight: bold;
  704. }
  705. .statistics-desc {
  706. padding: 0 30rpx;
  707. margin-top: 20rpx;
  708. }
  709. .table {
  710. margin: 30rpx 0 0 0;
  711. .thead {
  712. padding: 0 30rpx;
  713. width: 100%;
  714. height: 72rpx;
  715. display: flex;
  716. align-items: center;
  717. border: 1rpx solid #E0E0E0;
  718. border-left: none;
  719. border-right: none;
  720. font-size: 26rpx;
  721. .thead-item {
  722. text-align: center;
  723. }
  724. }
  725. .tbody {
  726. .tbody-item {
  727. padding: 0 30rpx;
  728. display: flex;
  729. align-items: center;
  730. height: 72rpx;
  731. background: #FAFCFF;
  732. &:nth-of-type(2n) {
  733. background: #FFFFFF;
  734. }
  735. .tbody-items {
  736. flex: 1;
  737. display: flex;
  738. justify-content: center;
  739. }
  740. .name {
  741. justify-content: flex-start;
  742. overflow: hidden;
  743. text-overflow: ellipsis;
  744. white-space: nowrap;
  745. }
  746. .time {
  747. flex: 2;
  748. }
  749. .percent {
  750. flex: 2;
  751. }
  752. .week {
  753. flex: 1.5;
  754. }
  755. }
  756. }
  757. .tbottom {
  758. width: 100%;
  759. height: 72rpx;
  760. display: flex;
  761. justify-content: center;
  762. align-items: center;
  763. font-size: 30rpx;
  764. color: #2671E2;
  765. background: #FAFCFF;
  766. }
  767. }
  768. }
  769. .guwen-ranking {
  770. margin: 20rpx 0 0 0;
  771. width: 100%;
  772. padding: 30rpx;
  773. background: #fff;
  774. .guwen-ranking-title {
  775. font-size: 32rpx;
  776. font-weight: 500;
  777. }
  778. .guwen-ranking-desc {
  779. margin-top: 20rpx;
  780. font-size: 30rpx;
  781. }
  782. .ranking-box {
  783. margin: 30rpx 0 0 0;
  784. .ranking-item {
  785. margin-bottom: 18rpx;
  786. display: flex;
  787. &:nth-last-of-type(1) {
  788. margin-bottom: 0;
  789. }
  790. .left {
  791. flex-shrink: 0;
  792. width: 140rpx;
  793. font-size: 30rpx;
  794. overflow: hidden;
  795. text-overflow: ellipsis;
  796. white-space: nowrap;
  797. }
  798. .middle {
  799. flex-grow: 1;
  800. }
  801. .right {
  802. flex-shrink: 0;
  803. width: 118rpx;
  804. font-size: 30rpx;
  805. text-align: center;
  806. }
  807. }
  808. }
  809. }
  810. .proposal {
  811. margin: 20rpx 0 0 0;
  812. padding: 30rpx;
  813. background: #fff;
  814. .proposal-title {
  815. font-size: 32rpx;
  816. font-weight: 500;
  817. }
  818. .proposal-box {
  819. margin: 30rpx 0 0 0;
  820. .proposal-item {
  821. margin: 20rpx 0 0 0;
  822. display: flex;
  823. .lside {
  824. flex-shrink: 0;
  825. margin: 0 12rpx 0 0;
  826. width: 44rpx;
  827. height: 44rpx;
  828. border-radius: 50%;
  829. background: #2671E2;
  830. text-align: center;
  831. line-height: 44rpx;
  832. color: #fff;
  833. }
  834. .rside {
  835. .rside-title {
  836. font-size: 32rpx;
  837. }
  838. .rside-box {
  839. margin: 16rpx 0 0 0;
  840. }
  841. }
  842. }
  843. }
  844. }
  845. .nav-footer {
  846. position: sticky;
  847. bottom: 0;
  848. padding: 32rpx 0;
  849. width: 100%;
  850. display: flex;
  851. justify-content: center;
  852. background: #fff;
  853. .footer-item {
  854. width: 686rpx;
  855. height: 88rpx;
  856. display: flex;
  857. justify-content: center;
  858. align-items: center;
  859. color: #2671E2;
  860. border: 2rpx solid #2671E2;
  861. border-radius: 8rpx;
  862. overflow: hidden;
  863. font-size: 32rpx;
  864. &.full {
  865. background: #2671E2;
  866. color: #fff;
  867. .fulls {
  868. width: 100%;
  869. height: 100%;
  870. background: transparent;
  871. color: #fff;
  872. }
  873. }
  874. }
  875. }
  876. .up {
  877. color: #43CD80 !important;
  878. }
  879. .down {
  880. color: #E6273A !important;
  881. }
  882. .empity {
  883. width: 100%;
  884. height: 300rpx;
  885. display: flex;
  886. justify-content: center;
  887. align-items: center;
  888. font-size: 28rpx;
  889. color: #666666;
  890. }
  891. }
  892. </style>