Index.vue 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  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="electricityCard">
  36. <view class="cardinstallgreenSecurity">
  37. <view class="cardinstalltitle">安全天数</view>
  38. <view class="cardinstallnumber">17mA</view>
  39. <!-- <view class="comment">安全天数 17mA</view> -->
  40. </view>
  41. <view class="cardinstallgreenEquipment">
  42. <view class="cardinstalltitle">装机容量</view>
  43. <view class="cardinstallnumber">350w</view>
  44. </view>
  45. <view class="cardinstallgreen">
  46. <view class="cardinstalltitlegreen">预发电量</view>
  47. <view class="cardinstallnumbergreen">658kwh</view>
  48. <view class="cardinstallnumbergreenmin">
  49. <view class="greenMinText">25kwh</view>
  50. </view>
  51. <view class="cardinstallnumbergreenmax">
  52. <view class="greenMaxText">35kwh</view>
  53. </view>
  54. </view>
  55. <view class="cardinstallred">
  56. <view class="cardinstalltitlegreen">日发电量</view>
  57. <view class="cardinstallnumberred">658kwh</view>
  58. <view class="cardinstallnumberredmin">
  59. <view class="redMinText">25kwh</view>
  60. </view>
  61. <view class="cardinstallnumberredmax">
  62. <view class="redMaxText">35kwh</view>
  63. </view>
  64. </view>
  65. <view class="cardinstallgreen">
  66. <view class="cardinstalltitlegreen">预发电量</view>
  67. <view class="cardinstallnumbergreen">658kwh</view>
  68. <view class="cardinstallnumbergreenmin">
  69. <view class="greenMinText">25kwh</view>
  70. </view>
  71. <view class="cardinstallnumbergreenmax">
  72. <view class="greenMaxText">35kwh</view>
  73. </view>
  74. </view>
  75. </view>
  76. <!--风速卡片-->
  77. <view class="speedPower">
  78. <view class="cardinstallgreenSpeed">
  79. <view class="cardinstalltitlegreen">平均风速</view>
  80. <view class="cardinstallnumbergreen">5km/h</view>
  81. <view class="cardinstallnumbergreenmin">
  82. <view class="greenMinText">5km/h</view>
  83. </view>
  84. <view class="cardinstallnumbergreenmax">
  85. <view class="greenMaxText">25km/h</view>
  86. </view>
  87. </view>
  88. <view class="cardinstallgreenSpeed">
  89. <view class="cardinstalltitlegreen">预测风速</view>
  90. <view class="cardinstallnumbergreen">48km/h</view>
  91. <view class="cardinstallnumbergreenmin">
  92. <view class="greenMinText">4km/h</view>
  93. </view>
  94. <view class="cardinstallnumbergreenmax">
  95. <view class="greenMaxText">26km/h</view>
  96. </view>
  97. </view>
  98. <view class="cardinstallredSpeed">
  99. <view class="cardinstalltitlegreen">实际功率</view>
  100. <view class="cardinstallnumberred">15kw</view>
  101. <view class="cardinstallnumberredmin">
  102. <view class="redMinText">566kw</view>
  103. </view>
  104. <view class="cardinstallnumberredmax">
  105. <view class="redMaxText">656kw</view>
  106. </view>
  107. </view>
  108. <view class="cardinstallredSpeed">
  109. <view class="cardinstalltitlegreen">理论功率</view>
  110. <view class="cardinstallnumberred">14kw</view>
  111. <view class="cardinstallnumberredmin">
  112. <view class="redMinText">589kw</view>
  113. </view>
  114. <view class="cardinstallnumberredmax">
  115. <view class="redMaxText">674kw</view>
  116. </view>
  117. </view>
  118. </view>
  119. <!-- <view class="details">
  120. <view class="detailsText" @tap="common.navTo('/components/detail/Detail')"> 详情 〉</view>
  121. </view> -->
  122. </view>
  123. </template>
  124. <script>
  125. import drawer from '../../components/drawer/threeLineDrawer.vue'
  126. export default {
  127. components: {
  128. "drawer": drawer
  129. },
  130. data: function() {
  131. return {
  132. badge: 22,
  133. drawerList: ["状态监视", "矩阵监视", "风场监视", "人员监视"],
  134. inconList: ["form", "favor", "question", "edit"],
  135. minaverageSpeed: '12',
  136. maxaverageSpeed: '25'
  137. }
  138. },
  139. methods: {
  140. openDrawer: function() {
  141. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList);
  142. },
  143. closeDrawer: function() {
  144. this.drawerIsShow = false;
  145. }
  146. }
  147. };
  148. </script>
  149. <style>
  150. body{
  151. font-family: -apple-system, BlinkMacSystemFont, "PingFang SC","Helvetica Neue",STHeiti,"Microsoft Yahei",Tahoma,Simsun,sans-serif;
  152. font-size:20px;
  153. color: silver;
  154. background: #000;
  155. }
  156. .comment {
  157. user-select: text;
  158. -webkit-user-select: text;
  159. -moz-user-select: text;
  160. -ms-user-select: text;
  161. font-size:20px;
  162. color: silver;
  163. }
  164. page {
  165. background-color: #1F1F1F;
  166. }
  167. .top {
  168. width: 100%;
  169. height: 95upx;
  170. padding-top: 5upx;
  171. background-color: #1F1F1F;
  172. }
  173. .threeLine {
  174. width: 50px;
  175. height: 45px;
  176. float: left;
  177. }
  178. .text {
  179. width: calc(100% - 100px);
  180. height: 45px;
  181. float: left;
  182. color: white;
  183. line-height: 45px;
  184. text-align: center;
  185. font-size: 18px;
  186. }
  187. .notice {
  188. width: 50px;
  189. height: 45px;
  190. float: left;
  191. }
  192. .plus {
  193. width: 50px;
  194. height: 45px;
  195. float: right;
  196. color: white;
  197. font-size: 35px;
  198. line-height: 45px;
  199. text-align: center;
  200. }
  201. .time {
  202. margin-top: 10px;
  203. width: 100%;
  204. height: 30px;
  205. float: left;
  206. }
  207. .timeimageshizhong {
  208. width: 30px;
  209. height: 20px;
  210. margin-top: 5px;
  211. float: left;
  212. }
  213. .timeText {
  214. width: 62%;
  215. height: 30px;
  216. float: left;
  217. line-height: 30px;
  218. font-size: 15px;
  219. margin-left: 15px;
  220. color: white;
  221. }
  222. .timeIcon {
  223. width: 21%;
  224. height: 30px;
  225. float: left;
  226. margin-left: 5px;
  227. }
  228. .timeIconImage {
  229. width: 100%;
  230. height: 25px;
  231. margin-top: 1px;
  232. }
  233. .timeIconText {
  234. width: 100%;
  235. height: 25px;
  236. text-align: center;
  237. font-size: 12px;
  238. }
  239. .cardinstallgreenSecurity{
  240. margin: 9px;
  241. width: 30%;
  242. height: 78px;
  243. background: -webkit-linear-gradient(top, rgba(133,145,132,0.1)0%,rgba(66,130,61,0.2)100%);
  244. border-radius: 5px;
  245. float: left;
  246. /* font-family: "STKaiti"; */
  247. }
  248. .cardinstalltitle{
  249. width: 100%;
  250. height: 40px;
  251. text-align: center;
  252. font-size: 14px;
  253. color: white;
  254. line-height: 40px;
  255. float: left;
  256. }
  257. .cardinstallnumber{
  258. /* font-weight: bold; */
  259. width: 100%;
  260. height: 40px;
  261. text-align: center;
  262. font-size: 16px;
  263. color: white;
  264. /* color: #449618; */
  265. line-height: 40px;
  266. }
  267. .cardinstallgreenEquipment{
  268. margin: 9px;
  269. width: 30%;
  270. height: 78px;
  271. background: -webkit-linear-gradient(top, rgba(133,145,132,0.1)0%,rgba(66,130,61,0.2)100%);
  272. border-radius: 5px;
  273. float: right;
  274. /* font-family: "STKaiti"; */
  275. }
  276. .cardinstallgreen{
  277. margin-left: 9px;
  278. width: 30%;
  279. height: 78px;
  280. background: -webkit-linear-gradient(top, rgba(133,145,132,0.1)0%,rgba(66,130,61,0.2)100%);
  281. border-radius: 5px;
  282. float: left;
  283. }
  284. .cardinstallred{
  285. margin-left: 10px;
  286. width: 30%;
  287. height: 78px;
  288. background: -webkit-linear-gradient(top, rgba(159,131,111,0.1)0%,rgba(193,94,21,0.2)100%);
  289. border-radius: 5px;
  290. float: left;
  291. }
  292. .cardinstalltitlegreen{
  293. width: 100%;
  294. height: 25px;
  295. text-align: center;
  296. font-size: 14px;
  297. color: white;
  298. line-height: 25px;
  299. float: left;
  300. }
  301. .cardinstallnumbergreen{
  302. width: 100%;
  303. height: 25px;
  304. text-align: center;
  305. font-size: 16px;
  306. color: white;
  307. /* color: #449618; */
  308. line-height: 25px;
  309. float: left;
  310. }
  311. .cardinstallnumbergreenmin{
  312. margin-left: 2px;
  313. width: 45%;
  314. height: 20px;
  315. color: white;
  316. /* color: #449618; */
  317. float: left;
  318. }
  319. .cardinstallnumbergreenmax{
  320. /* font-weight: bold; */
  321. margin-right: 2px;
  322. width: 45%;
  323. height: 20px;
  324. color: white;
  325. /* color: #449618; */
  326. float: right;
  327. }
  328. .greenMinText{
  329. line-height: 20px;
  330. float: right;
  331. }
  332. .greenMaxText{
  333. line-height: 20px;
  334. float: left;
  335. }
  336. .cardinstalltitlered{
  337. width: 100%;
  338. height: 25px;
  339. text-align: center;
  340. font-size: 14px;
  341. color: white;
  342. line-height: 25px;
  343. float: left;
  344. }
  345. .cardinstallnumberred{
  346. width: 100%;
  347. height: 25px;
  348. text-align: center;
  349. font-size: 16px;
  350. color: white;
  351. /* color: #E93131; */
  352. line-height: 25px;
  353. float: left;
  354. }
  355. .cardinstallnumberredmin{
  356. margin-left: 2px;
  357. width: 45%;
  358. height: 20px;
  359. color: white;
  360. /* color: #E93131; */
  361. float: left;
  362. }
  363. .cardinstallnumberredmax{
  364. margin-right: 2px;
  365. width: 45%;
  366. height: 20px;
  367. color: white;
  368. /* color: #E93131; */
  369. float: right;
  370. }
  371. .redMinText{
  372. line-height: 20px;
  373. float: right;
  374. }
  375. .redMaxText{
  376. line-height: 20px;
  377. float: left;
  378. }
  379. .electricityCard {
  380. width: 100%;
  381. height: 190px;
  382. background-color: #242424;
  383. /* height: 185px; */
  384. float: left;
  385. margin-top: 20rpx;
  386. }
  387. .speedPower{
  388. width: 100%;
  389. height: 190px;
  390. background-color: #242424;
  391. float: left;
  392. margin-top: 20rpx;
  393. }
  394. .cardinstallgreenSpeed{
  395. margin-top: 5px;
  396. margin-left: 9px;
  397. width: 46%;
  398. height: 78px;
  399. background: -webkit-linear-gradient(top, rgba(133,145,132,0.1)0%,rgba(66,130,61,0.2)100%);
  400. border-radius: 5px;
  401. float: left;
  402. }
  403. .cardinstallredSpeed{
  404. margin-top: 8px;
  405. margin-left: 9px;
  406. width: 46%;
  407. height: 78px;
  408. background: -webkit-linear-gradient(top, rgba(159,131,111,0.1)0%,rgba(193,94,21,0.2)100%);
  409. border-radius: 5px;
  410. float: left;
  411. }
  412. </style>