statistics.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <view style="height: 128rpx;">
  3. <view class="statistics" id="statisId">
  4. <view class="left">
  5. <img src="@/static/images/icon_gwc@2x.png" alt="">
  6. <u-badge customStyle="position: absolute;top: 0;right: -10%;" type="error" max="99" :value="33">
  7. </u-badge>
  8. </view>
  9. <view class="right">
  10. <view class="price_box">
  11. <view class="price">
  12. ¥2545.99
  13. </view>
  14. <view class="yh_price">
  15. <text class="text_1">优惠金额:</text>
  16. <text class="price_1">¥100.00</text>
  17. <u-icon customStyle="font-size:24rpx;font-weight:bold;color:#EB5757;margin-left:14rpx;"
  18. name="arrow-up"></u-icon>
  19. </view>
  20. </view>
  21. <view class="btn">去结算</view>
  22. </view>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. };
  31. },
  32. onReady() {
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .statistics {
  38. position: fixed;
  39. bottom: 0rpx;
  40. left: 0rpx;
  41. right: 0rpx;
  42. background-color: #fff;
  43. box-shadow: 0rpx 1rpx 8rpx 1rpx rgba(0, 0, 0, 0.3);
  44. height: 128rpx;
  45. display: flex;
  46. align-items: center;
  47. justify-content: space-between;
  48. padding: 20rpx 32rpx 20rpx 40rpx;
  49. &>.left {
  50. width: 64rpx;
  51. height: 64rpx;
  52. position: relative;
  53. &>img {
  54. width: 100%;
  55. height: 100%;
  56. }
  57. }
  58. &>.right {
  59. display: flex;
  60. align-items: center;
  61. &>.price_box {
  62. display: flex;
  63. flex-direction: column;
  64. justify-content: space-between;
  65. &>.price {
  66. align-self: flex-end;
  67. font-weight: bold;
  68. color: #EB5757;
  69. font-size: 32rpx;
  70. }
  71. &>.yh_price {
  72. display: flex;
  73. align-items: center;
  74. &>.text_1 {
  75. color: #828282;
  76. font-size: 26rpx;
  77. }
  78. &>.price_1 {
  79. font-size: 26rpx;
  80. color: #EB5757;
  81. }
  82. }
  83. }
  84. &>.btn {
  85. margin-left: 24rpx;
  86. width: 172rpx;
  87. height: 88rpx;
  88. border-radius: 184rpx;
  89. background: #363C4F;
  90. text-align: center;
  91. line-height: 88rpx;
  92. color: #fff;
  93. font-weight: bold;
  94. font-size: 28rpx;
  95. }
  96. }
  97. }
  98. </style>