index.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <div :class="['search-result-default', !isPC && 'search-result-default-h5']">
  3. <div class="search-result-default-main">
  4. <Icon
  5. file="https://qianzhiy-applet.oss-rg-china-mainland.aliyuncs.com/h5/images/static/empty.png"
  6. width="300upx"
  7. height="232upx"
  8. />
  9. <div class="default-text">
  10. {{ TUITranslateService.t("TUISearch.暂无搜索结果") }}
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script setup lang="ts">
  16. import { TUITranslateService } from "@tencentcloud/chat-uikit-engine";
  17. import { isPC } from "../../../../utils/env";
  18. import Icon from "../../../common/Icon.vue";
  19. </script>
  20. <style scoped lang="scss">
  21. .search-result-default {
  22. width: 100%;
  23. flex: 1;
  24. display: flex;
  25. justify-content: center;
  26. align-items: center;
  27. &-h5 {
  28. background-color: #f4f4f4;
  29. }
  30. &-main {
  31. display: flex;
  32. flex-direction: column;
  33. text-align: center;
  34. justify-content: center;
  35. align-items: center;
  36. .default-text {
  37. font-weight: 500;
  38. font-size: 32rpx;
  39. color: #666666;
  40. margin-top: 34upx;
  41. }
  42. }
  43. }
  44. </style>