@taole/dev-helper 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
link_harmony: "taole://diandain:8888/splash",
|
|
14
14
|
fallback_link_ios: "https://apps.apple.com/cn/app/%E7%82%B9%E7%82%B9-%E8%AF%AD%E9%9F%B3%E5%BC%80%E9%BB%91/id1449564746",
|
|
15
15
|
fallback_link_android: 'https://m.malink.cn/s/3iQziy',
|
|
16
|
+
fallback_link_harmony: 'hiapplink://com.huawei.appmarket?appId=C100212407',
|
|
16
17
|
fallback_fin_5s: 'https://sj.qq.com/appdetail/com.tuwan.yw', // 5秒后跳转的链接(仅安卓)
|
|
17
18
|
},
|
|
18
19
|
'wx0e4a6eed634134ce': { // 兔小铲
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
this._isWechat = /MicroMessenger/i.test(navigator.userAgent);
|
|
77
78
|
this._isAndroid = /Android/i.test(navigator.userAgent);
|
|
78
79
|
this._isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
79
|
-
this._isHarmony = /Harmony/i.test(navigator.userAgent);
|
|
80
|
+
this._isHarmony = /Harmony/i.test(navigator.userAgent) || /HUAWEI/i.test(navigator.userAgent);
|
|
80
81
|
this._isMobile = this._isAndroid || this._isIOS || this._isHarmony;
|
|
81
82
|
this._isConnected = false;
|
|
82
83
|
this._id = id++;
|
|
@@ -381,6 +382,9 @@
|
|
|
381
382
|
if(this._isHarmony && this._appInfo.link_harmony){
|
|
382
383
|
this._alink_link = this._appInfo.link_harmony;
|
|
383
384
|
}
|
|
385
|
+
if(this._isHarmony && this._appInfo.fallback_link_harmony){
|
|
386
|
+
this._alink_fallback = this._appInfo.fallback_link_harmony;
|
|
387
|
+
}
|
|
384
388
|
this._alink_fin_5s = this._appInfo.fallback_fin_5s || '';
|
|
385
389
|
}
|
|
386
390
|
if (this._openAppTag) {
|
|
@@ -409,10 +413,6 @@
|
|
|
409
413
|
}
|
|
410
414
|
}
|
|
411
415
|
|
|
412
|
-
registerTdiv();
|
|
413
|
-
|
|
414
|
-
// export default {
|
|
415
|
-
// name
|
|
416
|
-
// }
|
|
416
|
+
registerTdiv();
|
|
417
417
|
|
|
418
418
|
}));
|
package/open-diandian/index.js
CHANGED
|
@@ -8,6 +8,7 @@ const appInfoMap = {
|
|
|
8
8
|
link_harmony: "taole://diandain:8888/splash",
|
|
9
9
|
fallback_link_ios: "https://apps.apple.com/cn/app/%E7%82%B9%E7%82%B9-%E8%AF%AD%E9%9F%B3%E5%BC%80%E9%BB%91/id1449564746",
|
|
10
10
|
fallback_link_android: 'https://m.malink.cn/s/3iQziy',
|
|
11
|
+
fallback_link_harmony: 'hiapplink://com.huawei.appmarket?appId=C100212407',
|
|
11
12
|
fallback_fin_5s: 'https://sj.qq.com/appdetail/com.tuwan.yw', // 5秒后跳转的链接(仅安卓)
|
|
12
13
|
},
|
|
13
14
|
'wx0e4a6eed634134ce': { // 兔小铲
|
|
@@ -71,7 +72,7 @@ function createOpenDiandianElementClass() {
|
|
|
71
72
|
this._isWechat = /MicroMessenger/i.test(navigator.userAgent);
|
|
72
73
|
this._isAndroid = /Android/i.test(navigator.userAgent);
|
|
73
74
|
this._isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
74
|
-
this._isHarmony = /Harmony/i.test(navigator.userAgent);
|
|
75
|
+
this._isHarmony = /Harmony/i.test(navigator.userAgent) || /HUAWEI/i.test(navigator.userAgent);
|
|
75
76
|
this._isMobile = this._isAndroid || this._isIOS || this._isHarmony;
|
|
76
77
|
this._isConnected = false;
|
|
77
78
|
this._id = id++;
|
|
@@ -376,6 +377,9 @@ function createOpenDiandianElementClass() {
|
|
|
376
377
|
if(this._isHarmony && this._appInfo.link_harmony){
|
|
377
378
|
this._alink_link = this._appInfo.link_harmony;
|
|
378
379
|
}
|
|
380
|
+
if(this._isHarmony && this._appInfo.fallback_link_harmony){
|
|
381
|
+
this._alink_fallback = this._appInfo.fallback_link_harmony;
|
|
382
|
+
}
|
|
379
383
|
this._alink_fin_5s = this._appInfo.fallback_fin_5s || '';
|
|
380
384
|
}
|
|
381
385
|
if (this._openAppTag) {
|
|
@@ -405,7 +409,3 @@ function registerTdiv() {
|
|
|
405
409
|
}
|
|
406
410
|
|
|
407
411
|
registerTdiv();
|
|
408
|
-
|
|
409
|
-
// export default {
|
|
410
|
-
// name
|
|
411
|
-
// }
|