|
|
@@ -68,7 +68,7 @@ Page({
|
|
|
isLogin: isLogin
|
|
|
})
|
|
|
this.fetchData();
|
|
|
- this.fetchPtList();
|
|
|
+ // this.fetchPtList();
|
|
|
},
|
|
|
|
|
|
onShareAppMessage: function() {
|
|
|
@@ -225,10 +225,17 @@ Page({
|
|
|
}
|
|
|
Object.assign(paramsObj);
|
|
|
positionApply(paramsObj).then(data => {
|
|
|
+ console.log("sdfg",data);
|
|
|
showToast('申请职位成功', 'success')
|
|
|
setTimeout(function() {
|
|
|
wx.navigateBack();
|
|
|
}, 2000)
|
|
|
+ }).catch(data => {
|
|
|
+ console.log('No!',data)
|
|
|
+ showToast(data.errmsg);
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/user-info/user-info',
|
|
|
+ })
|
|
|
})
|
|
|
} else if (res.cancel) {
|
|
|
|
|
|
@@ -271,6 +278,12 @@ Page({
|
|
|
wx.navigateTo({
|
|
|
url: '../pt-detail/index?gd=' + hpPositionGroupId + '&pc=' + self.data.positionCategory + '&pd=' + self.data.hpPositionId,
|
|
|
})
|
|
|
+ }).catch(data => {
|
|
|
+ console.log('No!', data)
|
|
|
+ showToast(data.errmsg);
|
|
|
+ wx.navigateTo({
|
|
|
+ url: '/pages/user-info/user-info',
|
|
|
+ })
|
|
|
})
|
|
|
} else if (res.cancel) {
|
|
|
|
|
|
@@ -378,7 +391,7 @@ Page({
|
|
|
this.setData({
|
|
|
showAllPt: false,
|
|
|
showJoinPt: true,
|
|
|
- joinPtList: this.data.allPtList[index]
|
|
|
+ joinPtList: this.data.storeAction[index]
|
|
|
})
|
|
|
},
|
|
|
|