@taole/dev-helper 0.1.20 → 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.
- package/dist/open-diandian.umd.js +17 -17
- package/open-diandian/index.js +18 -18
- package/package.json +1 -1
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
app_name: '点点开黑',
|
|
11
11
|
link_ios: "com.tuwan.diandian://openPage",
|
|
12
12
|
link_android: "intent://diandain:8888/splash#Intent;scheme=taole;package=com.tuwan.yw;S.browser_fallback_url=https://sj.qq.com/myapp/detail.htm?apkName=com.tuwan.yw;end",
|
|
13
|
-
link_harmony: "taole://diandain:8888/splash",
|
|
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
|
-
fallback_link_android: 'https://m.malink.cn/s/3iQziy',
|
|
16
|
-
fallback_link_harmony: 'hiapplink://com.huawei.appmarket?appId=C100212407',
|
|
17
|
-
fallback_fin_5s: 'https://sj.qq.com/appdetail/com.tuwan.yw', // 5秒后跳转的链接(仅安卓)
|
|
13
|
+
link_harmony: "taole://diandain:8888/splash",
|
|
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
|
+
fallback_link_android: 'https://m.malink.cn/s/3iQziy',
|
|
16
|
+
fallback_link_harmony: 'hiapplink://com.huawei.appmarket?appId=C100212407',
|
|
17
|
+
fallback_fin_5s: 'https://sj.qq.com/appdetail/com.tuwan.yw', // 5秒后跳转的链接(仅安卓)
|
|
18
18
|
},
|
|
19
19
|
'wx0e4a6eed634134ce': { // 兔小铲
|
|
20
20
|
app_name: '兔小铲',
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
this._isWechat = /MicroMessenger/i.test(navigator.userAgent);
|
|
78
78
|
this._isAndroid = /Android/i.test(navigator.userAgent);
|
|
79
79
|
this._isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
80
|
-
this._isHarmony = /Harmony/i.test(navigator.userAgent);
|
|
80
|
+
this._isHarmony = /Harmony/i.test(navigator.userAgent) || /HUAWEI/i.test(navigator.userAgent);
|
|
81
81
|
this._isMobile = this._isAndroid || this._isIOS || this._isHarmony;
|
|
82
82
|
this._isConnected = false;
|
|
83
83
|
this._id = id++;
|
|
@@ -376,17 +376,17 @@
|
|
|
376
376
|
this._alink_fallback = this._appInfo.fallback_link_ios;
|
|
377
377
|
this._alink_link = this._appInfo.link_ios || this._alink_fallback;
|
|
378
378
|
this._alink_fin_5s = '';
|
|
379
|
-
} else {
|
|
380
|
-
this._alink_fallback = this._appInfo.fallback_link_android;
|
|
381
|
-
this._alink_link = this._appInfo.link_android || this._alink_fallback;
|
|
382
|
-
if(this._isHarmony && this._appInfo.link_harmony){
|
|
383
|
-
this._alink_link = this._appInfo.link_harmony;
|
|
384
|
-
}
|
|
385
|
-
if(this._isHarmony && this._appInfo.fallback_link_harmony){
|
|
386
|
-
this._alink_fallback = this._appInfo.fallback_link_harmony;
|
|
387
|
-
}
|
|
388
|
-
this._alink_fin_5s = this._appInfo.fallback_fin_5s || '';
|
|
389
|
-
}
|
|
379
|
+
} else {
|
|
380
|
+
this._alink_fallback = this._appInfo.fallback_link_android;
|
|
381
|
+
this._alink_link = this._appInfo.link_android || this._alink_fallback;
|
|
382
|
+
if(this._isHarmony && this._appInfo.link_harmony){
|
|
383
|
+
this._alink_link = this._appInfo.link_harmony;
|
|
384
|
+
}
|
|
385
|
+
if(this._isHarmony && this._appInfo.fallback_link_harmony){
|
|
386
|
+
this._alink_fallback = this._appInfo.fallback_link_harmony;
|
|
387
|
+
}
|
|
388
|
+
this._alink_fin_5s = this._appInfo.fallback_fin_5s || '';
|
|
389
|
+
}
|
|
390
390
|
if (this._openAppTag) {
|
|
391
391
|
this._openAppTag.setAttribute('appid', this._appid);
|
|
392
392
|
this._openAppTag.setAttribute('extinfo', this.getAttribute('extinfo') || "");
|
package/open-diandian/index.js
CHANGED
|
@@ -5,11 +5,11 @@ const appInfoMap = {
|
|
|
5
5
|
app_name: '点点开黑',
|
|
6
6
|
link_ios: "com.tuwan.diandian://openPage",
|
|
7
7
|
link_android: "intent://diandain:8888/splash#Intent;scheme=taole;package=com.tuwan.yw;S.browser_fallback_url=https://sj.qq.com/myapp/detail.htm?apkName=com.tuwan.yw;end",
|
|
8
|
-
link_harmony: "taole://diandain:8888/splash",
|
|
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
|
-
fallback_link_android: 'https://m.malink.cn/s/3iQziy',
|
|
11
|
-
fallback_link_harmony: 'hiapplink://com.huawei.appmarket?appId=C100212407',
|
|
12
|
-
fallback_fin_5s: 'https://sj.qq.com/appdetail/com.tuwan.yw', // 5秒后跳转的链接(仅安卓)
|
|
8
|
+
link_harmony: "taole://diandain:8888/splash",
|
|
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
|
+
fallback_link_android: 'https://m.malink.cn/s/3iQziy',
|
|
11
|
+
fallback_link_harmony: 'hiapplink://com.huawei.appmarket?appId=C100212407',
|
|
12
|
+
fallback_fin_5s: 'https://sj.qq.com/appdetail/com.tuwan.yw', // 5秒后跳转的链接(仅安卓)
|
|
13
13
|
},
|
|
14
14
|
'wx0e4a6eed634134ce': { // 兔小铲
|
|
15
15
|
app_name: '兔小铲',
|
|
@@ -72,7 +72,7 @@ function createOpenDiandianElementClass() {
|
|
|
72
72
|
this._isWechat = /MicroMessenger/i.test(navigator.userAgent);
|
|
73
73
|
this._isAndroid = /Android/i.test(navigator.userAgent);
|
|
74
74
|
this._isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
75
|
-
this._isHarmony = /Harmony/i.test(navigator.userAgent);
|
|
75
|
+
this._isHarmony = /Harmony/i.test(navigator.userAgent) || /HUAWEI/i.test(navigator.userAgent);
|
|
76
76
|
this._isMobile = this._isAndroid || this._isIOS || this._isHarmony;
|
|
77
77
|
this._isConnected = false;
|
|
78
78
|
this._id = id++;
|
|
@@ -371,17 +371,17 @@ function createOpenDiandianElementClass() {
|
|
|
371
371
|
this._alink_fallback = this._appInfo.fallback_link_ios;
|
|
372
372
|
this._alink_link = this._appInfo.link_ios || this._alink_fallback;
|
|
373
373
|
this._alink_fin_5s = '';
|
|
374
|
-
} else {
|
|
375
|
-
this._alink_fallback = this._appInfo.fallback_link_android;
|
|
376
|
-
this._alink_link = this._appInfo.link_android || this._alink_fallback;
|
|
377
|
-
if(this._isHarmony && this._appInfo.link_harmony){
|
|
378
|
-
this._alink_link = this._appInfo.link_harmony;
|
|
379
|
-
}
|
|
380
|
-
if(this._isHarmony && this._appInfo.fallback_link_harmony){
|
|
381
|
-
this._alink_fallback = this._appInfo.fallback_link_harmony;
|
|
382
|
-
}
|
|
383
|
-
this._alink_fin_5s = this._appInfo.fallback_fin_5s || '';
|
|
384
|
-
}
|
|
374
|
+
} else {
|
|
375
|
+
this._alink_fallback = this._appInfo.fallback_link_android;
|
|
376
|
+
this._alink_link = this._appInfo.link_android || this._alink_fallback;
|
|
377
|
+
if(this._isHarmony && this._appInfo.link_harmony){
|
|
378
|
+
this._alink_link = this._appInfo.link_harmony;
|
|
379
|
+
}
|
|
380
|
+
if(this._isHarmony && this._appInfo.fallback_link_harmony){
|
|
381
|
+
this._alink_fallback = this._appInfo.fallback_link_harmony;
|
|
382
|
+
}
|
|
383
|
+
this._alink_fin_5s = this._appInfo.fallback_fin_5s || '';
|
|
384
|
+
}
|
|
385
385
|
if (this._openAppTag) {
|
|
386
386
|
this._openAppTag.setAttribute('appid', this._appid);
|
|
387
387
|
this._openAppTag.setAttribute('extinfo', this.getAttribute('extinfo') || "");
|
|
@@ -408,4 +408,4 @@ function registerTdiv() {
|
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
-
registerTdiv();
|
|
411
|
+
registerTdiv();
|