From 8b9ce384b26c414db32f98e94e088f5334869c2d Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期三, 13 十一月 2019 15:36:28 +0800
Subject: [PATCH] 全部合并了代码,安卓和 IOS 都测试通过了

---
 ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs
index 86513a8..702fbec 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Safety/CoercePswAddContactForm.cs
@@ -42,6 +42,12 @@
             btnIcon.InitControl();
             btnIcon.ButtonClickEvent += ((sender, e) =>
             {
+                Contacts.ContactAction = (phoneName, phoneNum) =>
+                {
+                    //淇濆瓨鑱旂郴浜�
+                    this.SaveCoercePhoneNumber("86", phoneNum, phoneName);
+                };
+                Contacts.Open();
             });
 
             //鍒濆鍖栦腑閮ㄤ俊鎭�
@@ -153,13 +159,16 @@
         /// </summary>
         /// <param name="areaCode"></param>
         /// <param name="phoneNum"></param>
+        /// <param name="strNote"></param>
         private async void SaveCoercePhoneNumber(string areaCode, string phoneNum, string strNote)
         {
-            Dictionary<string, string> dicPhone = new Dictionary<string, string>();
-            dicPhone[phoneNum] = areaCode;
+            var listPhone = new List<string>();
+            listPhone.Add(areaCode + "-" + phoneNum);
+            var listNote = new List<string>();
+            listNote.Add(strNote);
 
             //鍙樻洿
-            var result = await HdlSafeguardLogic.Current.SetCoercePhoneNumber(dicPhone);
+            var result = await HdlSafeguardLogic.Current.SetCoercePhoneNumber(listPhone, listNote);
             if (result == false)
             {
                 return;

--
Gitblit v1.8.0