|
|
@@ -361,6 +361,7 @@ export default {
|
|
|
}
|
|
|
let data = {
|
|
|
userId: this.userInfo.id,
|
|
|
+ ...this.info,
|
|
|
home: this.region
|
|
|
};
|
|
|
this.$http.post('/userDetail/save', data, { body: 'json' }).then(() => {
|
|
|
@@ -376,6 +377,7 @@ export default {
|
|
|
this.currentDate = this.dayjs(this.currentDate).format('YYYY.MM.DD');
|
|
|
let data = {
|
|
|
userId: this.userInfo.id,
|
|
|
+ ...this.info,
|
|
|
birthday: this.currentDate
|
|
|
};
|
|
|
this.$http.post('/userDetail/save', data, { body: 'json' }).then(() => {
|
|
|
@@ -390,16 +392,19 @@ export default {
|
|
|
if (this.title == 'gender') {
|
|
|
data = {
|
|
|
...data,
|
|
|
+ ...this.info,
|
|
|
sex: val.name
|
|
|
};
|
|
|
} else if (this.title == 'blood') {
|
|
|
data = {
|
|
|
...data,
|
|
|
+ ...this.info,
|
|
|
blood: val.name
|
|
|
};
|
|
|
} else if (this.title == 'constellation') {
|
|
|
data = {
|
|
|
...data,
|
|
|
+ ...this.info,
|
|
|
constellation: val.name
|
|
|
};
|
|
|
}
|
|
|
@@ -416,6 +421,7 @@ export default {
|
|
|
this.updateFile(e, 'avatar', 300).then(img => {
|
|
|
let data = {
|
|
|
userId: this.userInfo.id,
|
|
|
+ ...this.info,
|
|
|
pic: img
|
|
|
};
|
|
|
this.$http.post('/userDetail/save', data, { body: 'json' }).then(() => {
|
|
|
@@ -436,6 +442,7 @@ export default {
|
|
|
this.updateFile(e, 'bg', 1200).then(img => {
|
|
|
let data = {
|
|
|
userId: this.userInfo.id,
|
|
|
+ ...this.info,
|
|
|
bgpic: img
|
|
|
};
|
|
|
this.$http.post('/userDetail/save', data, { body: 'json' }).then(() => {
|