fangmingyue 1 год назад
Родитель
Сommit
6521a52fa2

+ 1
- 1
config/dev.js Просмотреть файл

@@ -4,7 +4,7 @@ module.exports = {
4 4
   },
5 5
   defineConstants: {
6 6
     // HOST: '"http://127.0.0.1:9087"',
7
-    HOST: '"http://192.168.89.25:9087"',
7
+    HOST: '"http://192.168.89.76:9087"',
8 8
     AD_IMAGE: '"https://h5.njyunzhi.com/images/citizen_banner.png"',
9 9
     DEFAULT_POS: '"116.3476917447715,31.409912844296578"', // 霍山县人民政府 gcj02
10 10
     VERSION: '"1.1.13-20230325"',

+ 6
- 6
src/pages/check/edit/components/Footer/index.jsx Просмотреть файл

@@ -29,10 +29,10 @@ export default (props) => {
29 29
       try {
30 30
         warn(total < 1, '找不到作答题目');
31 31
         onChange(value + 1);
32
-      } finally {}
32
+      } finally { }
33 33
     }
34 34
   }
35
-  
35
+
36 36
   return (
37 37
     <View className={style['qu-footer-wrapper']}>
38 38
       {
@@ -48,19 +48,19 @@ export default (props) => {
48 48
       }
49 49
       <View className={style['qu-footer-act']}>
50 50
         {
51
-          isPrev && <Button type="primary" block plain hairline style={{flex: 1}} onClick={onPrev}>上一题</Button>
51
+          isPrev && <Button type="primary" block plain hairline style={{ flex: 1 }} onClick={onPrev}>上一题</Button>
52 52
         }
53 53
         {
54 54
           value == -1 ? (
55
-            <Button type="primary" block style={{flex: 1, marginLeft: isPrev ? '1em' : 0 }} onClick={onNext}>
55
+            <Button type="primary" block style={{ flex: 1, marginLeft: isPrev ? '1em' : 0 }} onClick={onNext}>
56 56
               {readonly ? '查看测评' : '开始测评'}
57 57
             </Button>
58 58
           ) : (
59 59
             !(readonly && isFinished) && (
60
-              <Button type="primary" block style={{flex: 1, marginLeft: isPrev ? '1em' : 0 }} onClick={onNext}>
60
+              <Button type="primary" block style={{ flex: 1, marginLeft: isPrev ? '1em' : 0 }} onClick={onNext}>
61 61
                 {isFinished ? '提交' : '下一题'}
62 62
               </Button>
63
-              )
63
+            )
64 64
           )
65 65
         }
66 66
       </View>

+ 2
- 0
src/pages/check/edit/components/LocForm.jsx Просмотреть файл

@@ -64,6 +64,7 @@ export default (props) => {
64 64
         .catch(console.error);
65 65
     }
66 66
   };
67
+  console.log('-----------answer------------>', answer);
67 68
 
68 69
   return (
69 70
     <View>
@@ -104,6 +105,7 @@ export default (props) => {
104 105
             readonly={readonly}
105 106
             label="名称"
106 107
             placeholder="请输入名称"
108
+            onChange={(e) => setFieldChange("cardTitle", e.detail)}
107 109
           />
108 110
         )}
109 111
       </CellGroup>

+ 0
- 1
src/pages/check/edit/components/Question.jsx Просмотреть файл

@@ -43,7 +43,6 @@ export default (props) => {
43 43
   //     });
44 44
   //   }
45 45
   // }, [quInfo?.quId]);
46
-  console.log('------------>h');
47 46
   return (
48 47
     <View>
49 48
       <RadioGroup value={answerItem?.answerCode}>

+ 6
- 6
src/pages/check/loc/edit/components/Footer/index.jsx Просмотреть файл

@@ -28,10 +28,10 @@ export default (props) => {
28 28
       try {
29 29
         warn(total < 1, '找不到作答题目');
30 30
         onChange(value + 1);
31
-      } finally {}
31
+      } finally { }
32 32
     }
33 33
   }
34
-  
34
+
35 35
   return (
36 36
     <View className={style['qu-footer-wrapper']}>
37 37
       {
@@ -47,19 +47,19 @@ export default (props) => {
47 47
       }
48 48
       <View className={style['qu-footer-act']}>
49 49
         {
50
-          isPrev && <Button type="primary" block plain hairline style={{flex: 1}} onClick={onPrev}>上一题</Button>
50
+          isPrev && <Button type="primary" block plain hairline style={{ flex: 1 }} onClick={onPrev}>上一题</Button>
51 51
         }
52 52
         {
53 53
           value == -1 ? (
54
-            <Button type="primary" block style={{flex: 1, marginLeft: isPrev ? '1em' : 0 }} onClick={onNext}>
54
+            <Button type="primary" block style={{ flex: 1, marginLeft: isPrev ? '1em' : 0 }} onClick={onNext}>
55 55
               {readonly ? '查看测评' : '开始测评'}
56 56
             </Button>
57 57
           ) : (
58 58
             !(readonly && isFinished) && (
59
-              <Button type="primary" block style={{flex: 1, marginLeft: isPrev ? '1em' : 0 }} onClick={onNext}>
59
+              <Button type="primary" block style={{ flex: 1, marginLeft: isPrev ? '1em' : 0 }} onClick={onNext}>
60 60
                 {isFinished ? '提交' : '下一题'}
61 61
               </Button>
62
-              )
62
+            )
63 63
           )
64 64
         }
65 65
       </View>