diff --git a/src/@ionic-native/plugins/wechat/index.ts b/src/@ionic-native/plugins/wechat/index.ts index b9d38279..97f37bcf 100644 --- a/src/@ionic-native/plugins/wechat/index.ts +++ b/src/@ionic-native/plugins/wechat/index.ts @@ -49,6 +49,12 @@ export class Wechat extends IonicNativePlugin { WEBPAGE: 7; }; + Mini: { + RELEASE: 0; // 正式版 + TEST: 1, // 测试版 + PREVIEW: 2; // 体验版 + }; + @Cordova() isInstalled(): Promise { return; @@ -167,4 +173,22 @@ export class Wechat extends IonicNativePlugin { chooseInvoiceFromWX(params: any): Promise { return; } + + /** + * openMiniProgram exq:app opens wechat mini program + * + * @example + * + * params: userName, path, miniprogramType all required + * Wechat.openMiniProgram(params, function (data) { + * alert(data.extMsg); + * }, function (reason) { + * alert("Failed: " + reason); + * }); + * + */ + @Cordova() + openMiniProgram(params: any): Promise { + return; + } }