| @@ -9,7 +9,8 @@ Page({ | |||||
| data: { | data: { | ||||
| navigationBarHeight, | navigationBarHeight, | ||||
| showPage: false, | showPage: false, | ||||
| showPage1:false | |||||
| showPage1:false, | |||||
| message:'' | |||||
| }, | }, | ||||
| /** | /** | ||||
| * 生命周期函数--监听页面加载 | * 生命周期函数--监听页面加载 | ||||
| @@ -38,7 +39,8 @@ Page({ | |||||
| }).catch(err=>{ | }).catch(err=>{ | ||||
| console.log(err); | console.log(err); | ||||
| that.setData({ | that.setData({ | ||||
| showPage1: true | |||||
| showPage1: true, | |||||
| message: err.message | |||||
| }) | }) | ||||
| }) | }) | ||||
| }, | }, | ||||
| @@ -5,7 +5,7 @@ | |||||
| </view> | </view> | ||||
| <view class='success' wx:if="{{showPage1}}"> | <view class='success' wx:if="{{showPage1}}"> | ||||
| <text class='tit'>对不起,您未报名参加该活动</text> | |||||
| <text class='tit'>{{message}}</text> | |||||
| <button class='goback' data-id='{{id}}' bindtap='goSignUp'>我要报名</button> | <button class='goback' data-id='{{id}}' bindtap='goSignUp'>我要报名</button> | ||||
| <button class='goback' bindtap='goback'>返回首页</button> | <button class='goback' bindtap='goback'>返回首页</button> | ||||
| </view> | </view> | ||||