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
eb9a75d3
Commit
eb9a75d3
authored
Feb 26, 2020
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'liuin' into uat
parents
0432778d
0ec01ddc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
dev.env.js
config/dev.env.js
+2
-2
currencyInput.vue
src/components/currencyInput.vue
+6
-4
rateInput.vue
src/components/rateInput.vue
+5
-3
No files found.
config/dev.env.js
View file @
eb9a75d3
...
...
@@ -8,9 +8,9 @@ module.exports = merge(prodEnv, {
debug
:
true
,
isMobilePlatform
:
false
,
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_
DEV
&apiName="'
,
basePath
:
'"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_
UAT
&apiName="'
,
rootPath
:
'"http://180.104.121.66:8088/r/api"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_
DEV
&apiName=file_view&"'
,
filePath
:
'"http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_
UAT
&apiName=file_view&"'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"1.9.0"'
,
...
...
src/components/currencyInput.vue
View file @
eb9a75d3
...
...
@@ -102,20 +102,22 @@ export default {
let
eleHeight
=
vm
.
getOffsetTop
(
event
.
target
)
let
scrollTop
=
Math
.
floor
(
dom
.
scrollTop
)
let
result
=
Math
.
floor
(
veiwHeight
-
(
eleHeight
-
scrollTop
))
if
(
result
>=
256
)
{
let
fontS
=
parseFloat
(
document
.
documentElement
.
style
.
fontSize
)
*
5
console
.
log
(
fontS
)
if
(
result
>=
fontS
)
{
}
else
{
let
ele
=
document
.
createElement
(
'div'
)
ele
.
setAttribute
(
'class'
,
'add-height'
)
ele
.
style
.
height
=
(
256
-
result
)
+
'px'
ele
.
style
.
height
=
(
fontS
-
result
+
44
)
+
'px'
ele
.
style
.
background
=
'#fff'
// setTimeout(() => {
dom
.
appendChild
(
ele
)
// }, 100)
dom
.
scrollTop
=
scrollTop
+
(
256
-
result
)
dom
.
scrollTop
=
scrollTop
+
(
fontS
-
result
+
44
)
// dom.scrollTo(dom.scrollLeft, scrollTop + (256 - result))
}
console
.
log
(
veiwHeight
,
eleHeight
,
scrollTop
,
result
)
console
.
log
(
veiwHeight
,
eleHeight
,
scrollTop
,
result
,
fontS
)
event
.
target
.
type
=
'text'
event
.
target
.
focus
()
},
0
)
...
...
src/components/rateInput.vue
View file @
eb9a75d3
...
...
@@ -98,16 +98,18 @@ export default {
let
eleHeight
=
vm
.
getOffsetTop
(
event
.
target
)
let
scrollTop
=
Math
.
floor
(
dom
.
scrollTop
)
let
result
=
Math
.
floor
(
veiwHeight
-
(
eleHeight
-
scrollTop
))
if
(
result
>=
256
)
{
let
fontS
=
parseFloat
(
document
.
documentElement
.
style
.
fontSize
)
*
5
console
.
log
(
fontS
)
if
(
result
>=
fontS
)
{
}
else
{
let
ele
=
document
.
createElement
(
'div'
)
ele
.
setAttribute
(
'class'
,
'add-height'
)
ele
.
style
.
height
=
(
256
-
result
)
+
'px'
ele
.
style
.
height
=
(
fontS
-
result
+
44
)
+
'px'
ele
.
style
.
background
=
'#fff'
// setTimeout(() => {
dom
.
appendChild
(
ele
)
// }, 100)
dom
.
scrollTop
=
scrollTop
+
(
256
-
result
)
dom
.
scrollTop
=
scrollTop
+
(
fontS
-
result
+
44
)
// dom.scrollTo(dom.scrollLeft, scrollTop + (256 - result))
}
console
.
log
(
veiwHeight
,
eleHeight
,
scrollTop
,
result
)
...
...
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