|
|
@@ -6263,14 +6263,17 @@ export default {
|
|
|
telConfirm(val) {
|
|
|
let item = '';
|
|
|
let answerValue = '';
|
|
|
- if (val.collectionOptionList && val.collectionOptionList.length) {
|
|
|
+ if (
|
|
|
+ val.collectionOptionList &&
|
|
|
+ val.collectionOptionList.length &&
|
|
|
+ val.collectionOptionList[0].answerValue
|
|
|
+ ) {
|
|
|
answerValue = val.collectionOptionList[0].answerValue;
|
|
|
item = val.collectionOptionList[0];
|
|
|
} else {
|
|
|
answerValue = val.answerValue;
|
|
|
item = val;
|
|
|
}
|
|
|
-
|
|
|
if (!/^1[123456789]\d{9}$/.test(answerValue) || answerValue == '') {
|
|
|
this.$toast(val.collectionName + '格式错误');
|
|
|
return;
|