云链智安app
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

index.vue 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  1. <template>
  2. <view>
  3. <view class="containertop">
  4. <view :class="topselect==0?'containertop1':'containertop2'" @click="clickselect(0)">
  5. 推荐
  6. </view>
  7. <view :class="topselect==1?'containertop1':'containertop2'" @click="clickselect(1)">
  8. 新闻
  9. </view>
  10. <view :class="topselect==2?'containertop1':'containertop2'" @click="clickselect(2)">
  11. 案例
  12. </view>
  13. </view>
  14. <view class="container" v-if="topselect==0">
  15. <!--1 hbuilderx 1-->
  16. <view class="account_number">
  17. <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay"
  18. :interval="interval" :duration="duration">
  19. <swiper-item>
  20. <image class="swiper-item"
  21. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png"
  22. mode=""></image>
  23. </swiper-item>
  24. <swiper-item>
  25. <image class="swiper-item"
  26. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png"
  27. mode=""></image>
  28. </swiper-item>
  29. <swiper-item>
  30. <image class="swiper-item"
  31. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png"
  32. mode=""></image>
  33. </swiper-item>
  34. </swiper>
  35. </view>
  36. <view class="toptabbarfinance">
  37. <view class="topfinance" @click="electricityprice">
  38. <image class="topfinanceimage" src="https://esos-iot.bjdexn.cn/myminio/project/923d69838676416b91579b2d9ea81a00.png" mode=""></image>
  39. <view class="topfinance_title">
  40. 查询电价
  41. </view>
  42. <view class="topfinance_subtitle">
  43. 掌握收益趋势
  44. </view>
  45. </view>
  46. <view class="topfinance" @click="calculation">
  47. <image class="topfinanceimage" src="https://esos-iot.bjdexn.cn/myminio/project/c46bf20166d74c6ca6e0e5af87d5a5de.png" mode=""></image>
  48. <view class="topfinance_title">
  49. 经济测算
  50. </view>
  51. <view class="topfinance_subtitle">
  52. 金融服务全新升级
  53. </view>
  54. </view>
  55. <view class="topfinance">
  56. <image class="topfinanceimage" src="https://esos-iot.bjdexn.cn/myminio/project/22495e19c9b14e01af2251b3a8151752.png" mode=""></image>
  57. <view class="topfinance_title">
  58. 知识库
  59. </view>
  60. <view class="topfinance_subtitle">
  61. 成为资深储能达人
  62. </view>
  63. </view>
  64. </view>
  65. <view class="toptabbar">
  66. <view class="toptabbar_box">
  67. <view class="uni-title uni-common-mt">
  68. <text>最新政策</text>
  69. </view>
  70. <view>
  71. <view class="scroll-view-item_H uni-bg-green">
  72. <view class="scroll-view-item_title">
  73. “星空计划plus”帮您再省4分/瓦时!10月..
  74. </view>
  75. <view class="scroll-view-item_subtitle">
  76. 万亿储能,蕴藏无限机遇;携手同行,画美好蓝图!2023年..
  77. 奇点能源分布式储能引领者
  78. </view>
  79. <image class="scroll-view-item_Himage"
  80. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png">
  81. </image>
  82. </view>
  83. <view class="scroll-view-item_H uni-bg-green">
  84. <view class="scroll-view-item_title">
  85. “星空计划plus”帮您再省4分/瓦时!10月..
  86. </view>
  87. <view class="scroll-view-item_subtitle">
  88. 万亿储能,蕴藏无限机遇;携手同行,画美好蓝图!2023年..
  89. 奇点能源分布式储能引领者
  90. </view>
  91. <image class="scroll-view-item_Himage"
  92. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png">
  93. </image>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. <view class="container" v-if="topselect==1">
  100. <view class="account_number">
  101. <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay"
  102. :interval="interval" :duration="duration">
  103. <swiper-item>
  104. <image class="swiper-item"
  105. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png"
  106. mode=""></image>
  107. </swiper-item>
  108. <swiper-item>
  109. <image class="swiper-item"
  110. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png"
  111. mode=""></image>
  112. </swiper-item>
  113. <swiper-item>
  114. <image class="swiper-item"
  115. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png"
  116. mode=""></image>
  117. </swiper-item>
  118. </swiper>
  119. </view>
  120. <view class="toptabbar">
  121. <view class="toptabbar_box">
  122. <view class="uni-title uni-common-mt">
  123. <text>最新政策</text>
  124. </view>
  125. <view>
  126. <view class="scroll-view-item_H uni-bg-green">
  127. <view class="scroll-view-item_title">
  128. “星空计划plus”帮您再省4分/瓦时!10月..
  129. </view>
  130. <view class="scroll-view-item_subtitle">
  131. 万亿储能,蕴藏无限机遇;携手同行,画美好蓝图!2023年..
  132. 奇点能源分布式储能引领者
  133. </view>
  134. <image class="scroll-view-item_Himage"
  135. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png">
  136. </image>
  137. </view>
  138. <view class="scroll-view-item_H uni-bg-green">
  139. <view class="scroll-view-item_title">
  140. “星空计划plus”帮您再省4分/瓦时!10月..
  141. </view>
  142. <view class="scroll-view-item_subtitle">
  143. 万亿储能,蕴藏无限机遇;携手同行,画美好蓝图!2023年..
  144. 奇点能源分布式储能引领者
  145. </view>
  146. <image class="scroll-view-item_Himage"
  147. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png">
  148. </image>
  149. </view>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. <view class="container" v-if="topselect==2">
  155. <view class="account_number">
  156. <swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay"
  157. :interval="interval" :duration="duration">
  158. <swiper-item>
  159. <image class="swiper-item"
  160. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png"
  161. mode=""></image>
  162. </swiper-item>
  163. <swiper-item>
  164. <image class="swiper-item"
  165. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png"
  166. mode=""></image>
  167. </swiper-item>
  168. <swiper-item>
  169. <image class="swiper-item"
  170. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png"
  171. mode=""></image>
  172. </swiper-item>
  173. </swiper>
  174. </view>
  175. <view class="toptabbar">
  176. <view class="toptabbar_box">
  177. <view class="uni-title uni-common-mt">
  178. <text>最新政策</text>
  179. </view>
  180. <view>
  181. <view class="scroll-view-item_H uni-bg-green">
  182. <view class="scroll-view-item_title">
  183. “星空计划plus”帮您再省4分/瓦时!10月..
  184. </view>
  185. <view class="scroll-view-item_subtitle">
  186. 万亿储能,蕴藏无限机遇;携手同行,画美好蓝图!2023年..
  187. 奇点能源分布式储能引领者
  188. </view>
  189. <image class="scroll-view-item_Himage"
  190. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png">
  191. </image>
  192. </view>
  193. <view class="scroll-view-item_H uni-bg-green">
  194. <view class="scroll-view-item_title">
  195. “星空计划plus”帮您再省4分/瓦时!10月..
  196. </view>
  197. <view class="scroll-view-item_subtitle">
  198. 万亿储能,蕴藏无限机遇;携手同行,画美好蓝图!2023年..
  199. 奇点能源分布式储能引领者
  200. </view>
  201. <image class="scroll-view-item_Himage"
  202. src="https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png">
  203. </image>
  204. </view>
  205. </view>
  206. </view>
  207. </view>
  208. </view>
  209. </view>
  210. </template>
  211. <!-- login -->
  212. <script>
  213. export default {
  214. data() {
  215. return {
  216. background: ['color1', 'color2', 'color3'],
  217. indicatorDots: true,
  218. autoplay: true,
  219. interval: 2000,
  220. duration: 500,
  221. scrollTop: 0,
  222. old: {
  223. scrollTop: 0
  224. },
  225. topselect: 0
  226. }
  227. },
  228. onLoad() {
  229. uni.setTabBarItem({
  230. index:0,
  231. text:t('tabBar.publicize')
  232. })
  233. uni.setTabBarItem({
  234. index:1,
  235. text:t('tabBar.products')
  236. })
  237. uni.setTabBarItem({
  238. index:2,
  239. text:t('tabBar.Devices')
  240. })
  241. uni.setTabBarItem({
  242. index:3,
  243. text:t('tabBar.My')
  244. })
  245. },
  246. methods: {
  247. changeIndicatorDots(e) {
  248. this.indicatorDots = !this.indicatorDots
  249. },
  250. changeAutoplay(e) {
  251. this.autoplay = !this.autoplay
  252. },
  253. intervalChange(e) {
  254. this.interval = e.target.value
  255. },
  256. durationChange(e) {
  257. this.duration = e.target.value
  258. },
  259. clickselect(e) {
  260. console.log(e);
  261. this.topselect = e
  262. },
  263. // 查电价
  264. electricityprice(){
  265. uni.navigateTo({
  266. url:'/pages/electricityprice/index'
  267. })
  268. },
  269. // 经济测算
  270. calculation(){
  271. uni.navigateTo({
  272. url:'/pages/economiccalculation/index'
  273. })
  274. }
  275. }
  276. }
  277. </script>
  278. <!-- -->
  279. <style scoped>
  280. .uni-page {
  281. width: 100%;
  282. height: 100%;
  283. }
  284. .container {
  285. background: linear-gradient(to bottom, #007545 -40%, #f0f5f5 40%, #f0f5f5 100%);
  286. box-sizing: border-box;
  287. padding-bottom: 20rpx;
  288. }
  289. .containertop {
  290. width: 100%;
  291. height: 140rpx;
  292. display: flex;
  293. background-color: rgba(240, 245, 245, 0.8);
  294. /* 最后一个参数 0.5 表示 50% 透明度 */
  295. padding-left: 20rpx;
  296. padding-top: 80rpx;
  297. box-sizing: border-box;
  298. position: fixed;
  299. top: 0rpx;
  300. left: 0rpx;
  301. z-index: 9;
  302. }
  303. .containertop1 {
  304. margin-right: 60rpx;
  305. color: #007545;
  306. }
  307. .containertop2 {
  308. margin-right: 60rpx;
  309. color: #222222;
  310. }
  311. .account_number {
  312. width: 100%;
  313. height: 208px;
  314. box-sizing: border-box;
  315. /* background-image: url('https://esos-iot.bjdexn.cn/myminio/project/58c54d56edd94c3f9c5fb50f5727ff37.png'); */
  316. background-repeat: no-repeat;
  317. background-size: 100%;
  318. }
  319. .swiper {
  320. width: 100%;
  321. height: 100%;
  322. }
  323. .swiper-item {
  324. display: block;
  325. width: 100%;
  326. height: 100%;
  327. text-align: center;
  328. }
  329. .account_image {
  330. width: 100%;
  331. }
  332. .toptabbar {
  333. width: 100%;
  334. padding: 0rpx 20rpx;
  335. margin-top: 30rpx;
  336. box-sizing: border-box;
  337. }
  338. .toptabbar_box {
  339. width: 100%;
  340. background-color: #ffffff;
  341. border-radius: 10rpx;
  342. padding: 20rpx 30rpx;
  343. box-sizing: border-box;
  344. }
  345. .uni-margin-wrap {
  346. width: 100%;
  347. margin-top: 20rpx;
  348. border-radius: 10rpx;
  349. overflow: auto;
  350. }
  351. .uni-bg-red {
  352. display: flex;
  353. flex-direction: column;
  354. padding: 8rpx;
  355. box-sizing: border-box;
  356. }
  357. .swiper-items {
  358. width: 100%;
  359. height: 240rpx;
  360. border-radius: 10rpx;
  361. overflow: auto;
  362. }
  363. .swiper_title {
  364. width: 100%;
  365. height: 20rpx;
  366. display: flex;
  367. align-items: center;
  368. justify-content: center;
  369. font-size: 28rpx;
  370. }
  371. .scroll-Y {
  372. height: 300rpx;
  373. }
  374. .uni-title {
  375. margin-bottom: 10rpx;
  376. }
  377. .scroll-view_H {
  378. white-space: nowrap;
  379. width: 100%;
  380. }
  381. .scroll-view-item {
  382. height: 300rpx;
  383. line-height: 300rpx;
  384. text-align: center;
  385. font-size: 36rpx;
  386. }
  387. .scroll-view-item_H {
  388. width: 100%;
  389. height: 456rpx;
  390. text-align: center;
  391. font-size: 36rpx;
  392. }
  393. .uni-bg-green {
  394. margin-top: 40rpx;
  395. border-radius: 10rpx;
  396. }
  397. .scroll-view-item_title {
  398. width: 100%;
  399. height: 40rpx;
  400. font-size: 28rpx;
  401. font-weight: 600;
  402. white-space: nowrap;
  403. /* 禁止换行 */
  404. overflow: hidden;
  405. /* 隐藏溢出内容 */
  406. text-overflow: ellipsis;
  407. /* 显示省略号 */
  408. width: 100%;
  409. /* 设置宽度(或具体值) */
  410. display: block;
  411. /* 块级元素(或 inline-block) */
  412. text-align: left;
  413. }
  414. .scroll-view-item_subtitle {
  415. width: 100%;
  416. height: 40rpx;
  417. font-size: 24rpx;
  418. color: #999999;
  419. margin: 8rpx 0rpx;
  420. white-space: nowrap;
  421. /* 禁止换行 */
  422. overflow: hidden;
  423. /* 隐藏溢出内容 */
  424. text-overflow: ellipsis;
  425. /* 显示省略号 */
  426. width: 100%;
  427. /* 设置宽度(或具体值) */
  428. display: block;
  429. /* 块级元素(或 inline-block) */
  430. text-align: left;
  431. }
  432. .scroll-view-item_Himage {
  433. width: 100%;
  434. height: 360rpx;
  435. border-radius: 10rpx;
  436. }
  437. .toptabbarfinance{
  438. display: flex;
  439. justify-content: space-around;
  440. justify-content: space-between;
  441. padding: 0rpx 20rpx;
  442. margin-top: 20rpx;
  443. box-sizing: border-box;
  444. }
  445. .topfinance{
  446. width: 32%;
  447. height: 200rpx;
  448. padding: 10rpx 0rpx;
  449. border-radius: 8rpx;
  450. display: flex;
  451. flex-direction: column;
  452. justify-content: center;
  453. align-items: center;
  454. background-color: #f0f5f5;
  455. /* background-color: #ffffff; */
  456. box-sizing: border-box;
  457. }
  458. .topfinanceimage{
  459. width: 80rpx;
  460. height: 80rpx;
  461. }
  462. .topfinance_title{
  463. font-size: 32rpx;
  464. font-weight: 550;
  465. margin-top: 8rpx;
  466. }
  467. .topfinance_subtitle{
  468. font-size: 22rpx;
  469. color: #959595;
  470. }
  471. </style>