updated 自动识别bug修复
This commit is contained in:
parent
4b94b5460d
commit
464c1d5840
10
index.html
10
index.html
@ -479,13 +479,15 @@
|
||||
if(value){
|
||||
var result = relationship({text:value.split('的')[0],sex:-1,type:'chain'});
|
||||
if(result.length){
|
||||
var first_name = result[0].split('的').shift();
|
||||
var name = result[0].split('的').pop();
|
||||
if(first_name=='老公'){
|
||||
var isFamen = result.every(function(value){
|
||||
return value.split('的').shift()=='老公';
|
||||
});
|
||||
if(isFamen){
|
||||
$sex[1].checked = true;
|
||||
}else if(first_name=='老婆'){
|
||||
}else{
|
||||
$sex[0].checked = true;
|
||||
}
|
||||
var last_name = result[0].split('的').pop();
|
||||
if(!name){
|
||||
toggleSex($sex[0].checked);
|
||||
}else{
|
||||
|
10
zh-HK.html
10
zh-HK.html
@ -479,13 +479,15 @@
|
||||
if(value){
|
||||
var result = relationship({text:value.split('的')[0],sex:-1,type:'chain'});
|
||||
if(result.length){
|
||||
var first_name = result[0].split('的').shift();
|
||||
var name = result[0].split('的').pop();
|
||||
if(first_name=='老公'){
|
||||
var isFamen = result.every(function(value){
|
||||
return value.split('的').shift()=='老公';
|
||||
});
|
||||
if(isFamen){
|
||||
$sex[1].checked = true;
|
||||
}else if(first_name=='老婆'){
|
||||
}else{
|
||||
$sex[0].checked = true;
|
||||
}
|
||||
var last_name = result[0].split('的').pop();
|
||||
if(!name){
|
||||
toggleSex($sex[0].checked);
|
||||
}else{
|
||||
|
Loading…
x
Reference in New Issue
Block a user