云链智安app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.vue 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. <template>
  2. <view class="container">
  3. <view class="container_navbar">
  4. <view class="container_top">
  5. </view>
  6. <uni-nav-bar color="#222" :border="false" :shadow="false" :fixed="true" backgroundColor="rgba(255, 255, 255, 0.3)" shadow left-icon="left"
  7. title="经济测算报告" @clickLeft="onclickLeft"/>
  8. </view>
  9. <view class="container_box">
  10. <view class="container_title">
  11. <view class="calculation_left">
  12. <text class="testbox">&#xe65b;</text>选择地区
  13. </view>
  14. </view>
  15. <view class="container_Subtitle">
  16. <view class="voltageleft">
  17. <view class="voltagetop">
  18. 电压级别
  19. </view>
  20. <view class="voltagebuttn">
  21. 10kv
  22. </view>
  23. </view>
  24. <view class="voltageright">
  25. <view class="voltagetop">
  26. 用电类型
  27. </view>
  28. <view class="voltagebuttn">
  29. 大工业用电
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="invest">
  35. <view class="invest_box">
  36. <view class="investall">
  37. <view class="invest_left">
  38. <view class="invest_top">
  39. <view class="investtop">
  40. 全投资IRR
  41. </view>
  42. <view class="investbotton">
  43. 8.86%
  44. </view>
  45. </view>
  46. <view class="invest_botton">
  47. <view class="invest_top">
  48. <view class="investtop">
  49. 全投资静态回收期
  50. </view>
  51. <view class="investbotton">
  52. 7.05年
  53. </view>
  54. </view>
  55. <view class="income_top">
  56. <view class="investtop">
  57. 总投资收益率
  58. </view>
  59. <view class="investbotton">
  60. 5.15%
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <view class="invest_right">
  66. <view class="invest_righttop">
  67. 装机容量
  68. </view>
  69. <view class="invest_rightcenter">
  70. 10
  71. </view>
  72. <view class="invest_rightbotton">
  73. MWh
  74. </view>
  75. </view>
  76. </view>
  77. <view class="investalls">
  78. <view class="invest_left">
  79. <view class="invest_botton">
  80. <view class="invest_top">
  81. <view class="investtop">
  82. 造价总成本
  83. </view>
  84. <view class="investbotton">
  85. 7.05年
  86. </view>
  87. </view>
  88. <view class="income_tops">
  89. <view class="investtop">
  90. 充放电总收益
  91. </view>
  92. <view class="investbotton">
  93. 5.15%
  94. </view>
  95. </view>
  96. </view>
  97. <view class="invest_top invest_botton">
  98. <view class="investtop">
  99. 税前利润
  100. </view>
  101. <view class="investbotton">
  102. 8.86%
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. <view class="collective">
  109. 分年集体数据
  110. </view>
  111. <qiun-data-charts type="column" :opts="optscolumn" :ontouch="true" :chartData="chartcolumn" />
  112. <view class="contrast">
  113. <view class="contrast_title">
  114. <view class="contrast_titletop">
  115. 对比周期
  116. </view>
  117. <view class="contrast_titletops">
  118. 放电量<text class="Electricityprice_peakrightkwh">
  119. (万/KWh)
  120. </text>
  121. </view>
  122. <view class="contrast_titletops">
  123. 充电量<text class="Electricityprice_peakrightkwh">
  124. (万/KWh)
  125. </text>
  126. </view>
  127. </view>
  128. <view class="contrast_middle">
  129. <view class="contrast_titletop">
  130. 换电前充放电量
  131. </view>
  132. <view class="contrast_titletops">
  133. 3889.40
  134. </view>
  135. <view class="contrast_titletops">
  136. 4521.26
  137. </view>
  138. </view>
  139. <view class="contrast_bottom">
  140. <view class="contrast_titletop">
  141. 全周期充放电量
  142. </view>
  143. <view class="contrast_titletops">
  144. 7340.29
  145. </view>
  146. <view class="contrast_titletops">
  147. 8532.79
  148. </view>
  149. </view>
  150. </view>
  151. </view>
  152. <view class="economy">
  153. <view class="economy_top">
  154. <view class="economy_topleft">
  155. 经济收益
  156. </view>
  157. <view class="economy_topright">
  158. (单位:万元)
  159. </view>
  160. </view>
  161. <view class="incomelist">
  162. <view class="incomelist_title">
  163. <view class="incomelist_ul">
  164. 年份
  165. </view>
  166. <view class="incomelist_ul">
  167. 收益
  168. </view>
  169. <view class="incomelist_ul">
  170. 现金流
  171. </view>
  172. <view class="incomelist_ul">
  173. 投资收益
  174. </view>
  175. </view>
  176. <view class="incomelist_titles">
  177. <view class="incomelist_ul">
  178. 第一年
  179. </view>
  180. <view class="incomelist_ul">
  181. 163.52
  182. </view>
  183. <view class="incomelist_ul">
  184. -839.45
  185. </view>
  186. <view class="incomelist_ul">
  187. 91.09
  188. </view>
  189. </view>
  190. <view class="incomelist_title">
  191. <view class="incomelist_ul">
  192. 合计
  193. </view>
  194. <view class="incomelist_ul">
  195. 163.52
  196. </view>
  197. <view class="incomelist_ul">
  198. -839.45
  199. </view>
  200. <view class="incomelist_ul">
  201. 91.09
  202. </view>
  203. </view>
  204. </view>
  205. </view>
  206. <view class="Electricityprice">
  207. <view class="Electricityprice_title">
  208. 时段电价
  209. </view>
  210. <qiun-data-charts type="column" :opts="electricity" :ontouch="true" :chartData="electricitychart" />
  211. <view class="Electricityprice_peak">
  212. <view class="Electricityprice_peakleft">
  213. 峰谷电价差
  214. </view>
  215. <view class="Electricityprice_peakright">
  216. 0.4799
  217. <view class="Electricityprice_peakrightkwh">
  218. 元/kWh
  219. </view>
  220. </view>
  221. </view>
  222. <view class="Electricityprice_text">
  223. 测算结果根据当地各电价时段时长、变压器容量、每月实际需量、
  224. 电池效率及消耗、利用率最高等因素推算得出,现阶段仅供参考。
  225. </view>
  226. </view>
  227. </view>
  228. </template>
  229. <!-- -->
  230. <script>
  231. import request from '@/utils/request';
  232. export default {
  233. data() {
  234. return {
  235. optscolumn: {
  236. color: ["#007545"],
  237. padding: [15, 0, 0, 0],
  238. backgroundColor: "#007545",
  239. dataLabel: false, // 关闭数据标签
  240. legend: {
  241. show: true,
  242. fontSize: 10
  243. },
  244. xAxis: {
  245. disableGrid: true,
  246. labelCount: 24, // 显示全部24小时标签
  247. rotate: 0, // 标签旋转45度
  248. fontSize: 10
  249. },
  250. yAxis: {
  251. gridType: "dash",
  252. dashLength: 2,
  253. fontSize: 10,
  254. showTitle:true,
  255. data: [{
  256. title: '电量(万/kwh)',
  257. titleOffsetX:24,
  258. },
  259. {
  260. position: "right",
  261. title: "时间(年)",
  262. fontSize:true,
  263. titleOffsetX:-18
  264. }
  265. ],
  266. },
  267. extra: {
  268. line: {
  269. type: "straight",
  270. activeType: "hollow",
  271. },
  272. column: {
  273. width: 6,
  274. barBorderRadius: [1.5, 1.5, 0, 0],
  275. },
  276. }
  277. },
  278. chartcolumn: {},
  279. electricity: {
  280. color: ["#007545"],
  281. padding: [15, 0, 0, 0],
  282. backgroundColor: "#007545",
  283. dataLabel: false, // 关闭数据标签
  284. legend: {
  285. show: false
  286. },
  287. xAxis: {
  288. disableGrid: true,
  289. labelCount: 24, // 显示全部24小时标签
  290. rotate: 0, // 标签旋转45度
  291. fontSize: 10
  292. },
  293. yAxis: {
  294. gridType: "dash",
  295. dashLength: 2,
  296. fontSize: 10,
  297. showTitle:true,
  298. data: [{
  299. title: '电价(元/kWh)',
  300. titleOffsetX:28,
  301. }
  302. ],
  303. },
  304. extra: {
  305. line: {
  306. type: "straight",
  307. activeType: "hollow",
  308. },
  309. column: {
  310. width: 20,
  311. barBorderRadius: [2, 2, 0, 0],
  312. },
  313. }
  314. },
  315. electricitychart: {},
  316. }
  317. },
  318. onLoad() {
  319. setTimeout(() => {
  320. this.chartcolumn = {
  321. categories: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],
  322. series: [{
  323. name: '充电',
  324. data: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
  325. },{
  326. name: '放电',
  327. data: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]
  328. }]
  329. };
  330. }, 500);
  331. setTimeout(() => {
  332. this.electricitychart = {
  333. categories: ['尖期','峰期','平期','谷时','深谷'],
  334. series: [{
  335. name: '电价',
  336. data: [
  337. {"value":4,"color": "#EE6666"},
  338. {"value":3,"color": "#FAC858"},
  339. {"value":2,"color": "#91CB74"},
  340. {"value":1,"color": "#1890FF"},
  341. {"value":5,"color": "#9A60B4"},
  342. ]
  343. }
  344. ]
  345. };
  346. }, 500);
  347. },
  348. methods: {
  349. onclickLeft(){
  350. uni.navigateBack({
  351. delta: 1 // 返回的页面数,默认为1
  352. });
  353. }
  354. }
  355. }
  356. </script>
  357. <style scoped>
  358. .uni-page {
  359. width: 100%;
  360. height: 100%;
  361. }
  362. /deep/ .uni-nav-bar-text{
  363. font-weight: 600;
  364. }
  365. .container {
  366. background-color: #ffffff;
  367. box-sizing: border-box;
  368. display: flex;
  369. flex-direction: column;
  370. /* align-items: center; */
  371. background-image: url('https://esos-iot.bjdexn.cn/myminio/project/475a3a10bcf74300895b3dc82897237e.jpeg');
  372. background-size: 100% auto;
  373. background-repeat: no-repeat;
  374. padding-bottom: 140rpx;
  375. }
  376. .container_navbar{
  377. width: 100%;
  378. position: fixed;
  379. top: 0rpx;
  380. left: 0rpx;
  381. padding: 0rpx;
  382. }
  383. .container_top{
  384. width: 100%;
  385. height: 40rpx;
  386. background-color:rgba(255, 255, 255, 0.5);
  387. }
  388. .account_number {
  389. width: 100%;
  390. padding: 20rpx;
  391. display: flex;
  392. justify-content: center;
  393. box-sizing: border-box;
  394. }
  395. .toptabbar {
  396. width: 100%;
  397. padding: 10rpx 20rpx;
  398. box-sizing: border-box;
  399. }
  400. .container_box {
  401. height: 520rpx;
  402. color: #222;
  403. padding-top: 100rpx;
  404. padding: 0rpx 30rpx;
  405. box-sizing: border-box;
  406. display: flex;
  407. flex-direction: column;
  408. justify-content: center;
  409. background: linear-gradient(to bottom,
  410. rgba(255, 255, 255, 0),
  411. rgba(255, 255, 255, 0.8),
  412. /* 完全透明 */
  413. rgba(255, 255, 255, 1)
  414. /* 80% 不透明 */
  415. );
  416. }
  417. @font-face {
  418. font-family: 'iconfont'; /* Project id 4935042 */
  419. src: url('//at.alicdn.com/t/c/font_4935042_1qob4kor3dt.woff2?t=1749628842617') format('woff2'),
  420. url('//at.alicdn.com/t/c/font_4935042_1qob4kor3dt.woff?t=1749628842617') format('woff'),
  421. url('//at.alicdn.com/t/c/font_4935042_1qob4kor3dt.ttf?t=1749628842617') format('truetype');
  422. /* src: url('@/font/iconfont.woff2?t=1748497918806') format('woff2'),
  423. url('@/font/iconfont.woff?t=1748497918806') format('woff'),
  424. url('@/font/iconfont.ttf?t=1748497918806') format('truetype'); */
  425. }
  426. .test {
  427. font-family: iconfont;
  428. margin-left: 16rpx;
  429. }
  430. .testbox {
  431. font-family: iconfont;
  432. margin-right: 10rpx;
  433. }
  434. .container_Subtitle{
  435. margin-top: 40rpx;
  436. display: flex;
  437. }
  438. .voltageleft{
  439. display: flex;
  440. flex-direction: column;
  441. }
  442. .voltageright{
  443. margin-left: 80rpx;
  444. }
  445. .voltagetop{
  446. color: #A2A0AB;
  447. font-weight: 500;
  448. font-size: 32rpx;
  449. }
  450. .voltagebuttn{
  451. margin-top: 20rpx;
  452. font-size: 38rpx;
  453. }
  454. .invest{
  455. padding: 0rpx 20rpx;
  456. box-sizing: border-box;
  457. }
  458. .invest_box{
  459. width: 100%;
  460. display: flex;
  461. flex-direction: column;
  462. justify-content: space-between;
  463. padding: 20rpx;
  464. border-radius: 10rpx;
  465. border:1rpx solid #f5f5f5;
  466. background-color: #fff;
  467. box-shadow: 0px 0px 1px 1rpx rgba(0, 0, 0, 0.1);
  468. box-sizing: border-box;
  469. }
  470. .investall{
  471. width: 100%;
  472. height: 300rpx;
  473. display: flex;
  474. justify-content: space-between;
  475. border-bottom: 1rpx dashed #ccc;
  476. padding-bottom: 20rpx;
  477. }
  478. .investalls{
  479. width: 100%;
  480. height: 300rpx;
  481. display: flex;
  482. justify-content: space-between;
  483. padding-bottom: 20rpx;
  484. }
  485. .invest_left{
  486. margin-top: 20rpx;
  487. font-size: 28rpx;
  488. }
  489. .invest_top{
  490. display: flex;
  491. flex-direction: column;
  492. }
  493. .invest_botton{
  494. display: flex;
  495. margin-top: 40rpx;
  496. }
  497. .income_top{
  498. margin-left: 20rpx;
  499. }
  500. .income_tops{
  501. margin-left: 100rpx;
  502. }
  503. .invest_right{
  504. width: 200rpx;
  505. display: flex;
  506. flex-direction: column;
  507. align-items: center;
  508. font-size: 24rpx;
  509. background-image: url("/static/battery.png");
  510. background-size: 100% auto;
  511. background-repeat: no-repeat;
  512. }
  513. .invest_righttop{
  514. margin-top: 80rpx;
  515. color: #90959B;
  516. }
  517. .invest_rightcenter{
  518. margin-top: 10rpx;
  519. }
  520. .invest_rightbotton{
  521. margin-top: 10rpx;
  522. }
  523. .investbotton{
  524. margin-top: 10rpx;
  525. }
  526. .collective{
  527. font-size: 30rpx;
  528. margin-top: 60rpx;
  529. margin-bottom: 10rpx;
  530. }
  531. .contrast{
  532. width: 100%;
  533. background-color: #f5f5f5;
  534. border-radius: 10rpx;
  535. padding: 20rpx;
  536. box-sizing: border-box;
  537. margin-top: 10rpx;
  538. }
  539. .contrast_title{
  540. display: flex;
  541. justify-content: space-between;
  542. font-size: 26rpx;
  543. }
  544. .contrast_middle{
  545. display: flex;
  546. justify-content: space-between;
  547. font-size: 26rpx;
  548. margin-top: 20rpx;
  549. }
  550. .contrast_bottom{
  551. display: flex;
  552. justify-content: space-between;
  553. font-size: 26rpx;
  554. margin-top: 20rpx;
  555. }
  556. .contrast_titletop{
  557. flex: 1;
  558. }
  559. .contrast_titletops{
  560. flex: 1;
  561. text-align: right;
  562. }
  563. .economy{
  564. margin-top: 60rpx;
  565. }
  566. .economy_top{
  567. display: flex;
  568. font-size: 28rpx;
  569. /* justify-content: space-between; */
  570. padding: 0rpx 20rpx;
  571. }
  572. .economy_topright{
  573. font-size: 22rpx;
  574. margin-top: 4rpx;
  575. margin-left: 10rpx;
  576. color: #ccc;
  577. }
  578. .incomelist{
  579. display: flex;
  580. flex-direction: column;
  581. margin-top: 20rpx;
  582. font-size: 26rpx;
  583. }
  584. .incomelist_title{
  585. display: flex;
  586. height: 80rpx;
  587. font-size: 26rpx;
  588. justify-content: space-between;
  589. background-color: #f5f5f5;
  590. }
  591. .incomelist_titles{
  592. display: flex;
  593. height: 80rpx;
  594. font-size: 26rpx;
  595. justify-content: space-between;
  596. /* background-color: #f5f5f5; */
  597. }
  598. .incomelist_ul{
  599. flex: 1;
  600. display: flex;
  601. align-items: center;
  602. justify-content: center;
  603. }
  604. .Electricityprice{
  605. display: flex;
  606. flex-direction: column;
  607. padding: 20rpx;
  608. margin-top: 40rpx;
  609. }
  610. .Electricityprice_title{
  611. font-size: 28rpx;
  612. margin-bottom: 10rpx;
  613. }
  614. .Electricityprice_peak{
  615. display: flex;
  616. justify-content: space-between;
  617. background-color: #f5f5f5;
  618. padding: 20rpx;
  619. border-radius: 10rpx;
  620. font-size: 24rpx;
  621. margin-top: 20rpx;
  622. }
  623. .Electricityprice_peakright{
  624. font-size: 32rpx;
  625. display: flex;
  626. font-weight: 600;
  627. }
  628. .Electricityprice_peakrightkwh{
  629. font-size: 22rpx;
  630. margin-top: 8rpx;
  631. margin-left: 10rpx;
  632. font-weight: 400;
  633. }
  634. .Electricityprice_text{
  635. font-size: 22rpx;
  636. margin-top: 20rpx;
  637. line-height: 35rpx;
  638. color: #ccc;
  639. }
  640. </style>