contactsInfo.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <div class="flex flex-col h-full">
  3. <div class="bg-white info flex-1 overflow-y-auto cellnormall">
  4. <van-cell title="联系人姓名" :value="info.name" />
  5. <van-cell title="电话" :value="info.phone" />
  6. <van-cell title="邮箱" :value="info.email" />
  7. <van-cell title="职务" :value="info.position" />
  8. <van-cell title="地址" :value="info.address" />
  9. <van-cell title="性别" :value="info.phone == 1 ? '男' : '女'" />
  10. <van-cell title="负责人">
  11. <template #default>
  12. <TranslationComponent :openId="info.ownerName" />
  13. </template>
  14. </van-cell>
  15. <van-cell title="备注" :value="info.remark" />
  16. </div>
  17. </div>
  18. </template>
  19. <script setup>
  20. import { ref } from 'vue';
  21. import { useLifecycle } from '@hooks/useCommon.js';
  22. const props = defineProps({
  23. info: {
  24. type: Object,
  25. required: true,
  26. default: () => ({})
  27. }
  28. })
  29. useLifecycle({
  30. load: () => {
  31. // 添加加载逻辑
  32. }
  33. });
  34. </script>
  35. <style lang='scss' scoped>
  36. .bottomButton {
  37. margin: 0 14px;
  38. padding-bottom: 30px;
  39. :deep(.van-button) {
  40. margin-bottom: 20px;
  41. }
  42. }
  43. .info {
  44. margin: 8px 14px 30px 14px;
  45. padding: 14px;
  46. }
  47. </style>