| | |
| | | confirm: true, |
| | | value1: '', |
| | | answer: [], |
| | | id: '' |
| | | id: '', |
| | | disabled: false |
| | | }, |
| | | // 去单选页面 |
| | | toRadio(e) { |
| | |
| | | var that = this; |
| | | wx.request({ |
| | | url: app.globalData.url + '/api/question/find/' + id, |
| | | data: { |
| | | userId: wx.getStorageSync("user").id |
| | | }, |
| | | success: function(res) { |
| | | console.log(res) |
| | | if (res.data.code == 0) { |
| | |
| | | [_m]: { |
| | | "paper": { |
| | | "title": res.data.data.title, |
| | | "des": res.data.data.content |
| | | "des": res.data.data.content || '' |
| | | }, |
| | | "psqList": res.data.data.questionDtos |
| | | // "psqList": [{ |
| | | // "isMust": 1, |
| | | // "type": 1, |
| | | // "question": "111", |
| | | // "answerslist": [{ |
| | | // "answer": "11" |
| | | // }, { |
| | | // "answer": "111" |
| | | // }, { |
| | | // "answer": "11" |
| | | // }, { |
| | | // "answer": "111" |
| | | // }], |
| | | // 'value': [] |
| | | // }, { |
| | | // "isMust": 1, |
| | | // "type": 1, |
| | | // "question": "11111", |
| | | // "answerslist": [{ |
| | | // "answer": "111" |
| | | // }, { |
| | | // "answer": "111" |
| | | // }], |
| | | // value: [] |
| | | // }, { |
| | | // "isMust": 1, |
| | | // "type": 0, |
| | | // "question": "11111" |
| | | // }, { |
| | | // "isMust": 0, |
| | | // "type": 1, |
| | | // "question": "wqwqw", |
| | | // "answerslist": [{ |
| | | // "answer": "qw" |
| | | // }, { |
| | | // "answer": "wqw" |
| | | // }, { |
| | | // "answer": "wqw" |
| | | // }] |
| | | // }] |
| | | } |
| | | |
| | | }); |
| | | } else if (res.data.code == 3) { |
| | | that.setData({ |
| | | id: res.data.data.id, |
| | | [_m]: { |
| | | "paper": { |
| | | "title": res.data.data.title, |
| | | "des": res.data.data.content || '' |
| | | }, |
| | | "psqList": res.data.data.questionDtos |
| | | }, |
| | | disabled: true |
| | | |
| | | }); |
| | | } else { |
| | | wx.showModal({ |
| | | title: '提示', |