|
|
@@ -20,10 +20,21 @@ export default {
|
|
|
default: () => [],
|
|
|
},
|
|
|
},
|
|
|
+ onLoad(options) {
|
|
|
+ if (options.orderType) {
|
|
|
+ this.orderType = options.orderType;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ orderType: '',
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
goDetails(item) {
|
|
|
+ const pathName = this.orderType === 2 ? 'groupMealDetails' : 'orderDetails';
|
|
|
uni.navigateTo({
|
|
|
- url: `/pages/finance/orderDetails?id=${item.orderId}`,
|
|
|
+ url: `/pages/finance/${pathName}?id=${item.orderId}`,
|
|
|
});
|
|
|
},
|
|
|
},
|