BottomBar.vue 756 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div
  3. class="fixed bottom-0 px-20 left-0 right-0 h-70 z-50 bg-white shadow-[0px_2px_14px_1px_rgba(0,0,0,0.12)] flex justify-center items-center"
  4. >
  5. <span class="text-black-6">总价:</span>
  6. <span class="text-[#FF2222] text-3xl font-semibold">¥{{ totalPrice }}</span>
  7. <van-button
  8. @click="$emit('onOk')"
  9. class="flex-1"
  10. :loading="loading"
  11. style="
  12. background-color: #fd9a00;
  13. color: #fff;
  14. font-weight: bold;
  15. margin-left: 30px;
  16. "
  17. >立即预定</van-button
  18. >
  19. </div>
  20. </template>
  21. <script setup>
  22. defineProps({
  23. totalPrice: {
  24. type: String,
  25. default: "",
  26. },
  27. loading: Boolean,
  28. });
  29. defineEmits(["onOk"]);
  30. </script>
  31. <style lang="scss" scoped></style>