|
@@ -403,7 +403,7 @@ Page({
|
|
|
answer.checkPermission({reqdata:{
|
|
|
userId: this.data.user.id
|
|
|
}},r => {
|
|
|
- r.object.status
|
|
|
+ (r.object && r.object.status)
|
|
|
? this.data.user.isRegister
|
|
|
? wx.showModal({
|
|
|
title: '答题须知:',
|
|
@@ -416,13 +416,13 @@ Page({
|
|
|
url: '/pages/contest/answer/answer'
|
|
|
})
|
|
|
}
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
: wx.navigateTo({
|
|
|
url: '/pages/contest/info/info'
|
|
|
})
|
|
|
: wx.showToast({
|
|
|
- title: '比赛期间最多答题三次!',
|
|
|
+ title: r.msg,
|
|
|
icon:'none'
|
|
|
})
|
|
|
})
|