add telephone link

This commit is contained in:
Timi
2026-08-03 01:27:46 +08:00
parent 2f9442e4a2
commit cd1b45eb24
13 changed files with 128 additions and 36 deletions
+3 -1
View File
@@ -16,7 +16,6 @@
<t-cell
v-for="(item, index) in customerOptions"
:key="item.id || item.code || index"
:description="item.telephone || '未填写电话'"
:note="item.code"
hover
@click="selectCustomer(item)"
@@ -27,6 +26,9 @@
<gender-icon :value="item.gender" />
</div>
</template>
<template #description>
<telephone-link :value="item.telephone" placeholder="未填写电话" />
</template>
<template #leftIcon>
<t-image v-if="getCustomerPhotoURL(item)" :src="getCustomerPhotoURL(item)" :alt="item.name" fit="cover" class="avatar" />
<div v-else class="avatar fallback" v-text="(item.name || item.code || '客').slice(0, 1)" />