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
8ede6c19
Commit
8ede6c19
authored
Apr 03, 2020
by
linxin
Browse files
Options
Browse Files
Download
Plain Diff
add
parents
d07f9f7f
61386bbb
Pipeline
#5453
canceled with stages
Changes
26
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
582 additions
and
253 deletions
+582
-253
dev.env.js
config/dev.env.js
+0
-4
prod.env.js
config/prod.env.js
+1
-1
uat.env.js
config/uat.env.js
+1
-1
index.html
index.html
+23
-11
logintitle.png
src/assets/login/logintitle.png
+0
-0
right-register.png
src/assets/login/right-register.png
+0
-0
right-title.png
src/assets/login/right-title.png
+0
-0
righttitle.png
src/assets/login/righttitle.png
+0
-0
main.js
src/main.js
+16
-3
add-undertake.vue
src/pages/contractCreate/add-undertake.vue
+44
-20
creat-rent-info.vue
src/pages/contractCreate/creat-rent-info.vue
+6
-3
create-base-info.vue
src/pages/contractCreate/create-base-info.vue
+24
-53
sales-info.vue
src/pages/contractCreate/sales-info.vue
+35
-24
contract-records.vue
src/pages/contractInquire/contract-records.vue
+149
-4
home-page.vue
src/pages/home/home-page.vue
+37
-37
location.vue
src/pages/home/location.vue
+29
-29
login.vue
src/pages/login.vue
+1
-1
pay-entry.vue
src/pages/pay/firstPay/pay-entry.vue
+1
-1
regiester2.vue
src/pages/regiester2.vue
+1
-1
accessory-info.vue
src/pages/userBindNew/np/accessory-info.vue
+15
-15
bankInfo.vue
src/pages/userBindNew/org/bankInfo.vue
+28
-4
baseInfo.vue
src/pages/userBindNew/org/baseInfo.vue
+167
-23
enclosure.vue
src/pages/userBindNew/org/enclosure.vue
+0
-17
index.js
src/router/index.js
+3
-0
www.zip
www.zip
+0
-0
index.html
www/index.html
+1
-1
No files found.
config/dev.env.js
View file @
8ede6c19
...
...
@@ -21,7 +21,3 @@ module.exports = merge(prodEnv, {
config/prod.env.js
View file @
8ede6c19
...
...
@@ -11,5 +11,5 @@ module.exports = {
ocrPath
:
'"http://www.xcmgfs.com:8087/r/api"'
,
fileUploadSvcPath
:
'"http://www.xcmgfs.com:8087/r/api/app/fileUploadSvc?sysName=XCMG_PROD&apiName="'
,
appId
:
'"com.xcmg.app"'
,
currentVersion
:
'"0.
0.5
"'
currentVersion
:
'"0.
1.1
"'
}
config/uat.env.js
View file @
8ede6c19
...
...
@@ -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
:
'"
1.9.0
"'
currentVersion
:
'"
2.1.6
"'
}
index.html
View file @
8ede6c19
...
...
@@ -22,16 +22,28 @@
<body>
<div
id=
"app-box"
></div>
<!-- built files will be auto injected -->
<!--<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阻止默认事件
}
</script>-->
<!-- <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(true);
// }, 50);
// }
// })
// }
</script> -->
</body>
</html>
src/assets/login/logintitle.png
deleted
100644 → 0
View file @
d07f9f7f
56.1 KB
src/assets/login/right-register.png
0 → 100644
View file @
8ede6c19
12.9 KB
src/assets/login/title.png
→
src/assets/login/
right-
title.png
View replaced file @
d07f9f7f
View file @
8ede6c19
54.4 KB
|
W:
|
H:
56.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/login/righttitle.png
0 → 100644
View file @
8ede6c19
56.9 KB
src/main.js
View file @
8ede6c19
...
...
@@ -57,8 +57,9 @@ import hlsUtil from './scripts/hlsUtil'
import
Jpush
from
'./scripts/jpushService'
import
Jmessage
from
'./scripts/jmessageService'
if
(
process
.
env
.
CONFIG_ENV
===
'uat'
||
process
.
env
.
CONFIG_ENV
===
'dev'
)
{
//
// || process.env.CONFIG_ENV === 'prod'
if
(
process
.
env
.
CONFIG_ENV
===
'dev'
||
process
.
env
.
CONFIG_ENV
===
'uat'
)
{
const
VConsole
=
require
(
'vconsole'
)
new
VConsole
()
// eslint-disable-line
}
...
...
@@ -181,7 +182,19 @@ vum.$vumPlatform.registerBackButtonAction(function (e) {
e
.
preventDefault
()
return
false
},
101
)
// input遮挡
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
)
}
})
}
/* eslint-disable no-new */
new
Vue
({
data
()
{
...
...
src/pages/contractCreate/add-undertake.vue
View file @
8ede6c19
<
template
>
<h-view
v-if=
"showFlag"
id=
"add-person"
>
<h-header
:proportion=
"[1,4,1]"
class=
"bar-custom"
>
<span
slot=
"center"
style=
"color:#fff"
>
添加担保人
</span>
<span
slot=
"right"
style=
"color:#fff"
@
click=
"showFlag=false"
>
取消
</span>
<h-view
id=
"add-person"
>
<h-header
:proportion=
"[5,1,1]"
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$routeGo()"
>
<span>
合同创建
</span>
</div>
</h-header>
<div
class=
"search has-header"
>
<input
v-model=
"keyWord"
placeholder=
"请输入担保人名称/证件号码"
>
...
...
@@ -26,12 +28,12 @@
</
template
>
<
script
>
export
default
{
props
:
{
bp_agent_id
:
{
type
:
String
,
default
:
''
,
},
},
//
props: {
//
bp_agent_id: {
//
type: String,
//
default: '',
//
},
//
},
data
()
{
return
{
undertakeList
:
[],
// 担保人列表
...
...
@@ -39,10 +41,17 @@ export default {
pagenum
:
1
,
keyWord
:
''
,
showFlag
:
false
,
bp_agent_id
:
this
.
$route
.
params
.
bp_agent_id
,
}
},
watch
:
{
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
vm
.
init
()
vm
.
getUndertake
()
})
},
methods
:
{
show
()
{
...
...
@@ -50,7 +59,7 @@ export default {
},
init
()
{
this
.
undertakeList
=
[]
this
.
selectUdertake
=
[]
this
.
selectUdertake
=
{}
this
.
pagenum
=
1
this
.
keyWord
=
''
},
...
...
@@ -105,10 +114,17 @@ export default {
})
},
addUndertake
(
e
)
{
let
vm
=
this
this
.
selectUdertake
=
e
this
.
$emit
(
'addUnder'
,
this
.
selectUdertake
)
//
this.$emit('addUnder', this.selectUdertake)
setTimeout
(()
=>
{
this
.
showFlag
=
false
vm
.
$router
.
replace
({
name
:
'CreateBaseInfo'
,
params
:
{
selectUdertake
:
vm
.
selectUdertake
,
},
})
vm
.
$router
.
go
(
-
1
)
},
100
)
},
getUndertake
()
{
// 担保人查询
...
...
@@ -164,6 +180,7 @@ export default {
margin: 0 auto;
}
.search {
position: absolute;
background-color: #fff;
padding: 8px 12px;
width: 100%;
...
...
@@ -197,20 +214,27 @@ export default {
border: 2px solid #bcc6ff;
}
}
.content {
position: absolute;
top: 0;
}
.scrollContent {
padding-top: 2rem;
padding-bottom: 20px;
}
}
.platform-ios {
#person {
#
add-
person {
.scrollContent {
padding-top:
1
.4rem;
padding-top:
2
.4rem;
}
}
}
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#person {
#
add-
person {
.scrollContent {
padding-top:
1
.8rem;
padding-top:
2
.8rem;
}
}
}
...
...
@@ -218,9 +242,9 @@ export default {
// iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#person {
#
add-
person {
.scrollContent {
padding-top:
1
.8rem;
padding-top:
2
.8rem;
}
.search {
input {
...
...
src/pages/contractCreate/creat-rent-info.vue
View file @
8ede6c19
...
...
@@ -846,7 +846,8 @@ export default {
}, */
setTime
()
{
if
(
!
this
.
saveInfo
.
lease_start_date
)
{
let
signDate
=
new
Date
(
window
.
localStorage
.
getItem
(
'signDate'
).
replace
(
/-/
,
'/'
))
let
date
=
window
.
localStorage
.
getItem
(
'signDate'
).
replace
(
/-/g
,
'/'
)
let
signDate
=
new
Date
(
date
)
let
iToDay
=
signDate
.
getDate
()
let
iToMon
=
signDate
.
getMonth
()
let
iToYear
=
signDate
.
getFullYear
()
...
...
@@ -856,13 +857,15 @@ export default {
},
showTime
(
format
)
{
// 预计付款日
let
vm
=
this
let
signDate
=
new
Date
(
window
.
localStorage
.
getItem
(
'signDate'
).
replace
(
/-/
,
'/'
))
let
date
=
window
.
localStorage
.
getItem
(
'signDate'
).
replace
(
/-/g
,
'/'
)
let
signDate
=
new
Date
(
date
)
let
iToDay
=
signDate
.
getDate
()
let
iToMon
=
signDate
.
getMonth
()
let
iToYear
=
signDate
.
getFullYear
()
let
newDay
=
new
Date
(
iToYear
,
iToMon
,
(
iToDay
+
30
))
hlsPopup
.
showTime
({
nowDate
:
newDay
.
format
(
'yyyy-MM-dd'
),
// nowDate: newDay.format('yyyy-MM-dd'),
nowDate
:
(
new
Date
(
iToYear
,
iToMon
,
(
iToDay
+
30
))).
format
(
'yyyy-MM-dd'
),
format
:
format
,
callback
:
(
date
)
=>
{
if
(
date
>=
(
new
Date
()).
format
(
'yyyy-MM-dd'
))
{
...
...
src/pages/contractCreate/create-base-info.vue
View file @
8ede6c19
...
...
@@ -382,15 +382,15 @@
<tab-button
class=
"before"
@
click
.
native=
"$routeGo()"
>
上一步
</tab-button>
<tab-button
class=
"next"
@
click
.
native=
"save"
>
下一步
</tab-button>
</bottom-tab>
<
AddUnderTake
ref=
"addperson"
:bp_agent_id=
"bp_agent_id"
@
addUnder=
"addUnder"
/
>
<
!--
<AddUnderTake
ref=
"addperson"
:bp_agent_id=
"bp_agent_id"
@
addUnder=
"addUnder"
/>
--
>
</h-view>
</
template
>
<
script
>
import
AddUnderTake
from
'../../pages/contractCreate/add-undertake'
//
import AddUnderTake from '../../pages/contractCreate/add-undertake'
export
default
{
components
:
{
AddUnderTake
,
},
//
components: {
//
AddUnderTake,
//
},
data
()
{
return
{
salesEnter
:
''
,
// 页面进入标识,该字段作用:第一次创建时即从销售页面进入进本信息、租赁信息、附件信息。用于判断后面页面录入数据后未保存则点击上一步,再次进入该页面数据丢失问题
...
...
@@ -585,6 +585,10 @@ export default {
vm
.
getSaveInfo
()
vm
.
getBaseInfo
()
},
0
)
}
else
if
(
from
.
name
===
'Addundertake'
)
{
if
(
vm
.
$route
.
params
.
selectUdertake
)
{
vm
.
addUnder
(
vm
.
$route
.
params
.
selectUdertake
)
}
}
})
},
...
...
@@ -664,17 +668,25 @@ export default {
}
},
addPerson
()
{
this
.
$refs
.
addperson
.
init
()
this
.
$refs
.
addperson
.
getUndertake
()
this
.
$refs
.
addperson
.
show
()
// this.$refs.addperson.init()
// this.$refs.addperson.getUndertake()
// this.$refs.addperson.show()
this
.
$router
.
push
({
name
:
'Addundertake'
,
params
:
{
bp_agent_id
:
this
.
bp_agent_id
,
},
})
},
makeData
()
{
let
obj
=
{}
this
.
selectUdertake
.
forEach
((
i
,
index
,
arr
)
=>
{
obj
[
`bp_id_guta_
${
index
+
1
}
`
]
=
i
.
bp_guta_id
})
return
obj
if
(
this
.
selectUdertake
.
length
>
0
)
{
this
.
selectUdertake
.
forEach
((
i
,
index
,
arr
)
=>
{
obj
[
`bp_id_guta_
${
index
+
1
}
`
]
=
i
.
bp_guta_id
})
return
obj
}
},
getAgentInfo
()
{
let
vm
=
this
...
...
@@ -1202,47 +1214,6 @@ export default {
}
}
}
#add-person {
.item {
width: 359px;
margin: 0 auto;
}
.search {
background-color: #fff;
padding: 8px 12px;
width: 100%;
height: 1.02rem;
z-index: 100;
margin-bottom: 8px;
input {
background: url("../../assets/contractStart/search1.png") 320px no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
padding-left: 12px;
height: 36px;
line-height: 36px;
border-radius: 4px;
width: 100%;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888c8f;
}
input::placeholder {
font-family: PingFangSC-Regular;
font-size: 14px;
color: #888c8f;
letter-spacing: 0;
}
input:focus {
background: url("../../assets/contractStart/search2.png") 320px no-repeat;
background-size: 16px 16px;
background-color: rgba(239, 239, 239, 0.55);
border: 2px solid #bcc6ff;
}
}
}
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#add-person {
...
...
src/pages/contractCreate/sales-info.vue
View file @
8ede6c19
...
...
@@ -65,7 +65,6 @@
type=
"text"
readonly
placeholder=
"请选择"
@
click=
"selectFactory"
>
</item>
<item>
...
...
@@ -179,20 +178,20 @@ export default {
}
},
watch
:
{
'salesInfo.factory'
:
{
handler
(
newVal
,
oldVal
)
{
this
.
factoty
.
forEach
(
i
=>
{
if
(
i
.
bp_factory_id
===
this
.
salesInfo
[
'factory'
])
{
this
.
inflow_line
=
i
.
inflow_line
this
.
inflow_used
=
i
.
inflow_used
this
.
inflow_reset
=
i
.
inflow_reset
this
.
salesInfo
.
credit_id
=
i
.
credit_id
window
.
localStorage
.
setItem
(
'credit_id'
,
i
.
credit_id
)
}
})
},
immediate
:
true
,
},
//
'salesInfo.factory': {
//
handler (newVal, oldVal) {
//
this.factoty.forEach(i => {
//
if (i.bp_factory_id === this.salesInfo['factory']) {
//
this.inflow_line = i.inflow_line
//
this.inflow_used = i.inflow_used
//
this.inflow_reset = i.inflow_reset
//
this.salesInfo.credit_id = i.credit_id
//
window.localStorage.setItem('credit_id', i.credit_id)
//
}
//
})
//
},
//
immediate: true,
//
},
// '$route' (to, from) {
// debugger
// if (from.fullPath !== '/contract-create-list' && to.fullPath === '/sales-info') {
...
...
@@ -236,8 +235,8 @@ export default {
}
vm
.
businessQuery
().
then
(
res
=>
{
vm
.
agentQuery
().
then
(
res
=>
{
vm
.
factoryQuery
().
then
(
res
=>
{
})
//
vm.factoryQuery().then(res => {
//
})
})
})
}
else
if
(
from
.
name
===
'CreateBaseInfo'
)
{
...
...
@@ -328,6 +327,7 @@ export default {
vm
.
office_name
=
res
.
info
.
bp_agent_name
vm
.
salesInfo
.
office_id
=
res
.
info
.
bp_agent_id
vm
.
salesInfo
.
bp_id_agent
=
''
vm
.
factoryQuery
()
}
else
{
vm
.
salesInfo
.
bp_id_agent
=
res
.
info
.
bp_agent_id
}
...
...
@@ -344,18 +344,28 @@ export default {
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'prj_factory_list'
let
param
=
{
office_id
:
vm
.
salesInfo
.
office_id
,
phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
}
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
return
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
factoty
=
res
.
lists
//
vm.factoty = res.lists
if
(
res
.
result
===
'S'
)
{
vm
.
factoryLists
=
res
.
lists
.
map
(
item
=>
{
return
{
code
:
item
.
bp_factory_id
,
code_name
:
item
.
bp_factory_name
,
}
// vm.factoryLists = res.lists.map(item => {
// return {
// code: item.bp_factory_id,
// code_name: item.bp_factory_name,
// }
// })
res
.
lists
.
forEach
(
i
=>
{
vm
.
inflow_line
=
i
.
inflow_line
vm
.
inflow_used
=
i
.
inflow_used
vm
.
inflow_reset
=
i
.
inflow_reset
vm
.
salesInfo
.
factory
=
i
.
bp_factory_id
vm
.
salesInfo
.
credit_id
=
i
.
credit_id
vm
.
factory_name
=
i
.
bp_factory_name
window
.
localStorage
.
setItem
(
'credit_id'
,
i
.
credit_id
)
})
}
})
...
...
@@ -439,6 +449,7 @@ export default {
returnItem
:
function
(
index
,
obj
)
{
vm
.
salesInfo
.
office_id
=
obj
.
office_type
vm
.
office_name
=
obj
.
office_type_n
vm
.
factoryQuery
()
},
})
},
...
...
src/pages/contractInquire/contract-records.vue
View file @
8ede6c19
This diff is collapsed.
Click to expand it.
src/pages/home/home-page.vue
View file @
8ede6c19
...
...
@@ -53,9 +53,9 @@
<div
slot=
"content"
class=
"item-content"
>
<div
class=
"top"
>
{{
list
.
product_name
}}
</div>
<img
src=
"@/assets/homePage/hot.png"
class=
"hot"
>
<div
class=
"center"
><span
class=
"firsts"
>
经销商
</span>
<span
class=
"seconds"
>
{{
list
.
bp_name
}}
</span></div>
<div
class=
"center"
><span
class=
"firsts"
>
{{
!
list
.
office_id
&&!
list
.
agent_id
?
"-"
:(
list
.
office_id
?
'办事处'
:
'经销商'
)
}}
</span>
<span
class=
"seconds"
>
{{
!
list
.
office_id
&&!
list
.
agent_id
?
"-"
:(
list
.
office_id
?
list
.
office_name
:
list
.
agent_name
)
}}
</span></div>
<div
class=
"center"
><span
class=
"firsts"
>
产品型号
</span>
<span
class=
"seconds"
>
{{
list
.
product_code
}}
</span></div>
<div
class=
"center"
><span
class=
"firsts"
>
地址
</span>
<span
class=
"seconds"
>
{{
list
.
province_id_n
===
list
.
city_id_n
?
list
.
city_id_n
+
list
.
district_id_n
:
list
.
province_id_n
+
list
.
city_id_n
+
list
.
district_id_n
}}
</span></div>
<div
class=
"center"
><span
class=
"firsts"
>
地址
</span>
<span
class=
"seconds"
>
{{
!
list
.
office_id
&&!
list
.
agent_id
?(
list
.
province_id_n
===
list
.
city_id_n
?(
list
.
district_id_n
?
list
.
city_id_n
+
list
.
district_id_n
:
list
.
city_id_n
):(
list
.
district_id_n
?
list
.
province_id_n
+
list
.
city_id_n
+
list
.
district_id_n
:
list
.
province_id_n
+
list
.
city_id_n
)):(
list
.
office_id
?
(
list
.
office_province
===
list
.
office_city
?(
list
.
office_district
?
list
.
office_city
+
list
.
office_district
:
list
.
office_city
):(
list
.
office_district
?
list
.
office_province
+
list
.
office_city
+
list
.
office_district
:
list
.
office_province
+
list
.
office_city
)):(
list
.
agent_province
===
list
.
agent_city
?(
list
.
agent_district
?
list
.
agent_city
+
list
.
agent_district
:
list
.
agent_city
):(
list
.
agent_district
?
list
.
agent_province
+
list
.
agent_city
+
list
.
agent_district
:
list
.
agent_province
+
list
.
agent_city
)))
}}
</span></div>
</div>
</item>
</list-item>
...
...
@@ -102,41 +102,41 @@ export default {
// 定位
getLocation
()
{
let
vm
=
this
if
(
vum
.
Platform
.
isAndroid
())
{
// 安卓采用jsapi
var
geolocation
=
new
BMap
.
Geolocation
()
vm
.
hlsPopup
.
showLoading
(
'数据加载中'
)
geolocation
.
getCurrentPosition
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
this
.
getStatus
()
===
0
)
{
// 判断是否是手动选择过定位
if
(
window
.
localStorage
.
getItem
(
'province'
))
{
vm
.
city
=
window
.
localStorage
.
getItem
(
'city'
)
vm
.
province
=
window
.
localStorage
.
getItem
(
'province'
)
vm
.
guessingQuery
(
vm
.
city
)
}
else
{
// 没有就定位当前位置
console
.
log
(
res
)
vm
.
city
=
res
.
address
.
city
vm
.
province
=
res
.
address
.
province
vm
.
guessingQuery
(
res
.
address
.
city
)
}
}
},
{
enableHighAccuracy
:
true
})
}
else
{
// ios使用插件定位
console
.
log
(
'&&&&&&&&&&&&___ios'
)
baidumap_location
.
getCurrentPosition
(
function
(
result
)
{
if
(
window
.
localStorage
.
getItem
(
'province'
))
{
vm
.
city
=
window
.
localStorage
.
getItem
(
'city'
)
vm
.
province
=
window
.
localStorage
.
getItem
(
'province'
)
vm
.
guessingQuery
(
vm
.
city
)
}
else
{
vm
.
city
=
result
.
city
vm
.
province
=
result
.
province
vm
.
guessingQuery
(
result
.
city
)
}
},
function
(
error
)
{
})
}
//
if (vum.Platform.isAndroid()) { // 安卓采用jsapi
//
var geolocation = new BMap.Geolocation()
//
vm.hlsPopup.showLoading('数据加载中')
//
geolocation.getCurrentPosition(function (res) {
//
vm.hlsPopup.hideLoading()
//
if (this.getStatus() === 0) {
//
// 判断是否是手动选择过定位
//
if (window.localStorage.getItem('province')) {
//
vm.city = window.localStorage.getItem('city')
//
vm.province = window.localStorage.getItem('province')
//
vm.guessingQuery(vm.city)
//
} else {
//
// 没有就定位当前位置
//
console.log(res)
//
vm.city = res.address.city
//
vm.province = res.address.province
//
vm.guessingQuery(res.address.city)
//
}
//
}
//
}, {enableHighAccuracy: true})
//
} else { // ios使用插件定位
console
.
log
(
'&&&&&&&&&&&&___ios'
)
baidumap_location
.
getCurrentPosition
(
function
(
result
)
{
if
(
window
.
localStorage
.
getItem
(
'province'
))
{
vm
.
city
=
window
.
localStorage
.
getItem
(
'city'
)
vm
.
province
=
window
.
localStorage
.
getItem
(
'province'
)
vm
.
guessingQuery
(
vm
.
city
)
}
else
{
vm
.
city
=
result
.
city
vm
.
province
=
result
.
province
vm
.
guessingQuery
(
result
.
city
)
}
},
function
(
error
)
{
})
//
}
// setTimeout(vm.guessingQuery(), 0)
},
goFunctionHome
(
data
)
{
...
...
src/pages/home/location.vue
View file @
8ede6c19
...
...
@@ -95,35 +95,35 @@ export default {
// 重新定位到当前位置
relocation
()
{
let
vm
=
this
if
(
vum
.
Platform
.
isAndroid
())
{
// 安卓采用jsapi
var
geolocation
=
new
BMap
.
Geolocation
()
geolocation
.
getCurrentPosition
(
function
(
res
)
{
if
(
this
.
getStatus
()
===
0
)
{
window
.
localStorage
.
setItem
(
'province'
,
res
.
address
.
province
)
window
.
localStorage
.
setItem
(
'city'
,
res
.
address
.
city
)
vm
.
places
=
window
.
localStorage
.
getItem
(
'province'
)
+
'-'
+
window
.
localStorage
.
getItem
(
'city'
)
vm
.
province
=
'请选择省'
vm
.
city
=
'请选择市'
vm
.
flag
=
false
vm
.
province_flag
=
true
}
},
function
(
error
)
{
console
.
log
(
error
)
},
{
enableHighAccuracy
:
true
})
}
else
{
// ios使用插件定位
baidumap_location
.
getCurrentPosition
(
function
(
result
)
{
console
.
log
(
'*********** '
+
JSON
.
stringify
(
result
))
window
.
localStorage
.
setItem
(
'province'
,
result
.
province
)
window
.
localStorage
.
setItem
(
'city'
,
result
.
city
)
vm
.
places
=
window
.
localStorage
.
getItem
(
'province'
)
+
'-'
+
window
.
localStorage
.
getItem
(
'city'
)
vm
.
province
=
'请选择省'
vm
.
city
=
'请选择市'
vm
.
flag
=
false
vm
.
province_flag
=
true
},
function
(
error
)
{
console
.
log
(
'errorerrorerrorerror '
+
error
)
})
}
//
if (vum.Platform.isAndroid()) { // 安卓采用jsapi
//
var geolocation = new BMap.Geolocation()
//
geolocation.getCurrentPosition(function (res) {
//
if (this.getStatus() === 0) {
//
window.localStorage.setItem('province', res.address.province)
//
window.localStorage.setItem('city', res.address.city)
//
vm.places = window.localStorage.getItem('province') + '-' + window.localStorage.getItem('city')
//
vm.province = '请选择省'
//
vm.city = '请选择市'
//
vm.flag = false
//
vm.province_flag = true
//
}
//
}, function (error) {
//
console.log(error)
//
}, {enableHighAccuracy: true})
//
} else { // ios使用插件定位
baidumap_location
.
getCurrentPosition
(
function
(
result
)
{
console
.
log
(
'*********** '
+
JSON
.
stringify
(
result
))
window
.
localStorage
.
setItem
(
'province'
,
result
.
province
)
window
.
localStorage
.
setItem
(
'city'
,
result
.
city
)
vm
.
places
=
window
.
localStorage
.
getItem
(
'province'
)
+
'-'
+
window
.
localStorage
.
getItem
(
'city'
)
vm
.
province
=
'请选择省'
vm
.
city
=
'请选择市'
vm
.
flag
=
false
vm
.
province_flag
=
true
},
function
(
error
)
{
console
.
log
(
'errorerrorerrorerror '
+
error
)
})
//
}
},
// 省份查询
...
...
src/pages/login.vue
View file @
8ede6c19
...
...
@@ -13,7 +13,7 @@
</transition>
<div
class=
"bird-icon"
/>
<div
class=
"login-wrap"
>
<img
class=
"title"
src=
"../assets/login/
login
title.png"
>
<img
class=
"title"
src=
"../assets/login/
right-
title.png"
>
<div
class=
"pwd"
>
<div
class=
"pwd-input"
>
<input
...
...
src/pages/pay/firstPay/pay-entry.vue
View file @
8ede6c19
...
...
@@ -97,7 +97,7 @@
<div
class=
"info"
>
<div
class=
"info-item"
>
<span>
还款金额
</span>
<span>
¥
{{
parseFloat
(
money
).
toFixed
(
2
)
|
currency
}}
</span>
<span>
{{
parseFloat
(
money
).
toFixed
(
2
)
|
currency
}}
</span>
</div>
<div
class=
"interest"
>
<span>
本次交易收取
{{
rate
}}
%手续费
</span>
...
...
src/pages/regiester2.vue
View file @
8ede6c19
...
...
@@ -7,7 +7,7 @@
</div>
<div
class=
"box"
>
<div
class=
"box-content"
>
<img
class=
"register-title"
src=
"../assets/login/r
ege
ster.png"
>
<img
class=
"register-title"
src=
"../assets/login/r
ight-regi
ster.png"
>
<div
class=
"reg-item"
>
<img
src=
"../assets/login/reg-user.png"
class=
"left-icon"
>
<input
v-model=
"phone_number"
placeholder=
"请输入手机号码"
>
...
...
src/pages/userBindNew/np/accessory-info.vue
View file @
8ede6c19
...
...
@@ -587,22 +587,22 @@ export default {
}
},
attachmentCheck
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_attachment_check'
let
param
=
{
bp_id
:
window
.
localStorage
.
getItem
(
'bp_id'
),
}
vm
.
hlsPopup
.
showLoading
(
'正在校验数据'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
$router
.
push
({
name
:
'NPBankInfo'
,
})
}
else
{
hlsPopup
.
showError
(
res
.
message
)
}
// let vm = this
// let url = process.env.basePath + 'bp_attachment_check'
// let param = {
// bp_id: window.localStorage.getItem('bp_id'),
// }
// vm.hlsPopup.showLoading('正在校验数据')
// vm.hlsHttp.post(url, param).then(function (res) {
// vm.hlsPopup.hideLoading()
// if (res.result === 'S') {
this
.
$router
.
push
({
name
:
'NPBankInfo'
,
})
// } else {
// hlsPopup.showError(res.message)
// }
// })
},
async
getHouseInfo
()
{
let
vm
=
this
...
...
src/pages/userBindNew/org/bankInfo.vue
View file @
8ede6c19
...
...
@@ -57,7 +57,7 @@
</div>
</div>
<bottom-tab
class=
"footer-button"
>
<tab-button
class=
"save"
@
click
.
native=
"
handSubmit
"
>
提交
</tab-button>
<tab-button
class=
"save"
@
click
.
native=
"
addCheck
"
>
提交
</tab-button>
</bottom-tab>
<h-modal
ref=
"modal"
v-model=
"showModalValue"
position=
"bottom"
>
<h-view>
...
...
@@ -169,6 +169,29 @@ export default {
})
},
methods
:
{
// 提交前校验
addCheck
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_attachment_check'
let
param
=
{
bp_id
:
vm
.
$route
.
params
.
bp_id
,
}
if
(
window
.
localStorage
.
getItem
(
'authFlag'
)
===
'true'
)
{
console
.
log
(
11111111111
)
vm
.
handSubmit
()
}
else
{
console
.
log
(
2222222222
)
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
handSubmit
()
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
},
// 银行卡查询
getBankInfo
()
{
let
vm
=
this
...
...
@@ -276,7 +299,7 @@ export default {
}
},
putData
()
{
this
.
throttle
(
this
.
handSubmit
(),
3000
)
this
.
throttle
(
this
.
addCheck
(),
3000
)
},
// 提交
async
handSubmit
()
{
...
...
@@ -372,8 +395,9 @@ export default {
vm
.
authUrl
=
res
.
info
.
data
.
authUrl
return
vm
.
authUrl
}
else
if
((
res
.
info
.
code
===
0
)
&&
(
res
.
info
.
data
.
openId
))
{
vm
.
authUrl
=
res
.
info
.
data
.
openId
return
vm
.
authUrl
// vm.authUrl = res.info.data.openId
// return vm.authUrl
return
false
}
else
{
// hlsPopup.showError(res.info.msg)
// vm.errorMsg = res.info.msg
...
...
src/pages/userBindNew/org/baseInfo.vue
View file @
8ede6c19
This diff is collapsed.
Click to expand it.
src/pages/userBindNew/org/enclosure.vue
View file @
8ede6c19
...
...
@@ -563,23 +563,6 @@ export default {
})
},
methods
:
{
// 附件信息保存前校验
addCheck
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_attachment_check'
let
param
=
{
bp_id
:
vm
.
bp_id
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
},
addRow
(
e
,
event
)
{
// let num = Math.ceil((el.target.scrollHeight - 42) / 20)
// if (num > 0) {
...
...
src/router/index.js
View file @
8ede6c19
...
...
@@ -126,6 +126,7 @@ import CreateBaseInfo from '@/pages/contractCreate/create-base-info'
import
CreateRentInfo
from
'@/pages/contractCreate/creat-rent-info'
import
CreateEnclosureInfo
from
'@/pages/contractCreate/create-enclosure-info'
import
previewPdf
from
'@/pages/contractSigning/previewPdf'
import
Addundertake
from
'@/pages/contractCreate/add-undertake'
import
About
from
'@/pages/myInfo/About'
import
UserAgree
from
'@/pages/myInfo/UserAgreement'
...
...
@@ -302,6 +303,8 @@ export default new Router({
{
path
:
'/create-rent-info'
,
component
:
CreateRentInfo
,
name
:
'CreateRentInfo'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/create-enclosure-info'
,
component
:
CreateEnclosureInfo
,
name
:
'CreateEnclosureInfo'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/previewPdf'
,
component
:
previewPdf
,
name
:
'previewPdf'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/add-undertake'
,
component
:
Addundertake
,
name
:
'Addundertake'
,
meta
:
{
keepAlive
:
false
}},
// 我的发票
{
path
:
'/invoice'
,
component
:
MyInvoice
,
name
:
'MyInvoice'
,
meta
:
{
keepAlive
:
false
}},
{
...
...
www.zip
0 → 100644
View file @
8ede6c19
File added
www/index.html
View file @
8ede6c19
<!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.86fcba644d8041457ce897f4067d5333.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.df6dc5efef3e34ce596d.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.d089c3d6affb6993374aa520f9b599cf.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.adf9b230a1046c0fc990.js
></script><script
type=
text/javascript
src=
./static/js/app.8001ee304fb16957d18d.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