@dolphinweex/weex-harmony-transform 0.1.17 → 0.1.18

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": "@dolphinweex/weex-harmony-transform",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "weex harmony adapter",
5
5
  "main": "index.js",
6
6
  "files": [
package/src/adapter.js CHANGED
@@ -332,6 +332,25 @@ let aiSpeechModule = {
332
332
  },
333
333
  }
334
334
 
335
+ let MallModule = {
336
+ name: 'MallModule',
337
+ isLogin: function (callback) {
338
+ weexModule.callNative('MallModule.isLogin', {}, callback);
339
+ },
340
+ getCookie: function (name, callback) {
341
+ weexModule.callNative('MallModule.getCookie', { 'name': name }, callback);
342
+ },
343
+ openWxPageTranslucent: function (finalUrl, options) {
344
+ weexModule.callNative('MallModule.openWxPageTranslucent', { 'finalUrl': finalUrl, 'options': options }, undefined);
345
+ },
346
+ openURL: function (url) {
347
+ weexModule.callNative('MallModule.openURL', { 'url': url }, undefined);
348
+ },
349
+ getWXPayInfo: function (param, callback) {
350
+ weexModule.callNative('MallModule.getWXPayInfo', { 'param': param }, callback);
351
+ }
352
+ }
353
+
335
354
  let deviceInfo = {
336
355
  name: "weex获取全屏高度",
337
356
  enableFullScreenHeight: function (callback) {
@@ -673,5 +692,6 @@ export {
673
692
  nfcModule,
674
693
  router,
675
694
  aiSpeechModule,
676
- modal
695
+ modal,
696
+ MallModule
677
697
  }
@@ -17,6 +17,7 @@ const weexExtModules = [
17
17
  "router",
18
18
  'modal',
19
19
  "aiSpeechModule",
20
+ "MallModule"
20
21
  ]
21
22
 
22
23
  module.exports = weexExtModules