index.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <route lang="json">
  2. { "style": { "navigationBarTitleText": "客服", "navigationBarBackgroundColor": "#fff" } }
  3. </route>
  4. <script setup lang="ts">
  5. import Card from '@/components/card.vue'
  6. import { phone } from '../../../core/libs/svgs'
  7. import { getAgents } from '../../../core/libs/requests'
  8. import { handleCall } from '../../../core/utils/common'
  9. const { data: agents, run: setAgents } = useRequest(() => getAgents())
  10. const handleClick = () => {
  11. uni.navigateTo({ url: '/pages/mine/orders/detail/index' })
  12. }
  13. onMounted(async () => {
  14. await setAgents()
  15. })
  16. </script>
  17. <template>
  18. <div class="flex-grow flex flex-col gap-4 px-3.5 py-6">
  19. <template v-for="(it, i) in agents" :key="i">
  20. <div>
  21. <Card>
  22. <div class="flex gap-4">
  23. <wd-img
  24. round
  25. width="63"
  26. height="63"
  27. :src="
  28. it.headImgUrl ||
  29. 'https://image.zhuchaohui.com/zhucaohui/d3a335ede20d72ebf873e1b2ebd4835749dde2b694a08dfdffd1781973e3df21.png'
  30. "
  31. />
  32. <div class="flex flex-col flex-1 justify-around">
  33. <div
  34. class="text-start text-black/40 text-lg font-normal font-['PingFang_SC'] leading-normal"
  35. >
  36. <!-- 王玉辉 -->
  37. {{ it.brokerName }}
  38. </div>
  39. <div class="text-black/40 text-sm font-normal font-['PingFang_SC'] leading-normal">
  40. <!-- 平台客服 -->
  41. {{ it.customerName }}
  42. </div>
  43. </div>
  44. <div class="flex items-center">
  45. <wd-button
  46. type="text"
  47. size="small"
  48. custom-class=" bg-[#f2f2f2]! p-0! ml-4"
  49. @click="handleCall(it.mobile)"
  50. >
  51. <wd-img width="28" height="28" :src="phone"></wd-img>
  52. </wd-button>
  53. </div>
  54. </div>
  55. </Card>
  56. </div>
  57. </template>
  58. </div>
  59. </template>