index.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. <template>
  2. <view class="box">
  3. <image class="bg-img" src="/static/bg.png" mode=""></image>
  4. <image class="bt-box" src="/static/bt.png" mode=""></image>
  5. <view class="top-box">
  6. <view class="top-left">
  7. <view class="fc-f fs-40 mr-32">
  8. 17:52:00
  9. </view>
  10. <view class="fc-f fs-40 mr-32">
  11. 2021-12-09
  12. </view>
  13. <view class="fc-f fs-40">
  14. 星期四
  15. </view>
  16. </view>
  17. <view class="top-left">
  18. <view class="fc-f fs-40">
  19. 26°C
  20. </view>
  21. </view>
  22. </view>
  23. <view class="data-box">
  24. <!-- 左 -->
  25. <view class="left-box flex-1">
  26. <view class="top-left mb-56">
  27. <view class="amount-box flex-1">
  28. <image class="amount-img" src="/static/k1.png" mode=""></image>
  29. <image class="amount-img-two z-3" src="/static/zje.png" mode=""></image>
  30. <view class="z-3">
  31. <view class="fc-00D5FF fw-b fs-48">
  32. ¥89000.00
  33. </view>
  34. <view class="fc-f fs-14">
  35. 收款总金额
  36. </view>
  37. </view>
  38. </view>
  39. <view class="amount-box flex-1 mrl-12">
  40. <image class="amount-img" src="/static/k1.png" mode=""></image>
  41. <image class="amount-img-two z-3" src="/static/zbs.png" mode=""></image>
  42. <view class="z-3">
  43. <view class="fc-00D5FF fw-b fs-48">
  44. 16
  45. </view>
  46. <view class="fc-f fs-14">
  47. 收款总笔数
  48. </view>
  49. </view>
  50. </view>
  51. <view class="amount-box flex-1">
  52. <image class="amount-img" src="/static/k1.png" mode=""></image>
  53. <image class="amount-img-two z-3" src="/static/zrs.png" mode=""></image>
  54. <view class="z-3">
  55. <view class="fc-00D5FF fw-b fs-48">
  56. 32
  57. </view>
  58. <view class="fc-f fs-14">
  59. 消费总人数
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="flex-1 list-box">
  65. <image class="list-img" src="/static/k3.png" mode=""></image>
  66. <view class="title-box mb-26">
  67. <image class="title-img" src="/static/xfmx.png" mode=""></image>
  68. </view>
  69. <!-- 滚动列表 -->
  70. <scroll-view class="scroll-view-css z-3" scroll-y="true" :scroll-top="scrollTop">
  71. <view class="item-box" v-for="(item,i) in 15" :key="i">
  72. <view class="user-box">
  73. <image class="user-img" src="/static/k1.png" mode=""></image>
  74. <view class="">
  75. <view class="fs-32 fc-f">
  76. Darrell Steward
  77. </view>
  78. <view class="fs-28 fc-B2D6FF">
  79. 消费者
  80. </view>
  81. </view>
  82. </view>
  83. <view class="">
  84. <view class="fs-32 fc-f">
  85. 振合网实体店{{i+1}}
  86. </view>
  87. <view class="fs-28 fc-B2D6FF">
  88. 消费门店
  89. </view>
  90. </view>
  91. <view class="">
  92. <view class="fs-32 fc-f">
  93. ¥779.58
  94. </view>
  95. <view class="fs-28 fc-B2D6FF">
  96. 消费金额
  97. </view>
  98. </view>
  99. <view class="">
  100. <view class="fs-32 fc-f">
  101. 2025-03-24 12:32:24
  102. </view>
  103. <view class="fs-28 fc-B2D6FF text-align-right">
  104. 消费时间
  105. </view>
  106. </view>
  107. </view>
  108. </scroll-view>
  109. </view>
  110. </view>
  111. <!-- 右 -->
  112. <view class="right-box flex-1">
  113. <view class="flex-1 chart-box">
  114. <image class="chart-bg" src="/static/k2.png" mode=""></image>
  115. <view class="title-box">
  116. <image class="title-img" src="/static/xfdb.png" mode=""></image>
  117. <view class="fc-f fs-28 title-right">
  118. 单位(元)
  119. </view>
  120. </view>
  121. <view class="flex-1">
  122. <!-- 柱状图 -->
  123. </view>
  124. </view>
  125. <view class="flex-1 chart-box mbt-12">
  126. <image class="chart-bg" src="/static/k2.png" mode=""></image>
  127. <view class="title-box">
  128. <image class="title-img" src="/static/zjtj.png" mode=""></image>
  129. <view class="bfje-num">
  130. <view class="bfje-title">
  131. <image class="bf-img" src="/static/bfje.png" mode=""></image>
  132. <view class="fc-B2D6FF fs-5">
  133. 总帮扶金额(元)
  134. </view>
  135. </view>
  136. <view class="fc-f fs-7">
  137. 27998.00
  138. </view>
  139. </view>
  140. </view>
  141. <view class="flex-1 tj-box">
  142. <view class="hx-box z-3">
  143. <!-- 环形图 -->
  144. </view>
  145. <view class="bf-box mr-16 ml-28">
  146. <view class="bf-num">
  147. <image class="yhbf-img" src="/static/yhbf.png" mode=""></image>
  148. <view class="fc-f fs-10 z-3 text-align-center">
  149. ¥8999.00
  150. </view>
  151. </view>
  152. <view class="bf-title">
  153. <image class="yh-bg" src="/static/yh-bg.png" mode=""></image>
  154. <image class="yh-img z-3" src="/static/yh.png" mode=""></image>
  155. <view class="fs-5 fc-f z-3">
  156. 用户帮扶资金 40%
  157. </view>
  158. </view>
  159. </view>
  160. <view class="bf-box">
  161. <view class="bf-num">
  162. <image class="yhbf-img" src="/static/dpbf.png" mode=""></image>
  163. <view class="fc-f fs-10 z-3 text-align-center">
  164. ¥18999.00
  165. </view>
  166. </view>
  167. <view class="bf-title">
  168. <image class="yh-bg" src="/static/dp-bg.png" mode=""></image>
  169. <image class="yh-img z-3" src="/static/dp.png" mode=""></image>
  170. <view class="fs-5 fc-f z-3">
  171. 店铺帮扶资金 60%
  172. </view>
  173. </view>
  174. </view>
  175. </view>
  176. </view>
  177. <view class="flex-1 chart-box">
  178. <image class="chart-bg" src="/static/k2.png" mode=""></image>
  179. <view class="title-box">
  180. <image class="title-img" src="/static/rztj.png" mode=""></image>
  181. </view>
  182. <view class="flex-1">
  183. <!-- 曲线图 -->
  184. </view>
  185. </view>
  186. </view>
  187. </view>
  188. </view>
  189. </template>
  190. <script>
  191. export default {
  192. data() {
  193. return {
  194. scrollTop:0,
  195. timer:'',//定时器
  196. listData: []
  197. }
  198. },
  199. mounted() {
  200. this.startAutoScroll();
  201. },
  202. methods: {
  203. startAutoScroll() {
  204. this.timer = setInterval(() => {
  205. this.scrollTop += 84;
  206. // console.log(this.scrollTop);
  207. // console.log(10 * 84);
  208. // 到底
  209. if (this.scrollTop >= (10 * 84)) {
  210. this.scrollTop = 0;
  211. }
  212. }, 2000);
  213. },
  214. }
  215. }
  216. </script>
  217. <style>
  218. .box {
  219. width: 100%;
  220. height: 100vh;
  221. position: relative;
  222. overflow: hidden;
  223. display: flex;
  224. flex-direction: column;
  225. }
  226. .bg-img {
  227. position: absolute;
  228. left: 0;
  229. top: 0;
  230. z-index: 1;
  231. width: 101vw;
  232. height: 102vh;
  233. }
  234. .bt-box {
  235. position: absolute;
  236. left: 0;
  237. top: 0;
  238. z-index: 1;
  239. width: 100%;
  240. height: 200rpx;
  241. }
  242. .top-box {
  243. height: 200rpx;
  244. display: flex;
  245. align-items: center;
  246. justify-content: space-between;
  247. padding: 0 86rpx;
  248. margin-bottom: 60rpx;
  249. position: relative;
  250. z-index: 2;
  251. }
  252. .top-left {
  253. display: flex;
  254. align-items: center;
  255. }
  256. .text-align-center {
  257. text-align: center;
  258. }
  259. .fw-b {
  260. font-weight: bold;
  261. }
  262. .fc-00D5FF {
  263. color: #00D5FF;
  264. }
  265. .fc-B2D6FF {
  266. color: #B2D6FF;
  267. }
  268. .fc-f {
  269. color: #fff;
  270. }
  271. .fs-13 {
  272. font-size: 13rpx;
  273. }
  274. .fs-48 {
  275. font-size: 48rpx;
  276. }
  277. .fs-10 {
  278. font-size: 10rpx;
  279. }
  280. .fs-40{
  281. font-size: 40rpx;
  282. }
  283. .fs-32{
  284. font-size: 32rpx;
  285. }
  286. .fs-28{
  287. font-size: 28rpx;
  288. }
  289. .fs-7 {
  290. font-size: 7rpx;
  291. }
  292. .fs-16 {
  293. font-size: 16rpx;
  294. }
  295. .fs-5 {
  296. font-size: 5rpx;
  297. }
  298. .fs-14 {
  299. font-size: 24rpx;
  300. }
  301. .mr-32{
  302. margin-right: 32rpx;
  303. }
  304. .mr-6 {
  305. margin-right: 6rpx;
  306. }
  307. .mr-16 {
  308. margin-right: 16rpx;
  309. }
  310. .ml-28 {
  311. margin-left: 28rpx;
  312. }
  313. .mb-10 {
  314. margin-bottom: 10rpx;
  315. }
  316. .mb-5 {
  317. margin-bottom: 5rpx;
  318. }
  319. .mb-26 {
  320. margin-bottom: 26rpx;
  321. }
  322. .mb-56{
  323. margin-bottom: 56rpx;
  324. }
  325. .mrl-12 {
  326. margin: 0 12rpx;
  327. }
  328. .mbt-12 {
  329. margin: 12rpx 0;
  330. }
  331. .text-align-right {
  332. text-align: right;
  333. }
  334. .flex-1 {
  335. flex: 1;
  336. }
  337. .z-3 {
  338. position: relative;
  339. z-index: 3;
  340. }
  341. .left-box {
  342. display: flex;
  343. flex-direction: column;
  344. }
  345. .data-box {
  346. padding: 0 112rpx 56rpx 112rpx;
  347. box-sizing: border-box;
  348. display: flex;
  349. flex: 1;
  350. }
  351. .amount-box {
  352. width: 620rpx;
  353. height: 204rpx;
  354. position: relative;
  355. padding: 20rpx 50rpx;
  356. box-sizing: border-box;
  357. display: flex;
  358. align-items: center;
  359. margin-right: 62rpx;
  360. }
  361. .amount-img {
  362. position: absolute;
  363. left: 0;
  364. top: 0;
  365. width: 100%;
  366. height: 100%;
  367. z-index: 2;
  368. }
  369. .amount-img-two {
  370. width: 168rpx;
  371. height: 168rpx;
  372. margin-right:40rpx;
  373. }
  374. .list-box {
  375. position: relative;
  376. padding: 60rpx 40rpx;
  377. box-sizing: border-box;
  378. display: flex;
  379. flex-direction: column;
  380. margin-right: 62rpx;
  381. }
  382. .list-img {
  383. position: absolute;
  384. left: 0;
  385. top: 0;
  386. width: 100%;
  387. height: 100%;
  388. z-index: 2;
  389. }
  390. .right-box {
  391. display: flex;
  392. flex-direction: column;
  393. }
  394. .chart-box {
  395. position: relative;
  396. padding: 40rpx;
  397. box-sizing: border-box;
  398. display: flex;
  399. flex-direction: column;
  400. }
  401. .chart-bg {
  402. position: absolute;
  403. left: 0;
  404. top: 0;
  405. width: 100%;
  406. height: 100%;
  407. z-index: 2;
  408. }
  409. .title-box {
  410. position: relative;
  411. width: 1404rpx;
  412. height: 78rpx;
  413. }
  414. .title-img {
  415. position: absolute;
  416. top: 0;
  417. bottom: 0;
  418. width: 100%;
  419. height: 100%;
  420. z-index: 2;
  421. }
  422. .title-right {
  423. text-align: right;
  424. position: relative;
  425. top: 20rpx;
  426. z-index: 2;
  427. }
  428. .bfje-num {
  429. position: absolute;
  430. top: 0;
  431. right: 0;
  432. border-radius: 2rpx;
  433. border-image: linear-gradient(90deg, rgba(113, 203, 255, 0.5), rgba(0, 161, 255, 0.05)) 0 0;
  434. z-index: 2;
  435. }
  436. .bfje-title {
  437. display: flex;
  438. align-items: center;
  439. margin-bottom: 1rpx;
  440. }
  441. .bf-img {
  442. width: 6rpx;
  443. height: 6rpx;
  444. margin-right: 1rpx;
  445. }
  446. .tj-box {
  447. display: flex;
  448. align-items: center;
  449. justify-content: center;
  450. }
  451. .bf-box {
  452. width: 73rpx;
  453. height: 50rpx;
  454. }
  455. .bf-num {
  456. width: 73rpx;
  457. height: 35rpx;
  458. position: relative;
  459. margin-bottom: 4rpx;
  460. }
  461. .bf-title {
  462. width: 100%;
  463. height: 10rpx;
  464. display: flex;
  465. align-items: center;
  466. justify-content: center;
  467. position: relative;
  468. }
  469. .yh-bg {
  470. position: absolute;
  471. top: 0;
  472. height: 0;
  473. width: 100%;
  474. height: 100%;
  475. z-index: 2;
  476. }
  477. .yh-img {
  478. width: 7rpx;
  479. height: 7rpx;
  480. margin-right: 0.3rpx;
  481. }
  482. .yhbf-img {
  483. position: absolute;
  484. left: 0;
  485. top: 0;
  486. width: 100%;
  487. height: 100%;
  488. z-index: 2;
  489. }
  490. .hx-box {
  491. width: 54rpx;
  492. height: 54rpx;
  493. }
  494. .scroll-view-css {
  495. width: 100%;
  496. height: 1060rpx;
  497. overflow: auto;
  498. }
  499. .scroll-view-css ::-webkit-scrollbar{
  500. display: none;
  501. }
  502. .item-box {
  503. width: 100%;
  504. height: 136rpx;
  505. background: rgba(0, 161, 255, 0.05);
  506. border-radius: 48rpx;
  507. margin-bottom: 32rpx;
  508. padding: 28rpx 48rpx;
  509. box-sizing: border-box;
  510. display: flex;
  511. align-items: center;
  512. justify-content: space-between;
  513. }
  514. .user-box {
  515. display: flex;
  516. align-items: center;
  517. }
  518. .user-img {
  519. width: 80rpx;
  520. height: 80rpx;
  521. border-radius: 50%;
  522. margin-right: 16rpx;
  523. }
  524. </style>