UNPKG

@w6s/sdk

Version:

WorkPlusFE JavaScript SDK.

28 lines (27 loc) 1.1 kB
"use strict"; var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; Object.defineProperty(exports, "__esModule", { value: true }); var core = require("../core"); var constants_1 = require("../constants"); /** * 调用小程序 * @description 该接口用来调用小程序,获取小程序返回信息 * @param {LaunchMiniProgramOptions} [options] * @module webview * @returns 无 */ function launchMiniProgram(options) { var success = options.success, fail = options.fail, data = __rest(options, ["success", "fail"]); return core.exec(constants_1.WORKPLUS_WEBVIEW, 'launchMiniProgram', [data], success, fail); } exports.default = launchMiniProgram;