Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
X
XiTianSenMall
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
leiqingsong
XiTianSenMall
Commits
5fdada2c
Commit
5fdada2c
authored
Mar 19, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_lqs' into 'master'
修改设置界面的bug See merge request
!109
parents
730ddcb9
1dff062e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
modefyAvatar.vue
H5/src/views/modefyAvatar.vue
+1
-0
settings.vue
H5/src/views/settings.vue
+11
-2
No files found.
H5/src/views/modefyAvatar.vue
View file @
5fdada2c
...
...
@@ -60,6 +60,7 @@ export default {
});
},
onRead
(
file
)
{
console
.
log
(
'读取到图片了'
,
file
);
const
inviteCode
=
JSON
.
parse
(
localStorage
.
getItem
(
"user"
)).
inviteCode
;
if
(
!
inviteCode
)
{
this
.
$toast
.
fail
(
"当前用户没有邀请码"
);
...
...
H5/src/views/settings.vue
View file @
5fdada2c
...
...
@@ -122,12 +122,21 @@ export default {
return
;
}
this
.
inviteeCodeDialog
=
false
;
this
.
inviteeCode
=
this
.
fillCode
;
const
params
=
{
inviteCode
:
this
.
fillCode
,
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
()
{
if
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment