Authored by 张孝茹

潮流口令页自动返回 男女统一

... ... @@ -118,6 +118,7 @@ class familyModel extends global.yoho.BaseModel {
if (key === 'now') {
val.isNoOpen = true;
val.name = '敬请期待';
}
if (val.login === true) {
... ... @@ -529,9 +530,9 @@ class familyModel extends global.yoho.BaseModel {
let hideTips = true;
result[0].data.gender = (thisGender === '1' ? '男' : '女');
result[0].data.otherGender = (thisGender === '1' ? '女' : '男');
if (result[0].data.gender === '男') {
result[0].data.gender = (thisGender === '1' ? 'BOY' : 'GIRL');
result[0].data.otherGender = (thisGender === '1' ? 'GIRL' : 'BOY');
if (result[0].data.gender === 'BOY') {
result[0].data.genderId = 1;
result[0].data.otherGenderId = 2;
} else {
... ...
... ... @@ -163,11 +163,11 @@ class UserInfo extends Page {
},
}).then(result => {
if (result && result.code === 200) {
location.href = location.href;
if (yoho && yoho.isApp) {
yoho.invokeMethod('go.refreshUserInfomation');
}
location.href = location.href;
} else {
tip.show(result.message);
}
... ...
... ... @@ -158,9 +158,7 @@ class FamilyIndex extends Page {
]
});
}
}).catch(() => {
tip.show('服务异常,请稍后重试');
});
})
}
// 资源位初始化
... ...
... ... @@ -33,6 +33,7 @@ $('.save').click(function() {
success: function(result) {
tip.show(result.message);
if (result.code && result.code === 200) {
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
op: 'YB_MYTREND_TREND_SET_C',
... ... @@ -44,6 +45,11 @@ $('.save').click(function() {
if (yoho && yoho.isApp) {
yoho.invokeMethod('go.refreshUserInfomation');
setTimeout(function() {
yoho.invokeMethod('go.back');
}, 1000);
}
}
}
});
... ...