Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
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
4 years ago
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
This diff is collapsed.
Click to expand it.
H5/src/components/BaseNavBar.vue
View file @
bb608855
...
@@ -27,7 +27,6 @@ export default {
...
@@ -27,7 +27,6 @@ export default {
"Publish"
,
"Publish"
,
"FastestProgress"
,
"FastestProgress"
,
"MonthAward"
,
"MonthAward"
,
"Instructions"
,
"Settings"
,
"Settings"
,
"Grade"
,
"Grade"
,
"AirDrop"
,
"AirDrop"
,
...
...
This diff is collapsed.
Click to expand it.
H5/src/views/invite.vue
View file @
bb608855
...
@@ -2,10 +2,11 @@
...
@@ -2,10 +2,11 @@
<div
class=
"invite-code"
>
<div
class=
"invite-code"
>
<div
class=
"nav"
>
<div
class=
"nav"
>
<van-icon
<van-icon
name=
"arrow-left"
name=
"arrow-left"
size=
"20"
size=
"20"
class=
"nav-left"
class=
"nav-left"
@
click=
"$router.go(-1)"
color=
"#ffffff"
@
click=
"$router.go(-1)"
/>
/>
<img
:src=
"imgSrc"
alt=
""
class=
"imgCode"
/>
<img
:src=
"imgSrc"
alt=
""
class=
"imgCode"
/>
</div>
</div>
...
@@ -54,7 +55,7 @@ export default {
...
@@ -54,7 +55,7 @@ export default {
.invite-code
{
.invite-code
{
width
:
100%
;
width
:
100%
;
height
:
100vh
;
height
:
100vh
;
background
:
url("../assets/images/invite1.png")
;
background
:
url("../assets/images/invite
_
1.png")
;
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
.imgCode
{
.imgCode
{
...
...
This diff is collapsed.
Click to expand it.
H5/src/views/modefyAvatar.vue
View file @
bb608855
...
@@ -60,8 +60,10 @@ export default {
...
@@ -60,8 +60,10 @@ export default {
});
});
},
},
onRead
(
file
)
{
onRead
(
file
)
{
this
.
avatar
=
file
.
content
;
if
(
!
localStorage
.
getItem
(
'user'
).
inviteCode
)
{
console
.
log
(
"file"
,
file
);
this
.
$toast
.
fail
(
'当前用户没有邀请码'
);
return
}
const
inviteCode
=
JSON
.
parse
(
localStorage
.
getItem
(
'user'
).
inviteCode
);
const
inviteCode
=
JSON
.
parse
(
localStorage
.
getItem
(
'user'
).
inviteCode
);
const
params
=
{
const
params
=
{
inviteCode
:
inviteCode
inviteCode
:
inviteCode
...
@@ -70,8 +72,12 @@ export default {
...
@@ -70,8 +72,12 @@ export default {
fd
.
append
(
"files"
,
file
.
file
);
fd
.
append
(
"files"
,
file
.
file
);
uploadImage
(
params
,
fd
).
then
(
res
=>
{
uploadImage
(
params
,
fd
).
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
this
.
avatar
=
file
.
content
;
this
.
imageUrl
=
res
.
zxUrl
;
this
.
imageUrl
=
res
.
zxUrl
;
this
.
canSubmit
=
true
;
this
.
canSubmit
=
true
;
}).
catch
(
err
=>
{
console
.
log
(
'上传图像'
,
err
);
this
.
$toast
.
fail
(
'图片上传失败,请重新选择'
);
});
});
},
},
onDeleteAvatar
(
file
,
detail
)
{
onDeleteAvatar
(
file
,
detail
)
{
...
...
This diff is collapsed.
Click to expand it.
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