|
@@ -34,6 +34,7 @@
|
|
import orderItem from '@/pages/merchant/order/components/orderItem.vue';
|
|
import orderItem from '@/pages/merchant/order/components/orderItem.vue';
|
|
import { getOrderListApi } from '@/api/merchant/order';
|
|
import { getOrderListApi } from '@/api/merchant/order';
|
|
export default {
|
|
export default {
|
|
|
|
+ components: { orderItem },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
list1: [
|
|
list1: [
|
|
@@ -51,13 +52,14 @@ export default {
|
|
status: '0',
|
|
status: '0',
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- components: { orderItem },
|
|
|
|
|
|
+
|
|
methods: {
|
|
methods: {
|
|
// 点击切换顶部导航栏
|
|
// 点击切换顶部导航栏
|
|
handlerChangeItem(item) {
|
|
handlerChangeItem(item) {
|
|
this.typeStyle = item.index;
|
|
this.typeStyle = item.index;
|
|
this.getOrderList(item.id);
|
|
this.getOrderList(item.id);
|
|
},
|
|
},
|
|
|
|
+
|
|
async getOrderList(status) {
|
|
async getOrderList(status) {
|
|
let result = Object.assign(
|
|
let result = Object.assign(
|
|
{},
|
|
{},
|
|
@@ -72,11 +74,13 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+
|
|
onShow() {
|
|
onShow() {
|
|
this.getOrderList();
|
|
this.getOrderList();
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
+
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.order {
|
|
.order {
|
|
min-height: calc(100vh - 80rpx);
|
|
min-height: calc(100vh - 80rpx);
|