homework.vue 20 KB

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