From 84e76cf2fcbe26142750131d3c27eaac0335e40a Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 11 三月 2021 11:04:08 +0800
Subject: [PATCH] 上传一个添加红外宝 Ios 版本
---
HDL_ON/UI/UI2/FuntionControlView/Music/A31MusicSourcePage.cs | 37 +++++++++++++++++++++++++++++++------
1 files changed, 31 insertions(+), 6 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/Music/A31MusicSourcePage.cs b/HDL_ON/UI/UI2/FuntionControlView/Music/A31MusicSourcePage.cs
index 01344a2..3db0642 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Music/A31MusicSourcePage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Music/A31MusicSourcePage.cs
@@ -64,8 +64,8 @@
areaText.FrameLayoutView(fL1, false);
areaText.nextLevelBtn.X = Application.GetRealWidth(339);
areaText.nextLevelBtn.Y = Application.GetRealHeight(17);
- areaText.nextLevelBtn.Width = Application.GetMinRealAverage(16);
- areaText.nextLevelBtn.Height = Application.GetMinRealAverage(16);
+ areaText.nextLevelBtn.Width = Application.GetRealWidth(16);
+ areaText.nextLevelBtn.Height = Application.GetRealWidth(16);
areaText.nextLevelBtn.UnSelectedImagePath = "MusicIcon/sourceNetx.png";
areaText.lineBtn.BackgroundColor = MusicColor.WhiteColor;
areaText.textBtn.X = Application.GetRealWidth(16);
@@ -286,16 +286,41 @@
});
});
};
+
///QQ闊充箰浜嬩欢
qqMusicSourceView.clickBtn.MouseUpEventHandler += (sender, e) =>
{
- string str = "com.tencent.qqmusic";
- if (Application.DeviceType == Device.Ios)
+ //string str = "com.tencent.qqmusic";
+ //if (Application.DeviceType == Device.Ios)
+ //{
+ // str = "qqmusic:";
+ //}
+ //CommonClass.OpenApp(str);
+
+ bool bol = false;
+ string url = "";
+ try
{
- str = "qqmusic:";
+#if __IOS__
+ bol = HDLUtils.OpenApp("qqmusic://");
+ url = "https://apps.apple.com/cn/app/qq%E9%9F%B3%E4%B9%90-%E8%AE%A9%E7%94%9F%E6%B4%BB%E5%85%85%E6%BB%A1%E9%9F%B3%E4%B9%90/id414603431";
+
+#else
+ bol = HDLUtils.OpenAppWithPackageName("com.tencent.qqmusic");
+ //url = "http://music.qq.com/";
+ url = "market://details?id=com.tencent.qqmusic";
+#endif
+ if (!bol)
+ {
+ new View.TipView().TipBox1(StringId.tip, StringId.qqMsuicTip, () =>
+ {
+ HDLUtils.OpenUrl(url);
+ });
+ }
}
- CommonClass.OpenApp(str);
+ catch { }
};
+
///钃濈墮浜嬩欢
bluetoothSourceView.clickBtn.MouseUpEventHandler += (sender, e) =>
{
--
Gitblit v1.8.0