Commit 5fdada2c authored by leiqingsong's avatar leiqingsong

Merge branch 'dev_lqs' into 'master'

修改设置界面的bug

See merge request !109
parents 730ddcb9 1dff062e
...@@ -60,6 +60,7 @@ export default { ...@@ -60,6 +60,7 @@ export default {
}); });
}, },
onRead(file) { onRead(file) {
console.log('读取到图片了', file);
const inviteCode = JSON.parse(localStorage.getItem("user")).inviteCode; const inviteCode = JSON.parse(localStorage.getItem("user")).inviteCode;
if (!inviteCode) { if (!inviteCode) {
this.$toast.fail("当前用户没有邀请码"); this.$toast.fail("当前用户没有邀请码");
......
...@@ -122,12 +122,21 @@ export default { ...@@ -122,12 +122,21 @@ export default {
return; return;
} }
this.inviteeCodeDialog = false; this.inviteeCodeDialog = false;
this.inviteeCode = this.fillCode;
const params = { const params = {
inviteCode: this.fillCode, inviteCode: this.fillCode,
userId: JSON.parse(localStorage.getItem("user")).userId userId: JSON.parse(localStorage.getItem("user")).userId
}; };
fillInviteCode(params).then(); fillInviteCode(params).then(res => {
if (res.code == 0) {
// console.log('成功');
this.inviteeCode = this.fillCode;
} else {
this.$toast.fail(res.message);
}
}).catch(err => {
console.log(err);
this.$toast.fail(err)
});
}, },
fillInviterCode() { fillInviterCode() {
if ( if (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment