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

138 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">78326478</view>
  12. <view class="head-menu">
  13. <view>兑换礼品 ></view>
  14. <view @click="$url('/pages/point/rule/rule')">积分规则 ></view>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="main">
  19. <view class="lf-row-between lf-m-b-30">
  20. <view class="lf-font-32 lf-color-black lf-font-bold">积分变动明细</view>
  21. <picker mode='date' :value="date" @change="dateChange">
  22. <view style="width: 440rpx; text-align: right;">
  23. <text>{{ date || '2021-09-01' }}</text>
  24. <text class="lf-iconfont icon--1 lf-m-l-10"></text>
  25. </view>
  26. </picker>
  27. </view>
  28. <view class="item" v-for="(item, index) in 10" :key="index">
  29. <view class="lf-row-between">
  30. <text class="lf-font-36 lf-color-black lf-font-bold" :class="{'lf-color-price': index % 2}">{{ index % 2 ? '-250' : '+80' }}</text>
  31. <text class="lf-font-24 lf-color-777">2021-09-01 18:27:58</text>
  32. </view>
  33. <view class="lf-m-t-20">
  34. <text class="lf-font-24 lf-color-555">商城内消费</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="scoped">
  62. .head{
  63. width: 750rpx;
  64. height: 512rpx;
  65. background: linear-gradient(90deg, #22A2A0 0%, #187B7A 100%);
  66. position: relative;
  67. overflow: hidden;
  68. display: flex;
  69. align-items: flex-end;
  70. box-sizing: border-box;
  71. padding: 60rpx 32rpx;
  72. color: #FFFFFF;
  73. .bg-left{
  74. position: absolute;
  75. width: 196rpx;
  76. height: 196rpx;
  77. border-radius: 50%;
  78. background-color: rgba(255,255,255,0.04);
  79. left: -92rpx;
  80. bottom: 60rpx;
  81. }
  82. .bg-right{
  83. position: absolute;
  84. width: 520rpx;
  85. height: 520rpx;
  86. border-radius: 50%;
  87. background-color: rgba(255,255,255,0.04);
  88. right: -168rpx;
  89. top: -122rpx;
  90. }
  91. .head-content{
  92. width: 100%;
  93. display: flex;
  94. flex-direction: column;
  95. justify-content: center;
  96. align-items: center;
  97. &>view{
  98. width: 100%;
  99. text-align: center;
  100. }
  101. .head-menu{
  102. display: flex;
  103. justify-content: space-between;
  104. padding: 0 78rpx;
  105. font-size: 24rpx;
  106. margin-top: 50rpx;
  107. }
  108. .point{
  109. font-size: 72rpx;
  110. letter-spacing: 2rpx;
  111. font-weight: bold;
  112. word-break: break-all;
  113. line-height: 1;
  114. margin-top: 10rpx;
  115. }
  116. }
  117. }
  118. .main{
  119. padding: 30rpx 32rpx;
  120. width: 750rpx;
  121. height: max-content;
  122. box-sizing: border-box;
  123. .item{
  124. width: 686rpx;
  125. height: max-content;
  126. background: #F4F8F8;
  127. border-radius: 10rpx;
  128. margin-bottom: 26rpx;
  129. padding: 30rpx;
  130. box-sizing: border-box;
  131. line-height: 1;
  132. }
  133. }
  134. </style>