Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
get-up-early
Overview
Overview
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
baihong
get-up-early
Commits
0fefa2bd
Commit
0fefa2bd
authored
Apr 21, 2021
by
baihong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:新增上传成功提示弹窗
parent
7b7f5299
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
4 deletions
+52
-4
home.vue
pages/home/home.vue
+52
-4
ic_camera@2x.png
static/imgs/ic_camera@2x.png
+0
-0
ic_play_02@2x.png
static/imgs/ic_play_02@2x.png
+0
-0
No files found.
pages/home/home.vue
View file @
0fefa2bd
...
...
@@ -126,7 +126,7 @@
<view
class=
"top"
>
上传图片
</view>
<view
class=
"upload-main"
>
<view
class=
"item"
>
<image
src=
"../../static/imgs/ic_
gallery
@2x.png"
mode=
""
></image>
<image
src=
"../../static/imgs/ic_
camera
@2x.png"
mode=
""
></image>
<text>
照相
</text>
</view>
<view
class=
"item"
>
...
...
@@ -137,6 +137,14 @@
<view
class=
"close"
@
click=
"showUpload=false"
>
取消
</view>
</view>
</u-popup>
<u-popup
v-model=
"showSuccess"
mode=
"center"
width=
"673rpx"
height=
"567rpx"
>
<view
class=
"success-popup"
>
<image
src=
"../../static/imgs/ic_bay_01@2x.png"
mode=
""
></image>
<p>
上传成功
</p>
<text>
请在个人中心查看审核状态
</text>
<view
class=
"close"
@
click=
"showSuccess=false"
>
知道了
</view>
</view>
</u-popup>
</view>
</
template
>
...
...
@@ -149,7 +157,8 @@
data
()
{
return
{
show
:
false
,
showUpload
:
true
,
showUpload
:
false
,
showSuccess
:
true
,
src
:
'https://t7.baidu.com/it/u=1951548898,3927145&fm=193&f=GIF'
,
number
:
0
,
};
...
...
@@ -182,8 +191,8 @@
},
success
:
(
uploadFileRes
)
=>
{
let
file_path
=
JSON
.
parse
(
uploadFileRes
.
data
).
data
.
file_path
_this
.
member_avatar
=
file_path
_this
.
infoUpdate
(
file_path
)
//
_this.member_avatar = file_path
//
_this.infoUpdate(file_path)
}
});
}
...
...
@@ -209,6 +218,45 @@
.app
{
background
:
#f5f7f9
;
height
:
100vh
;
.success-popup
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
image{
width
:
108
rpx
;
height
:
108
rpx
;
margin
:
83
rpx
0
48
rpx
0
;
}
p
{
font-size
:
36
rpx
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
50
rpx
;
}
text
{
font-size
:
26
rpx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
37
rpx
;
margin
:
16
rpx
0
69
rpx
0
;
}
.close
{
width
:
440
rpx
;
height
:
74
rpx
;
background
:
#FFC915
;
border-radius
:
4
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
28
rpx
;
font-family
:
PingFangSC-Semibold
,
PingFang
SC
;
font-weight
:
600
;
color
:
#000000
;
line-height
:
40
rpx
;
}
}
.upload-popup
{
background-color
:
#F5F5F5
;
.close
{
...
...
static/imgs/ic_camera@2x.png
0 → 100644
View file @
0fefa2bd
3.2 KB
static/imgs/ic_play_02@2x.png
0 → 100644
View file @
0fefa2bd
7.07 KB
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