李金换
2023-04-21 cc7487a59bd4b0fa5bed1dd59f6d0565ace81b8b
force-app/main/default/pages/SearchContactPage.page
@@ -83,8 +83,19 @@
                let contactInfo = new Object();
                contactInfo.Name = obj.currentTarget.innerText;
                contactInfo.ContactId = obj.currentTarget.id;
                //2022-5-7 yjk 增加邮箱、手机号
                var tdNodes = obj.currentTarget.parentNode.childNodes;
                var email = tdNodes[2].innerText;
                var mobile = tdNodes[4].innerText;
                var phone = mobile? mobile :tdNodes[3].innerText;
                contactInfo.email = email;
                contactInfo.phone = phone;
                var selectedContactNode = winMain.document.getElementById('{!JSENCODE($CurrentPage.parameters.contactId)}');
                selectedContactNode.value = JSON.stringify(contactInfo);
                closeWindow();
            }