<template>
<text class="right-phone-text" v-for="(item,index) in telList" :key="index" @click.stop="isPhone(item)">{{ item }}
<text v-if="index < telList.length - 1">,</text>
</text>
</template>
<script>
// 用split方法
const telList = computed(() => {
if(props.data && props.data.telephone) {
return props.data.telephone.split(';')
}
return []
})
const isPhone = (phone: any) => {
uni.makePhoneCall({
phoneNumber: phone
})
}
</script>
11-29
2万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-28
2709
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交