AI销管
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

1063 行
26 KiB

  1. <template>
  2. <view class="pages">
  3. <!-- 日报内容部分 -->
  4. <view class="container" ref="lists">
  5. <!-- 头部日报卡 -->
  6. <view class="c-head-card">
  7. <view class="c-title-text">
  8. {{ projectName }}销讲助手日报
  9. </view>
  10. <text class="date">{{ weekObj.createTime | fomatDate }}</text>
  11. <view class="creative-time">
  12. 生成时间:{{ weekObj.createTime || '--' }}
  13. </view>
  14. </view>
  15. <view class="nodata-box" v-if="nodata">
  16. <image class="img" src="/static/images/nodata.png" mode="" />
  17. <view class="text">此项目今日还没有接待量哦~</view>
  18. </view>
  19. <view v-if="!nodata">
  20. <!-- 循环渲染的数据 -->
  21. <view class="dateList">
  22. <!-- -->
  23. <view class="arrs">
  24. <view class="arrs-items index1">
  25. <view class="left">
  26. 1
  27. </view>
  28. <view class="right">
  29. <view class="r-title">
  30. <text>接待量:</text>
  31. </view>
  32. <view class="r-box">
  33. <view class="r-box-item">
  34. <text>接待量</text><text class="value">{{ weekObj.receptionCount || 0 }}</text>
  35. </view>
  36. <view class="r-box-item">
  37. <text>有效接待</text><text class="value">{{ weekObj.activeCustomer || 0 }}</text>
  38. </view>
  39. <view class="r-box-item-lang">
  40. <view>有效接待率<text class="value">{{ weekObj.validReceptionRate || 0 }}%</text>
  41. </view>
  42. <view class="contrast">对比昨天<text class="value"
  43. :class="{down: weekObj.validReceptionRatePK < 0, up: weekObj.validReceptionRatePK > 0}">{{ weekObj.validReceptionRatePK > 0 ? '+' : '' }}{{ weekObj.validReceptionRatePK || 0 }}%</text>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="arrs-items index2">
  50. <view class="left">
  51. 2
  52. </view>
  53. <view class="right">
  54. <view class="r-title">
  55. <text v-if="!weekObj.orgCode">平均执行率:</text>
  56. <text v-else>销讲执行率:</text>
  57. </view>
  58. <view class="r-box">
  59. <view class="r-box-item-lang">
  60. <view>
  61. <text v-if="!weekObj.orgCode">平均执行率:</text>
  62. <text v-else>销讲执行率:</text>
  63. <text class="value">{{ weekObj.fraction || 0 }}%</text>
  64. </view>
  65. <view class="contrast">对比昨天<text class="value"
  66. :class="{down: weekObj.fractionPK < 0, up: weekObj.fractionPK > 0}">{{ weekObj.fractionPK > 0 ? '+' : '' }}{{ weekObj.fractionPK || 0 }}%</text>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="arrs-items index3">
  73. <view class="left">
  74. 3
  75. </view>
  76. <view class="right">
  77. <view class="r-title">
  78. <text>平均接待时长:</text>
  79. </view>
  80. <view class="r-box">
  81. <view class="r-box-item-lang">
  82. <view>平均接待时长<text class="value">{{ weekObj.avgDuration || 0 }}min</text></view>
  83. <view class="contrast">对比昨天<text class="value"
  84. :class="{down: weekObj.avgDurationPK < 0, up: weekObj.avgDurationPK > 0}">{{ weekObj.avgDurationPK > 0 ? '+' : '' }}{{ weekObj.avgDurationPK || 0 }}min</text>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. <view class="arrs-items index4">
  91. <view class="left">
  92. 4
  93. </view>
  94. <view class="right">
  95. <view class="r-title">
  96. <text v-if="!weekObj.orgCode">销讲维度执行前三:</text>
  97. <text v-else>项目平均执行率排名:</text>
  98. </view>
  99. <template v-if="!weekObj.orgCode">
  100. <view class="ranking">
  101. <block v-for="(rank, rankIndex) in carryOutTop" :key="rankIndex">
  102. <view class="ranking-item">
  103. <view class="serial">
  104. {{ rankIndex+1 }}
  105. </view>
  106. <view class="lside">
  107. {{ rank.title || '--' }}
  108. </view>
  109. <view class="rside">
  110. ({{ rank.value || 0 }}%)
  111. </view>
  112. </view>
  113. </block>
  114. <template v-if="carryOutTop.length == 0">
  115. <view class="empty">
  116. 暂无数据
  117. </view>
  118. </template>
  119. </view>
  120. </template>
  121. <template v-else>
  122. <!-- consultant -->
  123. <view class="ranking">
  124. <block v-for="(rank, rankIndex) in consultant" :key="rankIndex">
  125. <view class="ranking-item">
  126. <view class="serial">
  127. {{ rankIndex+1 }}
  128. </view>
  129. <view class="lside">
  130. {{ rank.title || '--' }}
  131. </view>
  132. <view class="rside">
  133. ({{ rank.value || 0 }}%)
  134. </view>
  135. </view>
  136. </block>
  137. <template v-if="consultant.length == 0">
  138. <view class="empty">
  139. 暂无数据
  140. </view>
  141. </template>
  142. </view>
  143. </template>
  144. </view>
  145. </view>
  146. <view class="arrs-items index5">
  147. <view class="left">
  148. 5
  149. </view>
  150. <view class="right">
  151. <view class="r-title">
  152. <text v-if="!weekObj.orgCode">销讲维度执行弱项前三:</text>
  153. <text v-else>项目平均接访时长排名:</text>
  154. </view>
  155. <template v-if="!weekObj.orgCode">
  156. <view class="ranking">
  157. <block v-for="(rank, rankIndex) in carryOutLast" :key="rankIndex">
  158. <view class="ranking-item">
  159. <view class="serial">
  160. {{ rankIndex+1 }}
  161. </view>
  162. <view class="lside">
  163. {{ rank.title || '--' }}
  164. </view>
  165. <view class="rside">
  166. ({{ rank.value || 0 }}%)
  167. </view>
  168. </view>
  169. </block>
  170. <template v-if="carryOutLast.length == 0">
  171. <view class="empty">
  172. 暂无数据
  173. </view>
  174. </template>
  175. </view>
  176. </template>
  177. <template v-else>
  178. <view class="ranking">
  179. <block v-for="(rank, rankIndex) in recording" :key="rankIndex">
  180. <view class="ranking-item">
  181. <view class="serial">
  182. {{ rankIndex+1 }}
  183. </view>
  184. <view class="lside">
  185. {{ rank.title || '--' }}
  186. </view>
  187. <view class="rside">
  188. ({{ tofixed2(rank.value/60) || 0 }}m)
  189. </view>
  190. </view>
  191. </block>
  192. <template v-if="recording.length == 0">
  193. <view class="empty">
  194. 暂无数据
  195. </view>
  196. </template>
  197. </view>
  198. </template>
  199. </view>
  200. </view>
  201. <view class="arrs-items index6" v-if="!weekObj.orgCode">
  202. <view class="left">
  203. 6
  204. </view>
  205. <view class="right">
  206. <view class="r-title">
  207. <text>置业顾问平均执行率排名:</text>
  208. </view>
  209. <view class="ranking">
  210. <block v-for="(rank, rankIndex) in consultant" :key="rankIndex">
  211. <view class="ranking-item">
  212. <view class="serial">
  213. {{ rankIndex+1 }}
  214. </view>
  215. <view class="lside">
  216. {{ rank.title || '--' }}
  217. </view>
  218. <view class="rside">
  219. ({{ rank.value || 0 }}%)
  220. </view>
  221. </view>
  222. </block>
  223. <template v-if="consultant.length == 0">
  224. <view class="empty">
  225. 暂无数据
  226. </view>
  227. </template>
  228. </view>
  229. </view>
  230. </view>
  231. <view class="arrs-items index7" v-if="!weekObj.orgCode">
  232. <view class="left">
  233. 7
  234. </view>
  235. <view class="right">
  236. <view class="r-title">
  237. <text>置业顾问平均接访时长排名:</text>
  238. </view>
  239. <view class="ranking">
  240. <block v-for="(rank, rankIndex) in recording" :key="rankIndex">
  241. <view class="ranking-item">
  242. <view class="serial">
  243. {{ rankIndex+1 }}
  244. </view>
  245. <view class="lside">
  246. {{ rank.title || '--' }}
  247. </view>
  248. <view class="rside">
  249. ({{ rank.value || 0 }}min)
  250. </view>
  251. </view>
  252. </block>
  253. <template v-if="recording.length == 0">
  254. <view class="empty">
  255. 暂无数据
  256. </view>
  257. </template>
  258. </view>
  259. </view>
  260. </view>
  261. <view class="arrs-items index8">
  262. <view class="left">
  263. <template v-if="!weekObj.orgCode">
  264. 8
  265. </template>
  266. <template v-else>
  267. 6
  268. </template>
  269. </view>
  270. <view class="right">
  271. <view class="r-title">
  272. <text v-if="!weekObj.orgCode">平均执行率最低的顾问:</text>
  273. <text v-else>执行率最低的项目:</text>
  274. </view>
  275. <template v-if="!weekObj.orgCode">
  276. <view class="ranking">
  277. <block v-for="(rank, rankIndex) in lowest" :key="rankIndex">
  278. <view class="ranking-item">
  279. <view class="lside">
  280. {{ rank.title || '--' }}
  281. </view>
  282. <view class="rside value">
  283. {{ rank.value || 0 }}%
  284. </view>
  285. </view>
  286. </block>
  287. <template v-if="lowest.length == 0">
  288. <view class="empty">
  289. 暂无数据
  290. </view>
  291. </template>
  292. </view>
  293. </template>
  294. <template v-else>
  295. <view class="ranking">
  296. <block v-for="(rank, rankIndex) in weekObj.minFraction" :key="rankIndex">
  297. <view class="ranking-item">
  298. <view class="lside">
  299. {{ rankIndex || '--' }}
  300. </view>
  301. <view class="rside value">
  302. {{ rank || 0 }}%
  303. </view>
  304. </view>
  305. </block>
  306. <template v-if="!weekObj.minFraction">
  307. <view class="empty">
  308. 暂无数据
  309. </view>
  310. </template>
  311. </view>
  312. </template>
  313. </view>
  314. </view>
  315. <view class="arrs-items index9">
  316. <view class="left">
  317. <template v-if="!weekObj.orgCode">
  318. 9
  319. </template>
  320. <template v-else>
  321. 7
  322. </template>
  323. </view>
  324. <view class="right">
  325. <view class="r-title">
  326. <text>客户画像触达:</text>
  327. <text class="num value">{{ weekObj.reachSum || 0 }}次</text>
  328. </view>
  329. </view>
  330. </view>
  331. <view class="arrs-items index8" v-if="weekObj.orgCode">
  332. <view class="left">
  333. 8
  334. </view>
  335. <view class="right">
  336. <view class="r-title">
  337. <text>画像一级触达接待前三:</text>
  338. </view>
  339. <view class="ranking">
  340. <block v-for="(rank, rankIndex) in weekObj.level1List" :key="rankIndex">
  341. <view class="ranking-item">
  342. <view class="lside">
  343. {{ rank.name || '--' }}
  344. </view>
  345. <view class="rside value">
  346. ({{ rank.total || 0 }})
  347. </view>
  348. </view>
  349. </block>
  350. <template v-if="!weekObj.level1List || weekObj.level1List.length == 0">
  351. <view class="empty">
  352. 暂无数据
  353. </view>
  354. </template>
  355. </view>
  356. </view>
  357. </view>
  358. <view class="arrs-items index8" v-if="weekObj.orgCode">
  359. <view class="left">
  360. 9
  361. </view>
  362. <view class="right">
  363. <view class="r-title">
  364. <text>画像关键词触达接待前三:</text>
  365. </view>
  366. <view class="ranking">
  367. <block v-for="(rank, rankIndex) in weekObj.level2List" :key="rankIndex">
  368. <view class="ranking-item">
  369. <view class="lside">
  370. {{ rank.name || '--' }}
  371. </view>
  372. <view class="rside value">
  373. ({{ rank.total || 0 }})
  374. </view>
  375. </view>
  376. </block>
  377. <template v-if="!weekObj.level2List || weekObj.level2List.length == 0">
  378. <view class="empty">
  379. 暂无数据
  380. </view>
  381. </template>
  382. </view>
  383. </view>
  384. </view>
  385. <view class="arrs-items index10">
  386. <view class="left">
  387. <template v-if="!weekObj.orgCode">
  388. 12
  389. </template>
  390. <template v-else>
  391. 10
  392. </template>
  393. </view>
  394. <view class="right">
  395. <view class="r-title">
  396. <text>未标记接待数:</text>
  397. <text class="num value down"
  398. style="font-weight: 500;font-size: 34rpx;">{{ weekObj.unlabelledReceptionNum || 0 }}</text>
  399. <text class="down value">条</text>
  400. </view>
  401. </view>
  402. </view>
  403. <view class="arrs-items index11">
  404. <view class="left">
  405. <template v-if="!weekObj.orgCode">
  406. 13
  407. </template>
  408. <template v-else>
  409. 11
  410. </template>
  411. </view>
  412. <view class="right">
  413. <view class="r-title">
  414. <text>设备情况:</text>
  415. </view>
  416. <view class="r-box">
  417. <view class="r-box-item-lang">
  418. <view>在线<text class="value">{{ weekObj.equipmentInfo.onlineNum || 0 }}</text>
  419. </view>
  420. <view style="margin-left: 24rpx;">
  421. 离线<text class="value">{{ weekObj.equipmentInfo.offlineNum || 0 }}</text>
  422. </view>
  423. </view>
  424. </view>
  425. </view>
  426. </view>
  427. </view>
  428. </view>
  429. </view>
  430. </view>
  431. <!-- 底部按钮 -->
  432. <view class="nav-footer" v-if="!nodata">
  433. <view class="footer-item" @click="toHome">
  434. 回到管理端
  435. </view>
  436. <view class="footer-item" @click="copy" style="margin-left: 24rpx;">
  437. 复制内容
  438. </view>
  439. <view class="footer-item full" style="margin-left: 24rpx;" @tap="forShare">
  440. <button open-type="share" class="fulls">
  441. 一键转发
  442. </button>
  443. </view>
  444. </view>
  445. </view>
  446. </template>
  447. <script>
  448. export default {
  449. data() {
  450. return {
  451. needList: ['XJTop', 'ZXLTop', 'avgJds'], // 需要转换数组的内容
  452. carryOutTop: [], //
  453. carryOutLast: [], //
  454. consultant: [], // 置业顾问排名
  455. recording: [], // 录音排名
  456. lowest: [], // 执行率最低的顾问
  457. building: uni.getStorageSync('buildingID'),
  458. id: '', // 消息id
  459. projectName: '', // 项目名称
  460. weekObj: {}, // 日报详情
  461. nodata: false //有无数据
  462. }
  463. },
  464. onLoad(option) {
  465. if (option.id) this.id = option.id
  466. this.getMessage()
  467. },
  468. onShareAppMessage() {
  469. return {
  470. title: `${this.projectName}销讲助手日报`,
  471. path: `/pages/reportExcel/dayReport?id=${this.id}`
  472. }
  473. },
  474. methods: {
  475. tofixed2(time) {
  476. if (time) {
  477. return time.toFixed(2)
  478. } else {
  479. return 0
  480. }
  481. },
  482. // 项目拷贝
  483. copys() {
  484. let str = `
  485. ${this.projectName}数智工牌日报
  486. 生成时间:${this.weekObj.createTime || '--'}
  487. 1、接待量:${this.weekObj.receptionCount || 0 }
  488. 有效接待:${this.weekObj.activeCustomer || 0}
  489. 有效接待率:${this.weekObj.validReceptionRate || 0}%
  490. 对比昨天:${ this.weekObj.validReceptionRatePK > 0 ? '+' : '' }${ this.weekObj.validReceptionRatePK || 0 }%
  491. 2、平均执行率:${ this.weekObj.fraction || 0 }%
  492. 销讲执行率:${ this.weekObj.fractionPK > 0 ? '+' : '' }${ this.weekObj.fractionPK || 0 }%
  493. 3、平均接待时长:${ this.weekObj.avgDuration || 0 }min
  494. 对比昨天:${this.weekObj.avgDurationPK > 0 ? '+' : '' }${ this.weekObj.avgDurationPK || 0 }min`
  495. if (this.consultant.length > 0) {
  496. str += `
  497. 4、项目平均执行率排名:`
  498. this.consultant.map((item, index) => {
  499. str += `
  500. top${index+1}.${item.title || '--'}${item.value||'0'}%`
  501. })
  502. }
  503. if (this.recording.length > 0) {
  504. str += `
  505. 5、项目平均接访时长排名:`
  506. this.recording.map((item, index) => {
  507. str += `
  508. top${index+1}.${item.title || '--'}${this.tofixed2(item.value/60)||'0'}m`
  509. })
  510. }
  511. if (this.lowest.length > 0) {
  512. str += `
  513. 6、执行率最低的项目:`
  514. for (let i in this.weekObj.minFraction) {
  515. str += `
  516. ${i || '--'}${this.weekObj.minFraction[i]||'0'}%`
  517. }
  518. }
  519. str += `
  520. 7、客户画像触达:${this.weekObj.reachSum || 0}次`
  521. if (this.weekObj.level1List.length > 0) {
  522. str += `
  523. 8、画像一级触达接待前三
  524. `
  525. this.weekObj.level1List.map((item, index) => {
  526. str += `
  527. top${index+1}.${item.name || '--'}${item.total||'0'}%`
  528. })
  529. }
  530. if (this.weekObj.level1List.length > 0) {
  531. str += `
  532. 9、画像关键词触达接待前三
  533. `
  534. this.weekObj.level1List.map((item, index) => {
  535. str += `
  536. top${index+1}.${item.name || '--'}${item.total||'0'}%`
  537. })
  538. }
  539. str += `
  540. 10、未标记接待数:${ this.weekObj.unlabelledReceptionNum || 0 }条
  541. 11、设备情况:
  542. 在线:${this.weekObj.equipmentInfo.onlineNum || 0}
  543. 离线:${this.weekObj.equipmentInfo.offlineNum || 0}`
  544. uni.setClipboardData({
  545. data: str
  546. })
  547. },
  548. forShare() {
  549. this.$u.get("/zkMessage/shareMessage", {
  550. id: this.id,
  551. houseId: uni.getStorageSync('buildingID').id
  552. })
  553. },
  554. // 跳转首页
  555. toHome() {
  556. uni.navigateTo({
  557. url: '/pages/index/guide'
  558. })
  559. },
  560. // 获取日报详情
  561. getMessage() {
  562. this.$u.get('/zkMessage/findByProjectId', {
  563. id: this.id
  564. }).then(res => {
  565. console.log(res)
  566. let data = JSON.parse(res.zkMessage.content)
  567. if (res.zkMessage.content) {
  568. data = JSON.parse(res.zkMessage.content)
  569. this.weekObj = {
  570. ...res.zkMessage,
  571. ...data
  572. }
  573. this.nodata = false
  574. } else {
  575. this.nodata = true
  576. this.weekObj = {
  577. ...res.zkMessage
  578. }
  579. }
  580. this.projectName = res.projectName
  581. this.init()
  582. }).catch(e => {
  583. console.log(e)
  584. })
  585. },
  586. copy() {
  587. if (this.weekObj.orgCode) return this.copys()
  588. let str = `
  589. ${this.projectName}销讲助手日报
  590. 生成时间:${this.weekObj.createTime || '--'}
  591. 1、接待量:${this.weekObj.receptionCount || 0 }
  592. 有效接待:${this.weekObj.activeCustomer || 0}
  593. 有效接待率:${this.weekObj.validReceptionRate || 0}%
  594. 对比昨天:${ this.weekObj.validReceptionRatePK > 0 ? '+' : '' }${ this.weekObj.validReceptionRatePK || 0 }%
  595. 2、平均执行率:${ this.weekObj.fraction || 0 }%
  596. 对比昨天:${ this.weekObj.fractionPK > 0 ? '+' : '' }${ this.weekObj.fractionPK || 0 }%
  597. 3、平均接待时长:${ this.weekObj.avgDuration || 0 }min
  598. 对比昨天:${this.weekObj.avgDurationPK > 0 ? '+' : '' }${ this.weekObj.avgDurationPK || 0 }min`
  599. if (this.carryOutTop.length > 0) {
  600. str += `
  601. 4、销讲维度执行前三:`
  602. this.carryOutTop.map((item, index) => {
  603. str += `
  604. top${index+1}.${item.title || '--'}${item.value||'0'}%`
  605. })
  606. }
  607. if (this.carryOutLast.length > 0) {
  608. str += `
  609. 5、销讲维度执行弱项前三:`
  610. this.carryOutLast.map((item, index) => {
  611. str += `
  612. top${index+1}.${item.title || '--'}${item.value||'0'}%`
  613. })
  614. }
  615. if (this.consultant.length > 0) {
  616. str += `
  617. 6、置业顾问平均执行率排名:`
  618. this.consultant.map((item, index) => {
  619. str += `
  620. top${index+1}.${item.title || '--'}${item.value||'0'}%`
  621. })
  622. }
  623. if (this.recording.length > 0) {
  624. str += `
  625. 7、置业顾问平均接访时长排名:`
  626. this.recording.map((item, index) => {
  627. str += `
  628. top${index+1}.${item.title || '--'}${item.value||'0'}min`
  629. })
  630. }
  631. if (this.lowest.length > 0) {
  632. str += `
  633. 8、平均执行率最低的顾问:`
  634. this.lowest.map((item, index) => {
  635. str += `
  636. ${item.title || '--'}${item.value||'0'}%`
  637. })
  638. }
  639. str += `
  640. 9、客户画像触达:${this.weekObj.reachSum || 0}次
  641. 10、未标记接待数:${ this.weekObj.unlabelledReceptionNum || 0 }条
  642. 11、设备情况:
  643. 在线:${this.weekObj.equipmentInfo.onlineNum || 0}
  644. 离线:${this.weekObj.equipmentInfo.offlineNum || 0}`
  645. uni.setClipboardData({
  646. data: str
  647. })
  648. },
  649. // 分割数组排名前三,倒三
  650. getTopThree() {
  651. if (this.weekObj.XJTopList && this.weekObj.XJTopList.length > 0) {
  652. let arr = this.weekObj.XJTopList.slice(0, 3)
  653. arr.forEach(item => {
  654. if (item.value != 100) {
  655. this.carryOutLast.push(item)
  656. }
  657. })
  658. this.carryOutTop = this.weekObj.XJTopList.reverse().slice(0, 3)
  659. console.log(this.weekObj.XJTopList)
  660. }
  661. if (this.weekObj.ZXLTopList && this.weekObj.ZXLTopList.length > 0) {
  662. this.consultant = this.weekObj.ZXLTopList.reverse().slice(0, 3)
  663. if (this.weekObj.ZXLTopList[this.weekObj.ZXLTopList.length - 1].value != 100) {
  664. this.lowest.push(this.weekObj.ZXLTopList[this.weekObj.ZXLTopList.length - 1])
  665. }
  666. }
  667. if (this.weekObj.avgJdsList && this.weekObj.avgJdsList.length > 0) {
  668. this.recording = this.weekObj.avgJdsList.reverse().slice(0, 3)
  669. }
  670. },
  671. init() {
  672. // 把对象转成数组并在后续的步骤方便处理
  673. this.needList.forEach(item => {
  674. if (this.weekObj[item] && Object.keys(this.weekObj[item]).length > 0) {
  675. this.weekObj[item + 'List'] = [] // 销讲执行
  676. for (let i in this.weekObj[item]) {
  677. this.weekObj[item + 'List'].push({
  678. title: i,
  679. value: this.weekObj[item][i]
  680. })
  681. }
  682. }
  683. })
  684. this.sortInitArr()
  685. },
  686. // 排序对象转换后的数组
  687. sortInitArr() {
  688. this.needList.forEach(item => {
  689. if (this.weekObj[item + 'List']) {
  690. this.bubbleSort(this.weekObj[item + 'List'])
  691. }
  692. })
  693. this.getTopThree()
  694. },
  695. // 冒泡排序
  696. bubbleSort(arr) {
  697. for (let i = 0; i < arr.length - 1; i += 1) {
  698. //通过 arr.length 次把第一位放到最后,完成排序
  699. //-i是因为最后的位置是会动态改变的,当完成一次后,最后一位会变成倒数第二位
  700. for (let j = 0; j < arr.length - 1 - i; j += 1) {
  701. if (arr[j].value > arr[j + 1].value) {
  702. const temp = arr[j];
  703. arr[j] = arr[j + 1];
  704. arr[j + 1] = temp;
  705. }
  706. }
  707. }
  708. },
  709. },
  710. filters: {
  711. fomatDate(date) {
  712. if (!date) return '--'
  713. let arr = date.split(' ')
  714. let str = arr[0]
  715. let result = str.split('-')
  716. return `${result[1]}-${result[2]}`
  717. }
  718. }
  719. }
  720. </script>
  721. <style lang="scss" scoped>
  722. .pages {
  723. width: 100vw;
  724. min-height: 100vh;
  725. display: flex;
  726. flex-direction: column;
  727. .nav-header {
  728. flex-shrink: 0;
  729. }
  730. .container {
  731. padding: 30rpx 30rpx 0;
  732. flex-grow: 1;
  733. display: flex;
  734. flex-direction: column;
  735. .c-head-card {
  736. padding: 30rpx;
  737. width: 100%;
  738. min-height: 252rpx;
  739. border: 2rpx solid #000000;
  740. border-radius: 12rpx;
  741. box-shadow: 10rpx 10rpx #2671E2;
  742. display: flex;
  743. flex-direction: column;
  744. .c-title-text {
  745. // position: relative;
  746. flex-grow: 1;
  747. font-size: 48rpx;
  748. font-weight: bold;
  749. color: #303030;
  750. }
  751. .date {
  752. // position: absolute;
  753. // right: 0;
  754. // bottom: 6rpx;
  755. font-size: 30rpx;
  756. color: #303030;
  757. }
  758. .creative-time {
  759. margin: 20rpx 0 0 0;
  760. flex-shrink: 0;
  761. }
  762. }
  763. .dateList {
  764. width: 100%;
  765. .arrs {
  766. width: 100%;
  767. .arrs-items {
  768. margin: 40rpx 0 0 0;
  769. display: flex;
  770. min-height: 100rpx;
  771. .left {
  772. flex-shrink: 0;
  773. margin-right: 12rpx;
  774. width: 48rpx;
  775. height: 44rpx;
  776. display: flex;
  777. justify-content: center;
  778. align-items: center;
  779. border-radius: 8rpx;
  780. border: 1rpx solid #999999;
  781. font-size: 32rpx;
  782. }
  783. .right {
  784. flex-grow: 1;
  785. .r-title {
  786. font-size: 32rpx;
  787. height: 44rpx;
  788. display: flex;
  789. align-items: center;
  790. .num {
  791. font-size: 34rpx;
  792. }
  793. }
  794. .r-box {
  795. padding: 21rpx 0 0 0;
  796. display: flex;
  797. flex-wrap: wrap;
  798. .r-box-item {
  799. margin-right: 24rpx;
  800. }
  801. .r-box-item-lang {
  802. margin-top: 19rpx;
  803. width: 100%;
  804. display: flex;
  805. align-items: center;
  806. .contrast {
  807. margin: 0 0 0 24rpx;
  808. display: flex;
  809. align-items: center;
  810. }
  811. .down {
  812. color: #43CD80;
  813. font-size: 34rpx;
  814. }
  815. .up {
  816. font-size: 34rpx;
  817. color: #E7483C;
  818. }
  819. }
  820. }
  821. .ranking {
  822. padding: 21rpx 0 0 0;
  823. display: flex;
  824. flex-direction: column;
  825. .ranking-item {
  826. margin-bottom: 22rpx;
  827. display: flex;
  828. align-items: center;
  829. font-size: 30rpx;
  830. .serial {
  831. flex-shrink: 0;
  832. width: 42rpx;
  833. height: 42rpx;
  834. background: #2671E2;
  835. border-radius: 50%;
  836. display: flex;
  837. justify-content: center;
  838. align-items: center;
  839. color: #fff;
  840. }
  841. .lside {
  842. margin: 0 20rpx;
  843. color: #505050;
  844. }
  845. .rside {
  846. flex-shrink: 0;
  847. font-size: 32rpx;
  848. }
  849. }
  850. }
  851. }
  852. }
  853. }
  854. }
  855. }
  856. .nav-footer {
  857. position: sticky;
  858. bottom: 0;
  859. padding: 32rpx;
  860. width: 100%;
  861. display: flex;
  862. justify-content: center;
  863. background: #fff;
  864. .footer-item {
  865. flex: 1;
  866. height: 88rpx;
  867. display: flex;
  868. justify-content: center;
  869. align-items: center;
  870. color: #2671E2;
  871. border: 2rpx solid #2671E2;
  872. border-radius: 8rpx;
  873. overflow: hidden;
  874. font-size: 32rpx;
  875. &.full {
  876. background: #2671E2;
  877. color: #fff;
  878. .fulls {
  879. box-sizing: border-box;
  880. width: 100%;
  881. height: 100%;
  882. background: transparent;
  883. color: #fff;
  884. font-size: 32rpx;
  885. font-weight: normal;
  886. line-height: 88rpx;
  887. }
  888. }
  889. }
  890. }
  891. .up {
  892. color: #43CD80 !important;
  893. }
  894. .down {
  895. color: #E6273A !important;
  896. }
  897. .empty {
  898. width: 100%;
  899. line-height: 48rpx;
  900. }
  901. .value {
  902. margin-left: 5rpx;
  903. font-size: 30rpx !important;
  904. font-weight: bold !important;
  905. }
  906. .nodata-box {
  907. width: 750rpx;
  908. margin: 20rpx auto 0;
  909. display: flex;
  910. justify-content: center;
  911. align-items: center;
  912. flex-direction: column;
  913. background-color: #fff;
  914. .img {
  915. width: 400rpx;
  916. height: 400rpx;
  917. }
  918. .text {
  919. text-align: center;
  920. font-size: 28rpx;
  921. font-family: PingFangSC-Regular, PingFang SC;
  922. font-weight: 400;
  923. color: #666666;
  924. line-height: 40rpx;
  925. // margin-top: -40rpx;
  926. }
  927. }
  928. }
  929. </style>