| | |
| | | const saleData = res.datas.saleMethod.find(item => item.Name.includes('题库')) |
| | | if (saleData && !res.datas.purchasedSaleMethodIdList.includes(saleData.Id)) return wx.showModal({ |
| | | title: '提示', |
| | | content: '请先购买题库再答题', |
| | | content: '请先激活或购买题库再答题', |
| | | confirmColor: "#ff6c00", |
| | | cancelColor: "#949494", |
| | | editable: false, //是否显示输入框 |
| | |
| | | } |
| | | res.datas.cmsDatas[0].datas.forEach((item, index) => { |
| | | if (this.data.storeInfo || this.data.jslx) { |
| | | console.log(item.Embedded_QuestionBank_QuestionType) |
| | | if (item.Embedded_QuestionBank_QuestionType == 'singleChoice') { |
| | | pathitem.name = "单选题" |
| | | } else if (item.Embedded_QuestionBank_QuestionType == 'shortAnswer') { |