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
0e4d3a3f
Commit
0e4d3a3f
authored
Apr 21, 2021
by
baihong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:新增公共弹窗
parent
34d994b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
121 additions
and
59 deletions
+121
-59
success-popup.vue
components/success-popup.vue
+91
-0
home.vue
pages/home/home.vue
+27
-59
upload.vue
pages/upload/upload.vue
+3
-0
No files found.
components/success-popup.vue
0 → 100644
View file @
0e4d3a3f
<
template
>
<view>
<u-popup
:closeable=
'closeable'
v-model=
"modalVisible"
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=
"close"
>
知道了
</view>
</view>
</u-popup>
</view>
</
template
>
<
script
>
export
default
{
props
:
{
visible
:
{
type
:
Boolean
,
default
:
false
},
closeable
:
{
type
:
Boolean
,
default
:
false
},
},
watch
:
{
visible
:
{
handler
:
function
(
val
)
{
this
.
modalVisible
=
val
;
},
immediate
:
true
}
},
data
()
{
return
{
modalVisible
:
false
};
},
methods
:
{
close
()
{
this
.
$emit
(
'update:visible'
,
false
);
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.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
:
OpenSans
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
50
rpx
;
}
text
{
font-size
:
26
rpx
;
font-family
:
OpenSans
;
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
:
OpenSans
;
font-weight
:
600
;
color
:
#000000
;
line-height
:
40
rpx
;
}
}
</
style
>
pages/home/home.vue
View file @
0e4d3a3f
...
...
@@ -121,7 +121,7 @@
</view>
</view>
</u-popup>
<u-popup
v-model=
"showUpload"
mode=
"bottom"
border-radius=
"16"
>
<u-popup
v-model=
"showUpload"
mode=
"bottom"
border-radius=
"16"
>
<view
class=
"upload-popup"
>
<view
class=
"top"
>
上传图片
</view>
<view
class=
"upload-main"
>
...
...
@@ -137,15 +137,8 @@
<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>
<lottery
:show=
"showLottery"
/>
<success-popup
:visible
.
sync=
"showSuccess"
/>
<lottery
:show=
"showLottery"
/>
<u-popup
:closeable=
'true'
v-model=
"showPay"
mode=
"center"
width=
"673rpx"
>
<view
class=
"popup"
>
<view
class=
"title"
>
...
...
@@ -163,19 +156,21 @@
<
script
>
import
pageHeader
from
'@/components/page-header.vue'
;
import
successPopup
from
'@/components/success-popup.vue'
;
import
lottery
from
'@/components/lottery.vue'
;
export
default
{
components
:
{
pageHeader
,
lottery
lottery
,
successPopup
},
data
()
{
return
{
showPay
:
tru
e
,
showLottery
:
false
,
showPay
:
fals
e
,
showLottery
:
false
,
show
:
false
,
showUpload
:
false
,
showSuccess
:
fals
e
,
showUpload
:
false
,
showSuccess
:
tru
e
,
src
:
'https://t7.baidu.com/it/u=1951548898,3927145&fm=193&f=GIF'
,
number
:
0
,
};
...
...
@@ -219,7 +214,7 @@
});
}
});
},
startMove
()
{
// eslint-disable-next-line
...
...
@@ -240,47 +235,10 @@
.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
:
OpenSans
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
50
rpx
;
}
text
{
font-size
:
26
rpx
;
font-family
:
OpenSans
;
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
:
OpenSans
;
font-weight
:
600
;
color
:
#000000
;
line-height
:
40
rpx
;
}
}
.upload-popup
{
.upload-popup
{
background-color
:
#F5F5F5
;
.close
{
height
:
114
rpx
;
background
:
#FFFFFF
;
...
...
@@ -293,6 +251,7 @@
line-height
:
49
rpx
;
margin-top
:
10
rpx
;
}
.top
{
padding
:
32
rpx
0
37
rpx
0
;
text-align
:
center
;
...
...
@@ -304,20 +263,23 @@
border-bottom
:
1
rpx
solid
#DCDCDC
;
background-color
:
#FFFFFF
;
}
.upload-main
{
padding
:
53
rpx
181
rpx
58
rpx
174
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
background-color
:
#FFFFFF
;
.item
{
display
:
flex
;
flex-direction
:
column
;
font-size
:
28
rpx
;
font-family
:
OpenSans
;
font-size
:
28
rpx
;
font-family
:
OpenSans
;
font-weight
:
600
;
color
:
#333333
;
line-height
:
40
rpx
;
image
{
width
:
54
rpx
;
height
:
48
rpx
;
...
...
@@ -326,8 +288,10 @@
}
}
}
.popup
{
padding-bottom
:
80
rpx
;
.pay-btn
{
width
:
590
rpx
;
height
:
74
rpx
;
...
...
@@ -343,22 +307,26 @@
justify-content
:
center
;
margin
:
0
auto
;
}
.pay
{
margin-top
:
54
rpx
;
margin-bottom
:
65
rpx
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
p{
p
{
font-size
:
70
rpx
;
font-family
:
OpenSans
;
color
:
#333333
;
line-height
:
96
rpx
;
}
text
{
font-size
:
26
rpx
;
}
}
.title
{
padding
:
30
rpx
35
rpx
;
border-bottom
:
1
rpx
solid
#DCDCDC
;
...
...
pages/upload/upload.vue
View file @
0e4d3a3f
...
...
@@ -101,6 +101,9 @@
.app
{
background-color
:
#FFFFFF
;
.wrap
{
padding
:
40
rpx
;
}
.upload-popup
{
background-color
:
#F5F5F5
;
...
...
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