homework.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. <template>
  2. <view class="homework-container">
  3. <!-- 头部区域 -->
  4. <top-box :timeStamp="timeStamp" />
  5. <view class="module-container">
  6. <view style="margin: 0 20rpx">
  7. <u-tabs :list="list" :current="current" @change="changeModule"
  8. :activeStyle="{color: '#4169E1',fontWeight: 'bold',transform: 'scale(1.08)',}"
  9. :inactiveStyle="{fontWeight: 'bold',transform: 'scale(1)'}" lineColor="#4169E1" lineWidth="60">
  10. </u-tabs>
  11. </view>
  12. <!-- 模块卡片 -->
  13. <view class="module-box">
  14. <!-- 评测 -->
  15. <view class="card" style="background-color: #4169E1;" v-if="current == 0">
  16. <view class="box">
  17. <view class="flex">
  18. <text class="card-title">今日评测:</text>
  19. <view class="flex-line">
  20. <text class="card-title" style="margin-left: 20rpx;">{{testData.length}}</text>
  21. <text class="unit">例</text>
  22. </view>
  23. </view>
  24. <view class="box" style="margin: 10rpx 0 0 0;">
  25. <view class="flex">
  26. <view class="tag"></view>
  27. <text class="card-subtitle">已完成:</text>
  28. <view class="flex-line">
  29. <text class="fin-number">{{testFinish}}</text>
  30. <text class="unit">例</text>
  31. </view>
  32. </view>
  33. <view class="flex">
  34. <view class="tag"></view>
  35. <text class="card-subtitle">完成情况:</text>
  36. <text class="card-subtitle"
  37. style="font-weight: bold;opacity: 0.8;">{{list[0].level}}</text>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="image" :style="{backgroundImage:`url(${list[0].image})`}"></view>
  42. </view>
  43. <!-- 作业 -->
  44. <view class="card" style="background-color: #ff8caf;" v-if="current == 1">
  45. <view class="box">
  46. <view class="flex">
  47. <text class="card-title">今日作业:</text>
  48. <view class="flex-line">
  49. <text class="card-title" style="margin-left: 20rpx;">{{homeworkData.length}}</text>
  50. <text class="unit">例</text>
  51. </view>
  52. </view>
  53. <view class="box" style="margin: 10rpx 0 0 0;">
  54. <view class="flex">
  55. <view class="tag"></view>
  56. <text class="card-subtitle">已完成:</text>
  57. <view class="flex-line">
  58. <text class="fin-number">{{homeworkFinish}}</text>
  59. <text class="unit">例</text>
  60. </view>
  61. </view>
  62. <view class="flex">
  63. <view class="tag"></view>
  64. <text class="card-subtitle">完成情况:</text>
  65. <text class="card-subtitle"
  66. style="font-weight: bold;opacity: 0.8;">{{list[1].level}}</text>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="image" :style="{backgroundImage:`url(${list[1].image})`}"></view>
  71. </view>
  72. <!-- 活动 -->
  73. <view class="card" style="background-color: #f9c752;" v-if="current == 2">
  74. <view class="box">
  75. <view class="flex">
  76. <text class="card-title">今日活动:</text>
  77. <view class="flex-line">
  78. <text class="card-title" style="margin-left: 20rpx;">{{activityData.length}}</text>
  79. <text class="unit">例</text>
  80. </view>
  81. </view>
  82. <view class="box" style="margin: 10rpx 0 0 0;">
  83. <view class="flex">
  84. <view class="tag"></view>
  85. <text class="card-subtitle">已完成:</text>
  86. <view class="flex-line">
  87. <text class="fin-number">{{activityFinish}}</text>
  88. <text class="unit">例</text>
  89. </view>
  90. </view>
  91. <view class="flex">
  92. <view class="tag"></view>
  93. <text class="card-subtitle">完成情况:</text>
  94. <text class="card-subtitle"
  95. style="font-weight: bold;opacity: 0.8;">{{list[2].level}}</text>
  96. </view>
  97. </view>
  98. </view>
  99. <view class="image" :style="{backgroundImage:`url(${list[2].image})`}"></view>
  100. </view>
  101. <!-- 列表 -->
  102. <view class="detail-box">
  103. <!-- 图表模块 -->
  104. <view class="detail-box-item">
  105. <view class="item-info">
  106. <view class="t-icon t-icon-ceping"></view>
  107. <view class="item-text">完成率统计</view>
  108. </view>
  109. <view class="charts-box" v-if="current == 0">
  110. <qiun-data-charts type="fin-area" :chartData="assignment.testData" :loadingType="4"
  111. :canvas2d='true' tooltipFormat='HomeworkPercent' canvasId='canvans0980111' />
  112. </view>
  113. <view class="charts-box" v-if="current == 1">
  114. <qiun-data-charts type="fin-area" :chartData="assignment.homeworkData" :loadingType="4"
  115. :canvas2d='true' tooltipFormat='HomeworkPercent' canvasId='canvans0933511'
  116. :opts="{color:['#ff8caf']}" />
  117. </view>
  118. <view class="charts-box" v-if="current == 2">
  119. <qiun-data-charts type="fin-area" :chartData="assignment.activityData" :loadingType="4"
  120. :canvas2d='true' tooltipFormat='HomeworkPercent' canvasId='canvans0531032'
  121. :opts="{color:['#f9c752']}" />
  122. </view>
  123. </view>
  124. <!-- 详情列表 -->
  125. <!-- 评测 -->
  126. <view class="detail-box-item" v-if="current == 0">
  127. <view class="item-info">
  128. <view class="t-icon t-icon-daiban"></view>
  129. <view class="item-text">评测列表</view>
  130. <view class="btn" @click="navListData">
  131. <view class="t-icon t-icon-fenlei"></view>
  132. <view class="msg">详情列表</view>
  133. </view>
  134. </view>
  135. <view style="margin-bottom: 20rpx;">
  136. <view class="block-box" v-for="(item,i) in testData" :key="i" @click="navSingleData(item)">
  137. <view class="index"
  138. :style="{backgroundColor: item.examInfo.progress === 'finish'? '#23b46c':'#4169E1'}">
  139. </view>
  140. <view class="class-block" style="width: 85%;">
  141. <view style="width: 40%;">
  142. <view class="list-item-title">{{item.examInfo.name}}</view>
  143. </view>
  144. <view style=" display: flex; justify-content: space-between; width: 50%;">
  145. <view class="block-tag-box"
  146. :style="{borderColor: item.examInfo.progress === 'finish'? '#23b46c':'#4169E1'}">
  147. <view class="block-tag"
  148. :style="{color: item.examInfo.progress === 'finish'? '#23b46c':'#4169E1'}">
  149. {{item.examInfo.subjects[0].name}}
  150. </view>
  151. </view>
  152. <view class="block-tag-box"
  153. :style="{borderColor: item.examInfo.progress === 'finish'? '#23b46c':'#4169E1'}">
  154. <view class="block-tag"
  155. :style="{color: item.examInfo.progress === 'finish'? '#23b46c':'#4169E1'}">
  156. {{item.examInfo.examType.name}}
  157. </view>
  158. </view>
  159. <view class="block-tag-box"
  160. :style="{borderColor: item.examInfo.progress === 'finish'? '#23b46c':'#4169E1'}">
  161. <view class="block-tag"
  162. :style="{color: item.examInfo.progress === 'finish'? '#23b46c':'#4169E1'}">
  163. {{item.examInfo.progress === 'finish' ? '已完成' : '进行中'}}
  164. </view>
  165. </view>
  166. </view>
  167. </view>
  168. </view>
  169. </view>
  170. </view>
  171. <!-- 作业 -->
  172. <view class="detail-box-item" v-if="current == 1">
  173. <view class="item-info">
  174. <view class="t-icon t-icon-daiban"></view>
  175. <view class="item-text">作业列表</view>
  176. <view class="btn" @click="navListData">
  177. <view class="t-icon t-icon-fenlei"></view>
  178. <view class="msg">详情列表</view>
  179. </view>
  180. </view>
  181. <view style="margin-bottom: 20rpx;">
  182. <view class="block-box" v-for="(item,i) in homeworkData" :key="i"
  183. @click="navSingleData(item)">
  184. <view class="index"
  185. :style="{backgroundColor: item.work.progress === 'finish'? '#23b46c':'#ff8caf'}">
  186. </view>
  187. <view class="class-block" style="width: 85%;justify-content: flex-start;">
  188. <view style="display: flex; flex-direction: column;">
  189. <view style="display: flex;margin-left: 30rpx;align-items: center;">
  190. <view class="list-item-title">{{item.work.name}}</view>
  191. <view class="block-tag-box"
  192. :style="{marginLeft: 40+'rpx',borderColor: item.work.progress === 'finish'? '#23b46c':'#ff8caf'}">
  193. <view class="block-tag"
  194. :style="{color: item.work.progress === 'finish'? '#23b46c':'#ff8caf'}">
  195. {{item.work.scope === 'private' ? '个人':'学校'}}作业
  196. </view>
  197. </view>
  198. <view class="block-tag-box"
  199. :style="{marginLeft: 20+'rpx',borderColor: item.work.progress === 'finish'? '#23b46c':'#ff8caf'}">
  200. <view class="block-tag"
  201. :style="{color: item.work.progress === 'finish'? '#23b46c':'#ff8caf'}">
  202. {{item.work.progress === 'finish' ? '已完成' : '进行中'}}
  203. </view>
  204. </view>
  205. </view>
  206. <rich-text class="block-subtitle" style="margin:10rpx 0 0 30rpx;"
  207. :nodes="item.work.description"></rich-text>
  208. </view>
  209. </view>
  210. </view>
  211. </view>
  212. </view>
  213. <!-- 活动 -->
  214. <view class="detail-box-item" v-if="current == 2">
  215. <view class="item-info">
  216. <view class="t-icon t-icon-daiban"></view>
  217. <view class="item-text">活动列表</view>
  218. <view class="btn" @click="navListData">
  219. <view class="t-icon t-icon-fenlei"></view>
  220. <view class="msg">详情列表</view>
  221. </view>
  222. </view>
  223. <view style="margin-bottom: 20rpx;">
  224. <view class="block-box" v-for="(item,i) in activityData" :key="i"
  225. @click="navSingleData(item)">
  226. <view class="index"
  227. :style="{ backgroundColor: item.survey.progress === 'finish' || item.vote.progress === 'finish'? '#23b46c':'#f9c752'}">
  228. </view>
  229. <view class="class-block" style="width: 85%;justify-content: flex-start;">
  230. <view style="display: flex; flex-direction: column;">
  231. <view style="display: flex;margin-left: 30rpx;align-items: center;">
  232. <view class="list-item-title">
  233. {{item.survey.name || item.vote.name}}
  234. </view>
  235. <view class="block-tag-box"
  236. :style="{ marginLeft: 40+'rpx',borderColor: item.survey.progress === 'finish' || item.vote.progress === 'finish'? '#23b46c':'#f9c752'}">
  237. <view class="block-tag"
  238. :style="{color: item.survey.progress === 'finish' || item.vote.progress === 'finish'? '#23b46c':'#f9c752'}">
  239. {{item.survey.scope === 'private' ? '个人':'学校' || item.vote.scope === 'private' ? '个人':'学校'}}活动
  240. </view>
  241. </view>
  242. <view class="block-tag-box"
  243. :style="{ marginLeft: 20+'rpx',borderColor: item.survey.progress === 'finish' || item.vote.progress === 'finish'? '#23b46c':'#f9c752'}">
  244. <view class="block-tag"
  245. :style="{color: item.survey.progress === 'finish' || item.vote.progress === 'finish'? '#23b46c':'#f9c752'}">
  246. {{item.survey.progress === 'finish' || item.vote.progress === 'finish' ? '已完成' : '进行中'}}
  247. </view>
  248. </view>
  249. </view>
  250. <rich-text class="block-subtitle" style="margin:10rpx 0 0 30rpx;"
  251. :nodes="item.vote.description || item.survey.description"></rich-text>
  252. </view>
  253. </view>
  254. </view>
  255. </view>
  256. </view>
  257. </view>
  258. </view>
  259. </view>
  260. </view>
  261. </template>
  262. <script>
  263. import {
  264. mapState,
  265. mapMutations
  266. } from 'vuex'
  267. export default {
  268. computed: {
  269. ...mapState('m_chart', ['assignment']),
  270. },
  271. data() {
  272. return {
  273. //模块名
  274. list: [{
  275. name: '评测详情',
  276. level: '',
  277. image: 'https://ouch-cdn2.icons8.com/yFl5NWU3aVehLBlQf9ctvnZPqtm5U0hqM3IzWvFDCaQ/rs:fit:912:912/czM6Ly9pY29uczgu/b3VjaC1wcm9kLmFz/c2V0cy9wbmcvNzY5/LzY1ZTQxZmZjLTg1/YWQtNDYyMi1hYzU0/LWQ3NDEzZmY2NGI1/YS5wbmc.png',
  278. // image: 'https://ouch-cdn2.icons8.com/Fc-Mi2ntM_Ixcp_lS3XI6bUS2YaAyfiX2vlyWGtt7lU/rs:fit:1186:912/czM6Ly9pY29uczgu/b3VjaC1wcm9kLmFz/c2V0cy9zdmcvOTk1/L2FkZjRlMGQzLTg3/N2ItNGMwYy04ZjY5/LWQxODUwOGRjMWMy/NC5zdmc.png'
  279. }, {
  280. name: '作业详情',
  281. level: '',
  282. image: 'https://ouch-cdn2.icons8.com/AVOwJ9emg_ZOeHvQaunQAZlgeLsG-b1cGhiYvgoJ06g/rs:fit:912:912/czM6Ly9pY29uczgu/b3VjaC1wcm9kLmFz/c2V0cy9wbmcvNTAw/LzI5YjU1YWQ4LWMw/YTEtNDE1MS1iYmQw/LWIyMDdhYmRkOTE0/Mi5wbmc.png',
  283. // image: 'https://ouch-cdn2.icons8.com/HHFusNSROgWCPTuBkHHGmsnUa6MIJA1AxYfCtXQg310/rs:fit:1094:912/czM6Ly9pY29uczgu/b3VjaC1wcm9kLmFz/c2V0cy9zdmcvMzYx/LzlhM2NmMWQzLTg5/NTgtNDNmMi1hYTc1/LTk5NmY0M2U2NTc4/MC5zdmc.png'
  284. }, {
  285. name: '活动详情',
  286. level: '',
  287. image: 'https://ouch-cdn2.icons8.com/LW70TMgW1cGfYeGNSTEp7__kiKVgIhwdZwUmykdLYMY/rs:fit:912:912/czM6Ly9pY29uczgu/b3VjaC1wcm9kLmFz/c2V0cy9wbmcvOTI0/LzU3MWU4ZDZkLTg0/NzEtNGM5YS04MDJk/LTEzNTM5YmZmZTM2/YS5wbmc.png',
  288. // image: 'https://ouch-cdn2.icons8.com/2OQwTztN6Gf0XXjbHCAS3a1Qa9CWEr2EG759oTb7MFM/rs:fit:1216:912/czM6Ly9pY29uczgu/b3VjaC1wcm9kLmFz/c2V0cy9zdmcvNzgw/LzdhNTk3OThlLTU2/ZmEtNGY3OC05Mjdm/LTRhMmQ0NWNhOWY3/MC5zdmc.png'
  289. }],
  290. //当前模块
  291. current: 0,
  292. //页面数据内容
  293. testData: {},
  294. homeworkData: {},
  295. activityData: {},
  296. //完成内容
  297. testFinish: '',
  298. homeworkFinish: '',
  299. activityFinish: '',
  300. //历史数据
  301. historyData: {
  302. test: [50, 55, 60],
  303. homework: [10, 60, 50, 88, 100],
  304. activity: [70, 19, 28, 40, 60, 100, 83]
  305. },
  306. //时间戳
  307. timeStamp: '',
  308. };
  309. },
  310. onLoad(options) {
  311. this.init()
  312. if (options.index)
  313. this.current = options.index
  314. },
  315. //刷新页面
  316. onPullDownRefresh() {
  317. this.init()
  318. setTimeout(function() {
  319. uni.stopPullDownRefresh();
  320. }, 1000);
  321. },
  322. methods: {
  323. ...mapMutations('m_chart', ['updateTestArea', 'updateHomeworkArea', 'updateActivityArea']),
  324. ...mapMutations('m_children', ['updateDetailList', 'updateDetail']),
  325. //初始化页面
  326. init() {
  327. this.timeStamp = (new Date()).format("hh:mm")
  328. this.$initHomework()
  329. this.saveToStudyChart()
  330. this.getLevel()
  331. },
  332. //更改模块
  333. changeModule(e) {
  334. this.current = e.index
  335. },
  336. //获得评判信息
  337. getLevel() {
  338. let testArr = this.historyData.test
  339. let homeworkArr = this.historyData.homework
  340. let activityArr = this.historyData.activity
  341. this.list[0].level = testArr[testArr.length - 1] >= 40 ?
  342. (testArr[testArr.length - 1] >= 70 ? '优秀' : '良好') : '较差'
  343. this.list[1].level = homeworkArr[homeworkArr.length - 1] >= 40 ?
  344. (homeworkArr[homeworkArr.length - 1] >= 70 ? '优秀' : '良好') : '较差'
  345. this.list[2].level = activityArr[activityArr.length - 1] >= 40 ?
  346. (activityArr[activityArr.length - 1] >= 70 ? '优秀' : '良好') : '较差'
  347. },
  348. //记录完成率到图表
  349. saveToStudyChart() {
  350. let temp = {
  351. categories: [],
  352. series: [{
  353. "name": "",
  354. "data": []
  355. }]
  356. }
  357. // 测试
  358. this.historyData.test.push(parseInt(this.testFinish * 100 / this.testData.length))
  359. if (this.historyData.test.length > 7)
  360. this.historyData.test.shift()
  361. temp.categories = this.$getRecentDateArray(this.historyData.test.length)
  362. //数据
  363. //解除对象指向同一块内存(拷贝)
  364. temp.series[0].data = this.historyData.test
  365. let testDataTemp = JSON.parse(JSON.stringify(temp))
  366. this.updateTestArea(testDataTemp)
  367. //作业
  368. this.historyData.homework.push(parseInt(this.homeworkFinish * 100 / this.homeworkData
  369. .length))
  370. if (this.historyData.homework.length > 7)
  371. this.historyData.homework.shift()
  372. temp.categories = this.$getRecentDateArray(this.historyData.homework.length)
  373. temp.series[0].data = this.historyData.homework
  374. let homeworkDataTemp = JSON.parse(JSON.stringify(temp))
  375. this.updateHomeworkArea(homeworkDataTemp)
  376. //活动
  377. this.historyData.activity.push(parseInt(this.activityFinish * 100 / this.activityData
  378. .length))
  379. if (this.historyData.activity.length > 7)
  380. this.historyData.activity.shift()
  381. temp.categories = this.$getRecentDateArray(this.historyData.activity.length)
  382. temp.series[0].data = this.historyData.activity
  383. let activityDataTemp = JSON.parse(JSON.stringify(temp))
  384. this.updateActivityArea(activityDataTemp)
  385. },
  386. //导航到详情页面
  387. navListData() {
  388. if (this.current === 0) {
  389. this.updateDetailList(this.testData)
  390. uni.navigateTo({
  391. url: `/subpkg/detaillist/examlist`
  392. })
  393. }
  394. if (this.current === 1) {
  395. this.updateDetailList(this.homeworkData)
  396. uni.navigateTo({
  397. url: `/subpkg/detaillist/homeworklist`
  398. })
  399. }
  400. if (this.current === 2) {
  401. this.updateDetailList(this.activityData)
  402. uni.navigateTo({
  403. url: `/subpkg/detaillist/activitylist`
  404. })
  405. }
  406. },
  407. //导航到单条数据页面
  408. navSingleData(item) {
  409. if (this.current === 0) {
  410. this.updateDetail(item)
  411. console.log(item);
  412. uni.navigateTo({
  413. url: `/subpkg/detail/exam`
  414. })
  415. }
  416. if (this.current === 1) {
  417. this.updateDetail(item)
  418. console.log(item);
  419. uni.navigateTo({
  420. url: `/subpkg/detail/homework`
  421. })
  422. }
  423. if (this.current === 2) {
  424. this.updateDetail(item)
  425. console.log(item);
  426. uni.navigateTo({
  427. url: `/subpkg/detail/activity`
  428. })
  429. }
  430. }
  431. }
  432. }
  433. </script>
  434. <style lang="scss">
  435. @import '@/pages/common/blockmsg.scss';
  436. .list-item-title {
  437. font-size: 30rpx;
  438. font-weight: bold;
  439. color: $color-title;
  440. }
  441. .home-topinfo {
  442. background: linear-gradient($color-yellow, $page-background-color) !important;
  443. }
  444. //模块
  445. .module-container {
  446. margin-top: -70rpx;
  447. //头部卡片
  448. .card {
  449. display: flex;
  450. justify-content: space-around;
  451. margin: 20rpx auto 20rpx auto;
  452. height: 220rpx;
  453. width: 710rpx;
  454. // background: linear-gradient(to right, #ff95007a,#ff8419);
  455. border-radius: $card-border-radius;
  456. .card-title {
  457. font-size: 50rpx;
  458. font-weight: bold;
  459. color: #FFF;
  460. }
  461. .card-subtitle {
  462. margin-left: 20rpx;
  463. font-size: 30rpx;
  464. color: #FFF;
  465. }
  466. .unit {
  467. margin-left: 10rpx;
  468. font-size: 30rpx;
  469. opacity: 0.8;
  470. color: #FFF;
  471. }
  472. .fin-number{
  473. margin-left: 20rpx;
  474. font-size: 36rpx;
  475. font-weight: bold;
  476. color: #FFF;
  477. }
  478. .border-bottom {
  479. height: 10rpx;
  480. width: 100%;
  481. border-radius: $card-border-radius;
  482. background-color: #FFF;
  483. margin: 5rpx 0 5rpx 0;
  484. }
  485. .image {
  486. position: relative;
  487. top: -90rpx;
  488. right: -35rpx;
  489. height: 300rpx;
  490. width: 300rpx;
  491. background-size: 100%;
  492. background-repeat: no-repeat;
  493. z-index: 2;
  494. }
  495. }
  496. //头部卡片
  497. .box {
  498. display: flex;
  499. flex-direction: column;
  500. justify-content: space-around;
  501. margin: 25rpx 0;
  502. }
  503. //中间标题
  504. .cut-off {
  505. font-size: 30rpx;
  506. font-weight: bold;
  507. color: #606266;
  508. margin-left: 40rpx;
  509. }
  510. //列表block
  511. .detail-box {
  512. display: flex;
  513. flex-flow: row wrap;
  514. margin: 30rpx 20rpx 0 20rpx;
  515. justify-content: space-between;
  516. .detail-box-item {
  517. margin: 0 0 4% 0;
  518. width: 100%;
  519. height: auto;
  520. background-color: #FFF;
  521. border-radius: $card-border-radius;
  522. .item-info {
  523. display: flex;
  524. align-items: center;
  525. padding: 20rpx;
  526. .t-icon {
  527. width: 40rpx;
  528. height: 40rpx;
  529. }
  530. .item-text {
  531. font-size: 30rpx;
  532. font-weight: bold;
  533. color: $color-title;
  534. margin-left: 15rpx;
  535. }
  536. }
  537. }
  538. }
  539. }
  540. .tag {
  541. background-color: #FFF;
  542. height: 30rpx;
  543. width: 10rpx;
  544. border-radius: 100rpx;
  545. margin-left: 10rpx;
  546. opacity: 0.8;
  547. }
  548. //图表
  549. .charts-box {
  550. width: 100%;
  551. height: 300rpx;
  552. }
  553. .flex {
  554. display: flex;
  555. align-items: center;
  556. margin-left: 20rpx;
  557. }
  558. .msg {
  559. color: $color-mixblue;
  560. margin-left: 10rpx;
  561. font-size: 30rpx;
  562. }
  563. .btn {
  564. display: flex;
  565. align-items: center;
  566. margin: 0 5rpx 0 auto;
  567. }
  568. .flex-line {
  569. display: flex;
  570. align-items: baseline;
  571. }
  572. </style>