Index.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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="timeText">推荐时间</view>
  26. <view class="timeIcon">
  27. </view>
  28. </view>
  29. <!--电量卡片-->
  30. <view class="electricityCard">
  31. <view class="allDayLong">安全天数:</view>
  32. <view class="installedCapacity">装机容量:</view>
  33. <view class="preissue">预测发电量:</view>
  34. <view class="dayHair">日发电量:</view>
  35. <view class="internet">上网电量:</view>
  36. </view>
  37. <!--风速卡片-->
  38. <view class="speedPower">
  39. <view class="averageSpeed">
  40. <view class="averageSpeedText">平均风速</view>
  41. <view class="averageSpeedmaxmin">
  42. <view class="averageSpeedmin">min</view>
  43. <view class="averageSpeedmax">max</view>
  44. </view>
  45. </view>
  46. <view class="forecastSpeed">
  47. <view class="forecastSpeedText">预测风速</view>
  48. <view class="forecastSpeedmaxmin">
  49. <view class="forecastSpeedmin">min</view>
  50. <view class="forecastSpeedmax">max</view>
  51. </view>
  52. </view>
  53. <view class="actualPower">
  54. <view class="actualPowerText">实际功率</view>
  55. <view class="actualPowermaxmin">
  56. <view class="actualPowermin">min</view>
  57. <view class="actualPowermax">max</view>
  58. </view>
  59. </view>
  60. <view class="theoreticalPower">
  61. <view class="theoreticalPowerText">理论功率</view>
  62. <view class="theoreticalPowermaxmin">
  63. <view class="theoreticalPowermin">min</view>
  64. <view class="theoreticalPowermax">max</view>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- <view class="details">
  69. <view class="detailsText" @tap="common.navTo('/components/detail/Detail')"> 详情 〉</view>
  70. </view> -->
  71. </view>
  72. </template>
  73. <script>
  74. import drawer from '../../components/drawer/threeLineDrawer.vue'
  75. export default {
  76. components: {
  77. "drawer": drawer
  78. },
  79. data:function(){
  80. return{
  81. badge: 22,
  82. drawerList:["状态监视","矩阵监视","风场监视","人员监视"],
  83. inconList:["form","favor","question","edit"],
  84. minaverageSpeed:'12',
  85. maxaverageSpeed:'25'
  86. }
  87. },
  88. methods:{
  89. openDrawer:function(){
  90. this.$refs.drawer.openDrawer(250,this.drawerList,this.inconList);
  91. },
  92. closeDrawer:function(){
  93. this.drawerIsShow=false;
  94. }
  95. }
  96. };
  97. </script>
  98. <style>
  99. page {
  100. }
  101. .top {
  102. width: 100%;
  103. height: 95upx;
  104. padding-top: 5upx;
  105. background-color: #E93131;
  106. }
  107. .threeLine {
  108. width: 50px;
  109. height: 45px;
  110. float: left;
  111. }
  112. .text {
  113. width: calc(100% - 100px);
  114. height: 45px;
  115. float: left;
  116. color: white;
  117. line-height: 45px;
  118. text-align: center;
  119. font-size: 18px;
  120. }
  121. .notice{
  122. width: 50px;
  123. height: 45px;
  124. float: left;
  125. }
  126. .plus {
  127. width: 50px;
  128. height: 45px;
  129. float: right;
  130. color: white;
  131. font-size: 35px;
  132. line-height: 45px;
  133. text-align: center;
  134. }
  135. .time{
  136. margin-top: 10px;
  137. width: 100%;
  138. height: 50px;
  139. float: left;
  140. background-color: white;
  141. }
  142. .timeText{
  143. width: 70%;
  144. height: 50px;
  145. float: left;
  146. line-height: 50px;
  147. text-align: center;
  148. font-size: 15px;
  149. margin-left: 7px;
  150. }
  151. .timeIcon{
  152. width: 25%;
  153. height: 50px;
  154. float: left;
  155. margin-left: 5px;
  156. }
  157. .electricityCard{
  158. width: 100%;
  159. height: 90px;
  160. background-color: white;
  161. float: left;
  162. margin-top: 20rpx;
  163. }
  164. .allDayLong{
  165. width: 47%;
  166. height: 35px;
  167. margin: 5px;
  168. background-color: white;
  169. line-height: 35px;
  170. float: left;
  171. font-size: 13px;
  172. }
  173. .installedCapacity{
  174. width: 47%;
  175. height: 35px;
  176. margin: 5px;
  177. background-color: white;
  178. line-height: 35px;
  179. float: left;
  180. font-size: 13px;
  181. }
  182. .preissue{
  183. width: 35%;
  184. height: 35px;
  185. margin: 5px;
  186. background-color: white;
  187. line-height: 35px;
  188. float: left;
  189. font-size: 13px;
  190. }
  191. .dayHair{
  192. width: 28%;
  193. height: 35px;
  194. margin: 5px;
  195. background-color: white;
  196. line-height: 35px;
  197. float: left;
  198. font-size: 13px;
  199. }
  200. .internet{
  201. width: 28%;
  202. height: 35px;
  203. margin: 5px;
  204. background-color: white;
  205. line-height: 35px;
  206. float: left;
  207. font-size: 13px;
  208. }
  209. .speedPower{
  210. margin-top: 10px;
  211. width: 100%;
  212. height: 90px;
  213. float: left;
  214. }
  215. .averageSpeed{
  216. margin-left: 3px;
  217. width: 24%;
  218. height: 90px;
  219. float: left;
  220. background: -webkit-gradient(linear, 0% 200%, 0% 0%, from(#71BE5A), color-stop(0.85, #FFFFFF), to(#ffffff));
  221. box-shadow: 2px 2px 2px #bbb;
  222. border-radius: 3px;
  223. text-align: left;
  224. }
  225. .forecastSpeed{
  226. margin-left: 3px;
  227. width: 24%;
  228. height: 90px;
  229. float: left;
  230. background: -webkit-gradient(linear, 0% 200%, 0% 0%, from(#71BE5A), color-stop(0.85, #FFFFFF), to(#ffffff));
  231. box-shadow: 2px 2px 2px #bbb;
  232. border-radius: 3px;
  233. text-align: left;
  234. }
  235. .actualPower{
  236. margin-left: 3px;
  237. width: 24%;
  238. height: 90px;
  239. float: left;
  240. background: -webkit-gradient(linear, 0% 200%, 0% 0%, from(#71BE5A), color-stop(0.85, #FFFFFF), to(#ffffff));
  241. box-shadow: 2px 2px 2px #bbb;
  242. border-radius: 3px;
  243. text-align: left;
  244. }
  245. .theoreticalPower{
  246. margin-left: 3px;
  247. width: 24%;
  248. height: 90px;
  249. float: left;
  250. background: -webkit-gradient(linear, 0% 200%, 0% 0%, from(#71BE5A), color-stop(0.85, #FFFFFF), to(#ffffff));
  251. box-shadow: 2px 2px 2px #bbb;
  252. border-radius: 3px;
  253. text-align: left;
  254. }
  255. .averageSpeedText{
  256. width: 100%;
  257. height: 50px;
  258. text-align: center;
  259. line-height: 50px;
  260. }
  261. .forecastSpeedText{
  262. width: 100%;
  263. height: 50px;
  264. text-align: center;
  265. line-height: 50px;
  266. }
  267. .actualPowerText{
  268. width: 100%;
  269. height: 50px;
  270. text-align: center;
  271. line-height: 50px;
  272. }
  273. .theoreticalPowerText{
  274. width: 100%;
  275. height: 50px;
  276. text-align: center;
  277. line-height: 50px;
  278. }
  279. .averageSpeedmin{
  280. width: 50%;
  281. height: 30px;
  282. float: left;
  283. line-height: 30px;
  284. text-align: center;
  285. }
  286. .averageSpeedmax{
  287. width: 50%;
  288. height: 30px;
  289. float: left;
  290. line-height: 30px;
  291. text-align: center;
  292. }
  293. .forecastSpeedmin{
  294. width: 50%;
  295. height: 30px;
  296. float: left;
  297. line-height: 30px;
  298. text-align: center;
  299. }
  300. .forecastSpeedmax{
  301. width: 50%;
  302. height: 30px;
  303. float: left;
  304. line-height: 30px;
  305. text-align: center;
  306. }
  307. .actualPowermin{
  308. width: 50%;
  309. height: 30px;
  310. float: left;
  311. line-height: 30px;
  312. text-align: center;
  313. }
  314. .actualPowermax{
  315. width: 50%;
  316. height: 30px;
  317. float: left;
  318. line-height: 30px;
  319. text-align: center;
  320. }
  321. .theoreticalPowermin{
  322. width: 50%;
  323. height: 30px;
  324. float: left;
  325. line-height: 30px;
  326. text-align: center;
  327. }
  328. .theoreticalPowermax{
  329. width: 50%;
  330. height: 30px;
  331. float: left;
  332. line-height: 30px;
  333. text-align: center;
  334. }
  335. </style>