| | |
| | | var that = this |
| | | this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) { |
| | | that.setData({ |
| | | qId: data.qId |
| | | id: data.id |
| | | }) |
| | | |
| | | that.getQuestion() |
| | |
| | | showloading: true |
| | | }) |
| | | var that = this |
| | | consultservice.getQuestion(app.globalData.accessToken.userId, this.data.qId, { |
| | | consultservice.getQuestion(app.globalData.accessToken.userId, this.data.id, { |
| | | success(res) { |
| | | let questionTag = [] |
| | | if (res.cqIsPunish) questionTag.push({icon: '/res/icons/cq_punish.png', name: '涉及行政处罚'}) |
| | |
| | | showloading: true |
| | | }) |
| | | var that = this |
| | | consultservice.getAnswers(app.globalData.accessToken.userId, this.data.qId, { |
| | | consultservice.getAnswers(app.globalData.accessToken.userId, this.data.id, { |
| | | success(res) { |
| | | res.forEach(r => { |
| | | r.saContent = r.saContent.replaceAll('\\n', '<br/>') |