Bläddra i källkod

移除&上传图片&注册

panhui 5 år sedan
förälder
incheckning
b53821177b

+ 1 - 0
components/FormInput.js

@@ -308,6 +308,7 @@ const FormInput = React.memo(props => {
           style={styles.upload}
           value={props.value}
           changeIcon={props.onChange}
+          aspect={[1, 1]}
         />
       );
     }

+ 1 - 1
components/GoodsCard.js

@@ -161,7 +161,7 @@ export default function GoodsCard(props) {
               </Button>
             </View>
           )}
-          {appearance && isAdd && (
+          {removeEvent && isAdd && (
             <View style={styles.butContent}>
               <Button status="danger" onPress={removeEvent} size="tiny">
                 {remove}

+ 1 - 1
models/userModel.js

@@ -281,7 +281,7 @@ export default {
           (!guideStep || guideStep === "finish")
         ) {
           guideStep = "5";
-        } else if (status === "PENDING") {
+        } else if (status === "PENDING" && !guideStep) {
           guideStep = "5";
         }
         setState({ guideStep: guideStep || "1" });

+ 3 - 0
screens/Attestation/LegalPersonScreen.js

@@ -136,6 +136,7 @@ export default function LegalPersonScreen({ navigation }) {
                 value={idNoImgBefore}
                 changeIcon={setIdNoImgBefore}
                 size={67}
+                aspect={[1, 1]}
               />
               <Text category="c1" status="info" style={styles.text}>
                 证件正面
@@ -147,6 +148,7 @@ export default function LegalPersonScreen({ navigation }) {
                 value={idNoImgAfter}
                 changeIcon={setIdNoImgAfter}
                 size={67}
+                aspect={[1, 1]}
               />
               <Text category="c1" status="info" style={styles.text}>
                 证件反面
@@ -168,6 +170,7 @@ export default function LegalPersonScreen({ navigation }) {
                 value={handheldIdNo}
                 changeIcon={setHandheldIdNo}
                 size={67}
+                aspect={[1, 1]}
               />
             </View>
           </View>

+ 2 - 0
screens/Attestation/QualificationScreen.js

@@ -90,6 +90,7 @@ export default function QualificationScreen({ navigation }) {
             value={beforeImg}
             changeIcon={changeBeforeImg}
             size={67}
+            aspect={[1, 1]}
           />
           <Text category="c1" style={styles.text}>
             营业资质正面
@@ -101,6 +102,7 @@ export default function QualificationScreen({ navigation }) {
             value={afterImg}
             changeIcon={changeAfterImg}
             size={67}
+            aspect={[1, 1]}
           />
           <Text category="c1" style={styles.text}>
             营业资质反面

+ 6 - 0
screens/Attestation/StoreScreen.js

@@ -134,6 +134,7 @@ export default function StoreScreen({ navigation }) {
                 value={doorHeadImg}
                 changeIcon={setDoorHeadImg}
                 size={67}
+                aspect={[1, 1]}
               />
             </View>
           </View>
@@ -153,6 +154,7 @@ export default function StoreScreen({ navigation }) {
                 value={img1}
                 changeIcon={setImg1}
                 size={67}
+                aspect={[1, 1]}
               />
             </View>
             <View style={styles.imgItem2}>
@@ -161,6 +163,7 @@ export default function StoreScreen({ navigation }) {
                 value={img2}
                 changeIcon={setImg2}
                 size={67}
+                aspect={[1, 1]}
               />
             </View>
 
@@ -170,6 +173,7 @@ export default function StoreScreen({ navigation }) {
                 value={img3}
                 changeIcon={setImg3}
                 size={67}
+                aspect={[1, 1]}
               />
             </View>
             <View style={styles.imgItem2}>
@@ -178,6 +182,7 @@ export default function StoreScreen({ navigation }) {
                 value={img4}
                 changeIcon={setImg4}
                 size={67}
+                aspect={[1, 1]}
               />
             </View>
             <View style={styles.imgItem2}>
@@ -186,6 +191,7 @@ export default function StoreScreen({ navigation }) {
                 value={img5}
                 changeIcon={setImg5}
                 size={67}
+                aspect={[1, 1]}
               />
             </View>
           </View>

+ 1 - 0
screens/HomeScreenPage3.js

@@ -184,6 +184,7 @@ export default function HomePage3() {
             changeIcon={img => changeImg(img, index)}
             size={67}
             hasCancel
+            aspect={[1, 1]}
             delEvent={() => {
               delImg(index);
             }}