|
|
@@ -21,11 +21,31 @@ |
|
|
|
import orderListItem from "./components/order-list-item"; |
|
|
|
import useOrderList from "@/composables/order/useOrderList"; |
|
|
|
import filter from '@/components/filter/filter.vue'; |
|
|
|
import {onUnload,onLoad} from '@dcloudio/uni-app' |
|
|
|
import { reactive } from "vue"; |
|
|
|
const { |
|
|
|
data, |
|
|
|
tabbarRef |
|
|
|
} = useOrderList(); |
|
|
|
|
|
|
|
onLoad((option : any) => { |
|
|
|
if(option.indexPage){ |
|
|
|
state.indexPage = option.indexPage |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
onUnload(()=>{ |
|
|
|
if(state.indexPage == 1){ |
|
|
|
uni.reLaunch({ |
|
|
|
url: `/pages/index/index` |
|
|
|
}); |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
const state = reactive({ |
|
|
|
indexPage:0 |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
|