Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
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
xugong
hls-xcmg-vue-app
Commits
8b904ad9
Commit
8b904ad9
authored
Mar 25, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
fe6d08a5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
23 deletions
+3
-23
uat.env.js
config/uat.env.js
+1
-1
main.js
src/main.js
+1
-1
index.html
www/index.html
+1
-21
No files found.
config/uat.env.js
View file @
8b904ad9
...
...
@@ -11,6 +11,6 @@ module.exports = {
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
fileUploadSvcPath
:
'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"2.1.
3
"'
currentVersion
:
'"2.1.
5
"'
}
src/main.js
View file @
8b904ad9
...
...
@@ -190,7 +190,7 @@ if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) { // 安卓手机
if
(
document
.
activeElement
.
tagName
===
'INPUT'
||
document
.
activeElement
.
tagName
===
'TEXTAREA'
)
{
console
.
log
(
'安卓触发'
,
document
.
activeElement
.
tagName
)
window
.
setTimeout
(
function
()
{
document
.
activeElement
.
scrollIntoView
(
tru
e
)
document
.
activeElement
.
scrollIntoView
(
fals
e
)
},
50
)
}
})
...
...
www/index.html
View file @
8b904ad9
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
./cordova.js
></script><script
type=
text/javascript
src=
"http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"
></script><title>
徐工金服
</title><link
href=
./static/css/app.9890b33b4e1c9333702d6bcda567dbbb.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script>
// if (window.history && window.history.pushState) {
// // 往历史记录里面添加一条新的当前页面的url
// history.pushState(null, null, document.URL)
// // 给 popstate 绑定一个方法 监听页面刷新
// window.addEventListener('popstate', function(){
// history.pushState(null, null, location.href );
// alert('请点击左上角返回按钮返回')
// }, false) // false阻止默认事件
// }
const
u
=
navigator
.
userAgent
;
if
(
u
.
indexOf
(
'Android'
)
>
-
1
||
u
.
indexOf
(
'Linux'
)
>
-
1
)
{
//安卓手机
window
.
addEventListener
(
'resize'
,
function
()
{
// Document 对象的activeElement 属性返回文档中当前获得焦点的元素。
if
(
document
.
activeElement
.
tagName
===
'INPUT'
||
document
.
activeElement
.
tagName
===
'TEXTAREA'
)
{
console
.
log
(
'安卓触发'
,
document
.
activeElement
.
tagName
)
window
.
setTimeout
(
function
()
{
document
.
activeElement
.
scrollIntoView
(
false
);
},
50
);
}
})
}
</script><script
type=
text/javascript
src=
./static/js/manifest.6a178e8d77c32e3c385d.js
></script><script
type=
text/javascript
src=
./static/js/vendor.8a1ae113e3b5262701ed.js
></script><script
type=
text/javascript
src=
./static/js/app.d768366115d2a4001a92.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
./cordova.js
></script><script
type=
text/javascript
src=
"http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"
></script><title>
徐工金服
</title><link
href=
./static/css/app.9890b33b4e1c9333702d6bcda567dbbb.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script
type=
text/javascript
src=
./static/js/manifest.6a178e8d77c32e3c385d.js
></script><script
type=
text/javascript
src=
./static/js/vendor.8a1ae113e3b5262701ed.js
></script><script
type=
text/javascript
src=
./static/js/app.d6dc7ef489aa530cf978.js
></script></body></html>
\ No newline at end of file
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