mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 00:12:53 +08:00
feat(wechat): add openMiniProgram method (#3380)
This commit is contained in:
parent
be05235a6e
commit
6458640ba7
@ -49,6 +49,12 @@ export class Wechat extends IonicNativePlugin {
|
||||
WEBPAGE: 7;
|
||||
};
|
||||
|
||||
Mini: {
|
||||
RELEASE: 0; // 正式版
|
||||
TEST: 1, // 测试版
|
||||
PREVIEW: 2; // 体验版
|
||||
};
|
||||
|
||||
@Cordova()
|
||||
isInstalled(): Promise<any> {
|
||||
return;
|
||||
@ -167,4 +173,22 @@ export class Wechat extends IonicNativePlugin {
|
||||
chooseInvoiceFromWX(params: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* openMiniProgram exq:app opens wechat mini program
|
||||
*
|
||||
* @example
|
||||
* <code>
|
||||
* params: userName, path, miniprogramType all required
|
||||
* Wechat.openMiniProgram(params, function (data) {
|
||||
* alert(data.extMsg);
|
||||
* }, function (reason) {
|
||||
* alert("Failed: " + reason);
|
||||
* });
|
||||
* </code>
|
||||
*/
|
||||
@Cordova()
|
||||
openMiniProgram(params: any): Promise<any> {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user