bill.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <template>
  2. <view>
  3. <view class="top">
  4. <view class="value">
  5. <text>余额</text>
  6. <text class="text-price">1600.00</text>
  7. </view>
  8. <view class="flex justify-center align-center">
  9. <view class="cu-btn btn" hover-class="hoverClass1" @click="$jump('/pages/mine/my-points/accredit')">
  10. 提现
  11. </view>
  12. </view>
  13. </view>
  14. <view class="margin-top-20" style="margin-bottom: -10rpx;">
  15. <u-tabs active-color="#FC8D38" :active-item-style="activeItemStyle" :list="list" bg-color="#f1f1f1" :current="current" @change="change"></u-tabs>
  16. </view>
  17. <view class="data">
  18. <view class="left">
  19. <view>
  20. <text>2021年7月</text>
  21. <text class="cuIcon-unfold padding-left-10"></text>
  22. </view>
  23. <view>
  24. <text>支出 ¥ 165.00 收入 ¥ 463.00</text>
  25. </view>
  26. </view>
  27. <view class="right">
  28. <text>统计</text>
  29. <text class="cuIcon-right"></text>
  30. </view>
  31. </view>
  32. <view class="card">
  33. <view style="display: flex;">
  34. <view class="area1 area-padding " style="padding-left: 40rpx;">
  35. <text>积分来源</text>
  36. </view>
  37. <view class="area2 area-padding">
  38. <text>积分数量</text>
  39. </view>
  40. <view class="area3 area-padding">
  41. <text>价值</text>
  42. </view>
  43. </view>
  44. <view @click="$jump('/pages/mine/bill-detail')" class="item" hover-class="hoverClass"
  45. v-for="(item,index) in 6" :key="index">
  46. <view class="area1">
  47. <view class="item-padding">
  48. <image src="@/static/icon/zhongguo.png" mode=""></image>
  49. <view class="">
  50. <text>中国银行</text>
  51. <text>7月20日 12:00</text>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="area2 text-area ">
  56. <view class="item-padding">
  57. <image style="width: 35rpx;height: 35rpx;margin-bottom: -5rpx;"
  58. src="@/static/icon/points-value.png"></image>
  59. <text style="font-size: 32rpx;margin-left: 10rpx;color: #F39248;">-100</text>
  60. </view>
  61. </view>
  62. <view class="area3 text-area ">
  63. <view class="item-padding" style="font-size: 34rpx;color: #000;">¥10</view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </template>
  69. <script>
  70. export default {
  71. data() {
  72. return {
  73. activeItemStyle:{
  74. fontWeight:800,
  75. fontSize:'36rpx'
  76. },
  77. list: [{
  78. name: '应收明细'
  79. }, {
  80. name: '余额明细'
  81. }],
  82. current: 0
  83. }
  84. },
  85. methods: {
  86. change(index) {
  87. this.current = index;
  88. }
  89. }
  90. }
  91. </script>
  92. <style lang="scss" scoped>
  93. .btn {
  94. background-color: #FC8D38;
  95. color: #FFFFFF;
  96. border-radius: 50rpx;
  97. border: 1rpx solid #FFFFFF;
  98. }
  99. .hoverClass1 {
  100. box-shadow: 0rpx 0rpx 10rpx #DDDDDD;
  101. }
  102. .top {
  103. padding: 50rpx;
  104. background-image: linear-gradient(to right,#FBA33D,#FF8D32);
  105. display: flex;
  106. justify-content: space-between;
  107. .value {
  108. display: flex;
  109. flex-direction: column;
  110. text-align: center;
  111. text:first-child {
  112. text-align: left;
  113. color: #FCD7BD;
  114. font-size: 32rpx;
  115. }
  116. text:last-child {
  117. padding-top: 10rpx;
  118. font-size: 70rpx;
  119. color: #FFFFFF;
  120. }
  121. }
  122. }
  123. .data {
  124. padding: 50rpx 0 25rpx 40rpx;
  125. display: flex;
  126. justify-content: space-between;
  127. .left {
  128. display: flex;
  129. flex-direction: column;
  130. view:first-child {
  131. font-size: 34rpx;
  132. color: #000;
  133. padding-bottom: 10rpx;
  134. }
  135. view:last-child {
  136. font-size: 26rpx;
  137. color: #666666;
  138. }
  139. }
  140. .right {
  141. padding-right: 20rpx;
  142. color: #666666;
  143. display: flex;
  144. justify-content: center;
  145. align-items: center;
  146. text-align: center;
  147. }
  148. }
  149. .card {
  150. background-color: #FFFFFF;
  151. .area-padding {
  152. padding: 40rpx 0 20rpx;
  153. }
  154. .text-area {
  155. display: flex;
  156. justify-content: flex-start;
  157. align-items: center;
  158. }
  159. .area1 {
  160. padding-left: 30rpx;
  161. width: 55%;
  162. view:first-child {
  163. display: flex;
  164. image {
  165. width: 80rpx;
  166. height: 80rpx
  167. }
  168. view {
  169. padding-left: 15rpx;
  170. padding-bottom: 5rpx;
  171. display: flex;
  172. flex-direction: column;
  173. text:first-child {
  174. font-size: 32rpx;
  175. padding-bottom: 10rpx;
  176. color: #000;
  177. }
  178. text:last-child {
  179. font-size: 22rpx;
  180. color: #888888;
  181. }
  182. }
  183. }
  184. }
  185. .area2 {
  186. width: 25%;
  187. }
  188. .area3 {
  189. width: 20%;
  190. }
  191. .item-padding {
  192. padding: 20rpx 0;
  193. }
  194. .item {
  195. padding: 5rpx;
  196. display: flex;
  197. border-bottom: 1rpx solid #DDDDDD;
  198. }
  199. .item:last-child {
  200. border: none;
  201. }
  202. }
  203. </style>