securityHidden.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. <!-- 数据看板-安全隐患 -->
  2. <template>
  3. <view class="hazardSources">
  4. <view class="small-title">
  5. <view class="small-title-l">安全检查校级巡查计划标题标题标题标题标题</view>
  6. <img class="small-title-r" src="@/pages/images/dataBoard/icon_06.png">
  7. </view>
  8. <view class="chart">
  9. <view class="chart-t">
  10. <view class="chart-t-li" :class="chartIndex==index?'color-A':'color-B'" @click="chartClick(index)"
  11. v-for="(item,index) in chartTitle">{{item}}</view>
  12. </view>
  13. <view class="chart-b" v-if="chartIndex==0">
  14. <qiun-data-charts type="column" :opts="opts" :echartsH5="true" :chartData="chartData" />
  15. </view>
  16. <view class="chart-b2" v-if="chartIndex==0">
  17. <view class="chart-b2-li">
  18. <view class="chart-b2-li-t">
  19. <text>1</text>
  20. <text>农学院</text>
  21. </view>
  22. <view class="chart-b2-li-b">132</view>
  23. </view>
  24. <view class="chart-b2-li">
  25. <view class="chart-b2-li-t">
  26. <text>1</text>
  27. <text>理学院</text>
  28. </view>
  29. <view class="chart-b2-li-b">132</view>
  30. </view>
  31. <view class="chart-b2-li">
  32. <view class="chart-b2-li-t">
  33. <text>1</text>
  34. <text>生命科学</text>
  35. </view>
  36. <view class="chart-b2-li-b">132</view>
  37. </view>
  38. </view>
  39. <view class="chart-b-tow" v-if="chartIndex==1 || chartIndex==2">
  40. <qiun-data-charts type="radar" :opts="optsTow" :echartsH5="true" :chartData="chartDataTow" />
  41. </view>
  42. </view>
  43. <scroll-view scroll-x @scrolltolower="scrollGet" v-if="chartIndex!=0">
  44. <view class="tabTitle_tow">
  45. <view class="tabTitle_tow_li" @tap="tabClickTow(item,index)" :key="index"
  46. v-for="(item,index) in tabTextTow">
  47. <view :class="{on:curTabTow==index}" class="tabTitle_tow_text">{{item}}</view>
  48. <view :class="{on:curTabTow==index}" class="tabTitle_tow_across"></view>
  49. </view>
  50. </view>
  51. </scroll-view>
  52. <!--安全隐患排行 -->
  53. <view class="table" v-if="chartIndex==0">
  54. <view class="table-border">
  55. <view class="table-th">
  56. <view class="table-th-li">
  57. <view>排行</view>
  58. <view>学院单位</view>
  59. <view>总隐患</view>
  60. <view>已整改</view>
  61. <view>未整改</view>
  62. <view>暂无法整改</view>
  63. </view>
  64. </view>
  65. <view class="table-tb">
  66. <view class="table-tb-li" v-for="(item,index) in dataList" :key="index">
  67. <view>
  68. <text
  69. :class="index==0?'sortOne':(index==1?'sortTow':(index==2?'sortThree':'sortFive'))">{{index+1}}</text>
  70. </view>
  71. <view>{{item.data1}}</view>
  72. <view>{{item.data2}}</view>
  73. <view>{{item.data2}}</view>
  74. <view>{{item.data2}}</view>
  75. <view>{{item.data2}}</view>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <!-- 一级指标排行 -->
  81. <view class="table-tow" v-if="chartIndex!=0 && curTabTow==0">
  82. <view class="table-border">
  83. <view class="table-th">
  84. <view class="table-th-li">
  85. <view>序号</view>
  86. <view>一级指标</view>
  87. <view>隐患数</view>
  88. <view>占比</view>
  89. </view>
  90. </view>
  91. <view class="table-tb">
  92. <view class="table-tb-li" v-for="(item,index) in dataList" :key="index">
  93. <view>
  94. <text
  95. :class="index==0?'sortOne':(index==1?'sortTow':(index==2?'sortThree':'sortFive'))">{{index+1}}</text>
  96. </view>
  97. <view>{{item.data1}}</view>
  98. <view>{{item.data2}}</view>
  99. <view>{{item.data2}}</view>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. <!--学院单位 -->
  105. <view class="table-three" v-if="chartIndex!=0 && curTabTow==1">
  106. <view class="table-border">
  107. <view class="table-th">
  108. <view class="table-th-li">
  109. <view>排行</view>
  110. <view>学院单位</view>
  111. <view>总隐患</view>
  112. <view>实验场所</view>
  113. <view>安全设施</view>
  114. <view>化学安全</view>
  115. <view>基础安全</view>
  116. <view>生物安全</view>
  117. <view>特种与冷热设备</view>
  118. </view>
  119. </view>
  120. <view class="table-tb">
  121. <view class="table-tb-li" v-for="(item,index) in dataList" :key="index">
  122. <view>
  123. <text
  124. :class="index==0?'sortOne':(index==1?'sortTow':(index==2?'sortThree':'sortFive'))">{{index+1}}</text>
  125. </view>
  126. <view>{{item.data1}}</view>
  127. <view>{{item.data2}}</view>
  128. <view>{{item.data2}}</view>
  129. <view>{{item.data2}}</view>
  130. <view>{{item.data2}}</view>
  131. <view>{{item.data2}}</view>
  132. <view>{{item.data2}}</view>
  133. <view>{{item.data2}}</view>
  134. </view>
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. </template>
  140. <script>
  141. import {
  142. config
  143. } from '@/api/request/config.js'
  144. import {
  145. } from '@/pages_basics/api/index.js'
  146. export default {
  147. name: "hazardSources",
  148. components: {
  149. },
  150. data() {
  151. return {
  152. chartType: 3,
  153. chartTitle: ['安全隐患排行', '一级指标排行', '暂无法整改'],
  154. chartIndex: 0,
  155. opts: {
  156. color: ["#149F12", "#FF0000", "#FF9D25", ],
  157. padding: [15, 15, 4, 5],
  158. enableScroll: false,
  159. legend: {
  160. position: 'top',
  161. fontColor: '#fff',
  162. },
  163. xAxis: {
  164. disableGrid: true,
  165. disabled: true,
  166. axisLine: false,
  167. },
  168. yAxis: {
  169. disableGrid: true,
  170. data: [{
  171. disabled: true,
  172. }]
  173. },
  174. extra: {
  175. column: {
  176. type: "group",
  177. width: 14,
  178. linearType: "opacity",
  179. linearOpacity: 0.6,
  180. }
  181. }
  182. },
  183. optsTow: {
  184. color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4",
  185. "#ea7ccc"
  186. ],
  187. padding: [5, 5, 5, 5],
  188. dataLabel: false,
  189. enableScroll: false,
  190. legend: {
  191. show: false,
  192. },
  193. extra: {
  194. radar: {
  195. gridType: "radar",
  196. gridColor: "#CCCCCC",
  197. gridCount: 3,
  198. opacity: 0.2,
  199. max: 200,
  200. labelShow: true,
  201. border: true
  202. }
  203. }
  204. },
  205. chartData: {},
  206. chartDataTow: {},
  207. // 查询参数
  208. queryParams: {
  209. page: 1,
  210. pageSize: 10,
  211. },
  212. dataList: [{
  213. data1: '植物保护',
  214. data2: '499',
  215. data3: '47',
  216. data4: '220',
  217. data5: '137',
  218. },
  219. {
  220. data1: '资源环境',
  221. data2: '199',
  222. data3: '7',
  223. data4: '120',
  224. data5: '37',
  225. },
  226. {
  227. data1: '生命科学',
  228. data2: '299',
  229. data3: '71',
  230. data4: '10',
  231. data5: '37',
  232. },
  233. {
  234. data1: '资源环境',
  235. data2: '199',
  236. data3: '7',
  237. data4: '120',
  238. data5: '37',
  239. },
  240. {
  241. data1: '生命科学',
  242. data2: '299',
  243. data3: '71',
  244. data4: '10',
  245. data5: '37',
  246. },
  247. ],
  248. total: 0,
  249. tabTextTow: ['一级指标', '学院单位'],
  250. curTabTow: 0,
  251. }
  252. },
  253. created() {
  254. },
  255. beforeMount() {
  256. },
  257. mounted() {
  258. this.getServerData();
  259. },
  260. methods: {
  261. scrollGet() {
  262. },
  263. chartClick(index) {
  264. this.chartIndex = index;
  265. this.getServerDataTow();
  266. },
  267. //顶部tab点击
  268. tabClickTow(item, index) {
  269. this.curTabTow = index;
  270. },
  271. getServerData() {
  272. //模拟从服务器获取数据时的延时
  273. setTimeout(() => {
  274. //模拟服务器返回数据,如果数据格式和标准格式不同,需自行按下面的格式拼接
  275. let res = {
  276. categories: ["化学与药品学院", "化学与药品学院", "化学与药品学院"],
  277. series: [{
  278. name: "已整改",
  279. textColor: '#fff',
  280. data: [35, 36, 31, ]
  281. },
  282. {
  283. name: "未整改",
  284. textColor: '#fff',
  285. data: [18, 27, 21, ]
  286. },
  287. {
  288. name: "暂无法整改",
  289. textColor: '#fff',
  290. data: [8, 7, 2, ]
  291. }
  292. ]
  293. };
  294. this.chartData = JSON.parse(JSON.stringify(res));
  295. }, 500);
  296. },
  297. getServerDataTow() {
  298. //模拟从服务器获取数据时的延时
  299. setTimeout(() => {
  300. //模拟服务器返回数据,如果数据格式和标准格式不同,需自行按下面的格式拼接
  301. let res = {
  302. categories: ["维度1", "维度2", "维度3", "维度4", "维度5"],
  303. series: [{
  304. name: "成交量1",
  305. data: [90, 110, 165, 195, 187]
  306. },
  307. {
  308. name: "成交量2",
  309. data: [190, 210, 105, 35, 27]
  310. }
  311. ]
  312. };
  313. this.chartDataTow = JSON.parse(JSON.stringify(res));
  314. }, 500);
  315. },
  316. },
  317. }
  318. </script>
  319. <style lang="stylus" scoped>
  320. .hazardSources {
  321. height: 100%;
  322. width: 100%;
  323. background: #363744;
  324. .small-title {
  325. width: 750rpx;
  326. height: 80rpx;
  327. background: #3E414F;
  328. display: flex;
  329. justify-content: space-between;
  330. align-items: center;
  331. padding: 0 20rpx 0 30rpx;
  332. box-sizing: border-box;
  333. margin-top: 2rpx;
  334. .small-title-l {
  335. flex: 1;
  336. font-weight: 400;
  337. font-size: 30rpx;
  338. color: #FFFFFF;
  339. line-height: 42rpx;
  340. overflow: hidden;
  341. text-overflow: ellipsis;
  342. white-space: nowrap;
  343. }
  344. .small-title-r {
  345. width: 14rpx;
  346. height: 8rpx;
  347. }
  348. }
  349. .chart {
  350. width: 690rpx;
  351. height: 520rpx;
  352. background: #3E414F;
  353. border-radius: 20rpx 20rpx 20rpx 20rpx;
  354. margin: 20rpx 30rpx 0;
  355. overflow: hidden;
  356. .chart-t {
  357. width: 570rpx;
  358. height: 50rpx;
  359. display: flex;
  360. justify-content: flex-start;
  361. border: 1rpx solid #52545F;
  362. border-radius: 10rpx;
  363. margin: 30rpx 0 0 72rpx;
  364. .chart-t-li {
  365. width: 190rpx;
  366. font-weight: 400;
  367. font-size: 28rpx;
  368. line-height: 50rpx;
  369. text-align: center;
  370. background: none;
  371. }
  372. .chart-t-li:nth-of-type(1) {
  373. border-right: 1rpx solid #52545F;
  374. }
  375. .chart-t-li:nth-of-type(2) {
  376. border-right: 1rpx solid #52545F;
  377. }
  378. .color-A {
  379. color: #FFFFFF;
  380. background: #52545F;
  381. }
  382. .color-B {
  383. color: #999999;
  384. background: none;
  385. }
  386. }
  387. .chart-b {
  388. width: 630rpx;
  389. height: 334rpx;
  390. margin-left: 30rpx;
  391. }
  392. .chart-b2 {
  393. width: 630rpx;
  394. margin: 0 30rpx;
  395. height: 106rx;
  396. display: flex;
  397. justify-content: flex-start;
  398. align-items: center;
  399. .chart-b2-li {
  400. flex: 1;
  401. .chart-b2-li-t {
  402. margin-top: 10rpx;
  403. text-align: center;
  404. >text:nth-of-type(1) {
  405. display: inline-block;
  406. width: 24rpx;
  407. height: 24rpx;
  408. background: #FF0000;
  409. border-radius: 6rpx 6rpx 6rpx 6rpx;
  410. margin-right: 10rpx;
  411. font-weight: 400;
  412. font-size: 22rpx;
  413. color: #FFFFFF;
  414. line-height: 24rpx;
  415. text-align: center;
  416. }
  417. >text:nth-of-type(2) {
  418. font-weight: 400;
  419. font-size: 24rpx;
  420. color: #FFFFFF;
  421. line-height: 34rpx;
  422. }
  423. }
  424. .chart-b2-li-b {
  425. margin-top: 10rpx;
  426. font-weight: 400;
  427. font-size: 24rpx;
  428. color: #FFFFFF;
  429. line-height: 34rpx;
  430. text-align: center;
  431. }
  432. }
  433. }
  434. .chart-b-tow {
  435. width: 630rpx;
  436. height: 440rpx;
  437. margin-left: 30rpx;
  438. }
  439. }
  440. .tabTitle_tow {
  441. width: 750rpx;
  442. height: 80rpx;
  443. white-space: nowrap;
  444. display: inline-flex;
  445. background: #3E414F;
  446. margin-top: 20rpx;
  447. padding-left: 35rpx;
  448. .tabTitle_tow_li {
  449. position: relative;
  450. width: 152rpx;
  451. height: 80rpx;
  452. text-align center;
  453. padding-top: 18rpx;
  454. box-sizing: border-box;
  455. .tabTitle_tow_text {
  456. display: inline-block;
  457. font-size: 32rpx;
  458. font-family: PingFang SC;
  459. font-weight: 500;
  460. color: #FFFFFF;
  461. line-height: 46rpx;
  462. position: relative;
  463. &.on {
  464. color: #0183FA;
  465. }
  466. }
  467. .tabTitle_tow_across {
  468. width: 50rpx;
  469. height: 4rpx;
  470. background: #0183FA;
  471. border-radius: 2rpx;
  472. margin-left: 33%;
  473. margin-top: 16rpx;
  474. display none;
  475. &.on {
  476. display block;
  477. }
  478. }
  479. }
  480. }
  481. .table {
  482. width: 720rpx;
  483. margin: 20rpx 0 0 30rpx;
  484. .table-border {
  485. width: auto;
  486. overflow: auto;
  487. .table-th {
  488. width: 860rpx;
  489. padding: 0 30rpx;
  490. box-sizing: border-box;
  491. background: rgba(162, 162, 162, 0.2);
  492. border-radius: 20rpx 20rpx 0rpx 0rpx;
  493. .table-th-li {
  494. height: 80rpx;
  495. display: flex;
  496. justify-content: flex-start;
  497. >view {
  498. font-weight: 400;
  499. font-size: 30rpx;
  500. color: #FFFFFF;
  501. line-height: 80rpx;
  502. text-align: center;
  503. margin-right: 38rpx;
  504. width: 120rpx;
  505. overflow: hidden;
  506. text-overflow: ellipsis;
  507. white-space: nowrap;
  508. }
  509. >view:nth-of-type(1) {
  510. width: 116rpx;
  511. text-align: left;
  512. margin-right: 0;
  513. }
  514. >view:nth-of-type(2) {
  515. width: 168rpx;
  516. }
  517. >view:last-child {
  518. margin-right: 0;
  519. width: 228rpx;
  520. }
  521. }
  522. }
  523. .table-tb {
  524. width: 860rpx;
  525. background: #3E414F;
  526. padding: 0 30rpx;
  527. box-sizing: border-box;
  528. .table-tb-li {
  529. height: 80rpx;
  530. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  531. display: flex;
  532. justify-content: flex-start;
  533. >view {
  534. font-weight: 400;
  535. font-size: 28rpx;
  536. color: #FFFFFF;
  537. line-height: 80rpx;
  538. text-align: center;
  539. margin-right: 38rpx;
  540. width: 120rpx;
  541. overflow: hidden;
  542. text-overflow: ellipsis;
  543. white-space: nowrap;
  544. }
  545. >view:nth-of-type(1) {
  546. width: 116rpx;
  547. text-align: left;
  548. margin-right: 0;
  549. }
  550. >view:nth-of-type(2) {
  551. width: 168rpx;
  552. }
  553. >view:last-child {
  554. margin-right: 0;
  555. width: 228rpx;
  556. }
  557. }
  558. }
  559. }
  560. }
  561. .sortOne {
  562. display: inline-block;
  563. width: 40rpx;
  564. height: 40rpx;
  565. padding: 4rpx;
  566. box-sizing: border-box;
  567. background: rgba(255, 0, 0, 0.2);
  568. font-weight: 400;
  569. font-size: 28rpx;
  570. color: #FF0000;
  571. line-height: 40rpx;
  572. text-align: center;
  573. border-radius: 20rpx;
  574. }
  575. .sortTow {
  576. display: inline-block;
  577. width: 40rpx;
  578. height: 40rpx;
  579. padding: 4rpx;
  580. box-sizing: border-box;
  581. background: rgba(255, 153, 0, 0.2);
  582. font-weight: 400;
  583. font-size: 28rpx;
  584. color: #FF9900;
  585. line-height: 40rpx;
  586. text-align: center;
  587. border-radius: 20rpx;
  588. }
  589. .sortThree {
  590. display: inline-block;
  591. width: 40rpx;
  592. height: 40rpx;
  593. padding: 4rpx;
  594. box-sizing: border-box;
  595. background: rgba(255, 242, 0, 0.2);
  596. font-weight: 400;
  597. font-size: 28rpx;
  598. color: #FFF200;
  599. line-height: 40rpx;
  600. text-align: center;
  601. border-radius: 20rpx;
  602. }
  603. .sortFive {
  604. display: inline-block;
  605. width: 40rpx;
  606. height: 40rpx;
  607. padding: 4rpx;
  608. box-sizing: border-box;
  609. background: rgba(1, 131, 250, 0.2);
  610. font-weight: 400;
  611. font-size: 28rpx;
  612. color: #0183FA;
  613. line-height: 40rpx;
  614. text-align: center;
  615. border-radius: 20rpx;
  616. }
  617. .table-tow {
  618. width: 690rpx;
  619. margin: 20rpx 0 0 30rpx;
  620. .table-border {
  621. width: auto;
  622. overflow: auto;
  623. .table-th {
  624. width: 690rpx;
  625. padding: 0 30rpx;
  626. box-sizing: border-box;
  627. background: rgba(162, 162, 162, 0.2);
  628. border-radius: 20rpx 20rpx 0rpx 0rpx;
  629. .table-th-li {
  630. height: 80rpx;
  631. display: flex;
  632. justify-content: flex-start;
  633. >view {
  634. font-weight: 400;
  635. font-size: 30rpx;
  636. color: #FFFFFF;
  637. line-height: 80rpx;
  638. text-align: center;
  639. margin-right: 38rpx;
  640. width: 120rpx;
  641. overflow: hidden;
  642. text-overflow: ellipsis;
  643. white-space: nowrap;
  644. }
  645. >view:nth-of-type(1) {
  646. width: 64rpx;
  647. text-align: left;
  648. margin-right: 0;
  649. }
  650. >view:nth-of-type(2) {
  651. width: 270rpx;
  652. }
  653. >view:last-child {
  654. margin-right: 0;
  655. }
  656. }
  657. }
  658. .table-tb {
  659. width: 690rpx;
  660. background: #3E414F;
  661. padding: 0 30rpx;
  662. box-sizing: border-box;
  663. .table-tb-li {
  664. height: 80rpx;
  665. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  666. display: flex;
  667. justify-content: flex-start;
  668. >view {
  669. font-weight: 400;
  670. font-size: 28rpx;
  671. color: #FFFFFF;
  672. line-height: 80rpx;
  673. text-align: center;
  674. margin-right: 38rpx;
  675. width: 120rpx;
  676. overflow: hidden;
  677. text-overflow: ellipsis;
  678. white-space: nowrap;
  679. }
  680. >view:nth-of-type(1) {
  681. width: 64rpx;
  682. text-align: left;
  683. margin-right: 0;
  684. }
  685. >view:nth-of-type(2) {
  686. width: 270rpx;
  687. }
  688. >view:last-child {
  689. margin-right: 0;
  690. }
  691. }
  692. }
  693. }
  694. }
  695. .table-three {
  696. width: 720rpx;
  697. margin: 20rpx 0 0 30rpx;
  698. .table-border {
  699. width: auto;
  700. overflow: auto;
  701. .table-th {
  702. width: 1510rpx;
  703. padding: 0 30rpx;
  704. box-sizing: border-box;
  705. background: rgba(162, 162, 162, 0.2);
  706. border-radius: 20rpx 20rpx 0rpx 0rpx;
  707. .table-th-li {
  708. height: 80rpx;
  709. display: flex;
  710. justify-content: flex-start;
  711. >view {
  712. font-weight: 400;
  713. font-size: 30rpx;
  714. color: #FFFFFF;
  715. line-height: 80rpx;
  716. text-align: center;
  717. margin-right: 38rpx;
  718. width: 120rpx;
  719. overflow: hidden;
  720. text-overflow: ellipsis;
  721. white-space: nowrap;
  722. }
  723. >view:nth-of-type(1) {
  724. width: 116rpx;
  725. text-align: left;
  726. margin-right: 0;
  727. }
  728. >view:nth-of-type(2) {
  729. width: 168rpx;
  730. }
  731. >view:last-child {
  732. margin-right: 0;
  733. width: 228rpx;
  734. }
  735. }
  736. }
  737. .table-tb {
  738. width: 1510rpx;
  739. background: #3E414F;
  740. padding: 0 30rpx;
  741. box-sizing: border-box;
  742. .table-tb-li {
  743. height: 80rpx;
  744. border-bottom: 1rpx dashed rgba(216, 216, 216, 0.2);
  745. display: flex;
  746. justify-content: flex-start;
  747. >view {
  748. font-weight: 400;
  749. font-size: 28rpx;
  750. color: #FFFFFF;
  751. line-height: 80rpx;
  752. text-align: center;
  753. margin-right: 38rpx;
  754. width: 120rpx;
  755. overflow: hidden;
  756. text-overflow: ellipsis;
  757. white-space: nowrap;
  758. }
  759. >view:nth-of-type(1) {
  760. width: 116rpx;
  761. text-align: left;
  762. margin-right: 0;
  763. }
  764. >view:nth-of-type(2) {
  765. width: 168rpx;
  766. }
  767. >view:last-child {
  768. margin-right: 0;
  769. width: 228rpx;
  770. }
  771. }
  772. }
  773. }
  774. }
  775. }
  776. </style>