验收环节优化
This commit is contained in:
@@ -193,12 +193,16 @@ Page({
|
||||
|
||||
demandListClickHandle(e) {
|
||||
const { index } = e.currentTarget.dataset;
|
||||
const { id } = this.data.demandList[index];
|
||||
const item = this.data.demandList[index];
|
||||
const { id } = item;
|
||||
let 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}`,
|
||||
url: `/pages/demand/detail/index?id=${id}&opType=${opType}${isAccept ? '&fromAccept=1' : ''}`,
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user