he2802 před 4 roky
rodič
revize
11e64f0e33
1 změnil soubory, kde provedl 15 přidání a 0 odebrání
  1. 15 0
      pages2/bank/question.vue

+ 15 - 0
pages2/bank/question.vue

@@ -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) => {