my-bills.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <!-- 钱包卡片 -->
  3. <view class="sh-wallet-box u-flex u-m-b-10 u-p-r-10" style="border-radius: 16rpx;">
  4. <view class="u-flex wallet-left">
  5. <view @click="$jump('/pagesA/pages/my-points/my-points?point='+data.channelPoint)" class="wallet-item u-flex-col u-col-center">
  6. <text class="wallet-item__detail item-balance u-ellipsis-1">{{data.channelPoint || 0.00}}</text>
  7. <text class="wallet-item__title">通兑积分</text>
  8. </view>
  9. <view @click="$jump('/pagesA/pages/my-balance/my-balance?pointValue='+data.balance)" class="wallet-item u-flex-col u-col-center" >
  10. <text class="wallet-item__detail item-score u-ellipsis-1">{{data.balance || 0.00}}</text>
  11. <text class="wallet-item__title">积分余额</text>
  12. </view>
  13. </view>
  14. <view @click="$jump('/pagesA/pages/bill/my-bills')" class="wallet-item u-flex-col wallet-right u-col-center">
  15. <image class="cut-off--line" src="../static/icon/line.png" mode=""></image>
  16. <image class="wallet-img" src="../static/icon/mybills1.png" mode="aspectFill"></image>
  17. <text class="wallet-item__title">我的账单</text>
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. props:{
  24. data:Object
  25. },
  26. data() {
  27. return {};
  28. },
  29. methods: {
  30. }
  31. };
  32. </script>
  33. <style lang="scss">
  34. // 钱包卡片
  35. .sh-wallet-box {
  36. background: #fff;
  37. height: 180rpx;
  38. position: relative;
  39. .wallet-left {
  40. flex: 4;
  41. }
  42. .wallet-right {
  43. position: relative;
  44. .cut-off--line {
  45. position: absolute;
  46. top: 50%;
  47. transform: translateY(-50%);
  48. right: (750rpx/5) - 15rpx;
  49. width: 30rpx;
  50. height: 136rpx;
  51. }
  52. }
  53. .wallet-item {
  54. flex: 1;
  55. .wallet-img {
  56. width: 50rpx;
  57. height: 50rpx;
  58. }
  59. .wallet-item__detail {
  60. font-size: 40rpx;
  61. width: 180rpx;
  62. text-align: center;
  63. color: $base-color;
  64. }
  65. .wallet-item__title {
  66. font-size: 26rpx;
  67. color: #242424;
  68. margin-top: 20rpx;
  69. }
  70. .item-balance::after {
  71. content: '元';
  72. font-size: 20rpx;
  73. margin-left: 4rpx;
  74. }
  75. .item-score::after {
  76. content: '元';
  77. font-size: 20rpx;
  78. margin-left: 4rpx;
  79. }
  80. .item-coupon::after {
  81. content: '笔';
  82. font-size: 20rpx;
  83. margin-left: 4rpx;
  84. }
  85. }
  86. }
  87. </style>