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
bb608855
Commit
bb608855
authored
Mar 17, 2021
by
leiqingsong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_lqs' into 'master'
修改 See merge request
!87
parents
ebc79318
fb9fbe93
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
8 deletions
+14
-8
invite_1.png
H5/src/assets/images/invite_1.png
+0
-0
BaseNavBar.vue
H5/src/components/BaseNavBar.vue
+0
-1
invite.vue
H5/src/views/invite.vue
+6
-5
modefyAvatar.vue
H5/src/views/modefyAvatar.vue
+8
-2
No files found.
H5/src/assets/images/invite_1.png
0 → 100644
View file @
bb608855
329 KB
H5/src/components/BaseNavBar.vue
View file @
bb608855
...
...
@@ -27,7 +27,6 @@ export default {
"Publish"
,
"FastestProgress"
,
"MonthAward"
,
"Instructions"
,
"Settings"
,
"Grade"
,
"AirDrop"
,
...
...
H5/src/views/invite.vue
View file @
bb608855
...
...
@@ -2,10 +2,11 @@
<div
class=
"invite-code"
>
<div
class=
"nav"
>
<van-icon
name=
"arrow-left"
size=
"20"
class=
"nav-left"
@
click=
"$router.go(-1)"
name=
"arrow-left"
size=
"20"
class=
"nav-left"
color=
"#ffffff"
@
click=
"$router.go(-1)"
/>
<img
:src=
"imgSrc"
alt=
""
class=
"imgCode"
/>
</div>
...
...
@@ -54,7 +55,7 @@ export default {
.invite-code
{
width
:
100%
;
height
:
100vh
;
background
:
url("../assets/images/invite1.png")
;
background
:
url("../assets/images/invite
_
1.png")
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
.imgCode
{
...
...
H5/src/views/modefyAvatar.vue
View file @
bb608855
...
...
@@ -60,8 +60,10 @@ export default {
});
},
onRead
(
file
)
{
this
.
avatar
=
file
.
content
;
console
.
log
(
"file"
,
file
);
if
(
!
localStorage
.
getItem
(
'user'
).
inviteCode
)
{
this
.
$toast
.
fail
(
'当前用户没有邀请码'
);
return
}
const
inviteCode
=
JSON
.
parse
(
localStorage
.
getItem
(
'user'
).
inviteCode
);
const
params
=
{
inviteCode
:
inviteCode
...
...
@@ -70,8 +72,12 @@ export default {
fd
.
append
(
"files"
,
file
.
file
);
uploadImage
(
params
,
fd
).
then
(
res
=>
{
console
.
log
(
res
);
this
.
avatar
=
file
.
content
;
this
.
imageUrl
=
res
.
zxUrl
;
this
.
canSubmit
=
true
;
}).
catch
(
err
=>
{
console
.
log
(
'上传图像'
,
err
);
this
.
$toast
.
fail
(
'图片上传失败,请重新选择'
);
});
},
onDeleteAvatar
(
file
,
detail
)
{
...
...
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