HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs
@@ -41,6 +41,16 @@
        Button btnCancel;
        #endregion
        /// <summary>
        /// imageHeight
        /// OutputYSize 400代表Y分辨率高的值,所以最终得到图片的分辨率为:266*400
        /// 0代表不指定不压缩,直接保存裁剪后的图片,目前只对iOS有效 Android设置小于0的话默认800
        /// </summary>
#if __IOS__
        const int imageHeight = 0;
#else
        const int imageHeight = 400;
#endif
@@ -98,7 +108,7 @@
            topView.AddChidren(new Button() { Height = 1, BackgroundColor = CSS_Color.DividingLineColor, Y = Application.GetRealHeight(188), X = Application.GetRealWidth(16), Width = Application.GetRealWidth(359) });
            #region 社区门禁通行
#region 社区门禁通行
            var communityRow = new FrameLayout()
            {
                Y = topView.Bottom,
@@ -147,7 +157,7 @@
                editFaceInfo(switchStatus, action);
            };
            #endregion
#endregion
            var btnTip = new Button()
@@ -435,7 +445,7 @@
                CropImage.TakePicture((imagePath) =>
                {
                    CropImageCallBack(imagePath, 1, imageName);
                }, imageName, 4, 6, 400);
                }, imageName, 4, 6, imageHeight);
                pictureOptionView.Parent.RemoveFromParent();
            };
@@ -453,7 +463,7 @@
                CropImage.SelectPicture((imagePath) =>
                {
                    CropImageCallBack(imagePath, 2, imageName);
                }, imageName, 4, 6, 400);//OutputYSize目前仅对Android有些 400代表Y的最多分辨率,所以最终得到图片的分辨率为:266*400
                }, imageName, 4, 6, imageHeight);
                pictureOptionView.Parent.RemoveFromParent();
            };
@@ -485,14 +495,14 @@
                            CropImage.TakePicture((imagePath) =>
                            {
                                CropImageCallBack(imagePath, 2, imageName);
                            }, imageName, 4, 6, 400);
                            }, imageName, 4, 6, imageHeight);
                        }
                        else
                        {
                            CropImage.SelectPicture((imagePath) =>
                            {
                                CropImageCallBack(imagePath, 1, imageName);
                            }, imageName, 4, 6, 400);
                            }, imageName, 4, 6, imageHeight);
                        }
                    }
                };
@@ -537,6 +547,7 @@
                    try
                    {
                        string base64string = Convert.ToBase64String(imageBytes);
                        Utlis.WriteLine("上传图片Length:" + imageBytes.Length + " base64:" + base64string);
                        var pack = new HttpServerRequest().FaceSetting(base64string);
                        if (pack != null)
                        {