Yansen 2 years ago
parent
commit
eda544145e

+ 1
- 1
config/prod.js View File

6
     HOST: '"https://wmcj.huoshannews.com"',
6
     HOST: '"https://wmcj.huoshannews.com"',
7
     AD_IMAGE: '"https://h5.njyunzhi.com/images/citizen_banner.png"',
7
     AD_IMAGE: '"https://h5.njyunzhi.com/images/citizen_banner.png"',
8
     DEFAULT_POS: '"116.3476917447715,31.409912844296578"', // 霍山县人民政府 gcj02
8
     DEFAULT_POS: '"116.3476917447715,31.409912844296578"', // 霍山县人民政府 gcj02
9
-    VERSION: '"1.1.21-20230413"',
9
+    VERSION: '"1.1.22-20230413"',
10
   },
10
   },
11
   mini: {},
11
   mini: {},
12
   h5: {
12
   h5: {

+ 4
- 4
src/components/PowerList/index.jsx View File

10
   const { sid, request, params, renderItem, onLoadingChange, onDataChange } = props;
10
   const { sid, request, params, renderItem, onLoadingChange, onDataChange } = props;
11
 
11
 
12
   const pageSize = 5;
12
   const pageSize = 5;
13
-  const pageShowRef = React.useRef(false);
13
+  const pageShowRef = React.useRef(true);
14
   const [loading, setLoading] = React.useState(false);
14
   const [loading, setLoading] = React.useState(false);
15
   const [list, setList] = React.useState([]);
15
   const [list, setList] = React.useState([]);
16
   const [finished, setFinished] = React.useState(true);
16
   const [finished, setFinished] = React.useState(true);
105
     if (pageShowRef.current) {
105
     if (pageShowRef.current) {
106
       refresh(params);
106
       refresh(params);
107
     }
107
     }
108
-  }, [params]);
108
+  }, [params, sid]);
109
 
109
 
110
   React.useImperativeHandle(ref, () => ({
110
   React.useImperativeHandle(ref, () => ({
111
     refresh: () => refresh(params),
111
     refresh: () => refresh(params),
112
     updateData: (dt) => setList(dt),
112
     updateData: (dt) => setList(dt),
113
-  }), [params]);
113
+  }), [params, sid]);
114
 
114
 
115
   React.useEffect(() => {
115
   React.useEffect(() => {
116
     return () => {
116
     return () => {
117
       Taro.removeStorageSync(`list-${sid}`);
117
       Taro.removeStorageSync(`list-${sid}`);
118
     }
118
     }
119
-  }, []);
119
+  }, [sid]);
120
  
120
  
121
   return (
121
   return (
122
     <PowerScrollView
122
     <PowerScrollView

+ 2
- 0
src/components/map/index.jsx View File

42
     ]
42
     ]
43
   }, [location, readOnly]);
43
   }, [location, readOnly]);
44
 
44
 
45
+  console.log('------center-------', center, location)
46
+
45
   const moveTo = (ctx, point) => {
47
   const moveTo = (ctx, point) => {
46
     ctx.moveToLocation({
48
     ctx.moveToLocation({
47
       ...point,
49
       ...point,

+ 3
- 1
src/pages/check/edit/components/LocForm.jsx View File

41
       const reLoc = [y, x].join(',');
41
       const reLoc = [y, x].join(',');
42
       geocoder(reLoc).then(e => setFieldChange('addr', e?.address_component?.street_number || e?.address)).catch(console.error)
42
       geocoder(reLoc).then(e => setFieldChange('addr', e?.address_component?.street_number || e?.address)).catch(console.error)
43
     }
43
     }
44
-  }
44
+  };
45
 
45
 
46
   return (
46
   return (
47
     <View>
47
     <View>
65
         {
65
         {
66
           checkType == 'survey' && (
66
           checkType == 'survey' && (
67
             <Field
67
             <Field
68
+              key="01"
68
               label="社区"
69
               label="社区"
69
               placeholder="请填写社区名称"
70
               placeholder="请填写社区名称"
70
               readonly={readonly}
71
               readonly={readonly}
74
           )
75
           )
75
         }
76
         }
76
         <Field
77
         <Field
78
+          key="02"
77
           readonly={readonly}
79
           readonly={readonly}
78
           label={checkType == 'loc' ? '地址' : '小区'}
80
           label={checkType == 'loc' ? '地址' : '小区'}
79
           placeholder={checkType == 'loc' ? '请输入地址' : '请填写小区名称'}
81
           placeholder={checkType == 'loc' ? '请输入地址' : '请填写小区名称'}