@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 +1 -1
- package/src/adapter.js +21 -1
- package/src/weexExtModules.js +1 -0
package/package.json
CHANGED
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
|
}
|