金诚优选前端代码
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.

135 lines
3.0 KiB

  1. <template>
  2. <view>
  3. <lf-nav title="余额" :showIcon="true" :spreadOut="false" bgColor="transparent" titleColor="#fff"></lf-nav>
  4. <view class="head">
  5. <view class="bg-left"></view>
  6. <view class="bg-right"></view>
  7. <view class="head-content">
  8. <view>
  9. <text class="lf-iconfont icon-- lf-font-50"></text>
  10. </view>
  11. <view class="point">
  12. <text>78326478</text>
  13. <text class="label">()</text>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="main">
  18. <view class="lf-row-between lf-m-b-30">
  19. <view class="lf-font-32 lf-color-black lf-font-bold">余额变动明细</view>
  20. <picker mode='date' :value="date" @change="dateChange">
  21. <view style="width: 440rpx; text-align: right;">
  22. <text>{{ date || '2021-09-01' }}</text>
  23. <text class="lf-iconfont icon--1 lf-m-l-10"></text>
  24. </view>
  25. </picker>
  26. </view>
  27. <view class="item" v-for="(item, index) in 10" :key="index">
  28. <view class="lf-row-between">
  29. <text class="lf-font-36 lf-color-black lf-font-bold" :class="{'lf-color-price': index % 2}">{{ index % 2 ? '-250' : '+80' }}</text>
  30. <text class="lf-font-24 lf-color-555">线上-商城内消费</text>
  31. </view>
  32. <view class="lf-row-between lf-m-t-20">
  33. <text class="lf-font-24 lf-color-555">¥374.38</text>
  34. <text class="lf-font-24 lf-color-777">2021-09-01 18:27:58</text>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data(){
  43. return {
  44. date: ''
  45. }
  46. },
  47. onLoad(){
  48. },
  49. methods: {
  50. dateChange(event){
  51. this.date = event.detail.value;
  52. }
  53. }
  54. }
  55. </script>
  56. <style>
  57. page{
  58. overflow-x: hidden;
  59. }
  60. </style>
  61. <style lang="scss" scoped>
  62. .head{
  63. width: 750rpx;
  64. // height: 512rpx;
  65. height: 429rpx;
  66. background: linear-gradient(90deg, #22A2A0 0%, #187B7A 100%);
  67. position: relative;
  68. overflow: hidden;
  69. display: flex;
  70. align-items: flex-end;
  71. box-sizing: border-box;
  72. padding: 60rpx 32rpx;
  73. color: #FFFFFF;
  74. .bg-left{
  75. position: absolute;
  76. width: 196rpx;
  77. height: 196rpx;
  78. border-radius: 50%;
  79. background-color: rgba(255,255,255,0.04);
  80. left: -92rpx;
  81. bottom: 60rpx;
  82. }
  83. .bg-right{
  84. position: absolute;
  85. width: 520rpx;
  86. height: 520rpx;
  87. border-radius: 50%;
  88. background-color: rgba(255,255,255,0.04);
  89. right: -168rpx;
  90. top: -122rpx;
  91. }
  92. .head-content{
  93. width: 100%;
  94. display: flex;
  95. flex-direction: column;
  96. justify-content: center;
  97. align-items: center;
  98. &>view{
  99. width: 100%;
  100. text-align: center;
  101. }
  102. .point{
  103. font-size: 72rpx;
  104. letter-spacing: 2rpx;
  105. font-weight: bold;
  106. word-break: break-all;
  107. line-height: 1;
  108. margin-top: 10rpx;
  109. .label{
  110. font-size: 36rpx;
  111. font-weight: initial;
  112. }
  113. }
  114. }
  115. }
  116. .main{
  117. padding: 30rpx 32rpx;
  118. width: 750rpx;
  119. height: max-content;
  120. box-sizing: border-box;
  121. .item{
  122. width: 686rpx;
  123. height: max-content;
  124. background: #F4F8F8;
  125. border-radius: 10rpx;
  126. margin-bottom: 26rpx;
  127. padding: 30rpx;
  128. box-sizing: border-box;
  129. line-height: 1;
  130. }
  131. }
  132. </style>