index.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <view class="company-section">
  3. <view class="company-title">
  4. <image class="img" src="/static/image/public/qyjj-icon.png" mode=""></image>
  5. <text class="name">{{companyInfo.name || cardInfo.companyName}}</text>
  6. </view>
  7. <rich-text class="company-text" :nodes="companyInfo.introduce" v-if="companyInfo.introduce"></rich-text>
  8. <EmptyState
  9. v-else
  10. text=""
  11. sub-text="暂时没有企业信息"
  12. image="/static/image/public/no-data.png"
  13. />
  14. </view>
  15. </template>
  16. <script setup>
  17. import EmptyState from '@/components/empty-state/index.vue'
  18. import {
  19. onShareAppMessage
  20. } from '@dcloudio/uni-app';
  21. import {
  22. useUserStore
  23. } from '@/store/modules/user.js'
  24. import {
  25. storeToRefs
  26. } from 'pinia'
  27. const userStore = useUserStore()
  28. const {
  29. companyInfo,
  30. cardInfo
  31. } = storeToRefs(userStore)
  32. </script>
  33. <style lang="scss" scoped>
  34. // 企业简介
  35. .company-section {
  36. background: #ffffff;
  37. .company-title {
  38. display: flex;
  39. align-items: center;
  40. gap: 16rpx;
  41. margin: 38rpx 0 30rpx;
  42. .img{
  43. width: 124rpx;
  44. height: 40rpx;
  45. }
  46. .name{
  47. font-size: 32rpx;
  48. font-weight: 500;
  49. color: #202020;
  50. position: relative;
  51. bottom: 4rpx;
  52. }
  53. }
  54. .company-text {
  55. display: block;
  56. font-size: 28rpx;
  57. color: #666666;
  58. line-height: 1.8;
  59. margin-bottom: 24rpx;
  60. ::v-deep img {
  61. max-width: 100% !important;
  62. height: auto !important;
  63. }
  64. &:last-child {
  65. margin-bottom: 0;
  66. }
  67. }
  68. }
  69. </style>