张延森 4 gadus atpakaļ
vecāks
revīzija
f3e5776c3c
2 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 1
    0
      src/compents/Picker/index.jsx
  2. 1
    1
      src/pages/house/list/index.jsx

+ 1
- 0
src/compents/Picker/index.jsx Parādīt failu

@@ -7,6 +7,7 @@ export default props => {
7 7
 
8 8
   const handleChange = e => {
9 9
     const inx = e.detail.value - 0
10
+    console.log('---------->>>>', inx, range)
10 11
     setPos(inx)
11 12
     if (props.onChange) {
12 13
       props.onChange(range[inx])

+ 1
- 1
src/pages/house/list/index.jsx Parādīt failu

@@ -144,7 +144,7 @@ let house = (props, ref) => {
144 144
   }, [queryParams]);
145 145
 
146 146
   useEffect(() => {
147
-      setQueryParams({ ...queryParams, shopId: defaultShop })
147
+      setQueryParams({ ...queryParams, shopId: defaultShop, pageNum: 1 })
148 148
   }, [defaultShop])
149 149
 
150 150
   // useDidShow(() => {