@taole/dev-helper 0.0.26 → 0.0.27
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 +3 -11
- package/open-diandian/index.js +3 -11
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"open-diandain-app",
|
|
13
13
|
class extends HTMLElement {
|
|
14
14
|
static get observedAttributes() {
|
|
15
|
+
// 后期考虑去掉fallback_link_ios和fallback_link_android
|
|
15
16
|
return ['appid', 'extinfo', 'fallback_link_ios', 'fallback_link_android'];
|
|
16
17
|
}
|
|
17
18
|
constructor() {
|
|
@@ -144,7 +145,7 @@
|
|
|
144
145
|
if (this._isIOS) {
|
|
145
146
|
this._alink_fallback = 'https://apps.apple.com/us/app/%E5%85%94%E5%B0%8F%E9%93%B2/id6745920939';
|
|
146
147
|
} else {
|
|
147
|
-
this._alink_fallback = "https://
|
|
148
|
+
this._alink_fallback = "https://m.malink.cn/s/rYNfAj";
|
|
148
149
|
}
|
|
149
150
|
} else {
|
|
150
151
|
if (this._isIOS) {
|
|
@@ -172,18 +173,10 @@
|
|
|
172
173
|
} else if (isTxc) {
|
|
173
174
|
if (this._isAndroid) {
|
|
174
175
|
this._alink.href = "tuxiaochan://diandain:8888/splash";
|
|
175
|
-
// setTimeout(() => {
|
|
176
|
-
// window.location.href = "market://details?id=com.tuwan.txc";
|
|
177
|
-
// setTimeout(() => {
|
|
178
|
-
// window.location.href =
|
|
179
|
-
// "https://sj.qq.com/myapp/detail.htm?apkName=com.tuwan.txc";
|
|
180
|
-
// }, 200);
|
|
181
|
-
// }, 200);
|
|
182
176
|
} else if (this._isIOS) { // ios 跳转appstore
|
|
183
|
-
// window.location.href = 'https://apps.apple.com/us/app/%E5%85%94%E5%B0%8F%E9%93%B2/id6745920939';
|
|
184
177
|
this._alink.href = 'https://apps.apple.com/us/app/%E5%85%94%E5%B0%8F%E9%93%B2/id6745920939';
|
|
185
178
|
} else {
|
|
186
|
-
this._alink.href = "https://
|
|
179
|
+
this._alink.href = "https://m.malink.cn/s/rYNfAj";
|
|
187
180
|
}
|
|
188
181
|
}
|
|
189
182
|
}
|
|
@@ -202,7 +195,6 @@
|
|
|
202
195
|
|
|
203
196
|
registerTdiv();
|
|
204
197
|
|
|
205
|
-
// TODO: 之后放出setting入口之类的
|
|
206
198
|
var index = {
|
|
207
199
|
name
|
|
208
200
|
};
|
package/open-diandian/index.js
CHANGED
|
@@ -6,6 +6,7 @@ function defineTag() {
|
|
|
6
6
|
"open-diandain-app",
|
|
7
7
|
class extends HTMLElement {
|
|
8
8
|
static get observedAttributes() {
|
|
9
|
+
// 后期考虑去掉fallback_link_ios和fallback_link_android
|
|
9
10
|
return ['appid', 'extinfo', 'fallback_link_ios', 'fallback_link_android'];
|
|
10
11
|
}
|
|
11
12
|
constructor() {
|
|
@@ -138,7 +139,7 @@ function defineTag() {
|
|
|
138
139
|
if (this._isIOS) {
|
|
139
140
|
this._alink_fallback = 'https://apps.apple.com/us/app/%E5%85%94%E5%B0%8F%E9%93%B2/id6745920939';
|
|
140
141
|
} else {
|
|
141
|
-
this._alink_fallback = "https://
|
|
142
|
+
this._alink_fallback = "https://m.malink.cn/s/rYNfAj";
|
|
142
143
|
}
|
|
143
144
|
} else {
|
|
144
145
|
if (this._isIOS) {
|
|
@@ -166,18 +167,10 @@ function defineTag() {
|
|
|
166
167
|
} else if (isTxc) {
|
|
167
168
|
if (this._isAndroid) {
|
|
168
169
|
this._alink.href = "tuxiaochan://diandain:8888/splash";
|
|
169
|
-
// setTimeout(() => {
|
|
170
|
-
// window.location.href = "market://details?id=com.tuwan.txc";
|
|
171
|
-
// setTimeout(() => {
|
|
172
|
-
// window.location.href =
|
|
173
|
-
// "https://sj.qq.com/myapp/detail.htm?apkName=com.tuwan.txc";
|
|
174
|
-
// }, 200);
|
|
175
|
-
// }, 200);
|
|
176
170
|
} else if (this._isIOS) { // ios 跳转appstore
|
|
177
|
-
// window.location.href = 'https://apps.apple.com/us/app/%E5%85%94%E5%B0%8F%E9%93%B2/id6745920939';
|
|
178
171
|
this._alink.href = 'https://apps.apple.com/us/app/%E5%85%94%E5%B0%8F%E9%93%B2/id6745920939';
|
|
179
172
|
} else {
|
|
180
|
-
this._alink.href = "https://
|
|
173
|
+
this._alink.href = "https://m.malink.cn/s/rYNfAj";
|
|
181
174
|
}
|
|
182
175
|
}
|
|
183
176
|
}
|
|
@@ -196,7 +189,6 @@ function registerTdiv() {
|
|
|
196
189
|
|
|
197
190
|
registerTdiv();
|
|
198
191
|
|
|
199
|
-
// TODO: 之后放出setting入口之类的
|
|
200
192
|
export default {
|
|
201
193
|
name
|
|
202
194
|
}
|