index.js 434 B

12345678910111213141516171819202122232425262728
  1. import {
  2. getMyActivity,
  3. thumbsUp,
  4. deleteActivity
  5. } from '~/api/activity'
  6. Page({
  7. /**
  8. * 页面的初始数据
  9. */
  10. data: {
  11. isMy: false
  12. },
  13. /**
  14. * 生命周期函数--监听页面加载
  15. */
  16. onLoad(options) {
  17. this.getMyActivity()
  18. },
  19. async getMyActivity() {
  20. let res = await getMyActivity()
  21. console.log(res);
  22. },
  23. onShareAppMessage() {
  24. }
  25. })