|
|
@ -301,8 +301,9 @@ |
|
|
const statusClass = item.isRelated ? "status-1" : "status-0"; |
|
|
const statusClass = item.isRelated ? "status-1" : "status-0"; |
|
|
const statusText = item.isRelated ? "已联系" : "未联系"; |
|
|
const statusText = item.isRelated ? "已联系" : "未联系"; |
|
|
|
|
|
|
|
|
// 构建WhatsApp链接 |
|
|
|
|
|
const whatsappPhone = (item.code || '') + (item.telephone || ''); |
|
|
|
|
|
|
|
|
// 构建WhatsApp链接 - 移除国家代码中的+号 |
|
|
|
|
|
const cleanCode = (item.code || '').replace(/\+/g, ''); |
|
|
|
|
|
const whatsappPhone = cleanCode + (item.telephone || ''); |
|
|
const whatsappUrl = `https://api.whatsapp.com/send?phone=${encodeURIComponent(whatsappPhone)}&text=${encodeURIComponent('hello欢迎来到赢在美股')}`; |
|
|
const whatsappUrl = `https://api.whatsapp.com/send?phone=${encodeURIComponent(whatsappPhone)}&text=${encodeURIComponent('hello欢迎来到赢在美股')}`; |
|
|
|
|
|
|
|
|
return ` |
|
|
return ` |
|
|
@ -363,7 +364,9 @@ |
|
|
const item = state.items.find((it) => String(it.id) === String(id)); |
|
|
const item = state.items.find((it) => String(it.id) === String(id)); |
|
|
if (!item) return; |
|
|
if (!item) return; |
|
|
|
|
|
|
|
|
const whatsappPhone = (item.code || '') + (item.telephone || ''); |
|
|
|
|
|
|
|
|
// 移除国家代码中的+号 |
|
|
|
|
|
const cleanCode = (item.code || '').replace(/\+/g, ''); |
|
|
|
|
|
const whatsappPhone = cleanCode + (item.telephone || ''); |
|
|
const whatsappUrl = `https://api.whatsapp.com/send?phone=${encodeURIComponent(whatsappPhone)}&text=${encodeURIComponent('hello欢迎来到赢在美股')}`; |
|
|
const whatsappUrl = `https://api.whatsapp.com/send?phone=${encodeURIComponent(whatsappPhone)}&text=${encodeURIComponent('hello欢迎来到赢在美股')}`; |
|
|
|
|
|
|
|
|
window.open(whatsappUrl, '_blank'); |
|
|
window.open(whatsappUrl, '_blank'); |
|
|
|