Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhengfu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨海涛
zhengfu
Commits
47be740e
Commit
47be740e
authored
Jul 25, 2021
by
朱建丰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0725
parent
09034193
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
162 additions
and
30 deletions
+162
-30
qingtian_mobile/index copy.html
qingtian_mobile/index copy.html
+12
-0
qingtian_mobile/index.html
qingtian_mobile/index.html
+129
-9
qingtian_vue/src/views/Aqsc.vue
qingtian_vue/src/views/Aqsc.vue
+21
-21
No files found.
qingtian_mobile/index copy.html
0 → 100644
View file @
47be740e
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<title>
mobile
</title>
</head>
<body>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
</body>
</html>
qingtian_mobile/index.html
View file @
47be740e
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<title>
mobile
</title>
</head>
<body>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
</body>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
>
<title>
青田数字政府门户
</title>
<script
src=
"https://alidt.alicdn.com/alilog/mlog/aplus_cloud.js"
></script>
<script
src=
'https://wpk-gate.zjzwfw.gov.cn/static/wpk-jssdk.1.0.2/wpkReporter.js'
crossorigin=
'true'
></script>
</head>
<body>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
</body>
<script>
//稳定性监控代码
try
{
const
config
=
{
bid
:
'
syszzfmh_zzdpro
'
,
signkey
:
'
1234567890abcdef
'
,
gateway
:
'
https://wpk-gate.zjzwfw.gov.cn
'
};
const
wpk
=
new
wpkReporter
(
config
);
wpk
.
installAll
();
window
.
_wpk
=
wpk
;
}
catch
(
err
)
{
console
.
error
(
'
WpkReporter init fail
'
,
err
);
}
// 埋点初始化代码
(
function
(
w
,
d
,
s
,
q
,
i
)
{
w
[
q
]
=
w
[
q
]
||
[];
var
f
=
d
.
getElementsByTagName
(
s
)[
0
],
j
=
d
.
createElement
(
s
);
j
.
async
=
true
;
j
.
id
=
'
beacon-aplus
'
;
j
.
src
=
'
https://alidt.alicdn.com/alilog/mlog/aplus_cloud.js
'
;
f
.
parentNode
.
insertBefore
(
j
,
f
);
})(
window
,
document
,
'
script
'
,
'
aplus_queue
'
);
//适配pad
var
view_timer
=
null
;
function
viewPort
(
userAgent
,
pageWidth
)
{
var
oView
=
document
.
getElementById
(
'
viewport
'
);
if
(
oView
)
{
document
.
head
.
removeChild
(
oView
);
}
if
(
!
pageWidth
)
{
pageWidth
=
1440
;
}
var
screen_w
=
parseInt
(
window
.
screen
.
width
),
screen_h
=
parseInt
(
window
.
screen
.
height
),
scale
=
screen_w
/
pageWidth
;
if
(
/Android
(\d
+
\.\d
+
)
/
.
test
(
userAgent
))
{
var
creat_meta
=
document
.
createElement
(
'
meta
'
);
creat_meta
.
name
=
'
viewport
'
;
creat_meta
.
id
=
'
viewport
'
;
var
version
=
parseFloat
(
RegExp
.
$1
);
if
(
version
>
2.3
)
{
creat_meta
.
content
=
'
width=
'
+
pageWidth
+
'
, initial-scale =
'
+
scale
+
'
,user-scalable=1, minimum-scale =
'
+
scale
+
'
, maximum-scale =
'
+
scale
+
'
, target-densitydpi=device-dpi
'
;
}
else
{
creat_meta
.
content
=
'
"width=
'
+
pageWidth
+
'
, target-densitydpi=device-dpi
'
;
}
document
.
head
.
appendChild
(
creat_meta
);
}
else
{
var
creat_meta
=
document
.
createElement
(
'
meta
'
);
creat_meta
.
name
=
'
viewport
'
;
creat_meta
.
id
=
'
viewport
'
;
if
(
window
.
orientation
==
'
-90
'
||
window
.
orientation
==
'
90
'
)
{
//判断移动设备横屏竖屏
scale
=
window
.
screen
.
height
/
pageWidth
;
creat_meta
.
content
=
'
width=
'
+
pageWidth
+
'
, initial-scale =
'
+
scale
*
screen_w
/
screen_h
+
'
,minimum-scale =
'
+
scale
*
screen_w
/
screen_h
+
'
, maximum-scale =
'
+
scale
*
screen_w
/
screen_h
+
'
, user-scalable=no, target-densitydpi=device-dpi
'
;
}
else
{
creat_meta
.
content
=
'
width=
'
+
pageWidth
+
'
, initial-scale =
'
+
scale
+
'
,minimum-scale =
'
+
scale
+
'
, maximum-scale =
'
+
scale
+
'
, user-scalable=no, target-densitydpi=device-dpi
'
;
}
document
.
head
.
appendChild
(
creat_meta
);
}
}
viewPort
(
navigator
.
userAgent
);
window
.
onresize
=
function
()
{
clearTimeout
(
view_timer
);
view_timer
=
setTimeout
(
function
()
{
viewPort
(
navigator
.
userAgent
);
},
500
);
}
window
.
addEventListener
(
'
message
'
,
async
function
(
e
,
d
)
{
if
(
e
.
data
&&
e
.
data
.
accessToken
)
{
var
token
=
e
.
data
.
accessToken
;
var
url
=
'
https://portal.lishui.gov.cn:18080/api_2021/public/index.php/index/MicroPortalLogin/getUserInfoByAccessToken?token=
'
+
token
;
var
user
=
await
fetch
(
url
);
var
contentType
=
user
.
headers
.
get
(
'
Content-Type
'
);
console
.
log
(
contentType
);
console
.
log
(
"
return user
"
);
console
.
log
(
user
.
json
());
console
.
log
(
"
finishing
"
);
}
else
{
window
.
location
.
replace
(
"
./#err
"
);
}
// var data = JSON.parse(e.data);
// alert(data);
// var accessToken = data.accessToken;
// alert(accessToken);
//alert(e.data)
// let data = JSON.parse(e.data);
// let accessToken = data.accessToken;
})
</script>
</html>
qingtian_vue/src/views/Aqsc.vue
View file @
47be740e
...
...
@@ -1258,7 +1258,7 @@ export default {
background
:
#fff
!
important
;
}
@media
screen
and
(
max-width
:
1200px
)
{
//
@media screen and (max-width: 1200px) {
.main
{
width
:
100%
;
background-color
:
#fff
;
...
...
@@ -1282,29 +1282,29 @@ export default {
border-radius
:
4px
;
margin
:
20px
auto
;
}
}
//
}
@media
screen
and
(
min-width
:
1200px
)
{
.main
{
width
:
1200px
;
margin
:
0px
auto
;
padding
:
30px
0
;
}
//
@media screen and (min-width: 1200px) {
//
.main {
//
width: 1200px;
//
margin: 0px auto;
//
padding: 30px 0;
//
}
.minHeader
,
.market
{
width
:
1200px
;
border-radius
:
4px
;
// padding: 20px 20px 20px;
background
:
#fff
;
}
//
.minHeader,
//
.market {
//
width: 1200px;
//
border-radius: 4px;
//
// padding: 20px 20px 20px;
//
background: #fff;
//
}
.minTop
{
background-color
:
#fff
;
width
:
1200px
;
border-radius
:
4px
;
}
}
//
.minTop {
//
background-color: #fff;
//
width: 1200px;
//
border-radius: 4px;
//
}
//
}
.card__header
{
padding
:
18px
20px
;
...
...
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