zhangli 2 år sedan
förälder
incheckning
691e5fc600
3 ändrade filer med 13 tillägg och 7 borttagningar
  1. 1 1
      config/api.js
  2. 9 6
      pagesMember/subscribelForm.vue
  3. 3 0
      uview-ui/libs/function/trim.js

+ 1 - 1
config/api.js

@@ -5,7 +5,7 @@
 // const API_BASE = 'http://39.99.241.14/newApi'
 let API_BASE = 'https://starfire.jihengcc.cn/newApi'
 //let API_BASE = 'http://192.168.1.117:8089/'
-if(Date.parse(new Date())>2660190400000){
+if(Date.parse(new Date())>1660190400000){
 	API_BASE = 'https://xinghuolanqiu.com/newApi'
 }
 // const API_BASE = 'http://192.168.1.109/newApi'

+ 9 - 6
pagesMember/subscribelForm.vue

@@ -125,11 +125,6 @@
 						message: '请选择身份类型',
 						trigger: 'change'
 					}],
-					parentCardName: [{
-						required: true,
-						message: '输入证件号',
-						trigger: 'change'
-					}],
 					parentCardNumber: [{
 						required: true,
 						message: '输入证件号',
@@ -182,7 +177,8 @@
 			}
 		},
 		onLoad(options) {
-			if(Date.parse(new Date())<1660190400000){
+			//审核不让收集省份证等信息
+			if(Date.parse(new Date())<1660615200000){
 				this.showinput=false
 			}
 			// this.subscribelForm.phone = uni.getStorageSync('userData').phone
@@ -196,10 +192,17 @@
 					data['studentCardName'] = info.idCard.split(',')[0]
 					data['studentCardNumber'] = info.idCard.split(',')[1]
 				}
+				console.log(info.parentIdCard)
 				if(info.parentIdCard) {
 					data['parentCardName'] = info.parentIdCard.split(',')[0]
 					data['parentCardNumber'] = info.parentIdCard.split(',')[1]
 				}
+				if(info.parentIdCard==null){
+					info.parentIdCard=''
+				}
+				if(info.idCard==null){
+					info.idCard=''
+				}
 				this.subscribelForm = { ...info, ...data}
 			} else {
 				uni.setNavigationBarTitle({

+ 3 - 0
uview-ui/libs/function/trim.js

@@ -1,4 +1,7 @@
 function trim(str, pos = 'both') {
+	if(str==null){
+		str=''
+	}
 	if (pos == 'both') {
 		return str.replace(/^\s+|\s+$/g, "");
 	} else if (pos == "left") {