Browse Source

Merge branch 'milestone-20251013-宣传夺宝奇兵' into dev

dev
zhaoruhui 2 months ago
parent
commit
1067f220c3
  1. 9
      hcdbqb-management.html

9
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');

Loading…
Cancel
Save