Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mall-webview
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
frontend
mall-webview
Commits
d8938f18
Commit
d8938f18
authored
Apr 08, 2021
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: ui
parent
710839cb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
85 additions
and
7 deletions
+85
-7
index.html
public/index.html
+47
-0
App.vue
src/App.vue
+18
-1
normalize.css
src/assets/style/normalize.css
+2
-2
main.ts
src/main.ts
+0
-1
index.vue
src/views/bonus/index.vue
+18
-3
No files found.
public/index.html
View file @
d8938f18
...
@@ -9,6 +9,53 @@
...
@@ -9,6 +9,53 @@
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_2425189_lvk0clvlo2.css"
>
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_2425189_lvk0clvlo2.css"
>
<title><
%=
htmlWebpackPlugin
.
options
.
title
%
></title>
<title><
%=
htmlWebpackPlugin
.
options
.
title
%
></title>
<script
src=
"https://ssl.captcha.qq.com/TCaptcha.js"
></script>
<script
src=
"https://ssl.captcha.qq.com/TCaptcha.js"
></script>
<script>
(
function
flexible
(
window
,
document
)
{
var
docEl
=
document
.
documentElement
var
dpr
=
window
.
devicePixelRatio
||
1
// adjust body font size
function
setBodyFontSize
()
{
if
(
document
.
body
)
{
document
.
body
.
style
.
fontSize
=
(
12
*
dpr
)
+
'px'
}
else
{
document
.
addEventListener
(
'DOMContentLoaded'
,
setBodyFontSize
)
}
}
setBodyFontSize
();
// set 1rem = viewWidth / 10
function
setRemUnit
()
{
var
rem
=
docEl
.
clientWidth
/
10
rem
=
rem
>
75
?
75
:
rem
;
docEl
.
style
.
fontSize
=
rem
+
'px'
;
}
setRemUnit
()
// reset rem unit on page resize
window
.
addEventListener
(
'resize'
,
setRemUnit
)
window
.
addEventListener
(
'pageshow'
,
function
(
e
)
{
if
(
e
.
persisted
)
{
setRemUnit
()
}
})
// detect 0.5px supports
if
(
dpr
>=
2
)
{
var
fakeBody
=
document
.
createElement
(
'body'
)
var
testElement
=
document
.
createElement
(
'div'
)
testElement
.
style
.
border
=
'.5px solid transparent'
fakeBody
.
appendChild
(
testElement
)
docEl
.
appendChild
(
fakeBody
)
if
(
testElement
.
offsetHeight
===
1
)
{
docEl
.
classList
.
add
(
'hairlines'
)
}
docEl
.
removeChild
(
fakeBody
)
}
}(
window
,
document
))
</script>
</head>
</head>
<body>
<body>
<noscript>
<noscript>
...
...
src/App.vue
View file @
d8938f18
...
@@ -11,9 +11,26 @@
...
@@ -11,9 +11,26 @@
background
:
#f6f6f6
;
background
:
#f6f6f6
;
min-height
:
100vh
;
min-height
:
100vh
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
font-size
:
26px
;
font-size
:
28px
;
}
.van-button--small
{
height
:
72px
;
line-height
:
72px
;
font-size
:
28px
;
}
.van-button
{
height
:
72px
;
line-height
:
72px
;
font-size
:
28px
;
}
}
*
{
*
{
box-sizing
:
inherit
;
box-sizing
:
inherit
;
}
}
i
.iconfont
{
font-family
:
"iconfont"
!
important
;
font-size
:
28px
;
font-style
:
normal
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
</
style
>
</
style
>
src/assets/style/normalize.css
View file @
d8938f18
...
@@ -237,7 +237,7 @@ button:-moz-focusring,
...
@@ -237,7 +237,7 @@ button:-moz-focusring,
[
type
=
"button"
]
:-moz-focusring
,
[
type
=
"button"
]
:-moz-focusring
,
[
type
=
"reset"
]
:-moz-focusring
,
[
type
=
"reset"
]
:-moz-focusring
,
[
type
=
"submit"
]
:-moz-focusring
{
[
type
=
"submit"
]
:-moz-focusring
{
outline
:
1px
dotted
ButtonText
;
outline
:
1px
/
2
dotted
ButtonText
;
}
}
/**
/**
...
@@ -316,7 +316,7 @@ textarea {
...
@@ -316,7 +316,7 @@ textarea {
[
type
=
"search"
]
{
[
type
=
"search"
]
{
-webkit-appearance
:
textfield
;
-webkit-appearance
:
textfield
;
/* 1 */
/* 1 */
outline-offset
:
-2px
;
outline-offset
:
-2px
/
2
;
/* 2 */
/* 2 */
}
}
...
...
src/main.ts
View file @
d8938f18
...
@@ -4,7 +4,6 @@ import App from "./App.vue";
...
@@ -4,7 +4,6 @@ import App from "./App.vue";
import
router
from
"./router"
;
import
router
from
"./router"
;
import
store
from
"./store"
;
import
store
from
"./store"
;
import
"./assets/style/normalize.css"
;
import
"./assets/style/normalize.css"
;
import
"amfe-flexible"
;
if
(
process
.
env
.
VUE_APP_DEPLOY_MODE
===
"test"
)
{
if
(
process
.
env
.
VUE_APP_DEPLOY_MODE
===
"test"
)
{
const
VConsole
=
require
(
"vconsole"
);
const
VConsole
=
require
(
"vconsole"
);
...
...
src/views/bonus/index.vue
View file @
d8938f18
...
@@ -22,9 +22,8 @@
...
@@ -22,9 +22,8 @@
</van-col>
</van-col>
<van-col
span=
"12"
style=
"text-align: right"
<van-col
span=
"12"
style=
"text-align: right"
><van-button
><van-button
style=
"border-color: #fff; width: 45%"
round
round
c
olor=
"inherit
"
c
lass=
"withdraw-detail-btn
"
size=
"small"
size=
"small"
type=
"primary"
type=
"primary"
to=
"bonusDetail"
to=
"bonusDetail"
...
@@ -367,6 +366,16 @@ export default Bonus;
...
@@ -367,6 +366,16 @@ export default Bonus;
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.bonus
{
.bonus
{
padding
:
30px
;
padding
:
30px
;
:deep
(
.van-button
)
{
&
.withdraw-detail-btn
{
height
:
48px
;
line-height
:
48px
;
background-color
:
inherit
;
padding
:
0
24px
;
color
:
rgba
(
255
,
255
,
255
,
0
.8
);
border
:
2px
solid
rgba
(
255
,
255
,
255
,
0
.5
);
}
}
.bonus-account
{
.bonus-account
{
padding
:
30px
;
padding
:
30px
;
color
:
#fff
;
color
:
#fff
;
...
@@ -481,6 +490,10 @@ export default Bonus;
...
@@ -481,6 +490,10 @@ export default Bonus;
}
}
}
}
::v-deep
.bunus-rule-dialog
{
::v-deep
.bunus-rule-dialog
{
&
.van-dialog
{
top
:
50%
;
width
:
622px
;
}
.van-dialog__header
{
.van-dialog__header
{
background
:
linear-gradient
(
213deg
,
#05b2ff
0%
,
#027aff
100%
);
background
:
linear-gradient
(
213deg
,
#05b2ff
0%
,
#027aff
100%
);
padding
:
23px
0
;
padding
:
23px
0
;
...
@@ -493,12 +506,14 @@ export default Bonus;
...
@@ -493,12 +506,14 @@ export default Bonus;
color
:
#565858
;
color
:
#565858
;
li
{
li
{
line-height
:
48px
;
line-height
:
48px
;
margin
:
10px
0
;
font-size
:
26px
;
}
}
}
}
}
}
.dialog-handle-btns
{
.dialog-handle-btns
{
display
:
flex
;
display
:
flex
;
padding
:
30px
;
padding
:
0
30px
30px
30px
;
margin-bottom
:
30px
;
margin-bottom
:
30px
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.van-button
{
.van-button
{
...
...
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