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

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