@taole/dev-helper 0.1.17 → 0.1.19
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 +12 -2
- package/open-diandian/index.js +12 -2
- package/package.json +1 -1
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
'wxcd28679e4d8c1792': { // 点点狼人
|
|
27
27
|
app_name: '点点狼人',
|
|
28
|
-
link_ios: "", // 空缺,后期补充
|
|
28
|
+
link_ios: "https://partygame.tuwan.com/dlappwolf?type=launch", // 空缺,后期补充
|
|
29
29
|
link_android: "diandainwolf://diandain:8888/splash",
|
|
30
30
|
fallback_link_ios: 'https://apps.apple.com/mo/app/%E7%82%B9%E7%82%B9%E7%8B%BC%E4%BA%BA%E6%9D%80-%E8%AF%AD%E9%9F%B3%E7%A4%BE%E4%BA%A4%E6%8E%A8%E7%90%86%E6%B8%B8%E6%88%8F/id1557616226',
|
|
31
31
|
fallback_link_android: 'https://m.malink.cn/s/AJ3ueu',
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
bubbles: true,
|
|
130
130
|
composed: true,
|
|
131
131
|
}));
|
|
132
|
-
if (this._isHarmony || this.
|
|
132
|
+
if (this._isHarmony || this._isSceneLink()) {
|
|
133
133
|
this._showOpenInBrowserHint();
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
@@ -311,6 +311,16 @@
|
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
|
+
_isSceneLink() {
|
|
315
|
+
var sceneAttr = this.getAttribute('scene');
|
|
316
|
+
if (sceneAttr === 'link') {
|
|
317
|
+
return true;
|
|
318
|
+
}
|
|
319
|
+
if (sceneAttr != null && sceneAttr !== '') {
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
322
|
+
return window.location.href.indexOf('scene=link') !== -1;
|
|
323
|
+
}
|
|
314
324
|
_showOpenInBrowserHint() { // 提示用户在浏览器中打开
|
|
315
325
|
this._log('open-diandian: showOpenInBrowserHint');
|
|
316
326
|
let _hHintDiv = document.getElementById('open-diandian-h-hint-div');
|
package/open-diandian/index.js
CHANGED
|
@@ -20,7 +20,7 @@ const appInfoMap = {
|
|
|
20
20
|
},
|
|
21
21
|
'wxcd28679e4d8c1792': { // 点点狼人
|
|
22
22
|
app_name: '点点狼人',
|
|
23
|
-
link_ios: "", // 空缺,后期补充
|
|
23
|
+
link_ios: "https://partygame.tuwan.com/dlappwolf?type=launch", // 空缺,后期补充
|
|
24
24
|
link_android: "diandainwolf://diandain:8888/splash",
|
|
25
25
|
fallback_link_ios: 'https://apps.apple.com/mo/app/%E7%82%B9%E7%82%B9%E7%8B%BC%E4%BA%BA%E6%9D%80-%E8%AF%AD%E9%9F%B3%E7%A4%BE%E4%BA%A4%E6%8E%A8%E7%90%86%E6%B8%B8%E6%88%8F/id1557616226',
|
|
26
26
|
fallback_link_android: 'https://m.malink.cn/s/AJ3ueu',
|
|
@@ -124,7 +124,7 @@ function createOpenDiandianElementClass() {
|
|
|
124
124
|
bubbles: true,
|
|
125
125
|
composed: true,
|
|
126
126
|
}));
|
|
127
|
-
if (this._isHarmony || this.
|
|
127
|
+
if (this._isHarmony || this._isSceneLink()) {
|
|
128
128
|
this._showOpenInBrowserHint();
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
@@ -306,6 +306,16 @@ function createOpenDiandianElementClass() {
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
|
+
_isSceneLink() {
|
|
310
|
+
var sceneAttr = this.getAttribute('scene');
|
|
311
|
+
if (sceneAttr === 'link') {
|
|
312
|
+
return true;
|
|
313
|
+
}
|
|
314
|
+
if (sceneAttr != null && sceneAttr !== '') {
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
return window.location.href.indexOf('scene=link') !== -1;
|
|
318
|
+
}
|
|
309
319
|
_showOpenInBrowserHint() { // 提示用户在浏览器中打开
|
|
310
320
|
this._log('open-diandian: showOpenInBrowserHint');
|
|
311
321
|
let _hHintDiv = document.getElementById('open-diandian-h-hint-div');
|