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
5e439375
Commit
5e439375
authored
11 months ago
by
王建文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页图片替换
parent
fc15b8e6
wh_xcmg_demo_zm
No related merge requests found
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
872 additions
and
539 deletions
+872
-539
dev.env.js
config/dev.env.js
+2
-2
prod.env.js
config/prod.env.js
+1
-1
home-card1@2x.png
src/assets/homePage/home-card1@2x.png
+0
-0
background1@3x.png
src/assets/login/background1@3x.png
+0
-0
register-back1@3x.png
src/assets/login/register-back1@3x.png
+0
-0
rateInput.vue
src/components/rateInput.vue
+53
-30
contract-detail.vue
src/pages/contractSigning/contract-detail.vue
+198
-65
contract-new.vue
src/pages/contractSigning/contract-new.vue
+182
-75
home-page.vue
src/pages/home/home-page.vue
+1
-1
login.vue
src/pages/login.vue
+1
-1
regiester2.vue
src/pages/regiester2.vue
+1
-2
bankInfo.vue
src/pages/userBindNew/org/bankInfo.vue
+148
-76
baseInfo.vue
src/pages/userBindNew/org/baseInfo.vue
+285
-286
No files found.
config/dev.env.js
View file @
5e439375
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
module
.
exports
=
{
module
.
exports
=
{
NODE_ENV
:
'"production"'
,
NODE_ENV
:
'"production"'
,
CONFIG_ENV
:
JSON
.
stringify
(
process
.
env
.
CONFIG_ENV
),
CONFIG_ENV
:
JSON
.
stringify
(
process
.
env
.
CONFIG_ENV
),
debug
:
tru
e
,
debug
:
fals
e
,
isMobilePlatform
:
tru
e
,
isMobilePlatform
:
fals
e
,
loginPath
:
'"http://210.12.156.64:9090/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" '
,
loginPath
:
'"http://210.12.156.64:9090/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" '
,
basePath
:
'"http://210.12.156.64:9090/r/api/interface?sysName=XCMG_UAT&apiName="'
,
basePath
:
'"http://210.12.156.64:9090/r/api/interface?sysName=XCMG_UAT&apiName="'
,
rootPath
:
'"http://210.12.156.64:9090/r/api"'
,
rootPath
:
'"http://210.12.156.64:9090/r/api"'
,
...
...
This diff is collapsed.
Click to expand it.
config/prod.env.js
View file @
5e439375
...
@@ -11,5 +11,5 @@ module.exports = {
...
@@ -11,5 +11,5 @@ module.exports = {
ocrPath
:
'"http://210.12.156.64:9090/r/api"'
,
ocrPath
:
'"http://210.12.156.64:9090/r/api"'
,
fileUploadSvcPath
:
'"http://210.12.156.64:9090/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
fileUploadSvcPath
:
'"http://210.12.156.64:9090/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
appId
:
'"com.xcmg.app.dev"'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"3.6.
2
"'
currentVersion
:
'"3.6.
6
"'
}
}
This diff is collapsed.
Click to expand it.
src/assets/homePage/home-card1@2x.png
0 → 100644
View file @
5e439375
176 KB
This diff is collapsed.
Click to expand it.
src/assets/login/background1@3x.png
0 → 100644
View file @
5e439375
292 KB
This diff is collapsed.
Click to expand it.
src/assets/login/register-back1@3x.png
0 → 100644
View file @
5e439375
331 KB
This diff is collapsed.
Click to expand it.
src/components/rateInput.vue
View file @
5e439375
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<
template
>
<
template
>
<input
<input
:value=
"formatValue"
:readonly=
"disable"
type=
"text"
:value=
"formatValue"
:readonly=
"disable"
type=
"text"
@
blur=
"onBlur"
@
click=
"keyboradShow();onFocus($event)
"
>
@
focus=
"onFocus"
@
blur=
"onBlur"
@
click=
"keyboradShow
"
>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -15,10 +15,20 @@ export default {
...
@@ -15,10 +15,20 @@ export default {
value
:
{
value
:
{
default
:
''
,
default
:
''
,
},
},
check
:
{
default
:
''
,
},
allCheck
:
{
default
:
''
,
},
// disable: {
// disable: {
// type: Boolean,
// type: Boolean,
// default: true,
// default: true,
// },
// },
readonly
:
{
type
:
Boolean
,
default
:
false
,
},
content
:
{
content
:
{
type
:
String
,
type
:
String
,
default
:
''
,
default
:
''
,
...
@@ -34,8 +44,8 @@ export default {
...
@@ -34,8 +44,8 @@ export default {
},
},
filter
:
{
filter
:
{
uncurrency
(
val
)
{
uncurrency
(
val
)
{
if
(
!
val
)
return
''
if
(
!
val
)
return
null
return
Number
((
val
).
replace
(
/,|%
/gi
,
''
))
return
(
Number
((
val
).
replace
(
/,/gi
,
''
)))
===
0
?
0
:
Number
((
val
).
replace
(
/,
/gi
,
''
))
},
},
},
},
computed
:
{
computed
:
{
...
@@ -43,7 +53,7 @@ export default {
...
@@ -43,7 +53,7 @@ export default {
let
currency
=
this
.
$options
.
filters
[
'rate'
]
let
currency
=
this
.
$options
.
filters
[
'rate'
]
if
(
!
this
.
focused
)
{
if
(
!
this
.
focused
)
{
if
(
this
.
value
!==
''
&&
this
.
value
!==
null
)
{
if
(
this
.
value
!==
''
&&
this
.
value
!==
null
)
{
return
`
${
currency
(
this
.
value
*
100
)}
%`
return
`
${
currency
(
this
.
value
)}
%`
}
}
}
else
{
}
else
{
return
this
.
value
return
this
.
value
...
@@ -53,31 +63,35 @@ export default {
...
@@ -53,31 +63,35 @@ export default {
methods
:
{
methods
:
{
keyboradShow
()
{
keyboradShow
()
{
let
vm
=
this
let
vm
=
this
hlsPopup
.
showNumberKeyborad
({
if
(
!
vm
.
readonly
)
{
title
:
'数字键盘'
,
hlsPopup
.
showNumberKeyborad
({
keyDown
:
(
text
)
=>
{
title
:
'数字键盘'
,
vm
.
onInput
(
text
)
keyDown
:
(
text
)
=>
{
},
vm
.
onInput
(
text
)
keyDelete
:
()
=>
{
},
vm
.
onDelete
()
keyDelete
:
()
=>
{
},
vm
.
onDelete
()
})
},
})
}
},
},
onInput
(
value
)
{
onInput
(
value
)
{
// if (this.disable) return
// if (this.disable) return
// let uncurrency = this.$options.filter['uncurrency']
if
(
this
.
value
===
'0'
||
this
.
value
===
'0.00'
)
{
// this.newVal = uncurrency(this.value)
this
.
newVal
=
''
this
.
newVal
=
this
.
value
if
(
this
.
newVal
!=
''
&&
this
.
newVal
.
includes
(
'.'
)
&&
value
===
'.'
)
{
}
else
{
this
.
newVal
+=
(
''
+
value
)
this
.
newVal
+=
(
''
+
value
)
}
else
{
this
.
newVal
=
this
.
value
if
(
this
.
newVal
.
includes
(
'.'
)
&&
value
===
'.'
)
{
}
else
{
this
.
newVal
+=
(
''
+
value
)
}
}
}
this
.
$emit
(
'input'
,
this
.
newVal
/
100
)
this
.
$emit
(
'input'
,
this
.
newVal
)
},
},
onDelete
()
{
onDelete
()
{
this
.
newVal
=
''
this
.
newVal
=
''
this
.
$emit
(
'input'
,
this
.
newVal
/
100
)
this
.
$emit
(
'input'
,
this
.
newVal
)
},
},
// onInput: function (value) {
// onInput: function (value) {
// if (this.disable) return
// if (this.disable) return
...
@@ -87,13 +101,12 @@ export default {
...
@@ -87,13 +101,12 @@ export default {
// },
// },
onFocus
(
event
)
{
onFocus
(
event
)
{
// if (this.disable) return
// if (this.disable) return
debugger
let
vm
=
this
let
vm
=
this
this
.
focused
=
true
this
.
focused
=
true
let
value
=
(
event
.
target
.
value
).
trim
()
let
value
=
event
.
target
.
value
let
uncurrency
=
this
.
$options
.
filter
[
'uncurrency'
]
event
.
target
.
value
=
''
let
newVal
=
uncurrency
(
value
)
event
.
target
.
value
=
value
event
.
target
.
value
=
newVal
setTimeout
(
function
()
{
setTimeout
(
function
()
{
let
dom
=
document
.
querySelector
(
'.content'
)
let
dom
=
document
.
querySelector
(
'.content'
)
let
veiwHeight
=
vm
.
getClientHeight
()
let
veiwHeight
=
vm
.
getClientHeight
()
...
@@ -108,26 +121,37 @@ export default {
...
@@ -108,26 +121,37 @@ export default {
ele
.
setAttribute
(
'class'
,
'add-height'
)
ele
.
setAttribute
(
'class'
,
'add-height'
)
ele
.
style
.
height
=
(
fontS
-
result
+
44
)
+
'px'
ele
.
style
.
height
=
(
fontS
-
result
+
44
)
+
'px'
ele
.
style
.
background
=
'#fff'
ele
.
style
.
background
=
'#fff'
// setTimeout(() => {
// setTimeout(() => {
dom
.
appendChild
(
ele
)
dom
.
appendChild
(
ele
)
// }, 100)
// }, 100)
dom
.
scrollTop
=
scrollTop
+
(
fontS
-
result
+
44
)
dom
.
scrollTop
=
scrollTop
+
(
fontS
-
result
+
44
)
// dom.scrollTo(dom.scrollLeft, scrollTop + (256 - result))
// 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
.
type
=
'text'
event
.
target
.
value
=
newVal
event
.
target
.
focus
()
// event.target.focus()
},
0
)
},
0
)
},
},
onBlur
(
event
)
{
onBlur
(
event
)
{
// if (this.disable) return
// if (this.disable) return
if
(
this
.
check
&&
this
.
check
<
1000
)
{
hlsPopup
.
showLongCenter
(
'设备单价不能小于1000元!'
)
}
if
(
this
.
allCheck
&&
this
.
allCheck
<
1000
)
{
hlsPopup
.
showLongCenter
(
'设备总价不能小于1000元!'
)
}
if
(
document
.
querySelector
(
'.add-height'
))
{
if
(
document
.
querySelector
(
'.add-height'
))
{
document
.
querySelector
(
'.content'
).
removeChild
(
document
.
querySelector
(
'.add-height'
))
document
.
querySelector
(
'.content'
).
removeChild
(
document
.
querySelector
(
'.add-height'
))
}
}
event
.
target
.
type
=
'text'
event
.
target
.
type
=
'text'
event
.
target
.
blur
()
this
.
focused
=
false
this
.
focused
=
false
setTimeout
(
function
()
{
document
.
getElementsByTagName
(
'body'
)[
0
].
style
.
height
=
window
.
innerHeight
+
'px'
},
50
)
},
},
// 取窗口可视范围的高度
// 取窗口可视范围的高度
getClientHeight
()
{
getClientHeight
()
{
var
clientHeight
=
0
var
clientHeight
=
0
...
@@ -138,7 +162,6 @@ export default {
...
@@ -138,7 +162,6 @@ export default {
}
}
return
clientHeight
return
clientHeight
},
},
// 取窗口滚动条高度
getOffsetTop
(
obj
)
{
getOffsetTop
(
obj
)
{
var
tmp
=
obj
.
offsetTop
var
tmp
=
obj
.
offsetTop
var
node
=
obj
.
offsetParent
var
node
=
obj
.
offsetParent
...
...
This diff is collapsed.
Click to expand it.
src/pages/contractSigning/contract-detail.vue
View file @
5e439375
This diff is collapsed.
Click to expand it.
src/pages/contractSigning/contract-new.vue
View file @
5e439375
This diff is collapsed.
Click to expand it.
src/pages/home/home-page.vue
View file @
5e439375
...
@@ -228,7 +228,7 @@ export default {
...
@@ -228,7 +228,7 @@ export default {
padding: 0 6px;
padding: 0 6px;
.card {
.card {
background: url("../../assets/homePage/home-card@2x.png") no-repeat;
background: url("../../assets/homePage/home-card
1
@2x.png") no-repeat;
background-size: 100% 100%;
background-size: 100% 100%;
height: 160px;
height: 160px;
...
...
This diff is collapsed.
Click to expand it.
src/pages/login.vue
View file @
5e439375
...
@@ -313,7 +313,7 @@ export default {
...
@@ -313,7 +313,7 @@ export default {
opacity: 0;
opacity: 0;
}
}
#login {
#login {
background: url("../assets/login/background@3x.png") no-repeat;
background: url("../assets/login/background
1
@3x.png") no-repeat;
background-size: 100% 100%;
background-size: 100% 100%;
background-position-x: 0px;
background-position-x: 0px;
color: #ffffff;
color: #ffffff;
...
...
This diff is collapsed.
Click to expand it.
src/pages/regiester2.vue
View file @
5e439375
...
@@ -261,7 +261,7 @@ export default {
...
@@ -261,7 +261,7 @@ export default {
#register {
#register {
.content {
.content {
background: url("../assets/login/register-back@3x.png") no-repeat;
background: url("../assets/login/register-back
1
@3x.png") no-repeat;
background-size: 100% 100%;
background-size: 100% 100%;
}
}
...
@@ -395,7 +395,6 @@ export default {
...
@@ -395,7 +395,6 @@ export default {
}
}
}
}
.return {
.return {
opacity: 1;
opacity: 1;
background: #fff;
background: #fff;
...
...
This diff is collapsed.
Click to expand it.
src/pages/userBindNew/org/bankInfo.vue
View file @
5e439375
This diff is collapsed.
Click to expand it.
src/pages/userBindNew/org/baseInfo.vue
View file @
5e439375
This diff is collapsed.
Click to expand it.
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