communityMessage.js 425 B

12345678910111213141516171819
  1. import Api from "../../model/api";
  2. import {formatTime} from "../../utils/utils";
  3. const app = getApp();
  4. app.Base({
  5. data: {},
  6. async requestData() {
  7. const res = await Api.getMyMessage({
  8. pageNum: this.pageNum,
  9. pageSize: this.pageSize
  10. });
  11. res.data.rows.forEach(item => {
  12. item.createTime = formatTime(item.createTime);
  13. })
  14. return res;
  15. },
  16. })