@@ -93,6 +93,13 @@ Page({
break;
}
+ },
+ fail:res=>{
+ wx.showToast({
+ title: '服务器开小差啦!',
+ icon: 'none',
+ duration: 2000
+ })
})
@@ -69,7 +69,8 @@ Page({
},
next:function(){
const idx=this.data.idx+1
- if(this.data.ans.length!=this.data.idx){
+ const cur = this.data.idx -1
+ if (!this.data.ans[cur].answer){
wx.showToast({
title: '请选择答案',
icon: 'none',