移除案例展示和详情页面
This commit is contained in:
@@ -279,13 +279,25 @@ Page({
|
||||
demandListClickHandle(e) {
|
||||
const { index } = e.currentTarget.dataset;
|
||||
const item = this.data.demandList[index];
|
||||
if (!item) {
|
||||
return;
|
||||
}
|
||||
// 参与投标仅开发者可进入报价;未入驻先去申请,提交成功后由入驻页返回本页
|
||||
if (item.button && item.button.key === 'bid') {
|
||||
const role = (wx.getStorageSync('userInfo') || {}).role || '';
|
||||
if (role !== 'dev') {
|
||||
wx.navigateTo({
|
||||
url: '/pages/developer/join/index',
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
const { id } = item;
|
||||
let type = this.data.opType;
|
||||
const type = this.data.opType;
|
||||
const opType = type == 'all' || type == 'myQuote' ? 'quote' : 'view';
|
||||
//按后端返回的按钮动作标识判断(acceptPassed=验收),
|
||||
//命中时带标记,详情页据此弹出「先到沟通群体验后再验收」的提示
|
||||
const isAccept = !!item.button && item.button.key === 'acceptPassed';
|
||||
console.log(index, id);
|
||||
wx.navigateTo({
|
||||
url: `/pages/demand/detail/index?id=${id}&opType=${opType}${isAccept ? '&fromAccept=1' : ''}`,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user