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
03d31774
Commit
03d31774
authored
Feb 26, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
e79b6e54
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
19 deletions
+27
-19
dev.env.js
config/dev.env.js
+2
-2
currencyInput.vue
src/components/currencyInput.vue
+23
-16
my-info.vue
src/pages/myInfo/my-info.vue
+2
-1
No files found.
config/dev.env.js
View file @
03d31774
...
@@ -8,9 +8,9 @@ module.exports = merge(prodEnv, {
...
@@ -8,9 +8,9 @@ module.exports = merge(prodEnv, {
debug
:
true
,
debug
:
true
,
isMobilePlatform
:
false
,
isMobilePlatform
:
false
,
loginPath
:
'"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" '
,
loginPath
:
'"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" '
,
basePath
:
'"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_
UAT
&apiName="'
,
basePath
:
'"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_
DEV
&apiName="'
,
rootPath
:
'"http://180.104.121.66:8088/r/api"'
,
rootPath
:
'"http://180.104.121.66:8088/r/api"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_
UAT
&apiName=file_view&"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_
DEV
&apiName=file_view&"'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
appId
:
'"com.xcmg.app.dev"'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"1.9.0"'
,
currentVersion
:
'"1.9.0"'
,
...
...
src/components/currencyInput.vue
View file @
03d31774
...
@@ -95,24 +95,28 @@ export default {
...
@@ -95,24 +95,28 @@ export default {
let
value
=
event
.
target
.
value
let
value
=
event
.
target
.
value
event
.
target
.
value
=
''
event
.
target
.
value
=
''
event
.
target
.
value
=
value
event
.
target
.
value
=
value
setTimeout
(
function
()
{
setTimeout
(
function
()
{
const
u
=
navigator
.
userAgent
let
dom
=
document
.
querySelector
(
'.content'
)
if
(
u
.
indexOf
(
'Android'
)
>
-
1
||
u
.
indexOf
(
'Linux'
)
>
-
1
)
{
// 安卓手机
let
veiwHeight
=
vm
.
getClientHeight
()
window
.
addEventListener
(
'resize'
,
function
()
{
let
eleHeight
=
vm
.
getOffsetTop
(
event
.
target
)
// Document 对象的activeElement 属性返回文档中当前获得焦点的元素。
let
scrollTop
=
Math
.
floor
(
dom
.
scrollTop
)
if
(
document
.
activeElement
.
tagName
===
'INPUT'
||
document
.
activeElement
.
tagName
===
'TEXTAREA'
)
{
let
result
=
Math
.
floor
(
veiwHeight
-
(
eleHeight
-
scrollTop
))
console
.
log
(
'安卓触发'
,
document
.
activeElement
.
tagName
)
// vm.$nextTick(function () {
window
.
setTimeout
(
function
()
{
// let r = document.querySelector('.keyboard-backdrop').childNodes
document
.
activeElement
.
scrollIntoView
(
true
)
// })
},
50
)
if
(
result
>=
256
)
{
}
}
else
{
})
let
ele
=
document
.
createElement
(
'div'
)
}
else
{
// ios
ele
.
setAttribute
(
'class'
,
'add-height'
)
setTimeout
(()
=>
{
ele
.
style
.
height
=
(
256
-
result
)
+
'px'
document
.
getElementsByTagName
(
'body'
)[
0
].
style
.
height
=
'400px'
ele
.
style
.
background
=
'#fff'
this
.
$refs
.
ttextarea
.
scrollIntoView
(
false
)
// setTimeout(() => {
},
50
)
dom
.
appendChild
(
ele
)
// }, 100)
dom
.
scrollTo
(
dom
.
scrollLeft
,
scrollTop
+
(
256
-
result
))
}
}
console
.
log
(
veiwHeight
,
eleHeight
,
scrollTop
,
result
)
event
.
target
.
type
=
'text'
event
.
target
.
type
=
'text'
event
.
target
.
focus
()
event
.
target
.
focus
()
},
0
)
},
0
)
...
@@ -125,6 +129,9 @@ export default {
...
@@ -125,6 +129,9 @@ export default {
if
(
this
.
allCheck
&&
this
.
allCheck
<
1000
)
{
if
(
this
.
allCheck
&&
this
.
allCheck
<
1000
)
{
hlsPopup
.
showLongCenter
(
'设备总价不能小于1000元!'
)
hlsPopup
.
showLongCenter
(
'设备总价不能小于1000元!'
)
}
}
if
(
document
.
querySelector
(
'.add-height'
))
{
document
.
querySelector
(
'.content'
).
removeChild
(
document
.
querySelector
(
'.add-height'
))
}
event
.
target
.
type
=
'text'
event
.
target
.
type
=
'text'
event
.
target
.
blur
()
event
.
target
.
blur
()
this
.
focused
=
false
this
.
focused
=
false
...
...
src/pages/myInfo/my-info.vue
View file @
03d31774
...
@@ -1001,7 +1001,8 @@ export default {
...
@@ -1001,7 +1001,8 @@ export default {
const
u
=
navigator
.
userAgent
const
u
=
navigator
.
userAgent
const
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
)
const
isiOS
=
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
)
if
(
isiOS
)
{
if
(
isiOS
)
{
cordova
.
InAppBrowser
.
open
(
authUrl
,
'_blank'
,
'location=yes'
)
let
ref
=
cordova
.
InAppBrowser
.
open
(
authUrl
,
'_blank'
,
'location=yes'
)
ref
.
addEventListener
(
'exit'
,
vm
.
userQuery
())
console
.
log
(
'ios'
)
console
.
log
(
'ios'
)
}
else
{
}
else
{
vm
.
$router
.
push
({
vm
.
$router
.
push
({
...
...
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