Prechádzať zdrojové kódy

opt:删除未使用的代码段

Shu 3 mesiacov pred
rodič
commit
372e7849f1
1 zmenil súbory, kde vykonal 1 pridanie a 14 odobranie
  1. 1 14
      subpkg_checkin/addGuest/addGuest.vue

+ 1 - 14
subpkg_checkin/addGuest/addGuest.vue

@@ -138,7 +138,6 @@
 		mapMutations
 	} from 'vuex'
 	import NavigateBar from '../../components/navigateBar/navigate-bar.vue';
-	import moment from 'moment/moment.js';
 	// #ifdef MP-ALIPAY
 	// 最大图片大小为2.0M
 	const maxPhotoSize = 2097152
@@ -179,6 +178,7 @@
 				idCardBackPicPath: '../../static/idcard_upload_back.png',
 				infoList: ['address', 'nation', 'sex', 'birth', 'issuingAuthority', 'issuingDate', 'expiryDate'],
 				userInfoId: 0,
+
 				// #ifdef MP-WEIXIN
 				idCardDirection: '',
 				// img: null,
@@ -342,19 +342,6 @@
 					return
 				}
 
-				let pages = getCurrentPages()
-				let beforePage = pages[pages.length - 2]
-
-				//判断此顾客信息是否已添加
-				if (JSON.stringify(this.checkinInfo) !== '{}' && this.checkinInfo.length > 0) {
-					for (let info of this.checkinInfo) {
-						if (info.idNumber === this.idNumber) {
-							uni.$showMsg('已添加此顾客,请检查填写信息')
-							return
-						}
-					}
-				}
-
 				//判断本地缓存是否有顾客身份证信息,有则checkIdentity
 				for (const info of this.idCardInfo) {
 					if (info.idNumber === this.idNumber && info.name === this.name) {