+
{{responseData.memberName}}
+ 已认证{{responseData.facialAt}}
-
371006598754784267
-
-
+
{{responseData.idcard}}
+
![]()
@@ -40,10 +39,11 @@
fileList:[],
openPic:[],
openPic2:[],
+ responseData: null,
};
},
created() {
-
+ this.responseData = this.$route.query.responseData;
},
methods: {
deleteFile1(detail){
diff --git a/src/views/sunVillage_info/login_code.vue b/src/views/sunVillage_info/login_code.vue
index 6222773f..2fbf0cd9 100644
--- a/src/views/sunVillage_info/login_code.vue
+++ b/src/views/sunVillage_info/login_code.vue
@@ -75,8 +75,12 @@
idcard:'',
bookId:'',
deptId:null,
+ facialAt:null,
+ isFacial:null,
+ headSculpture:null,
rememberMe:false,
identityCheck:false,
+
},
loading: false,
codeUrl: "", //验证码
@@ -126,10 +130,7 @@
return false;
}
- if (this.formData.identityCheck){
- this.$router.push({path:'/sunVillage_info/identity_check'})
- return;
- }
+
checkFarmer(this.formData).then(response => {
// console.log(response.data)
if (response.code == 200){
@@ -137,9 +138,18 @@
let expires = new Date(new Date() * 1 + seconds * 1000);
getFamilyMemberList({idcard:this.formData.idcard,familyStatus:"02"}).then(res => {
+
const farmerCode = res.rows[0].farmerCode;
+
Cookies.set("farmerCode",farmerCode, { expires: 30 });
Cookies.set("user", response.data, { expires: expires });
+
+ if (this.formData.identityCheck){
+ this.$router.push({
+ path: '/sunVillage_info/identity_check',
+ query: { responseData: response.data }});
+ return;
+ }
this.$router.push({path:'/sunVillage_info/index_code_rights'})
})