about.js
541 Bytes
'use strict';
const api = global.yoho.API;
const about = (res) => {
return api.get('', {
method: 'app.document.config'
}, {
code: 200
}).then(result => {
let resu = {};
if (result && result.data) {
resu = {
wxTitle: result.data.wechatAtten,
wxTip: result.data.wechatAttenSub,
wxCopy: result.data.wechatCopy
};
}
resu.isApp = res.yoho.isApp;
return resu;
});
};
module.exports = {
about
};