...
|
...
|
@@ -255,23 +255,24 @@ Page({ |
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
console.log(self.data.is_answer, self.data.is_canSend, self.data.is_write)
|
|
|
if (+self.data.is_write == 2 && wx.getStorageSync('is_canSend') == 2) { //没填写个人信息并且不可以发布 =>去填写
|
|
|
// console.log(self.data.is_answer, self.data.is_canSend, self.data.is_write)
|
|
|
console.log(wx.getStorageSync('is_write'), wx.getStorageSync('is_answer'), wx.getStorageSync('is_canSend'))
|
|
|
if (wx.getStorageSync('is_write') == 2 && wx.getStorageSync('is_canSend') == 2) { //没填写个人信息并且不可以发布 =>去填写
|
|
|
self.setData({
|
|
|
is_showUserInfo: true //弹出 去填写个人信息弹框
|
|
|
});
|
|
|
|
|
|
} else if (+self.data.is_write == 1 && wx.getStorageSync('is_answer') == 2) { //已填写且不能发布=>去答题
|
|
|
} else if (wx.getStorageSync('is_write') == 1 && wx.getStorageSync('is_answer') == 2) { //已填写且不能发布=>去答题
|
|
|
self.setData({
|
|
|
is_showAnswer: true, //弹出 去答题弹框
|
|
|
is_showRelease: false,
|
|
|
});
|
|
|
} else if (+self.data.is_write == 1 && wx.getStorageSync('is_canSend') == 1 && wx.getStorageSync('is_answer') == 1) { //已填写且可以发布 =>去发布
|
|
|
} else if (wx.getStorageSync('is_write') == 1 && wx.getStorageSync('is_canSend') == 1 && wx.getStorageSync('is_answer') == 1) { //已填写且可以发布 =>去发布
|
|
|
// console.log('可以发布');
|
|
|
self.setData({
|
|
|
is_showRelease: true //弹出 发布弹框
|
|
|
});
|
|
|
} else if (self.data.is_write == 1 && wx.getStorageSync('is_canSend') == 2 && wx.getStorageSync('is_answer') == 1) {
|
|
|
} else if (wx.getStorageSync('is_write') == 1 && wx.getStorageSync('is_canSend') == 2 && wx.getStorageSync('is_answer') == 1) {
|
|
|
// wx.showToast({title: '等级不够,无法使用发布功能', icon: 'none'});
|
|
|
self.setData({
|
|
|
is_showResult: true //弹出 提示框
|
...
|
...
|
|