m-footer-car.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="m-footer-car">
  3. <view @tap="handleFn" class="m-icon">
  4. <view class="m-num">
  5. {{num}}
  6. </view>
  7. <image style="width: 120upx;height:120upx;" src="../../static/img/icon/shop_button_buy.png" mode="aspectFit"></image>
  8. </view>
  9. <view class="m-price">
  10. {{price}}
  11. </view>
  12. <view class="m-but">
  13. 选好了
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. export default {
  19. name:"m-footer-car",
  20. props:{
  21. price:{
  22. type:String,
  23. value:"",
  24. },
  25. num:{
  26. type:[String,Number],
  27. value:"",
  28. }
  29. },
  30. data() {
  31. return {
  32. };
  33. },
  34. methods:{
  35. handleFn(){
  36. this.$emit("handleFn")
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss">
  42. // 底部
  43. .m-footer-car {
  44. position: fixed;
  45. bottom: 0upx;
  46. width: 100%;
  47. height: 99upx;
  48. border-top: solid 1upx #eee;
  49. background-color: #fff;
  50. z-index: 2;
  51. display: flex;
  52. justify-content: space-between;
  53. align-items: center;
  54. .m-but{
  55. background: #4eb87d;
  56. color:#fff;
  57. height: 100%;
  58. line-height: 99upx;
  59. padding: 0 80upx;
  60. }
  61. .m-icon{
  62. margin-left: 30upx;
  63. margin-bottom: 20upx;
  64. position: relative;
  65. .m-num{
  66. color:#ff582b;
  67. font-size: 28upx;
  68. position: absolute;
  69. left: 60upx;
  70. top: 20upx;
  71. z-index: 100
  72. }
  73. }
  74. .m-price{
  75. color:#333333;
  76. font-size: 30upx;
  77. text-align: left;
  78. flex:1;
  79. padding-left: 20upx;
  80. }
  81. }
  82. </style>