Commit 3ad0d617 authored by Facius's avatar Facius

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

parent 76062105
...@@ -112,9 +112,9 @@ export default { ...@@ -112,9 +112,9 @@ export default {
showCountTime, showCountTime,
}) })
}, },
handleClickButton(item, type, showCountTime, auditResults) { handleClickButton(item, type, showCountTime) {
this.$emit('update:visible', false) this.$emit('update:visible', false)
this.$emit('click', item, type, showCountTime, auditResults) this.$emit('click', item, type, showCountTime)
// 去完工 // 去完工
uni.navigateTo({ uni.navigateTo({
url: url:
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
'&brandId=' + '&brandId=' +
item.lianbaoBrandId + item.lianbaoBrandId +
'&auditResults=' + '&auditResults=' +
(auditResults ? auditResults.join() : '') + (item.auditResults ? item.auditResults.join() : '') +
'&orderNumber=' + '&orderNumber=' +
item.orderNumber, item.orderNumber,
}) })
......
...@@ -440,7 +440,6 @@ export default { ...@@ -440,7 +440,6 @@ export default {
this.orderData, this.orderData,
this.realType, this.realType,
this.showCountTime ? 'show' : '', this.showCountTime ? 'show' : '',
this.auditResults
) )
this.otherAction() this.otherAction()
}, },
...@@ -461,7 +460,6 @@ export default { ...@@ -461,7 +460,6 @@ export default {
this.orderData, this.orderData,
this.realType, this.realType,
this.showCountTime ? 'show' : '', this.showCountTime ? 'show' : '',
this.auditResults
) )
this.otherAction() this.otherAction()
}, },
......
...@@ -416,7 +416,7 @@ export default { ...@@ -416,7 +416,7 @@ export default {
} }
}) })
}, },
handleClickCellButton(item, type) { handleClickCellButton(item) {
if (!this.loaded) return if (!this.loaded) return
uni.navigateTo({ uni.navigateTo({
url: url:
......
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
showCountTime, showCountTime,
}) })
}, },
handleClickButton(item, type, showCountTime, auditResults) { handleClickButton(item) {
uni.navigateTo({ uni.navigateTo({
url: url:
'pages/order/complete?orderId=' + 'pages/order/complete?orderId=' +
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
'&brandId=' + '&brandId=' +
item.lianbaoBrandId + item.lianbaoBrandId +
'&auditResults=' + '&auditResults=' +
(auditResults ? auditResults.join() : '') + (item.auditResults ? item.auditResults.join() : '') +
'&orderNumber=' + '&orderNumber=' +
item.orderNumber, item.orderNumber,
}) })
......
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
}) })
}, },
handleClickCellButton(item, type, showCountTime, auditResults) { handleClickCellButton(item) {
// 去完工 // 去完工
uni.navigateTo({ uni.navigateTo({
url: url:
...@@ -168,7 +168,7 @@ export default { ...@@ -168,7 +168,7 @@ export default {
'&brandId=' + '&brandId=' +
item.lianbaoBrandId + item.lianbaoBrandId +
'&auditResults=' + '&auditResults=' +
(auditResults ? auditResults.join() : '') + (item.auditResults ? item.auditResults.join() : '') +
'&orderNumber=' + '&orderNumber=' +
item.orderNumber, item.orderNumber,
}) })
......
...@@ -1161,7 +1161,7 @@ export default { ...@@ -1161,7 +1161,7 @@ export default {
// 申请费用计算 // 申请费用计算
this.calcMoney() this.calcMoney()
} }
console.log("this.form", this.form) // console.log("this.form", this.form)
}, },
// 申请费用计算 // 申请费用计算
calcMoney() { calcMoney() {
......
...@@ -203,26 +203,28 @@ export default { ...@@ -203,26 +203,28 @@ export default {
handleClickCellButton(item) { handleClickCellButton(item) {
// 去完工 // 去完工
uni.navigateTo({ uni.navigateTo({
url: url:
"pages/order/complete?orderId=" + 'pages/order/complete?orderId=' +
item.orderId + item.orderId +
"&categoryId=" + '&categoryId=' +
item.categoryId + item.categoryId +
"&orderServiceType=" + '&orderServiceType=' +
item.orderServiceType + item.orderServiceType +
"&inGuaranteePeriod=" + '&inGuaranteePeriod=' +
item.inGuaranteePeriod + item.inGuaranteePeriod +
"&partnerCompanyId=" + '&partnerCompanyId=' +
item.partnerCompanyId + item.partnerCompanyId +
"&auditResultsId=" + '&maintainStep=' +
(item.auditResults item.maintainStep +
? Object.keys(item.auditResults)[ '&orderStatus=' +
Object.keys(item.auditResults).length - 1 item.orderStatus +
] '&brandId=' +
: "") + item.lianbaoBrandId +
"&maintainStep=" + '&auditResults=' +
item.maintainStep, (item.auditResults ? item.auditResults.join() : '') +
}); '&orderNumber=' +
item.orderNumber,
})
}, },
handleClick(item, type, showCountTime) { handleClick(item, type, showCountTime) {
// 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