jufubao-base 1.0.134-beta10 → 1.0.134-beta11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.134-beta10",
3
+ "version": "1.0.134-beta11",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -418,13 +418,8 @@
418
418
  //#ifdef H5
419
419
  try {
420
420
  let url = JSON.parse(item.redirect_data);
421
- if (reg.test(url.url)) {
422
- console.warn(`广告跳转外站: ${url.url}`);
423
- //window.location.href = url.url;
424
- this.$xdUniHelper.navigateTo(url)
425
- } else {
426
- throw Error('地址错误')
427
- }
421
+ console.warn(`广告跳转外站: ${url.url}`);
422
+ this.$xdUniHelper.navigateTo(url)
428
423
  } catch (e) {
429
424
  console.error(e)
430
425
  }
@@ -192,13 +192,8 @@
192
192
  //#ifdef H5
193
193
  try {
194
194
  let url = JSON.parse(item.redirect_data);
195
- if (reg.test(url.url)) {
196
- console.warn(`广告跳转外站: ${url.url}`);
197
- //window.location.href = url.url;
198
- this.$xdUniHelper.navigateTo(url)
199
- } else {
200
- throw Error('地址错误')
201
- }
195
+ console.warn(`广告跳转外站: ${url.url}`);
196
+ this.$xdUniHelper.navigateTo(url)
202
197
  } catch (e) {
203
198
  console.error(e)
204
199
  }
@@ -617,13 +617,8 @@ export default {
617
617
  //#ifdef H5
618
618
  try {
619
619
  let url = JSON.parse(item.redirect_data);
620
- if (reg.test(url.url)) {
621
- console.warn(`广告跳转外站: ${url.url}`);
622
- //window.location.href = url.url;
623
- this.$xdUniHelper.navigateTo(url)
624
- } else {
625
- throw Error("地址错误");
626
- }
620
+ console.warn(`广告跳转外站: ${url.url}`);
621
+ this.$xdUniHelper.navigateTo(url)
627
622
  } catch (e) {
628
623
  console.error(e);
629
624
  }
@@ -158,14 +158,8 @@
158
158
  //#ifdef H5
159
159
  try {
160
160
  let url = JSON.parse(item.redirect_data);
161
- if (reg.test(url.url)) {
162
- console.warn(`广告跳转外站: ${url.url}`);
163
- //window.location.href = url.url;
164
- this.$xdUniHelper.navigateTo(url)
165
- }
166
- else {
167
- throw Error('地址错误')
168
- }
161
+ console.warn(`广告跳转外站: ${url.url}`);
162
+ this.$xdUniHelper.navigateTo(url)
169
163
  } catch (e) {
170
164
  console.error(e)
171
165
  }
@@ -211,12 +211,8 @@
211
211
  //#ifdef H5
212
212
  try {
213
213
  let url = JSON.parse(item.redirect_data);
214
- if (reg.test(url.url)) {
215
- console.warn(`广告跳转外站: ${url.url}`);
216
- this.$xdUniHelper.navigateTo(url)
217
- } else {
218
- throw Error('地址错误')
219
- }
214
+ console.warn(`广告跳转外站: ${url.url}`);
215
+ this.$xdUniHelper.navigateTo(url)
220
216
  } catch (e) {
221
217
  console.error(e)
222
218
  }