myInteractionsDetais.js 485 B

1234567891011121314151617181920212223
  1. const app = require('../../utils/util.js');
  2. Page({
  3. data: {
  4. id: 0,
  5. myContent: "",
  6. teacherContent: ""
  7. },
  8. onLoad: function (options) {
  9. this.setData({
  10. id: Number(options.id)
  11. })
  12. wx.request({
  13. url: app.globalData.publicUrl + '/wx/board/detail/' + this.data.id,
  14. method: "get",
  15. success: (res)=> {
  16. this.setData({
  17. myContent: res.data.content,
  18. teacherContent: res.data.replyContent
  19. })
  20. }
  21. })
  22. }
  23. })