验收环节优化

This commit is contained in:
Dev
2026-10-08 21:39:12 +08:00
parent 7e3e999b74
commit f0ad9c713f
5 changed files with 89 additions and 29 deletions
+6 -2
View File
@@ -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' : ''}`,
});
},