index.js 503 Bytes
Newer Older
zhangpeng committed
1
export default {
张成 committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
  getList(id) {},
  getMsg() {
    return uni.$u.http
      .get('/system/message/list', {})
      .then((res) => {
        return res;
      })
      .catch((err) => {
        uni.showToast({ title: '服务器错误', icon: 'none' });
      });
  },
  read(data) {
    return uni.$u.http
      .put('/system/message', data)
      .then((res) => {
        return res;
      })
      .catch((err) => {
        uni.showToast({ title: '服务器错误', icon: 'none' });
      });
  },
};