my-order.vue 2.1 KB

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