Yansen 2 years ago
parent
commit
eda544145e

+ 1
- 1
config/prod.js View File

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

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

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

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

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

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

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