|
@@ -1,6 +1,6 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div class="secondhand">
|
3
|
|
- <SecondHandScreen @click="()=>{}" @onShowMore="onShowMore" />
|
|
3
|
+ <SecondHandScreen @click="(e)=>onSearch()" @onShowMore="onShowMore" />
|
4
|
4
|
<div>
|
5
|
5
|
<van-progress color="#d75e3a" :show-pivot="false" :stroke-width="1" :percentage="percent" />
|
6
|
6
|
<van-list
|
|
@@ -22,7 +22,7 @@
|
22
|
22
|
v-model:show="moreShow"
|
23
|
23
|
position="right"
|
24
|
24
|
:style="{ width: '100%', height: '100%' }"
|
25
|
|
- ><SecondHandMoreScreen />
|
|
25
|
+ ><SecondHandMoreScreen @onBack="moreShow=false"/>
|
26
|
26
|
</van-popup>
|
27
|
27
|
</div>
|
28
|
28
|
</template>
|
|
@@ -34,7 +34,7 @@ import { DropdownMenu, DropdownItem, List, Popup, Progress } from "vant";
|
34
|
34
|
import secondhandscreen from "./components/secondhandscreen";
|
35
|
35
|
import secondhandmorescreen from "./components/secondhandmorescreen";
|
36
|
36
|
import secondhandcard from "./components/secondhandcard";
|
37
|
|
-import { computed, onMounted, ref } from "vue";
|
|
37
|
+import { computed, onMounted, reactive, ref } from "vue";
|
38
|
38
|
import { router } from "../../router";
|
39
|
39
|
|
40
|
40
|
export default {
|
|
@@ -56,14 +56,17 @@ export default {
|
56
|
56
|
setup(props) {
|
57
|
57
|
const moreShow = ref(false);
|
58
|
58
|
const { list, loading, page, getList } = useModel('room')
|
|
59
|
+ const queryData=reactive({
|
|
60
|
+
|
|
61
|
+ })
|
59
|
62
|
|
60
|
63
|
const finished = computed(() => page.pageNo && page.pageNo === page.endRow)
|
61
|
64
|
const percent = computed(() => page.pageNo ? (page.pageNo * 100 / page.endRow) : 100)
|
62
|
65
|
|
63
|
66
|
const onShowMore = () => {
|
64
|
|
- console.log("22");
|
|
67
|
+
|
65
|
68
|
moreShow.value = true;
|
66
|
|
- console.log(moreShow, "22");
|
|
69
|
+
|
67
|
70
|
};
|
68
|
71
|
|
69
|
72
|
const onLoad = () => {
|
|
@@ -92,6 +95,10 @@ export default {
|
92
|
95
|
|
93
|
96
|
// getData();
|
94
|
97
|
|
|
98
|
+ const onSearch =(query)=>{
|
|
99
|
+ // getList()
|
|
100
|
+ }
|
|
101
|
+
|
95
|
102
|
onMounted(() => {
|
96
|
103
|
// getList()
|
97
|
104
|
})
|
|
@@ -106,6 +113,7 @@ export default {
|
106
|
113
|
moreShow,
|
107
|
114
|
onShowMore,
|
108
|
115
|
toDetail,
|
|
116
|
+ onSearch,
|
109
|
117
|
// options,
|
110
|
118
|
// getData,
|
111
|
119
|
};
|