云链智安app
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206
  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"
  7. backgroundColor="rgba(255, 255, 255, 0.3)" shadow left-icon="left" title="经济测算" @clickLeft="onclickLeft" />
  8. </view>
  9. <view class="container_box">
  10. <view class="container_title">
  11. 项目测算!
  12. </view>
  13. <view class="container_Subtitle">
  14. 模拟运行投资回报
  15. </view>
  16. </view>
  17. <view class="calculation">
  18. <view class="calculation_box">
  19. <picker @columnchange="bindcolumn" @change="bindPickerChange" mode=multiSelector :value="index"
  20. :range="array" range-key="name">
  21. <view class="calculation_top">
  22. <view class="calculation_left">
  23. <text class="testbox">&#xe65b;</text>选择地区
  24. </view>
  25. <view class="uni-input">{{array[0][index[0]].name}} | {{array[1][index[1]].name}}</view>
  26. </view>
  27. </picker>
  28. </view>
  29. <view class="calculation_type">
  30. <view class="calculation_electricity">
  31. <picker @change="bindelectricity" :value="categoryindex" range-key="name" :range="electricity">
  32. <view class="calculation_title">
  33. <view class="calculation_use">
  34. 用电类型
  35. </view>
  36. <text class="test">&#xe606;</text>
  37. </view>
  38. <view class="calculation_worker">
  39. {{electricity[categoryindex].name||'--'}}
  40. </view>
  41. </picker>
  42. </view>
  43. <view class="calculation_electricity1"></view>
  44. <view class="calculation_electricity">
  45. <picker @change="bindlevel" :value="levelindex" range-key="name" :range="voltage">
  46. <!-- <view class="uni-input">{{voltage[levelindex].levelname}}
  47. <icon :type="value" size="26" />
  48. <text class="test">&#xe606;</text>
  49. </view> -->
  50. <view class="calculation_title">
  51. <view class="calculation_use">
  52. 电压级别
  53. </view>
  54. <text class="test">&#xe606;</text>
  55. </view>
  56. <view class="calculation_worker">
  57. {{voltage[levelindex].name??'--'}}
  58. </view>
  59. </picker>
  60. </view>
  61. </view>
  62. <view class="calculation_type">
  63. <view class="calculation_strategy">
  64. 运行策略
  65. </view>
  66. <view class="calculation_capsule">
  67. <view class="switch-container">
  68. <view class="custom-switch" :class="{ 'active': isActive }" @click="toggleSwitch">
  69. <text class="bg-text off">1充1放</text>
  70. <view class="switch-thumb">
  71. <text class="thumb-text">{{ isActive ? '2充2放' : '1充1放' }}</text>
  72. </view>
  73. <text class="bg-text on">2充2放</text>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="calculation_type">
  79. <view class="calculation_Days">
  80. <view class="calculation_strategy">
  81. 全年有限运行天数
  82. </view>
  83. <view class="calculation_capsule">
  84. 330天
  85. </view>
  86. </view>
  87. </view>
  88. <view class="calculation_type">
  89. <view class="installequipment">
  90. <!-- 装机功率 -->
  91. <view class="calculation_bottom">
  92. <view class="calculation_electricity">
  93. <view class="calculation_title1">
  94. <view class="calculation_use">
  95. <uni-easyinput class="uni-mt-5" trim="all" v-model="installvalue" clearSize="0"
  96. placeholder="装机功率"></uni-easyinput>
  97. </view>
  98. MW
  99. </view>
  100. </view>
  101. <view class="calculation_electricity2">
  102. </view>
  103. <view class="calculation_electricity">
  104. <view class="calculation_title1">
  105. <view class="calculation_use">
  106. <uni-easyinput class="uni-mt-5" trim="all" v-model="equipmentvalue" clearSize="0"
  107. placeholder="装机容量"></uni-easyinput>
  108. </view>
  109. MWh
  110. </view>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="owner" v-if="nextstep">
  117. <view class="owner_type">
  118. <view class="owner_type1">
  119. <view class="calculation_strategy">
  120. 投资方式
  121. </view>
  122. <view class="calculation_capsule">
  123. <view class="switch-container">
  124. <view class="custom-switch" :class="{ 'active': invest }" @click="investselect">
  125. <text class="bg-text off">业主自投</text>
  126. <view class="switch-thumb">
  127. <text class="thumb-text">{{ invest ? '资方合作' : '业主自投' }}</text>
  128. </view>
  129. <text class="bg-text on">资方合作</text>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. <view class="owner_type1" v-if="invest">
  135. <view class="calculation_strategy">
  136. 业主分成比例
  137. </view>
  138. <view class="calculation_capsule">
  139. <view class="switch-container">
  140. <view class="owner_easyinput">
  141. <view class="calculation_use">
  142. <uni-easyinput class="uni-mt-5" trim="all" v-model="shareratiovalue" clearSize="0"
  143. placeholder="业主分成比例" @input="shareratio"></uni-easyinput>
  144. </view>
  145. %
  146. </view>
  147. </view>
  148. </view>
  149. </view>
  150. <view class="owner_type1">
  151. <view class="calculation_strategy">
  152. EPC单位造价
  153. </view>
  154. <view class="calculation_capsule">
  155. <view class="switch-container">
  156. <view class="owner_easyinput">
  157. <view class="calculation_use">
  158. <uni-easyinput class="uni-mt-5" trim="all" v-model="unitcostvalue" clearSize="0"
  159. placeholder="EPC单位造价" @input="unitcost"></uni-easyinput>
  160. </view>
  161. 元/wh
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. <view class="owner_type1">
  167. <view class="calculation_strategy">
  168. 是否小微企业
  169. </view>
  170. <view class="calculation_capsule">
  171. <view class="switch-container">
  172. <view class="custom-switch" :class="{ 'active': enterprise }" @click="onenterprise">
  173. <text class="bg-text off">否</text>
  174. <view class="switch-thumb">
  175. <text class="thumb-text">{{ enterprise ? '是' : '否' }}</text>
  176. </view>
  177. <text class="bg-text on">是</text>
  178. </view>
  179. </view>
  180. </view>
  181. </view>
  182. <view class="owner_type1">
  183. <view class="calculation_strategy">
  184. 测算年份
  185. </view>
  186. <view class="calculation_capsule">
  187. <view class="switch-container">
  188. <view class="custom-switch" :class="{ 'active': calculate }" @click="Calculateyear">
  189. <text class="bg-text off">10年</text>
  190. <view class="switch-thumb">
  191. <text class="thumb-text">{{ calculate ? '15年' : '10年' }}</text>
  192. </view>
  193. <text class="bg-text on">15年</text>
  194. </view>
  195. </view>
  196. </view>
  197. </view>
  198. <view class="owner_more" @click="clickfold">
  199. 更多信息 <text class="test" v-if="fold">&#xe600;</text> <text class="test" v-if="!fold">&#xe603;</text>
  200. </view>
  201. <view v-if="fold">
  202. <view class="owner_type1">
  203. <view class="calculation_strategy">
  204. 换电单位造价
  205. </view>
  206. <!-- <view class="calculation_capsule">
  207. <view class="switch-container">
  208. 111 元/Wh
  209. </view>
  210. </view> -->
  211. <view class="owner_easyinput">
  212. <view class="calculation_use">
  213. <uni-easyinput class="uni-mt-5" trim="all" v-model="Unitcost" clearSize="0"
  214. placeholder="请输入" @input="onUnitcost"></uni-easyinput>
  215. </view>
  216. 元/Wh
  217. </view>
  218. </view>
  219. <view class="owner_type1">
  220. <view class="calculation_strategy">
  221. 换电年份
  222. </view>
  223. <view class="calculation_capsule">
  224. <view class="switch-container">
  225. 9 年
  226. </view>
  227. </view>
  228. </view>
  229. <view class="owner_type1">
  230. <view class="calculation_strategy">
  231. 维保单价
  232. </view>
  233. <view class="calculation_capsule">
  234. <view class="switch-container">
  235. 0.015 元/Wh
  236. </view>
  237. </view>
  238. </view>
  239. <view class="owner_type1">
  240. <view class="calculation_strategy">
  241. 固定资产保险费率
  242. </view>
  243. <view class="calculation_capsule">
  244. <view class="switch-container">
  245. 0.15 %
  246. </view>
  247. </view>
  248. </view>
  249. <view class="owner_type1">
  250. <view class="calculation_strategy">
  251. 充放电深度
  252. </view>
  253. <view class="calculation_capsule">
  254. <view class="switch-container">
  255. <view class="owner_easyinput1">
  256. <view class="calculation_use">
  257. <uni-easyinput class="uni-mt-6" trim="all" v-model="ischargevalue" clearSize="0"
  258. placeholder="请输入" @input="chargeandd"></uni-easyinput>
  259. </view>
  260. %
  261. </view>
  262. </view>
  263. </view>
  264. </view>
  265. <view class="owner_type1">
  266. <view class="calculation_strategy">
  267. 充电效率
  268. </view>
  269. <view class="calculation_capsule">
  270. <view class="switch-container">
  271. <view class="owner_easyinput1">
  272. <view class="calculation_use">
  273. <uni-easyinput class="uni-mt-6" trim="all" v-model="chargeevalue" clearSize="0"
  274. placeholder="请输入" @input="onchargeefficiency"></uni-easyinput>
  275. </view>
  276. %
  277. </view>
  278. </view>
  279. </view>
  280. </view>
  281. <view class="owner_type1">
  282. <view class="calculation_strategy">
  283. 放电效率
  284. </view>
  285. <view class="calculation_capsule">
  286. <view class="switch-container">
  287. <view class="owner_easyinput1">
  288. <view class="calculation_use">
  289. <uni-easyinput class="uni-mt-6" trim="all" v-model="dischargevalue"
  290. clearSize="0" placeholder="请输入"
  291. @input="ondischargeefficiency"></uni-easyinput>
  292. </view>
  293. %
  294. </view>
  295. </view>
  296. </view>
  297. </view>
  298. <view class="owner_type1">
  299. <view class="calculation_strategy">
  300. 计划达成率
  301. </view>
  302. <view class="calculation_capsule">
  303. <view class="switch-container">
  304. <view class="owner_easyinput1">
  305. <view class="calculation_use">
  306. <uni-easyinput class="uni-mt-6" trim="all" v-model="achievementvalue"
  307. clearSize="0" placeholder="请输入" @input="onachievementrate"></uni-easyinput>
  308. </view>
  309. %
  310. </view>
  311. </view>
  312. </view>
  313. </view>
  314. <view class="owner_type1">
  315. <view class="calculation_strategy">
  316. 折旧残值率
  317. </view>
  318. <view class="calculation_capsule">
  319. <view class="switch-container">
  320. <view class="owner_easyinput1">
  321. <view class="calculation_use">
  322. <uni-easyinput class="uni-mt-6" trim="all" v-model="valueratio" clearSize="0"
  323. placeholder="请输入" @input="ondepreciation"></uni-easyinput>
  324. </view>
  325. %
  326. </view>
  327. </view>
  328. </view>
  329. </view>
  330. <view class="owner_type2">
  331. <view class="calculation_strategy">
  332. 折现率
  333. </view>
  334. <view class="calculation_capsule">
  335. <view class="switch-container">
  336. <view class="owner_easyinput1">
  337. <view class="calculation_use">
  338. <uni-easyinput class="uni-mt-5" trim="all" v-model="discountvalue" clearSize="0"
  339. placeholder="请输入" @input="discountrate"></uni-easyinput>
  340. </view>
  341. %
  342. </view>
  343. </view>
  344. </view>
  345. </view>
  346. </view>
  347. </view>
  348. <view class="owner_type_box">
  349. <view class="owner_type2">
  350. <view class="calculation_strategy">
  351. 电价方式
  352. </view>
  353. <view class="calculation_capsule">
  354. <view class="switch-container">
  355. <view class="custom-switch1" :class="{ 'active': pricing }" @click="pricingmethod">
  356. <text class="bg-text off">当前地区电价</text>
  357. <view class="switch-thumb1">
  358. <text class="thumb-text1">{{ pricing ? '自定义电价' : '当前地区电价' }}</text>
  359. </view>
  360. <text class="bg-text on">自定义电价</text>
  361. </view>
  362. </view>
  363. </view>
  364. </view>
  365. <view v-if="pricing">
  366. <view class="owner_type1">
  367. <view class="calculation_strategy">
  368. 谷时电价
  369. </view>
  370. <view class="calculation_capsule">
  371. <view class="switch-container">
  372. <view class="owner_easyinput1">
  373. <view class="calculation_use">
  374. <uni-easyinput class="uni-mt-5" trim="all" v-model="valleytime" clearSize="0"
  375. placeholder="必填" @input="ontimesharing"></uni-easyinput>
  376. </view>
  377. 元/kwh
  378. </view>
  379. </view>
  380. </view>
  381. </view>
  382. <view class="owner_type1">
  383. <view class="calculation_strategy">
  384. 平时电价
  385. </view>
  386. <view class="calculation_capsule">
  387. <view class="switch-container">
  388. <view class="owner_easyinput1">
  389. <view class="calculation_use">
  390. <uni-easyinput class="uni-mt-5" trim="all" v-model="regular" clearSize="0"
  391. placeholder="必填" @input="onregular"></uni-easyinput>
  392. </view>
  393. 元/kwh
  394. </view>
  395. </view>
  396. </view>
  397. </view>
  398. <view class="owner_type1">
  399. <view class="calculation_strategy">
  400. 高峰电价
  401. </view>
  402. <view class="calculation_capsule">
  403. <view class="switch-container">
  404. <view class="owner_easyinput1">
  405. <view class="calculation_use">
  406. <uni-easyinput class="uni-mt-5" trim="all" v-model="Peakprice" clearSize="0"
  407. placeholder="必填" @input="onPeakprice"></uni-easyinput>
  408. </view>
  409. 元/kwh
  410. </view>
  411. </view>
  412. </view>
  413. </view>
  414. <view class="owner_more" @click="clicktimesharing">
  415. 更多信息 <text class="test" v-if="timesharing">&#xe600;</text> <text class="test"
  416. v-if="!timesharing">&#xe603;</text>
  417. </view>
  418. <view v-if="timesharing">
  419. <view class="owner_type1">
  420. <view class="calculation_strategy">
  421. 尖时电价
  422. </view>
  423. <view class="calculation_capsule">
  424. <view class="switch-container">
  425. <view class="owner_easyinput1">
  426. <view class="calculation_use">
  427. <uni-easyinput class="uni-mt-5" trim="all" v-model="Sharpperiodvalue"
  428. clearSize="0" placeholder="请输入" @input="onsharpperiod"></uni-easyinput>
  429. </view>
  430. 元/kwh
  431. </view>
  432. </view>
  433. </view>
  434. </view>
  435. <view class="owner_type2">
  436. <view class="calculation_strategy">
  437. 深谷电价
  438. </view>
  439. <view class="calculation_capsule">
  440. <view class="switch-container">
  441. <view class="owner_easyinput1">
  442. <view class="calculation_use">
  443. <uni-easyinput class="uni-mt-5" trim="all" v-model="deepvalley" clearSize="0"
  444. placeholder="请输入" @input="ondeepvalley"></uni-easyinput>
  445. </view>
  446. 元/kwh
  447. </view>
  448. </view>
  449. </view>
  450. </view>
  451. </view>
  452. </view>
  453. </view>
  454. </view>
  455. <view class="buttonbottom">
  456. <view class="button_bottom" @click="clicknextstep" v-if="!nextstep">
  457. 下一步
  458. </view>
  459. <view class="button_bottom" v-else @click="onReport">
  460. 查看测算结果
  461. </view>
  462. </view>
  463. </view>
  464. </template>
  465. <!-- -->
  466. <script>
  467. import request from '@/utils/request';
  468. export default {
  469. data() {
  470. return {
  471. array: [],
  472. arrayname: [],
  473. index: [0, 0],
  474. isActive: false, // 运行策略 false 1充1放 true 2充2放
  475. invest: false, // 投资方式 false 业主自投 true 投资合作
  476. equipmentvalue: "", // 装机容量
  477. shareratiovalue: 10, // 业主分成比例
  478. unitcostvalue: 1.0, // EPC单位造价
  479. enterprise:true, // 是否小微企业
  480. calculate: true, // 测算年份
  481. Unitcost: 0.3, //换电单位造价
  482. ischargevalue: 100, //充放电深度
  483. chargeevalue: 92.5, // 充电效率
  484. dischargevalue: 93, // 放电效率
  485. achievementvalue: 95, // 计划达成率
  486. valueratio: 5, //折旧残值率
  487. discountvalue: 6, // 折旧率
  488. pricing: false, // 电价方式
  489. valleytime: "", // 谷时电价
  490. regular: "", // 平时电价
  491. Peakprice: "", // 峰时电价
  492. Sharpperiodvalue: "", // 尖期
  493. deepvalley: "", // 深谷
  494. categoryindex: 0,
  495. levelindex: 0,
  496. voltage: [],
  497. electricity: [],
  498. provinceid: "",
  499. installvalue: "",
  500. nextstep: false,
  501. fold: false,
  502. timesharing: false
  503. }
  504. },
  505. onLoad() {
  506. this.getselecteconomize()
  507. },
  508. methods: {
  509. // 查询省
  510. async getselecteconomize() {
  511. try {
  512. let data = {
  513. provinceId: this.provinceid
  514. }
  515. const response = await request({
  516. url: `/tdengineyuanshi/selecteconomize`,
  517. method: 'POST',
  518. data: data,
  519. header: {
  520. 'Content-Type': 'application/x-www-form-urlencoded'
  521. }
  522. });
  523. this.array[0] = response.data
  524. this.getselectmarket(this.array[0][this.index[0]].id)
  525. } catch (error) {
  526. console.error('登录失败:', error);
  527. }
  528. },
  529. // 查询市
  530. async getselectmarket(id) {
  531. try {
  532. let data = {
  533. id: id
  534. }
  535. const response = await request({
  536. url: `/tdengineyuanshi/selectmarket`,
  537. method: 'POST',
  538. data: data,
  539. header: {
  540. 'Content-Type': 'application/x-www-form-urlencoded'
  541. }
  542. });
  543. console.log(response.data);
  544. this.array[1] = response.data
  545. this.getselectElectricitycategory(this.array[1][this.index[1]].id)
  546. } catch (error) {
  547. console.error('登录失败:', error);
  548. }
  549. },
  550. // 查询用电类型
  551. async getselectElectricitycategory(id) {
  552. try {
  553. let data = {
  554. id: id
  555. }
  556. const response = await request({
  557. url: `/tdengineyuanshi/selectElectricitycategory`,
  558. method: 'POST',
  559. data: data,
  560. header: {
  561. 'Content-Type': 'application/x-www-form-urlencoded'
  562. }
  563. });
  564. console.log(response.data);
  565. this.electricity = response.data
  566. this.getselectlevel(this.electricity[this.categoryindex].id)
  567. } catch (error) {
  568. console.error('登录失败:', error);
  569. }
  570. }, // 查询用电类型
  571. async getselectlevel(id) {
  572. try {
  573. let data = {
  574. id: id
  575. }
  576. const response = await request({
  577. url: `/tdengineyuanshi/selectlevel`,
  578. method: 'POST',
  579. data: data,
  580. header: {
  581. 'Content-Type': 'application/x-www-form-urlencoded'
  582. }
  583. });
  584. console.log(response.data);
  585. this.voltage = response.data
  586. } catch (error) {
  587. console.error('登录失败:', error);
  588. }
  589. },
  590. bindcolumn(e) {
  591. if (e.detail.column == 0) {
  592. this.index[0] = e.detail.value
  593. console.log(e.detail.value);
  594. }
  595. },
  596. // 选择地区
  597. bindPickerChange(e) {
  598. console.log('picker发送选择改变,携带值为', e.detail.value)
  599. this.index = e.detail.value
  600. // this.getselectmarket(this.array[0][this.index[0]].id)
  601. },
  602. // 用户类型
  603. bindelectricity(e) {
  604. console.log('picker发送选择改变,携带值为', e.detail.value)
  605. this.categoryindex = e.detail.value
  606. // this.getselectlevel(this.electricity[e.detail.value].id)
  607. },
  608. // 电压级别
  609. bindlevel(e) {
  610. console.log(e);
  611. },
  612. // 运行策略
  613. toggleSwitch() {
  614. this.isActive = !this.isActive
  615. console.log('开关状态:', this.isActive)
  616. },
  617. // 装机功率
  618. easyinputinput(e) {
  619. console.log(e);
  620. },
  621. // 装机容量
  622. equipmentinput(e) {
  623. console.log(e);
  624. },
  625. // 下一步
  626. clicknextstep() {
  627. console.log(this.installvalue);
  628. console.log(this.equipmentvalue);
  629. if(this.installvalue==''||this.equipmentvalue==''){
  630. uni.showToast({
  631. title: '请填写完整信息',
  632. icon:'none',
  633. duration: 2000
  634. });
  635. }else{
  636. this.nextstep = !this.nextstep
  637. }
  638. },
  639. // 投资方式
  640. investselect() {
  641. this.invest = !this.invest
  642. console.log(this.invest);
  643. },
  644. // 业主分成比例
  645. shareratio(e) {
  646. console.log(e);
  647. },
  648. // EPC单位造价
  649. unitcost(e) {
  650. console.log(e);
  651. },
  652. // 是否小微企业
  653. onenterprise() {
  654. this.enterprise = !this.enterprise
  655. },
  656. // 测算年份
  657. Calculateyear() {
  658. this.calculate = !this.calculate
  659. },
  660. // 换电单位造价
  661. onUnitcost() {
  662. },
  663. // 充放电深度
  664. chargeandd() {
  665. },
  666. // 充电效率
  667. onchargeefficiency() {
  668. },
  669. // 放电效率
  670. ondischargeefficiency() {},
  671. // 计划达成率
  672. onachievementrate() {
  673. },
  674. // 折旧拆值率
  675. ondepreciation() {
  676. },
  677. // 折旧率
  678. discountrate() {
  679. },
  680. // 电价方式
  681. pricingmethod() {
  682. this.pricing = !this.pricing
  683. },
  684. // 谷时电价
  685. ontimesharing() {},
  686. // 平时电价
  687. onregular() {
  688. },
  689. // 高峰电价
  690. onPeakprice() {},
  691. // 更多消息
  692. clickfold() {
  693. this.fold = !this.fold
  694. },
  695. // 查看测算结果
  696. onReport() {
  697. uni.navigateTo({
  698. url: '/pages/report/index'
  699. })
  700. },
  701. // 电价更多消息
  702. clicktimesharing() {
  703. this.timesharing = !this.timesharing
  704. },
  705. // 尖期
  706. onsharpperiod() {},
  707. // 深谷
  708. ondeepvalley() {
  709. },
  710. onclickLeft() {
  711. uni.navigateBack({
  712. delta: 1 // 返回的页面数,默认为1
  713. });
  714. }
  715. }
  716. }
  717. </script>
  718. <style scoped>
  719. .uni-page {
  720. width: 100%;
  721. height: 100%;
  722. }
  723. /deep/ .uni-nav-bar-text {
  724. font-weight: 600;
  725. }
  726. .container_navbar{
  727. width: 100%;
  728. position: fixed;
  729. top: 0rpx;
  730. left: 0rpx;
  731. padding: 0rpx;
  732. }
  733. .container_top{
  734. width: 100%;
  735. height: 60rpx;
  736. background-color:rgba(255, 255, 255, 0.5);
  737. }
  738. .container {
  739. /* background-color: #f0f5f5; */
  740. box-sizing: border-box;
  741. display: flex;
  742. flex-direction: column;
  743. /* align-items: center; */
  744. background-image: url('https://esos-iot.bjdexn.cn/myminio/project/475a3a10bcf74300895b3dc82897237e.jpeg');
  745. background-size: 100% auto;
  746. background-repeat: no-repeat;
  747. padding-bottom: 140rpx;
  748. }
  749. .account_number {
  750. width: 100%;
  751. padding: 20rpx;
  752. display: flex;
  753. justify-content: center;
  754. box-sizing: border-box;
  755. }
  756. .toptabbar {
  757. width: 100%;
  758. padding: 10rpx 20rpx;
  759. box-sizing: border-box;
  760. }
  761. .container_box {
  762. height: 500rpx;
  763. color: #222;
  764. padding-top: 100rpx;
  765. box-sizing: border-box;
  766. display: flex;
  767. flex-direction: column;
  768. justify-content: center;
  769. background: linear-gradient(to bottom,
  770. rgba(255, 255, 255, 0),
  771. /* 完全透明 */
  772. rgba(255, 255, 255, 0.5),
  773. /* 完全透明 */
  774. rgba(255, 255, 255, 1)
  775. /* 80% 不透明 */
  776. );
  777. }
  778. .container_title {
  779. font-size: 62rpx;
  780. padding: 0rpx 20rpx;
  781. }
  782. .container_Subtitle {
  783. font-size: 60rpx;
  784. padding: 0rpx 20rpx;
  785. margin-top: 20rpx;
  786. }
  787. .calculation {
  788. margin-top: -40rpx;
  789. width: 100%;
  790. background-color: #fff;
  791. border-top-left-radius: 20rpx;
  792. border-top-right-radius: 20rpx;
  793. padding-top: 20rpx;
  794. padding: 20rpx 20rpx;
  795. box-sizing: border-box;
  796. }
  797. .calculation_box {
  798. width: 100%;
  799. height: 80rpx;
  800. border-radius: 100rpx;
  801. background-color: #f0f5f5;
  802. padding-right: 30rpx;
  803. display: flex;
  804. flex-direction: column;
  805. justify-content: center;
  806. box-sizing: border-box;
  807. }
  808. .calculation_top {
  809. width: 100%;
  810. height: 100%;
  811. font-size: 26rpx;
  812. display: flex;
  813. align-items: center;
  814. justify-content: space-between;
  815. }
  816. .calculation_left {
  817. font-size: 28rpx;
  818. }
  819. .uni-input{
  820. font-size: 28rpx;
  821. }
  822. @font-face {
  823. font-family: 'iconfont';
  824. /* Project id 4935042 */
  825. src: url('//at.alicdn.com/t/c/font_4935042_1qob4kor3dt.woff2?t=1749628842617') format('woff2'),
  826. url('//at.alicdn.com/t/c/font_4935042_1qob4kor3dt.woff?t=1749628842617') format('woff'),
  827. url('//at.alicdn.com/t/c/font_4935042_1qob4kor3dt.ttf?t=1749628842617') format('truetype');
  828. /* src: url('@/font/iconfont.woff2?t=1748497918806') format('woff2'),
  829. url('@/font/iconfont.woff?t=1748497918806') format('woff'),
  830. url('@/font/iconfont.ttf?t=1748497918806') format('truetype'); */
  831. }
  832. .test {
  833. font-family: iconfont;
  834. margin-left: 16rpx;
  835. }
  836. .testbox {
  837. font-family: iconfont;
  838. margin-left: 32rpx;
  839. margin-right: 10rpx;
  840. }
  841. .calculation_type {
  842. width: 100%;
  843. border: #f0f5f5 1rpx solid;
  844. margin-top: 20rpx;
  845. border-radius: 8rpx;
  846. padding:18rpx 20rpx;
  847. box-sizing: border-box;
  848. display: flex;
  849. align-items: center;
  850. justify-content: space-between;
  851. }
  852. .calculation_electricity {
  853. flex: 1;
  854. height: 100%;
  855. box-sizing: border-box;
  856. display: flex;
  857. flex-direction: column;
  858. justify-content: space-between;
  859. }
  860. .calculation_electricity1 {
  861. width: 1rpx;
  862. height: 80rpx;
  863. margin: 0rpx 15rpx;
  864. border-left: #f5f5f5 1rpx solid;
  865. }
  866. .calculation_title {
  867. font-size: 26rpx;
  868. color: #ccc;
  869. display: flex;
  870. justify-content: space-between;
  871. }
  872. .calculation_title1 {
  873. font-size: 26rpx;
  874. color: #ccc;
  875. display: flex;
  876. align-items: center;
  877. justify-content: space-between;
  878. }
  879. .calculation_use {
  880. width: 100%;
  881. font-size: 26rpx;
  882. display: flex;
  883. justify-content: space-between;
  884. }
  885. .calculation_worker {
  886. font-size: 26rpx;
  887. font-weight: 400;
  888. color: #222;
  889. margin-top: 20rpx;
  890. }
  891. .calculation_strategy {
  892. font-size: 26rpx;
  893. color: #222;
  894. padding: 10rpx 0rpx;
  895. }
  896. .calculation_capsule {
  897. font-size: 26rpx;
  898. color: #222;
  899. padding: 10rpx 0rpx;
  900. }
  901. /* 胶囊容器 */
  902. .custom-switch {
  903. width: 250rpx;
  904. height: 60rpx;
  905. display: flex;
  906. align-items: center;
  907. justify-content: space-around;
  908. border-radius: 100rpx;
  909. /* 圆角胶囊 */
  910. background-color: #e0e0e0;
  911. /* 关闭时背景色 */
  912. position: relative;
  913. transition: background-color 0.3s;
  914. }
  915. /* 开启状态 */
  916. .custom-switch.active {
  917. background-color: #e0e0e0;
  918. /* 开启时背景色 */
  919. }
  920. /* 滑块 */
  921. .switch-thumb {
  922. width: 127rpx;
  923. height: 56rpx;
  924. border-radius: 100rpx;
  925. display: flex;
  926. align-items: center;
  927. justify-content: center;
  928. background-color: white;
  929. position: absolute;
  930. left: 2rpx;
  931. top: 2rpx;
  932. transition: transform 0.3s;
  933. }
  934. /* 滑块开启状态 */
  935. .custom-switch.active .switch-thumb {
  936. transform: translateX(118rpx);
  937. /* 向右移动 */
  938. }
  939. .installequipment {
  940. width: 100%;
  941. height: 80rpx;
  942. display: flex;
  943. align-items: center;
  944. flex-direction: column;
  945. justify-content: space-between;
  946. }
  947. .calculation_bottom {
  948. width: 100%;
  949. /* margin-top: 20rpx; */
  950. display: flex;
  951. justify-content: space-between;
  952. }
  953. .calculation_electricity2 {
  954. width: 20rpx;
  955. }
  956. .uni-mt-5 {
  957. width: 100%;
  958. }
  959. /deep/ .is-input-border {
  960. border: 0rpx solid #fff !important;
  961. }
  962. .buttonbottom {
  963. width: 100%;
  964. height: 140rpx;
  965. padding-top: 20rpx;
  966. box-sizing: border-box;
  967. display: flex;
  968. justify-content: center;
  969. position: fixed;
  970. bottom: 0rpx;
  971. left: 0rpx;
  972. background-color: #ffffff;
  973. }
  974. .button_bottom {
  975. width: 80%;
  976. height: 80rpx;
  977. background-color: #222;
  978. border-radius: 100rpx;
  979. color: #fff;
  980. display: flex;
  981. align-items: center;
  982. justify-content: center;
  983. }
  984. .calculation_Days {
  985. width: 100%;
  986. height: 80rpx;
  987. display: flex;
  988. align-items: center;
  989. justify-content: space-between;
  990. }
  991. .owner {
  992. width: 100%;
  993. padding: 0rpx 20rpx 20rpx 20rpx;
  994. box-sizing: border-box;
  995. background-color: #fff;
  996. }
  997. .owner_type {
  998. width: 100%;
  999. padding:0rpx 20rpx 20rpx 20rpx;
  1000. border: #f0f5f5 1rpx solid;
  1001. border-radius: 10rpx;
  1002. box-sizing: border-box;
  1003. }
  1004. .owner_type_box {
  1005. width: 100%;
  1006. padding: 20rpx;
  1007. border: #f0f5f5 1rpx solid;
  1008. padding: 20rpx;
  1009. border-radius: 10rpx;
  1010. box-sizing: border-box;
  1011. margin-top: 20rpx;
  1012. }
  1013. .owner_type1 {
  1014. width: 100%;
  1015. height: 100rpx;
  1016. display: flex;
  1017. align-items: center;
  1018. justify-content: space-between;
  1019. border-bottom: #f0f5f5 1rpx solid;
  1020. }
  1021. .owner_type2 {
  1022. width: 100%;
  1023. height: 100rpx;
  1024. display: flex;
  1025. align-items: center;
  1026. justify-content: space-between;
  1027. }
  1028. .owner_easyinput {
  1029. width: 240rpx;
  1030. font-size: 26rpx;
  1031. display: flex;
  1032. align-items: center;
  1033. }
  1034. .owner_easyinput1 {
  1035. width: 240rpx;
  1036. display: flex;
  1037. align-items: center;
  1038. }
  1039. .owner_more {
  1040. font-size: 24rpx;
  1041. color: #ccc;
  1042. margin-top: 20rpx;
  1043. }
  1044. /* 电价方式胶囊容器 */
  1045. .custom-switch1 {
  1046. width: 440rpx;
  1047. height: 60rpx;
  1048. display: flex;
  1049. align-items: center;
  1050. justify-content: space-around;
  1051. border-radius: 100rpx;
  1052. /* 圆角胶囊 */
  1053. background-color: #e0e0e0;
  1054. /* 关闭时背景色 */
  1055. position: relative;
  1056. transition: background-color 0.3s;
  1057. }
  1058. /* 开启状态 */
  1059. .custom-switch1.active1 {
  1060. background-color: #e0e0e0;
  1061. /* 开启时背景色 */
  1062. }
  1063. /* 滑块 */
  1064. .switch-thumb1 {
  1065. width: 224rpx;
  1066. height: 56rpx;
  1067. border-radius: 100rpx;
  1068. display: flex;
  1069. align-items: center;
  1070. justify-content: center;
  1071. background-color: white;
  1072. position: absolute;
  1073. left: 2rpx;
  1074. top: 2rpx;
  1075. transition: transform 0.3s;
  1076. }
  1077. /* 滑块开启状态 */
  1078. .custom-switch1.active .switch-thumb1 {
  1079. transform: translateX(212rpx);
  1080. /* 向右移动 */
  1081. }
  1082. .uni-easyinput{
  1083. text-align: right;
  1084. padding-right: 10rpx;
  1085. }
  1086. .content-clear-icon{
  1087. padding: 0rpx;
  1088. }
  1089. </style>
  1090. <!--
  1091. -->