index.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. const data = ref([{}, {}, {}])
  8. const handleClick = () => {
  9. uni.navigateTo({ url: '/pages/mine/orders/detail/index' })
  10. }
  11. const handleCall = (phone: string) => {
  12. uni.makePhoneCall({ phoneNumber: phone })
  13. }
  14. </script>
  15. <template>
  16. <div class="flex-grow flex flex-col gap-4 px-3.5 py-6">
  17. <template v-for="({}, i) in data" :key="i">
  18. <div>
  19. <Card>
  20. <div class="flex gap-4">
  21. <wd-img
  22. round
  23. width="63"
  24. height="63"
  25. src="https://image.zhuchaohui.com/zhucaohui/d3a335ede20d72ebf873e1b2ebd4835749dde2b694a08dfdffd1781973e3df21.png"
  26. />
  27. <div class="flex flex-col flex-1 justify-around">
  28. <div
  29. class="text-start text-black/40 text-lg font-normal font-['PingFang_SC'] leading-normal"
  30. >
  31. 王玉辉
  32. </div>
  33. <div class="text-black/40 text-sm font-normal font-['PingFang_SC'] leading-normal">
  34. 平台客服
  35. </div>
  36. </div>
  37. <div class="flex items-center">
  38. <wd-button
  39. type="text"
  40. size="small"
  41. custom-class=" bg-[#f2f2f2]! p-0! ml-4"
  42. @click="handleCall('')"
  43. >
  44. <wd-img width="28" height="28" :src="phone"></wd-img>
  45. </wd-button>
  46. </div>
  47. </div>
  48. </Card>
  49. </div>
  50. </template>
  51. </div>
  52. </template>