Showing
4 changed files
with
23 additions
and
18 deletions
@@ -118,6 +118,7 @@ class familyModel extends global.yoho.BaseModel { | @@ -118,6 +118,7 @@ class familyModel extends global.yoho.BaseModel { | ||
118 | 118 | ||
119 | if (key === 'now') { | 119 | if (key === 'now') { |
120 | val.isNoOpen = true; | 120 | val.isNoOpen = true; |
121 | + val.name = '敬请期待'; | ||
121 | } | 122 | } |
122 | 123 | ||
123 | if (val.login === true) { | 124 | if (val.login === true) { |
@@ -529,9 +530,9 @@ class familyModel extends global.yoho.BaseModel { | @@ -529,9 +530,9 @@ class familyModel extends global.yoho.BaseModel { | ||
529 | let hideTips = true; | 530 | let hideTips = true; |
530 | 531 | ||
531 | 532 | ||
532 | - result[0].data.gender = (thisGender === '1' ? '男' : '女'); | ||
533 | - result[0].data.otherGender = (thisGender === '1' ? '女' : '男'); | ||
534 | - if (result[0].data.gender === '男') { | 533 | + result[0].data.gender = (thisGender === '1' ? 'BOY' : 'GIRL'); |
534 | + result[0].data.otherGender = (thisGender === '1' ? 'GIRL' : 'BOY'); | ||
535 | + if (result[0].data.gender === 'BOY') { | ||
535 | result[0].data.genderId = 1; | 536 | result[0].data.genderId = 1; |
536 | result[0].data.otherGenderId = 2; | 537 | result[0].data.otherGenderId = 2; |
537 | } else { | 538 | } else { |
@@ -163,11 +163,11 @@ class UserInfo extends Page { | @@ -163,11 +163,11 @@ class UserInfo extends Page { | ||
163 | }, | 163 | }, |
164 | }).then(result => { | 164 | }).then(result => { |
165 | if (result && result.code === 200) { | 165 | if (result && result.code === 200) { |
166 | - location.href = location.href; | ||
167 | - | ||
168 | if (yoho && yoho.isApp) { | 166 | if (yoho && yoho.isApp) { |
169 | yoho.invokeMethod('go.refreshUserInfomation'); | 167 | yoho.invokeMethod('go.refreshUserInfomation'); |
170 | } | 168 | } |
169 | + | ||
170 | + location.href = location.href; | ||
171 | } else { | 171 | } else { |
172 | tip.show(result.message); | 172 | tip.show(result.message); |
173 | } | 173 | } |
@@ -33,17 +33,23 @@ $('.save').click(function() { | @@ -33,17 +33,23 @@ $('.save').click(function() { | ||
33 | success: function(result) { | 33 | success: function(result) { |
34 | tip.show(result.message); | 34 | tip.show(result.message); |
35 | 35 | ||
36 | - if (window._yas && window._yas.sendCustomInfo) { | ||
37 | - window._yas.sendCustomInfo({ | ||
38 | - op: 'YB_MYTREND_TREND_SET_C', | ||
39 | - param: JSON.stringify({ | ||
40 | - TREND: trendWord | ||
41 | - }) | ||
42 | - }, true); | ||
43 | - } | 36 | + if (result.code && result.code === 200) { |
37 | + if (window._yas && window._yas.sendCustomInfo) { | ||
38 | + window._yas.sendCustomInfo({ | ||
39 | + op: 'YB_MYTREND_TREND_SET_C', | ||
40 | + param: JSON.stringify({ | ||
41 | + TREND: trendWord | ||
42 | + }) | ||
43 | + }, true); | ||
44 | + } | ||
45 | + | ||
46 | + if (yoho && yoho.isApp) { | ||
47 | + yoho.invokeMethod('go.refreshUserInfomation'); | ||
44 | 48 | ||
45 | - if (yoho && yoho.isApp) { | ||
46 | - yoho.invokeMethod('go.refreshUserInfomation'); | 49 | + setTimeout(function() { |
50 | + yoho.invokeMethod('go.back'); | ||
51 | + }, 1000); | ||
52 | + } | ||
47 | } | 53 | } |
48 | } | 54 | } |
49 | }); | 55 | }); |
-
Please register or login to post a comment