index.js
595 Bytes
import api from '../../common/api';
export default {
cmsData(id) {
return api.get({
url: '/CmsInfoController/getCmsContent',
api: 'store',
data: {
id: id
}
}).then((result) => {
let resu = '';
if (result && result.code === 200) {
resu = result.data;
}
return resu;
});
},
getList() {
return api.get({
url: '/CmsInfoController/getCmsList',
api: 'store',
code: 200
});
}
};