Commit 3ad0d617 authored by Facius's avatar Facius

improve: 点击订单cell按钮之后的跳转传参优化

parent 76062105
......@@ -112,9 +112,9 @@ export default {
showCountTime,
})
},
handleClickButton(item, type, showCountTime, auditResults) {
handleClickButton(item, type, showCountTime) {
this.$emit('update:visible', false)
this.$emit('click', item, type, showCountTime, auditResults)
this.$emit('click', item, type, showCountTime)
// 去完工
uni.navigateTo({
url:
......@@ -135,7 +135,7 @@ export default {
'&brandId=' +
item.lianbaoBrandId +
'&auditResults=' +
(auditResults ? auditResults.join() : '') +
(item.auditResults ? item.auditResults.join() : '') +
'&orderNumber=' +
item.orderNumber,
})
......
......@@ -440,7 +440,6 @@ export default {
this.orderData,
this.realType,
this.showCountTime ? 'show' : '',
this.auditResults
)
this.otherAction()
},
......@@ -461,7 +460,6 @@ export default {
this.orderData,
this.realType,
this.showCountTime ? 'show' : '',
this.auditResults
)
this.otherAction()
},
......
......@@ -416,7 +416,7 @@ export default {
}
})
},
handleClickCellButton(item, type) {
handleClickCellButton(item) {
if (!this.loaded) return
uni.navigateTo({
url:
......
......@@ -125,7 +125,7 @@ export default {
showCountTime,
})
},
handleClickButton(item, type, showCountTime, auditResults) {
handleClickButton(item) {
uni.navigateTo({
url:
'pages/order/complete?orderId=' +
......@@ -145,7 +145,7 @@ export default {
'&brandId=' +
item.lianbaoBrandId +
'&auditResults=' +
(auditResults ? auditResults.join() : '') +
(item.auditResults ? item.auditResults.join() : '') +
'&orderNumber=' +
item.orderNumber,
})
......
......@@ -147,7 +147,7 @@ export default {
})
},
handleClickCellButton(item, type, showCountTime, auditResults) {
handleClickCellButton(item) {
// 去完工
uni.navigateTo({
url:
......@@ -168,7 +168,7 @@ export default {
'&brandId=' +
item.lianbaoBrandId +
'&auditResults=' +
(auditResults ? auditResults.join() : '') +
(item.auditResults ? item.auditResults.join() : '') +
'&orderNumber=' +
item.orderNumber,
})
......
......@@ -1161,7 +1161,7 @@ export default {
// 申请费用计算
this.calcMoney()
}
console.log("this.form", this.form)
// console.log("this.form", this.form)
},
// 申请费用计算
calcMoney() {
......
......@@ -203,26 +203,28 @@ export default {
handleClickCellButton(item) {
// 去完工
uni.navigateTo({
url:
"pages/order/complete?orderId=" +
item.orderId +
"&categoryId=" +
item.categoryId +
"&orderServiceType=" +
item.orderServiceType +
"&inGuaranteePeriod=" +
item.inGuaranteePeriod +
"&partnerCompanyId=" +
item.partnerCompanyId +
"&auditResultsId=" +
(item.auditResults
? Object.keys(item.auditResults)[
Object.keys(item.auditResults).length - 1
]
: "") +
"&maintainStep=" +
item.maintainStep,
});
url:
'pages/order/complete?orderId=' +
item.orderId +
'&categoryId=' +
item.categoryId +
'&orderServiceType=' +
item.orderServiceType +
'&inGuaranteePeriod=' +
item.inGuaranteePeriod +
'&partnerCompanyId=' +
item.partnerCompanyId +
'&maintainStep=' +
item.maintainStep +
'&orderStatus=' +
item.orderStatus +
'&brandId=' +
item.lianbaoBrandId +
'&auditResults=' +
(item.auditResults ? item.auditResults.join() : '') +
'&orderNumber=' +
item.orderNumber,
})
},
handleClick(item, type, showCountTime) {
// type:类型,showCountTime:是否显示倒计时。详情页面情况太多,提前传值可以避免页面晃动
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment