myInteractionsDetais.js 557 B

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