@fonixtree/magic-design 0.1.95 → 0.1.96

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.
@@ -1,3 +1,6 @@
1
+ .m-image-gallery-mobile {
2
+ min-height: 0.02rem;
3
+ }
1
4
  .m-image-gallery-mobile .content .line {
2
5
  margin-bottom: 0.24rem;
3
6
  }
@@ -26,7 +26,8 @@ var browserVersion = function browserVersion() {
26
26
  isDitoApp: u.indexOf('mydito') > -1,
27
27
  ditoAndroidApp: u.indexOf('mydito') > -1 && (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1),
28
28
  ditoIosApp: u.indexOf('mydito') > -1 && !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
29
- isAshitaApp: u.indexOf('app/ASHITA-APP') > -1
29
+ isAshitaApp: u.indexOf('app/ASHITA-APP') > -1,
30
+ flutterApp: u.indexOf('app/NURI-APP') > -1
30
31
  };
31
32
  };
32
33
 
@@ -248,7 +248,8 @@ var newParseUrl = function newParseUrl(urlObj) {
248
248
  '/social-commerce/my-cashback': 'CASHBACK',
249
249
  '/account/wallet': 'WEBVIEW',
250
250
  '/product/GroupBuy': 'GROUP',
251
- '/search-page': 'SEARCH_PAGE'
251
+ '/search-page': 'SEARCH_PAGE',
252
+ '/commission': 'COMMISSION'
252
253
  };
253
254
  params = {
254
255
  action: 'jump',
@@ -387,7 +388,8 @@ var parseUrl = function parseUrl(url) {
387
388
  '/account/wallet': 'WEBVIEW',
388
389
  '/product/GroupBuy': 'GROUP',
389
390
  '/search-page': 'SEARCH_PAGE',
390
- '/main/my-commission': 'WALLET'
391
+ '/main/my-commission': 'WALLET',
392
+ '/commission': 'COMMISSION'
391
393
  };
392
394
  link = url;
393
395
  params = {
@@ -335,7 +335,7 @@ var clickUrl = function clickUrl(url) {
335
335
  return;
336
336
  }
337
337
 
338
- if ((0, _androidUtil.browserVersion)().isAshitaApp) {
338
+ if ((0, _androidUtil.browserVersion)().isAshitaApp || (0, _androidUtil.browserVersion)().flutterApp) {
339
339
  (0, _androidUtil.sendToApp)(data);
340
340
  } else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
341
341
  // 跳转链接是个绝对路径
@@ -1,3 +1,6 @@
1
+ .m-image-gallery-mobile {
2
+ min-height: 0.02rem;
3
+ }
1
4
  .m-image-gallery-mobile .content .line {
2
5
  margin-bottom: 0.24rem;
3
6
  }
@@ -26,7 +26,8 @@ var browserVersion = function browserVersion() {
26
26
  isDitoApp: u.indexOf('mydito') > -1,
27
27
  ditoAndroidApp: u.indexOf('mydito') > -1 && (u.indexOf('Android') > -1 || u.indexOf('Adr') > -1),
28
28
  ditoIosApp: u.indexOf('mydito') > -1 && !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),
29
- isAshitaApp: u.indexOf('app/ASHITA-APP') > -1
29
+ isAshitaApp: u.indexOf('app/ASHITA-APP') > -1,
30
+ flutterApp: u.indexOf('app/NURI-APP') > -1
30
31
  };
31
32
  };
32
33
 
@@ -248,7 +248,8 @@ var newParseUrl = function newParseUrl(urlObj) {
248
248
  '/social-commerce/my-cashback': 'CASHBACK',
249
249
  '/account/wallet': 'WEBVIEW',
250
250
  '/product/GroupBuy': 'GROUP',
251
- '/search-page': 'SEARCH_PAGE'
251
+ '/search-page': 'SEARCH_PAGE',
252
+ '/commission': 'COMMISSION'
252
253
  };
253
254
  params = {
254
255
  action: 'jump',
@@ -387,7 +388,8 @@ var parseUrl = function parseUrl(url) {
387
388
  '/account/wallet': 'WEBVIEW',
388
389
  '/product/GroupBuy': 'GROUP',
389
390
  '/search-page': 'SEARCH_PAGE',
390
- '/main/my-commission': 'WALLET'
391
+ '/main/my-commission': 'WALLET',
392
+ '/commission': 'COMMISSION'
391
393
  };
392
394
  link = url;
393
395
  params = {
@@ -335,7 +335,7 @@ var clickUrl = function clickUrl(url) {
335
335
  return;
336
336
  }
337
337
 
338
- if ((0, _androidUtil.browserVersion)().isAshitaApp) {
338
+ if ((0, _androidUtil.browserVersion)().isAshitaApp || (0, _androidUtil.browserVersion)().flutterApp) {
339
339
  (0, _androidUtil.sendToApp)(data);
340
340
  } else if ((0, _androidUtil.browserVersion)().isApp && params.link && params.link.startsWith('http')) {
341
341
  // 跳转链接是个绝对路径
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.1.95",
4
+ "version": "0.1.96",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",
Binary file
Binary file