|
|
@@ -490,6 +490,21 @@ export default {
|
|
|
}
|
|
|
if (this.typeId === '1') {
|
|
|
self.$api.questionsimulate(self.bankId).then(res => {
|
|
|
+ if(res.data.code!=200){
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '没有题目',
|
|
|
+ showCancel: false,
|
|
|
+ confirmText: '返回上级',
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ uni.navigateBack({
|
|
|
+ delta: 1
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
self.simulateId = res.data.data.simulateId;
|
|
|
if (res.data.data.list.length) {
|
|
|
res.data.data.list.forEach((items, indexs) => {
|