import { implJsapi } from './base'; export var chooseImage = implJsapi({ alipay: function (instance, args) { return new Promise(function (resolve, reject) { /** * @see https://opendocs.alipay.com/mini/api/media/image/my.chooseimage */ instance.chooseImage({ count: args.count, sourceType: args.sourceType, success: function (res) { resolve(res); }, fail: function (err) { reject(err); }, }); }); }, });