ai-form-footer.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <view class="h-[50px] mx-border-t bg-white mx-shadow-up fx-row fx-bet-cen px-30">
  3. <view class="flex-1 text-2xs text-content">
  4. <text class="text-warning mx-5">{{ total }}</text>
  5. 项结果
  6. </view>
  7. <view class="fx-row gap-20">
  8. <uv-tags shape="circle" plain text="查看志愿记录" @click="goMyVoluntary"/>
  9. <uv-tags shape="circle" :text="btnText" @click="$emit('preview')"/>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. import InjectAIDataMixin from "@/pages/ie/entry-ai-form/components/InjectAIDataMixin";
  15. import {useTransfer} from "@/hooks/useTransfer";
  16. export default {
  17. name: "ai-form-footer",
  18. mixins: [InjectAIDataMixin],
  19. props: {
  20. total: {
  21. type: Number,
  22. default: 0
  23. }
  24. },
  25. setup() {
  26. const {transferTo} = useTransfer()
  27. return {
  28. transferTo
  29. }
  30. },
  31. computed: {
  32. btnText() {
  33. const {length} = this.cart
  34. return '预览志愿表' + (length ? '(' + length + ')' : '')
  35. }
  36. },
  37. methods: {
  38. goMyVoluntary() {
  39. this.transferTo('/pages/ie/entry-ai-list/entry-ai-list')
  40. }
  41. }
  42. }
  43. </script>
  44. <style scoped lang="scss">
  45. ::v-deep(.uv-tags) {
  46. .uv-tags--medium {
  47. padding: 3px 10px;
  48. }
  49. }
  50. </style>