diff --git a/hcdbqb-management.html b/hcdbqb-management.html index 665621a..880b0a3 100644 --- a/hcdbqb-management.html +++ b/hcdbqb-management.html @@ -301,8 +301,9 @@ const statusClass = item.isRelated ? "status-1" : "status-0"; 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欢迎来到赢在美股')}`; return ` @@ -363,7 +364,9 @@ const item = state.items.find((it) => String(it.id) === String(id)); 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欢迎来到赢在美股')}`; window.open(whatsappUrl, '_blank');