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

204 lines
4.7 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-yuebao 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 class="withdrawal" @click="$url('/pages/business/withdrawal/withdrawal')">提现</view>
  17. </view>
  18. <view class="tabs">
  19. <view class="lf-flex lf-h-100">
  20. <view class="tab" :class="{'active-tab': current == 0}" @click="current = 0">余额明细</view>
  21. <view class="tab" :class="{'active-tab': current == 1}" @click="current = 1">提现明细</view>
  22. </view>
  23. <picker mode='date' :value="date" @change="dateChange">
  24. <view style="width: 340rpx; text-align: right;">
  25. <text>{{ date || '2021-09-01' }}</text>
  26. <text class="lf-iconfont icon-xiangyou lf-font-24 lf-m-l-10"></text>
  27. </view>
  28. </picker>
  29. </view>
  30. <view class="main" v-if="current == 0">
  31. <view class="item" v-for="(item, index) in 10" :key="index">
  32. <view class="lf-row-between">
  33. <text class="lf-font-36 lf-color-black lf-font-bold">+80</text>
  34. <text class="lf-font-24 lf-color-555">扫码收款</text>
  35. </view>
  36. <view class="lf-row-between lf-m-t-20">
  37. <text class="lf-font-24 lf-color-555">¥374.38</text>
  38. <text class="lf-font-24 lf-color-777">2021-09-01 18:27:58</text>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="main" v-else-if="current == 1">
  43. <view class="item" v-for="(item, index) in 10" :key="index">
  44. <view class="lf-row-between">
  45. <text class="lf-font-36 lf-font-bold" style="color: #F63434;">-80</text>
  46. <text class="lf-font-24 lf-color-555">提现到支付宝[18203835380]</text>
  47. </view>
  48. <view class="lf-row-between lf-m-t-20">
  49. <text class="lf-font-24 lf-color-555">¥374.38</text>
  50. <text class="lf-font-24 lf-color-777">2021-09-01 18:27:58</text>
  51. </view>
  52. </view>
  53. </view>
  54. <u-back-top :scrollTop="pageScrollTop"></u-back-top>
  55. </view>
  56. </template>
  57. <script>
  58. export default {
  59. data(){
  60. return {
  61. date: '',
  62. current: 0
  63. }
  64. },
  65. onLoad(){
  66. },
  67. methods: {
  68. dateChange(event){
  69. this.date = event.detail.value;
  70. }
  71. }
  72. }
  73. </script>
  74. <style>
  75. page{
  76. overflow-x: hidden;
  77. }
  78. </style>
  79. <style lang="scss" scoped>
  80. .head{
  81. width: 750rpx;
  82. height: 429rpx;
  83. background: linear-gradient(90deg, #1338B7 0%, #092788 100%);
  84. position: relative;
  85. overflow: hidden;
  86. display: flex;
  87. align-items: flex-end;
  88. box-sizing: border-box;
  89. padding: 60rpx 32rpx;
  90. color: #FFFFFF;
  91. .bg-left{
  92. position: absolute;
  93. width: 196rpx;
  94. height: 196rpx;
  95. border-radius: 50%;
  96. background-color: rgba(255,255,255,0.04);
  97. left: -92rpx;
  98. bottom: 60rpx;
  99. }
  100. .bg-right{
  101. position: absolute;
  102. width: 520rpx;
  103. height: 520rpx;
  104. border-radius: 50%;
  105. background-color: rgba(255,255,255,0.04);
  106. right: -168rpx;
  107. top: -122rpx;
  108. }
  109. .head-content{
  110. width: 100%;
  111. display: flex;
  112. flex-direction: column;
  113. justify-content: center;
  114. align-items: center;
  115. &>view{
  116. width: 100%;
  117. text-align: center;
  118. }
  119. .point{
  120. font-size: 72rpx;
  121. letter-spacing: 2rpx;
  122. font-weight: bold;
  123. word-break: break-all;
  124. line-height: 1;
  125. margin-top: 10rpx;
  126. .label{
  127. font-size: 36rpx;
  128. font-weight: initial;
  129. }
  130. }
  131. }
  132. .withdrawal{
  133. position: absolute;
  134. right: 32rpx;
  135. bottom: 164rpx;
  136. width: 102rpx;
  137. height: 47rpx;
  138. border-radius: 24rpx;
  139. border: 1rpx solid #FFFFFF;
  140. font-size: 24rpx;
  141. color: #FFFFFF;
  142. display: flex;
  143. justify-content: center;
  144. align-items: center;
  145. z-index: 9;
  146. }
  147. }
  148. .tabs{
  149. height: 100rpx;
  150. width: 750rpx;
  151. border: 1rpx solid #e5e5e5;
  152. display: flex;
  153. justify-content: space-between;
  154. align-items: center;
  155. padding: 0 32rpx;
  156. .tab{
  157. width: 128rpx;
  158. height: 100%;
  159. display: flex;
  160. justify-content: center;
  161. align-items: center;
  162. font-size: 28rpx;
  163. color: #555555;
  164. &:nth-child(n+2){
  165. margin-left: 50rpx;
  166. }
  167. }
  168. .active-tab{
  169. font-size: 32rpx;
  170. color: #0D2E9A;
  171. position: relative;
  172. font-weight: bold;
  173. &::after{
  174. content: '';
  175. position: absolute;
  176. bottom: 0;
  177. left: calc(50% - 40rpx);
  178. width: 80rpx;
  179. height: 10rpx;
  180. background: #0D2E9A;
  181. border-radius: 8rpx 8rpx 0rpx 0rpx;
  182. }
  183. }
  184. }
  185. .main{
  186. padding: 30rpx 32rpx;
  187. width: 750rpx;
  188. height: max-content;
  189. box-sizing: border-box;
  190. .item{
  191. width: 686rpx;
  192. height: max-content;
  193. background: #F4F8F8;
  194. border-radius: 10rpx;
  195. margin-bottom: 26rpx;
  196. padding: 30rpx;
  197. box-sizing: border-box;
  198. line-height: 1;
  199. }
  200. }
  201. </style>