1234567891011121314151617181920212223242526 |
- const app = require('../../utils/util.js');
- Page({
- data: {
- id: 0,
- myContent: "",
- teacherContent: ""
- },
- onLoad: function (options) {
- var _this = this;
- _this.setData({
- id: Number(options.id)
- })
- wx.request({
- url: app.globalData.publicUrl3 + '/wx/board/detail/' + this.data.id,
- method: "get",
- success: function (res) {
- console.log(res,"我是详情")
- _this.setData({
- myContent: res.data.content,
- teacherContent: res.data.replyContent
- })
- // console.log(res, "woakndaola")
- }
- })
- }
- })
|