|
@@ -291,10 +291,6 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -291,10 +291,6 @@ module.exports = class extends global.yoho.BaseModel { |
291
|
let gender,
|
291
|
let gender,
|
292
|
genderArr,
|
292
|
genderArr,
|
293
|
birthday,
|
293
|
birthday,
|
294
|
- birthdayJson,
|
|
|
295
|
- yearArr,
|
|
|
296
|
- monthArr,
|
|
|
297
|
- dayArr,
|
|
|
298
|
profession,
|
294
|
profession,
|
299
|
professionArr,
|
295
|
professionArr,
|
300
|
income,
|
296
|
income,
|
|
@@ -333,11 +329,6 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -333,11 +329,6 @@ module.exports = class extends global.yoho.BaseModel { |
333
|
}
|
329
|
}
|
334
|
}
|
330
|
}
|
335
|
|
331
|
|
336
|
- birthdayJson = that.getBirthday(birthday);
|
|
|
337
|
- yearArr = birthdayJson.yearArr;
|
|
|
338
|
- monthArr = birthdayJson.monthArr;
|
|
|
339
|
- dayArr = birthdayJson.dayArr;
|
|
|
340
|
-
|
|
|
341
|
finalResult.userPersonalInfo = {
|
332
|
finalResult.userPersonalInfo = {
|
342
|
subTitle: '会员信息',
|
333
|
subTitle: '会员信息',
|
343
|
certified: parseInt(userInfo.vip_info.is_student, 10) === 1,
|
334
|
certified: parseInt(userInfo.vip_info.is_student, 10) === 1,
|
|
@@ -372,24 +363,8 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -372,24 +363,8 @@ module.exports = class extends global.yoho.BaseModel { |
372
|
birthday: {
|
363
|
birthday: {
|
373
|
labelText: '生日:',
|
364
|
labelText: '生日:',
|
374
|
key: 'birthday',
|
365
|
key: 'birthday',
|
375
|
- tips: '',
|
|
|
376
|
- selects: [
|
|
|
377
|
- {
|
|
|
378
|
- key: 'year',
|
|
|
379
|
- options: yearArr,
|
|
|
380
|
- unit: '年'
|
|
|
381
|
- },
|
|
|
382
|
- {
|
|
|
383
|
- key: 'month',
|
|
|
384
|
- options: monthArr,
|
|
|
385
|
- unit: '月'
|
|
|
386
|
- },
|
|
|
387
|
- {
|
|
|
388
|
- key: 'day',
|
|
|
389
|
- options: dayArr,
|
|
|
390
|
- unit: '日'
|
|
|
391
|
- }
|
|
|
392
|
- ]
|
366
|
+ tips: '生日信息仅可修改一次,如需修改,请至最新版app进行修改。',
|
|
|
367
|
+ value: birthday
|
393
|
},
|
368
|
},
|
394
|
profession: {
|
369
|
profession: {
|
395
|
labelText: '职业:',
|
370
|
labelText: '职业:',
|
|
@@ -613,12 +588,11 @@ module.exports = class extends global.yoho.BaseModel { |
|
@@ -613,12 +588,11 @@ module.exports = class extends global.yoho.BaseModel { |
613
|
nickname: _.trim(req.body.nickname),
|
588
|
nickname: _.trim(req.body.nickname),
|
614
|
username: _.trim(req.body.username),
|
589
|
username: _.trim(req.body.username),
|
615
|
gender: req.body.gender || 3,
|
590
|
gender: req.body.gender || 3,
|
616
|
- birthday: req.body.year === '' ? '' : that.formatDate(req.body.year, req.body.month, req.body.day),
|
|
|
617
|
profession: req.body.profession || 0,
|
591
|
profession: req.body.profession || 0,
|
618
|
income: req.body.income || 0
|
592
|
income: req.body.income || 0
|
619
|
};
|
593
|
};
|
620
|
|
594
|
|
621
|
- if (!userInfo.nickname || !userInfo.username || userInfo.birthday === '') {
|
595
|
+ if (!userInfo.nickname || !userInfo.username) {
|
622
|
respData = Promise.resolve({
|
596
|
respData = Promise.resolve({
|
623
|
code: 400,
|
597
|
code: 400,
|
624
|
message: '缺失必填项',
|
598
|
message: '缺失必填项',
|