get-system-info.js 421 B

123456789101112131415
  1. import { implJsapi } from './base';
  2. export var getSystemInfo = implJsapi({
  3. alipay: function (instance) {
  4. return new Promise(function (resolve, reject) {
  5. instance.getSystemInfo({
  6. success: function (res) {
  7. resolve(res);
  8. },
  9. fail: function () {
  10. reject();
  11. },
  12. });
  13. });
  14. },
  15. });