From cd8cdf7eb281af3b7a5f2b61bd21f1aa0adf7524 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期一, 17 十月 2022 11:51:29 +0800 Subject: [PATCH] 2022年10月17日11:51:16 --- HDL_ON/Entity/Function/InverterInfo.cs | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Entity/Function/InverterInfo.cs b/HDL_ON/Entity/Function/InverterInfo.cs index 5e73d1f..dd94d57 100644 --- a/HDL_ON/Entity/Function/InverterInfo.cs +++ b/HDL_ON/Entity/Function/InverterInfo.cs @@ -1,8 +1,66 @@ 锘縰sing System; using System.Collections.Generic; +using HDL_ON.UI.UI2; +using Shared; namespace HDL_ON.Entity { + + public class Inverter + { + static Inverter _control; + public static Inverter Ins + { + get + { + if (_control == null) + { + _control = new Inverter(); + } + return _control; + } + } + + + WebView _h5Page; + + string showPageUrl = ""; + + public WebView H5Page + { + get + { + if(_h5Page == null) + { + _h5Page = new WebView(); + //_h5Page.CallJS("action('back')"); + } + + + return _h5Page; + } + set + { + _h5Page = value; + } + } + /// <summary> + /// 鍔犺浇鎸囧畾Url鐨剋ebview + /// </summary> + /// <param name="showUrl"></param> + public void ShowWebviewFormUrl(string showUrl) + { + + if (showUrl == showPageUrl) + { + return; + } + showPageUrl = showUrl; + _h5Page.LoadFileUrl(showPageUrl); + } + + } + /// <summary> /// 鍏変紡鏁版嵁 /// </summary> -- Gitblit v1.8.0