Index.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. <template>
  2. <view class="content">
  3. <view class="top">
  4. <view class="threeLine" @tap="openDrawer">
  5. <image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-top: 8px;margin-left: 10px;"></image>
  6. </view>
  7. <view class="text">
  8. <view class="notice">
  9. <view class="icon cuIcon-notice text-white" v-if="badge != 0">
  10. <view class="cu-tag looknumber">
  11. <block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
  12. </view>
  13. </view>
  14. </view>
  15. 宁夏新能源公司
  16. </view>
  17. <view class="plus">+</view>
  18. </view>
  19. <!-- 抽屉组件 -->
  20. <div>
  21. <drawer ref="drawer"></drawer>
  22. </div>
  23. <!--时间组件-->
  24. <view class="time">
  25. <view class="timeimageshizhong">
  26. <image src="../../static/picture/dafeng.png" style="width: 20px;height: 20px;margin-left: 10px;"></image>
  27. </view>
  28. <view class="timeText">
  29. 推荐时间:2020年4月15日ㅤ19:31</view>
  30. <view class="timeIcon">
  31. <image src="../../static/picture/qingwhite.png" style="width: 25px;height: 25px;margin-left: 54px;"></image>
  32. </view>
  33. </view>
  34. <!--电量卡片-->
  35. <view class="InformationCard">
  36. <view class="informationCardAll">
  37. <view class="informationCardTextOne">
  38. <view class="informationCardText"><view class="textSilver">安全天数</view><view class="textWhite">(天)</view>:15</view>
  39. <view class="informationCardTextzj"><view class="textSilver">装机容量</view><view class="textWhite">(MV)</view>:15</view>
  40. </view>
  41. <view class="informationCardTextTwo">
  42. <view class="informationCardText2"><view class="textSilver">日发电量</view><view class="textWhite">(kwh)</view>:150</view>
  43. <view class="informationCardText2"><view class="textSilver">预测发电量</view><view class="textWhite">(kwh)</view>:15</view>
  44. <view class="informationCardText2"><view class="textSilver">上网电量</view><view class="textWhite">(kwh)</view>:15</view>
  45. </view>
  46. </view>
  47. </view>
  48. <!--风速卡片-->
  49. <view class="speedPower">
  50. <view class="cardinstallredSpeed">
  51. <view class="cardinstalltitlegreen">平均风速<view class="textWhitekuangSpeed">(km/h)</view></view>
  52. <view class="cardinstallnumbergreen">5</view>
  53. <view class="cardinstallnumbergreenmin">
  54. <view class="greenMinText">min: 5</view>
  55. </view>
  56. <view class="cardinstallnumbergreenmax">
  57. <view class="greenMaxText">max: 25</view>
  58. </view>
  59. </view>
  60. <view class="cardinstallredSpeed">
  61. <view class="cardinstalltitlegreen">预测风速<view class="textWhitekuangSpeed">(km/h)</view></view>
  62. <view class="cardinstallnumbergreen">48</view>
  63. <view class="cardinstallnumbergreenmin">
  64. <view class="greenMinText">min: 4</view>
  65. </view>
  66. <view class="cardinstallnumbergreenmax">
  67. <view class="greenMaxText">max: 26</view>
  68. </view>
  69. </view>
  70. <view class="cardinstallredSpeed">
  71. <view class="cardinstalltitleRed">实际功率<view class="textWhitekuang">(kw)</view></view>
  72. <view class="cardinstallnumberred">15</view>
  73. <view class="cardinstallnumberredmin">
  74. <view class="redMinText">min: 566</view>
  75. </view>
  76. <view class="cardinstallnumberredmax">
  77. <view class="redMaxText">max: 656</view>
  78. </view>
  79. </view>
  80. <view class="cardinstallredSpeed">
  81. <view class="cardinstalltitleRed">理论功率<view class="textWhitekuang">(kw)</view></view>
  82. <view class="cardinstallnumberred">14</view>
  83. <view class="cardinstallnumberredmin">
  84. <view class="redMinText">min: 589</view>
  85. </view>
  86. <view class="cardinstallnumberredmax">
  87. <view class="redMaxText">max: 674</view>
  88. </view>
  89. </view>
  90. </view>
  91. </view>
  92. </template>
  93. <script>
  94. import drawer from '../../components/drawer/threeLineDrawer.vue'
  95. export default {
  96. components: {
  97. "drawer": drawer
  98. },
  99. data: function() {
  100. return {
  101. badge: 22,
  102. drawerList: ["状态监视", "矩阵监视", "风场监视", "人员监视"],
  103. inconList: ["form", "favor", "question", "edit"],
  104. minaverageSpeed: '12',
  105. maxaverageSpeed: '25'
  106. }
  107. },
  108. methods: {
  109. openDrawer: function() {
  110. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList);
  111. },
  112. closeDrawer: function() {
  113. this.drawerIsShow = false;
  114. }
  115. }
  116. };
  117. </script>
  118. <style>
  119. .cardinstalltitleRed{
  120. width: 100%;
  121. height: 25px;
  122. margin-left: 45px;
  123. user-select: text;
  124. -webkit-user-select: text;
  125. -moz-user-select: text;
  126. -ms-user-select: text;
  127. font-size:14px;
  128. color: silver;
  129. line-height: 25px;
  130. float: left;
  131. }
  132. .textWhitekuangSpeed{
  133. color: white;
  134. float: right;
  135. margin-right: 70px;
  136. }
  137. .textWhitekuang{
  138. color: white;
  139. float: right;
  140. margin-right: 85px;
  141. }
  142. .textWhite{
  143. color: white;
  144. float: left;
  145. }
  146. .textSilver{
  147. user-select: text;
  148. -webkit-user-select: text;
  149. -moz-user-select: text;
  150. -ms-user-select: text;
  151. color: silver;
  152. float: left;
  153. }
  154. .InformationCard{
  155. margin-top: 10px;
  156. width: 100%;
  157. height: 70px;
  158. background-color: #242424;
  159. float: left;
  160. }
  161. .informationCardAll{
  162. width: 100%;
  163. margin-top: 10px;
  164. height: 60px;
  165. float: left;
  166. }
  167. .informationCardTextOne{
  168. width: 100%;
  169. height: 35px;
  170. float: left;
  171. }
  172. .informationCardText{
  173. margin-left: 15px;
  174. width: 110px;
  175. height: 35px;
  176. line-height: 35px;
  177. user-select: text;
  178. -webkit-user-select: text;
  179. -moz-user-select: text;
  180. -ms-user-select: text;
  181. color: silver;
  182. font-size: 12px;
  183. float: left;
  184. }
  185. .informationCardTextzj{
  186. margin-left: 141px;
  187. width: 100px;
  188. height: 35px;
  189. line-height: 35px;
  190. user-select: text;
  191. -webkit-user-select: text;
  192. -moz-user-select: text;
  193. -ms-user-select: text;
  194. color: silver;
  195. font-size: 12px;
  196. float: left;
  197. }
  198. .informationCardTextTwo{
  199. width: 100%;
  200. height: 35px;
  201. float: left;
  202. user-select: text;
  203. -webkit-user-select: text;
  204. -moz-user-select: text;
  205. -ms-user-select: text;
  206. color: silver;
  207. }
  208. .informationCardText2{
  209. margin-left: 15px;
  210. width: 110px;
  211. height: 35px;
  212. font-size: 12px;
  213. line-height: 35px;
  214. float: left;
  215. }
  216. body{
  217. font-family: -apple-system, BlinkMacSystemFont, "PingFang SC","Helvetica Neue",STHeiti,"Microsoft Yahei",Tahoma,Simsun,sans-serif;
  218. font-size:20px;
  219. color: silver;
  220. background: #000;
  221. }
  222. page {
  223. background-color: #1F1F1F;
  224. }
  225. .top {
  226. width: 100%;
  227. height: 95upx;
  228. padding-top: 5upx;
  229. background-color: #1F1F1F;
  230. }
  231. .threeLine {
  232. width: 50px;
  233. height: 45px;
  234. float: left;
  235. }
  236. .text {
  237. width: calc(100% - 100px);
  238. height: 45px;
  239. float: left;
  240. user-select: text;
  241. -webkit-user-select: text;
  242. -moz-user-select: text;
  243. -ms-user-select: text;
  244. color: silver;
  245. line-height: 45px;
  246. text-align: center;
  247. font-size: 18px;
  248. }
  249. .notice {
  250. width: 50px;
  251. height: 45px;
  252. float: left;
  253. }
  254. .plus {
  255. width: 50px;
  256. height: 45px;
  257. float: right;
  258. color: white;
  259. font-size: 35px;
  260. line-height: 45px;
  261. text-align: center;
  262. }
  263. .time {
  264. background-color: #242424;
  265. margin-top: 10px;
  266. width: 100%;
  267. height: 30px;
  268. float: left;
  269. }
  270. .timeimageshizhong {
  271. width: 30px;
  272. height: 20px;
  273. margin-top: 5px;
  274. float: left;
  275. }
  276. .timeText {
  277. width: 62%;
  278. height: 30px;
  279. float: left;
  280. line-height: 30px;
  281. font-size: 15px;
  282. margin-left: 15px;
  283. user-select: text;
  284. -webkit-user-select: text;
  285. -moz-user-select: text;
  286. -ms-user-select: text;
  287. color: silver;
  288. }
  289. .timeIcon {
  290. width: 21%;
  291. height: 30px;
  292. float: left;
  293. margin-left: 5px;
  294. }
  295. .timeIconImage {
  296. width: 100%;
  297. height: 25px;
  298. margin-top: 1px;
  299. }
  300. .timeIconText {
  301. width: 100%;
  302. height: 25px;
  303. text-align: center;
  304. font-size: 12px;
  305. }
  306. .cardinstallgreenSecurity{
  307. margin-left: 9px;
  308. margin-top: 9px;
  309. margin-bottom: 9px;
  310. width: 30%;
  311. height: 78px;
  312. background: -webkit-linear-gradient(top, rgba(133,145,132,0.1)0%,rgba(66,130,61,0.2)100%);
  313. border-radius: 5px;
  314. float: left;
  315. /* font-family: "STKaiti"; */
  316. }
  317. .cardinstalltitle{
  318. width: 100%;
  319. height: 40px;
  320. text-align: center;
  321. user-select: text;
  322. -webkit-user-select: text;
  323. -moz-user-select: text;
  324. -ms-user-select: text;
  325. font-size:14px;
  326. color: silver;
  327. line-height: 40px;
  328. float: left;
  329. }
  330. .cardinstallnumber{
  331. /* font-weight: bold; */
  332. width: 100%;
  333. height: 40px;
  334. text-align: center;
  335. user-select: text;
  336. -webkit-user-select: text;
  337. -moz-user-select: text;
  338. -ms-user-select: text;
  339. color: silver;
  340. font-size:16px;
  341. /* color: #449618; */
  342. line-height: 40px;
  343. }
  344. .cardinstallgreenEquipment{
  345. margin-right: 11px;
  346. margin-top: 10px;
  347. width: 30%;
  348. height: 78px;
  349. background: -webkit-linear-gradient(top, rgba(159,131,111,0.1)0%,rgba(193,94,21,0.2)100%);
  350. border-radius: 5px;
  351. float: right;
  352. /* font-family: "STKaiti"; */
  353. }
  354. .cardinstallgreen{
  355. margin-left: 9px;
  356. width: 30%;
  357. height: 78px;
  358. background: -webkit-linear-gradient(top, rgba(133,145,132,0.1)0%,rgba(66,130,61,0.2)100%);
  359. border-radius: 5px;
  360. float: left;
  361. }
  362. .cardinstallblue{
  363. margin-top: 9px;
  364. margin-left: 9px;
  365. width: 30%;
  366. height: 78px;
  367. background: -webkit-linear-gradient(top, rgba(159,131,111,0.1)0%,rgba(10,82,156,0.2)100%);
  368. border-radius: 5px;
  369. float: left;
  370. }
  371. .cardinstallblueright{
  372. margin-right: 11px;
  373. margin-top: 10px;
  374. width: 30%;
  375. height: 78px;
  376. background: -webkit-linear-gradient(top, rgba(159,131,111,0.1)0%,rgba(10,82,156,0.2)100%);
  377. border-radius: 5px;
  378. float: right;
  379. }
  380. .cardinstalltitlegreen{
  381. width: 100%;
  382. height: 25px;
  383. margin-left: 37px;
  384. user-select: text;
  385. -webkit-user-select: text;
  386. -moz-user-select: text;
  387. -ms-user-select: text;
  388. font-size:14px;
  389. color: silver;
  390. line-height: 25px;
  391. float: left;
  392. }
  393. .cardinstallnumbergreen{
  394. width: 100%;
  395. height: 25px;
  396. text-align: center;
  397. user-select: text;
  398. -webkit-user-select: text;
  399. -moz-user-select: text;
  400. -ms-user-select: text;
  401. font-size:20px;
  402. color: silver;
  403. /* color: #449618; */
  404. line-height: 25px;
  405. float: left;
  406. }
  407. .cardinstallnumbergreenmin{
  408. margin-left: 2px;
  409. width: 45%;
  410. height: 20px;
  411. user-select: text;
  412. -webkit-user-select: text;
  413. -moz-user-select: text;
  414. -ms-user-select: text;
  415. font-size:12px;
  416. color: silver;
  417. /* color: #449618; */
  418. float: left;
  419. }
  420. .cardinstallnumbergreenmax{
  421. /* font-weight: bold; */
  422. margin-right: 2px;
  423. width: 45%;
  424. height: 20px;
  425. user-select: text;
  426. -webkit-user-select: text;
  427. -moz-user-select: text;
  428. -ms-user-select: text;
  429. font-size:12px;
  430. color: silver;
  431. /* color: #449618; */
  432. float: right;
  433. }
  434. .greenMinText{
  435. line-height: 20px;
  436. float: right;
  437. }
  438. .greenMaxText{
  439. line-height: 20px;
  440. float: left;
  441. }
  442. .cardinstallnumberred{
  443. width: 100%;
  444. height: 25px;
  445. text-align: center;
  446. user-select: text;
  447. -webkit-user-select: text;
  448. -moz-user-select: text;
  449. -ms-user-select: text;
  450. font-size:20px;
  451. color: silver;
  452. /* color: #E93131; */
  453. line-height: 25px;
  454. float: left;
  455. }
  456. .cardinstallnumberredmin{
  457. margin-left: 2px;
  458. width: 45%;
  459. height: 20px;
  460. user-select: text;
  461. -webkit-user-select: text;
  462. -moz-user-select: text;
  463. -ms-user-select: text;
  464. font-size:12px;
  465. color: silver;
  466. /* color: #E93131; */
  467. float: left;
  468. }
  469. .cardinstallnumberredmax{
  470. margin-right: 2px;
  471. width: 45%;
  472. height: 20px;
  473. user-select: text;
  474. -webkit-user-select: text;
  475. -moz-user-select: text;
  476. -ms-user-select: text;
  477. font-size:12px;
  478. color: silver;
  479. /* color: #E93131; */
  480. float: right;
  481. }
  482. .redMinText{
  483. line-height: 20px;
  484. float: right;
  485. }
  486. .redMaxText{
  487. line-height: 20px;
  488. float: left;
  489. }
  490. .electricityCard {
  491. width: 100%;
  492. height: 100px;
  493. background-color: #242424;
  494. /* height: 185px; */
  495. float: left;
  496. margin-top: 20rpx;
  497. }
  498. .speedPower{
  499. width: 100%;
  500. height: 180px;
  501. background-color: #242424;
  502. float: left;
  503. margin-top: 20rpx;
  504. }
  505. .cardinstallgreenSpeed{
  506. margin-top: 9px;
  507. margin-left: 9px;
  508. width: 46%;
  509. height: 78px;
  510. background: -webkit-linear-gradient(top, rgba(133,145,132,0.1)0%,rgba(66,130,61,0.2)100%);
  511. border-radius: 5px;
  512. float: left;
  513. }
  514. .cardinstallredSpeed{
  515. margin-top: 8px;
  516. margin-left: 9px;
  517. width: 46%;
  518. height: 78px;
  519. background: -webkit-linear-gradient(top, rgba(159,131,111,0.1)0%,rgba(193,94,21,0.2)100%);
  520. border-radius: 5px;
  521. float: left;
  522. }
  523. </style>