Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
accord-with-name
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
malin
accord-with-name
Commits
613512ef
Commit
613512ef
authored
Apr 09, 2021
by
malin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
r
parent
553e306e
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
63 additions
and
8 deletions
+63
-8
index.html
index.html
+23
-1
font-family.css
src/assets/css/font-family.css
+20
-0
font-size.css
src/assets/css/font-size.css
+4
-0
AccordWithName.vue
src/views/Home/child_cpn/AccordWithName.vue
+2
-2
index.css
src/views/Result/index.css
+8
-0
index.vue
src/views/Result/index.vue
+6
-5
No files found.
index.html
View file @
613512ef
...
...
@@ -3,7 +3,8 @@
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"
/>
<title>
accord-with-name
</title>
<script>
"use strict"
;
!
function
e
(
t
,
n
,
r
)
{
function
i
(
d
,
a
)
{
if
(
!
n
[
d
])
{
if
(
!
t
[
d
])
{
var
f
=
"function"
==
typeof
require
&&
require
;
if
(
!
a
&&
f
)
return
f
(
d
,
!
0
);
if
(
o
)
return
o
(
d
,
!
0
);
throw
new
Error
(
"Cannot find module '"
+
d
+
"'"
)
}
var
s
=
n
[
d
]
=
{
exports
:
{}
};
t
[
d
][
0
].
call
(
s
.
exports
,
function
(
e
)
{
var
n
=
t
[
d
][
1
][
e
];
return
i
(
n
||
e
)
},
s
,
s
.
exports
,
e
,
t
,
n
,
r
)
}
return
n
[
d
].
exports
}
for
(
var
o
=
"function"
==
typeof
require
&&
require
,
d
=
0
;
d
<
r
.
length
;
d
++
)
i
(
r
[
d
]);
return
i
}({
1
:
[
function
(
e
,
t
,
n
)
{
!
function
(
e
,
t
)
{
function
n
()
{
t
.
body
?
t
.
body
.
style
.
fontSize
=
12
*
o
+
"px"
:
t
.
addEventListener
(
"DOMContentLoaded"
,
n
)
}
function
r
()
{
var
e
=
i
.
clientWidth
/
(
window
.
FLEX_RATIO
||
7.5
);
i
.
style
.
fontSize
=
e
+
"px"
}
var
i
=
t
.
documentElement
,
o
=
e
.
devicePixelRatio
||
1
;
if
(
n
(),
r
(),
e
.
addEventListener
(
"resize"
,
r
),
e
.
addEventListener
(
"pageshow"
,
function
(
e
)
{
e
.
persisted
&&
r
()
}),
o
>=
2
)
{
var
d
=
t
.
createElement
(
"body"
),
a
=
t
.
createElement
(
"div"
);
a
.
style
.
border
=
".5px solid transparent"
,
d
.
appendChild
(
a
),
i
.
appendChild
(
d
),
1
===
a
.
offsetHeight
&&
i
.
classList
.
add
(
"hairlines"
),
i
.
removeChild
(
d
)
}
}(
window
,
document
)
},
{}]
},
{},
[
1
]);
</script>
</head>
...
...
@@ -16,6 +17,27 @@
document
.
documentElement
.
style
.
fontSize
=
window
.
innerWidth
/
7.5
+
'px'
;
//1rem = 100px
document
.
body
.
style
.
fontSize
=
'14px'
;
// 在body上将字体还原大小,避免页面无样式字体超大
})()
window
.
onload
=
function
()
{
var
lastTouchEnd
=
0
;
document
.
addEventListener
(
'touchstart'
,
function
(
event
)
{
if
(
event
.
touches
.
length
>
1
)
{
event
.
preventDefault
();
}
});
document
.
addEventListener
(
'touchend'
,
function
(
event
)
{
var
now
=
(
new
Date
()).
getTime
();
if
(
now
-
lastTouchEnd
<=
300
)
{
event
.
preventDefault
();
}
lastTouchEnd
=
now
;
},
false
);
document
.
addEventListener
(
'gesturestart'
,
function
(
event
)
{
event
.
preventDefault
();
});
document
.
addEventListener
(
'dblclick'
,
function
(
event
)
{
event
.
preventDefault
();
})
}
</script>
</body>
...
...
src/assets/css/font-family.css
View file @
613512ef
.ff-pp
{
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
}
.ff-f
{
font-family
:
font-528-16179386412075
;
}
.ff-f2
{
font-family
:
Arial
,
Helvetica
,
sans-serif
;
}
.ff-f3
{
font-family
:
宋体
;
}
.ff-f4
{
font-family
:
中翰墨体
;
}
\ No newline at end of file
src/assets/css/font-size.css
View file @
613512ef
...
...
@@ -46,6 +46,10 @@
font-size
:
0.4rem
;
}
.fs-50
{
font-size
:
0.5rem
;
}
.fs-60
{
font-size
:
0.6rem
;
}
...
...
src/views/Home/child_cpn/AccordWithName.vue
View file @
613512ef
...
...
@@ -30,7 +30,7 @@
<div
class=
"in-name1 row-center-center"
>
<input
v-model=
"female"
class=
"input-text"
class=
"input-text
fs-40
"
type=
"text"
placeholder=
"请输入姓名"
/>
...
...
@@ -57,7 +57,7 @@
<div
class=
"in-name2 row-center-center"
>
<input
v-model=
"male"
class=
"input-text"
class=
"input-text
fs-40
"
type=
"text"
placeholder=
"请输入姓名"
/>
...
...
src/views/Result/index.css
View file @
613512ef
...
...
@@ -10,6 +10,14 @@
position
:
relative
;
}
.banner
>
div
{
position
:
absolute
;
position
:
absolute
;
top
:
1.6rem
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
.img1
{
width
:
7.5rem
;
height
:
5.8rem
;
...
...
src/views/Result/index.vue
View file @
613512ef
...
...
@@ -6,7 +6,11 @@
<div
class=
"banner"
>
<img
class=
"img1"
src=
"@/assets/img/result/img1.png"
alt=
""
/>
<img
class=
"img2"
src=
"@/assets/img/result/img2.png"
alt=
""
/>
<div
class=
"fc-f fs-40 fw-4 ff-f4"
>
{{
baseInfo
[
0
].
name
+
"&"
+
baseInfo
[
1
].
name
}}
</div>
</div>
<div
class=
"row-center-center"
>
...
...
@@ -17,9 +21,6 @@
<div
class=
"rate row-center-center fc-sys5 fs-40 fw-5"
>
{{
result
.
rate
}}
契合度
</div>
<div
class=
"fc-4c fs-32 fw-4"
style=
"margin-bottom: 0.12rem"
>
{{
baseInfo
[
0
].
name
+
"&"
+
baseInfo
[
1
].
name
}}
</div>
<div
class=
"ln"
>
{{
result
.
desc
}}
</div>
</div>
...
...
@@ -99,7 +100,7 @@ export default {
const
n
=
JSON
.
parse
(
utils
.
getCookie
(
"baseInfo"
));
this
.
baseInfo
=
n
?
n
:
[
"name"
,
"name"
];
this
.
_queryOrder
();
//
this._queryOrder();
this
.
_fetchInfo
();
},
...
...
@@ -110,7 +111,7 @@ export default {
let
params
=
{
pkg
:
"com.h5game.peidui"
,
orderId
:
orderId
,
orderId
:
1380344238578814976
,
};
API
.
API_fetchInfo
(
params
).
then
((
res
)
=>
{
if
(
res
.
status
!=
200
)
{
...
...
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