Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-lottery
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fc71ae59
authored
Sep 29, 2024
by
陆志强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 样式优化
parent
7ed5f64a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
46 additions
and
18 deletions
+46
-18
public/index.html
+1
-0
src/assets/styles/reset.less
+4
-0
src/components/Common/AddressPopup/AddAddressPopup.vue
+1
-1
src/components/Common/AddressPopup/AddressPopup.vue
+6
-6
src/components/Common/ConfigPopup.vue
+29
-8
src/components/Common/ForcePopup.vue
+4
-3
src/components/Lottery/Timing/Banner.vue
+1
-0
No files found.
public/index.html
View file @
fc71ae59
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
/>
<meta
http-equiv=
"Cache-Control"
content=
"no-store no-cache"
/>
<meta
http-equiv=
"Cache-Control"
content=
"no-store no-cache"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
>
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" /> -->
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" /> -->
<link
href=
"<%= BASE_URL %><%= process.env.VUE_APP_ASSETS_DIR %>/config.js"
rel=
"preload"
as=
"script"
/>
<link
href=
"<%= BASE_URL %><%= process.env.VUE_APP_ASSETS_DIR %>/config.js"
rel=
"preload"
as=
"script"
/>
<!-- <link href="<%= BASE_URL %><%= process.env.VUE_APP_ASSETS_DIR %>/moduleLoader.js" rel="preload" as="script" /> -->
<!-- <link href="<%= BASE_URL %><%= process.env.VUE_APP_ASSETS_DIR %>/moduleLoader.js" rel="preload" as="script" /> -->
...
...
src/assets/styles/reset.less
View file @
fc71ae59
...
@@ -166,3 +166,7 @@ body {
...
@@ -166,3 +166,7 @@ body {
-webkit-text-size-adjust: none;
-webkit-text-size-adjust: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
}
.van-dialog__message {
font-size: 16px !important;
}
src/components/Common/AddressPopup/AddAddressPopup.vue
View file @
fc71ae59
...
@@ -159,7 +159,7 @@ export default {
...
@@ -159,7 +159,7 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
12px
;
padding
:
1
6px
12px
1
2px
;
font-size
:
14px
;
font-size
:
14px
;
&-title
{
&-title
{
font-size
:
16px
;
font-size
:
16px
;
...
...
src/components/Common/AddressPopup/AddressPopup.vue
View file @
fc71ae59
...
@@ -196,7 +196,7 @@ export default {
...
@@ -196,7 +196,7 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
padding
:
12px
;
padding
:
1
6px
12px
1
2px
;
font-size
:
14px
;
font-size
:
14px
;
&-title
{
&-title
{
font-size
:
16px
;
font-size
:
16px
;
...
@@ -232,8 +232,8 @@ export default {
...
@@ -232,8 +232,8 @@ export default {
align-items
:
center
;
align-items
:
center
;
margin-left
:
15px
;
margin-left
:
15px
;
img
{
img
{
width
:
16
px
;
width
:
20
px
;
height
:
16
px
;
height
:
20
px
;
margin-right
:
4px
;
margin-right
:
4px
;
}
}
.name
{
.name
{
...
@@ -306,8 +306,8 @@ export default {
...
@@ -306,8 +306,8 @@ export default {
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
img
{
img
{
width
:
16
px
;
width
:
20
px
;
height
:
16
px
;
height
:
20
px
;
margin-left
:
10px
;
margin-left
:
10px
;
}
}
}
}
...
@@ -326,7 +326,7 @@ export default {
...
@@ -326,7 +326,7 @@ export default {
line-height
:
36px
;
line-height
:
36px
;
cursor
:
pointer
;
cursor
:
pointer
;
text-align
:
center
;
text-align
:
center
;
margin
:
15px
auto
2
5
px
;
margin
:
15px
auto
2
8
px
;
padding-right
:
12px
;
padding-right
:
12px
;
}
}
</
style
>
</
style
>
src/components/Common/ConfigPopup.vue
View file @
fc71ae59
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</template>
</template>
<
template
v-if=
"item.type === 'address' && item.isChecked"
>
<
template
v-if=
"item.type === 'address' && item.isChecked"
>
<template
v-if=
"!addressList.length"
>
<template
v-if=
"!addressList.length"
>
<van-field
v-model=
"form.address"
label-width=
"60"
label=
"收
货
地址"
readonly
placeholder=
"请选择省市区"
@
focus=
"isError = false"
@
click=
"select"
>
<van-field
v-model=
"form.address"
label-width=
"60"
label=
"收
件
地址"
readonly
placeholder=
"请选择省市区"
@
focus=
"isError = false"
@
click=
"select"
>
<template
#
button
>
<template
#
button
>
<van-icon
name=
"location"
/>
<van-icon
name=
"location"
/>
</
template
>
</
template
>
...
@@ -45,11 +45,17 @@
...
@@ -45,11 +45,17 @@
/>
/>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
<div
class=
"address"
@
click=
"isShowAddressPopup = true"
>
<div
v-if=
"lotteryInfo.newPremise[0].isChecked + lotteryInfo.newPremise[1].isChecked === 0"
class=
"address"
@
click=
"isShowAddressPopup = true"
>
<img
class=
"address-icon"
src=
"@/assets/images/lottery/address.png"
alt=
""
>
<img
class=
"address-icon"
src=
"@/assets/images/lottery/address.png"
alt=
""
>
<div
class=
"address-text"
>
{{
form
.
address
+
form
.
detail
}}
</div>
<div
class=
"address-text"
>
{{
form
.
address
+
form
.
detail
}}
</div>
<img
class=
"address-right"
src=
"@/assets/images/lottery/address-right.png"
alt=
""
>
<img
class=
"address-right"
src=
"@/assets/images/lottery/address-right.png"
alt=
""
>
</div>
</div>
<div
v-else
class=
"address"
@
click=
"isShowAddressPopup = true"
>
<div
class=
"address-title"
>
收件地址
</div>
<img
class=
"address-icon__alter"
src=
"@/assets/images/lottery/address.png"
alt=
""
>
<div
class=
"address-text"
>
{{
form
.
address
+
form
.
detail
}}
</div>
<img
class=
"address-right"
src=
"@/assets/images/lottery/address-right.png"
alt=
""
>
</div>
</
template
>
</
template
>
</template>
</template>
<
template
v-if=
"item.type.includes('custom') && item.isChecked"
>
<
template
v-if=
"item.type.includes('custom') && item.isChecked"
>
...
@@ -400,12 +406,13 @@ export default {
...
@@ -400,12 +406,13 @@ export default {
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.main
{
.main
{
min-height
:
42vh
;
min-height
:
42vh
;
padding-bottom
:
30px
;
}
}
.top
{
.top
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
12px
;
padding
:
1
6px
12px
1
2px
;
font-size
:
14px
;
font-size
:
14px
;
&-title
{
&-title
{
font-size
:
16px
;
font-size
:
16px
;
...
@@ -441,25 +448,39 @@ export default {
...
@@ -441,25 +448,39 @@ export default {
width
:
24px
;
width
:
24px
;
height
:
24px
;
height
:
24px
;
margin-right
:
12px
;
margin-right
:
12px
;
&__alter
{
width
:
20px
;
height
:
20px
;
margin-right
:
5px
;
}
}
}
&
-text
{
&
-text
{
flex
:
1
;
flex
:
1
;
//
width
:
225px
;
//
width
:
225px
;
font-family
:
PingFangSC
,
PingFang
SC
;
font-family
:
PingFangSC
,
PingFang
SC
;
font-weight
:
400
;
font-weight
:
400
;
font-size
:
1
4
px
;
font-size
:
1
5
px
;
color
:
#333333
;
color
:
#333333
;
line-height
:
24px
;
line-height
:
24px
;
text-align
:
left
;
text-align
:
justify
;
padding-right
:
35
px
;
padding-right
:
20
px
;
}
}
&
-right
{
&
-right
{
width
:
5px
;
width
:
5px
;
height
:
9px
;
height
:
9px
;
}
}
&
-title
{
height
:
24px
;
line-height
:
24px
;
font-size
:
15px
;
font-family
:
PingFangSC
,
PingFang
SC
;
font-weight
:
400
;
color
:
#666666
;
margin-right
:
8px
;
}
}
}
.code
{
.code
{
font-size
:
1
3
px
;
font-size
:
1
5
px
;
font-family
:
PingFangSC
,
PingFang
SC
;
font-family
:
PingFangSC
,
PingFang
SC
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#357BF0
;
color
:
#357BF0
;
...
@@ -482,7 +503,7 @@ export default {
...
@@ -482,7 +503,7 @@ export default {
font-size
:
15px
;
font-size
:
15px
;
font-family
:
PingFangSC
,
PingFang
SC
;
font-family
:
PingFangSC
,
PingFang
SC
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#
333333
;
color
:
#
666666
;
margin-right
:
8px
;
margin-right
:
8px
;
span
{
span
{
white-space
:
nowrap
;
white-space
:
nowrap
;
...
...
src/components/Common/ForcePopup.vue
View file @
fc71ae59
...
@@ -76,6 +76,7 @@ export default {
...
@@ -76,6 +76,7 @@ export default {
.box
{
.box
{
width
:
70%
;
width
:
70%
;
position
:
relative
;
position
:
relative
;
margin-bottom
:
10%
;
&-img
{
&-img
{
width
:
100%
;
width
:
100%
;
position
:
relative
;
position
:
relative
;
...
@@ -117,14 +118,14 @@ export default {
...
@@ -117,14 +118,14 @@ export default {
}
}
&
__btn
{
&
__btn
{
width
:
120px
;
width
:
120px
;
height
:
3
3
px
;
height
:
3
6
px
;
background
:
linear-gradient
(
201deg
,
#FD8192
0%
,
#FF4F31
100%
);
background
:
linear-gradient
(
201deg
,
#FD8192
0%
,
#FF4F31
100%
);
border-radius
:
37px
;
border-radius
:
37px
;
font-family
:
PingFangSC
,
PingFang
SC
;
font-family
:
PingFangSC
,
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
font-size
:
1
3
px
;
font-size
:
1
4
px
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
line-height
:
3
3
px
;
line-height
:
3
6
px
;
text-align
:
center
;
text-align
:
center
;
}
}
}
}
...
...
src/components/Lottery/Timing/Banner.vue
View file @
fc71ae59
...
@@ -54,6 +54,7 @@ export default {
...
@@ -54,6 +54,7 @@ export default {
background-size
:
cover
;
background-size
:
cover
;
background-position
:
center
;
background-position
:
center
;
font-size
:
0
;
font-size
:
0
;
z-index
:
3
;
}
}
}
}
</
style
>
</
style
>
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