myInteractionsDetais.js 598 B

1234567891011121314151617181920212223242526
  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 + '/wx/board/detail/' + this.data.id,
  15. method: "get",
  16. success: function (res) {
  17. console.log(res,"我是详情")
  18. _this.setData({
  19. myContent: res.data.content,
  20. teacherContent: res.data.replyContent
  21. })
  22. // console.log(res, "woakndaola")
  23. }
  24. })
  25. }
  26. })