fangmingyue 1 year ago
parent
commit
6521a52fa2

+ 1
- 1
config/dev.js View File

4
   },
4
   },
5
   defineConstants: {
5
   defineConstants: {
6
     // HOST: '"http://127.0.0.1:9087"',
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
     AD_IMAGE: '"https://h5.njyunzhi.com/images/citizen_banner.png"',
8
     AD_IMAGE: '"https://h5.njyunzhi.com/images/citizen_banner.png"',
9
     DEFAULT_POS: '"116.3476917447715,31.409912844296578"', // 霍山县人民政府 gcj02
9
     DEFAULT_POS: '"116.3476917447715,31.409912844296578"', // 霍山县人民政府 gcj02
10
     VERSION: '"1.1.13-20230325"',
10
     VERSION: '"1.1.13-20230325"',

+ 6
- 6
src/pages/check/edit/components/Footer/index.jsx View File

29
       try {
29
       try {
30
         warn(total < 1, '找不到作答题目');
30
         warn(total < 1, '找不到作答题目');
31
         onChange(value + 1);
31
         onChange(value + 1);
32
-      } finally {}
32
+      } finally { }
33
     }
33
     }
34
   }
34
   }
35
-  
35
+
36
   return (
36
   return (
37
     <View className={style['qu-footer-wrapper']}>
37
     <View className={style['qu-footer-wrapper']}>
38
       {
38
       {
48
       }
48
       }
49
       <View className={style['qu-footer-act']}>
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
           value == -1 ? (
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
               {readonly ? '查看测评' : '开始测评'}
56
               {readonly ? '查看测评' : '开始测评'}
57
             </Button>
57
             </Button>
58
           ) : (
58
           ) : (
59
             !(readonly && isFinished) && (
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
                 {isFinished ? '提交' : '下一题'}
61
                 {isFinished ? '提交' : '下一题'}
62
               </Button>
62
               </Button>
63
-              )
63
+            )
64
           )
64
           )
65
         }
65
         }
66
       </View>
66
       </View>

+ 2
- 0
src/pages/check/edit/components/LocForm.jsx View File

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

+ 0
- 1
src/pages/check/edit/components/Question.jsx View File

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

+ 6
- 6
src/pages/check/loc/edit/components/Footer/index.jsx View File

28
       try {
28
       try {
29
         warn(total < 1, '找不到作答题目');
29
         warn(total < 1, '找不到作答题目');
30
         onChange(value + 1);
30
         onChange(value + 1);
31
-      } finally {}
31
+      } finally { }
32
     }
32
     }
33
   }
33
   }
34
-  
34
+
35
   return (
35
   return (
36
     <View className={style['qu-footer-wrapper']}>
36
     <View className={style['qu-footer-wrapper']}>
37
       {
37
       {
47
       }
47
       }
48
       <View className={style['qu-footer-act']}>
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
           value == -1 ? (
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
               {readonly ? '查看测评' : '开始测评'}
55
               {readonly ? '查看测评' : '开始测评'}
56
             </Button>
56
             </Button>
57
           ) : (
57
           ) : (
58
             !(readonly && isFinished) && (
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
                 {isFinished ? '提交' : '下一题'}
60
                 {isFinished ? '提交' : '下一题'}
61
               </Button>
61
               </Button>
62
-              )
62
+            )
63
           )
63
           )
64
         }
64
         }
65
       </View>
65
       </View>