riku
2022-09-14 2206df0da6499846c78a358cf95ca33c218a5c5d
pages/m_consult/consultdetailqa/consultdetailqa.js
@@ -33,7 +33,7 @@
    var that = this
    this.getOpenerEventChannel().on('acceptDataFromOpenerPage', function (data) {
      that.setData({
        qId: data.qId
        id: data.id
      })
      that.getQuestion()
@@ -46,7 +46,7 @@
      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: '涉及行政处罚'})
@@ -72,7 +72,7 @@
      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/>')