Files
xhs-examples/xhs-mini-demos/api-case/get-account-info-sync/get-account-info-sync.js
2025-09-14 00:21:54 +08:00

21 lines
527 B
JavaScript

const __templateJs = require("./templates.js");
const __mergePageOptions = require("../../util/mergePageOptions.js");
Page(__mergePageOptions({
onShareAppMessage() {
return {
title: 'get-account-info-sync',
path: 'package/API/pages/get-account-info-sync/get-account-info-sync'
};
},
data: {
ret: '',
content: ''
},
getAccountInfoSync() {
const ret = xhs.getAccountInfoSync();
this.setData({
ret: JSON.stringify(ret)
});
console.log('ret', ret);
}
}, __templateJs));