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
82894824
Commit
82894824
authored
Jan 10, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
9acbe89d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
129 additions
and
70 deletions
+129
-70
dev.env.js
config/dev.env.js
+2
-2
banner.jpg
src/assets/homePage/banner.jpg
+0
-0
add-undertake.vue
src/pages/contractCreate/add-undertake.vue
+1
-1
home-page.vue
src/pages/home/home-page.vue
+1
-1
my-info.vue
src/pages/myInfo/my-info.vue
+3
-3
bank-info.vue
src/pages/userBindNew/np/bank-info.vue
+5
-1
bankInfo.vue
src/pages/userBindNew/org/bankInfo.vue
+78
-60
baseInfo.vue
src/pages/userBindNew/org/baseInfo.vue
+39
-2
No files found.
config/dev.env.js
View file @
82894824
...
@@ -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=admin&password=" '
,
loginPath
:
'"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=admin&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"'
,
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"'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
appId
:
'"com.xcmg.app"'
,
appId
:
'"com.xcmg.app"'
,
currentVersion
:
'"1.0.2"'
,
currentVersion
:
'"1.0.2"'
,
...
...
src/assets/homePage/banner.jpg
0 → 100644
View file @
82894824
340 KB
src/pages/contractCreate/add-undertake.vue
View file @
82894824
...
@@ -211,7 +211,7 @@ export default {
...
@@ -211,7 +211,7 @@ export default {
}
}
}
}
.platform-ios {
.platform-ios {
#
confirmList
{
#
person
{
.scrollContent {
.scrollContent {
padding-top: 1.4rem;
padding-top: 1.4rem;
}
}
...
...
src/pages/home/home-page.vue
View file @
82894824
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
<div
class=
"top-wrap-white"
/>
<div
class=
"top-wrap-white"
/>
<swipe
:interval=
"5000"
class=
"hls-swipe"
>
<swipe
:interval=
"5000"
class=
"hls-swipe"
>
<swipe-item
class=
"hls-swipe"
>
<swipe-item
class=
"hls-swipe"
>
<img
src=
"@/assets/homePage/banner
1.pn
g"
alt=
""
>
<img
src=
"@/assets/homePage/banner
.jp
g"
alt=
""
>
</swipe-item>
</swipe-item>
<swipe-item
class=
"hls-swipe"
>
<swipe-item
class=
"hls-swipe"
>
<img
src=
"@/assets/homePage/banner2.png"
alt=
""
>
<img
src=
"@/assets/homePage/banner2.png"
alt=
""
>
...
...
src/pages/myInfo/my-info.vue
View file @
82894824
...
@@ -886,8 +886,7 @@ export default {
...
@@ -886,8 +886,7 @@ export default {
if
(
vm
.
bp_id
)
{
if
(
vm
.
bp_id
)
{
if
(
if
(
vm
.
bp_identity
===
'NP_NO'
||
vm
.
bp_identity
===
'NP_NO'
||
vm
.
bp_identity
===
'ORG_L_NO'
||
vm
.
bp_identity
===
'ORG_L_NO'
vm
.
bp_identity
===
'ORG_AUTH_NO'
)
{
)
{
let
authUrl
=
await
vm
.
getNpCertificationUrl
()
let
authUrl
=
await
vm
.
getNpCertificationUrl
()
if
(
authUrl
)
{
if
(
authUrl
)
{
...
@@ -900,7 +899,8 @@ export default {
...
@@ -900,7 +899,8 @@ export default {
}
else
{
}
else
{
// hlsPopup.showLongCenter('获取认证url失败')
// hlsPopup.showLongCenter('获取认证url失败')
}
}
}
else
if
(
vm
.
bp_identity
===
'ORG_NO'
)
{
}
else
if
(
vm
.
bp_identity
===
'ORG_NO'
||
vm
.
bp_identity
===
'ORG_AUTH_NO'
)
{
// let authUrl = await vm.getOrgCertificationUrl()
// let authUrl = await vm.getOrgCertificationUrl()
// if (authUrl) {
// if (authUrl) {
// vm.$router.push({
// vm.$router.push({
...
...
src/pages/userBindNew/np/bank-info.vue
View file @
82894824
...
@@ -220,7 +220,7 @@ export default {
...
@@ -220,7 +220,7 @@ export default {
vm
.
hlsPopup
.
showSuccess
(
'提交成功'
)
vm
.
hlsPopup
.
showSuccess
(
'提交成功'
)
if
(
vm
.
certification_status
===
'Y'
)
{
if
(
vm
.
certification_status
===
'Y'
)
{
vm
.
$router
.
push
({
vm
.
$router
.
push
({
name
:
'
HomePage
'
,
name
:
'
MyInfo
'
,
})
})
}
else
if
(
vm
.
certification_status
===
'N'
)
{
}
else
if
(
vm
.
certification_status
===
'N'
)
{
vm
.
$router
.
push
({
vm
.
$router
.
push
({
...
@@ -229,6 +229,10 @@ export default {
...
@@ -229,6 +229,10 @@ export default {
authUrl
:
vm
.
authUrl
,
authUrl
:
vm
.
authUrl
,
},
},
})
})
}
else
{
vm
.
$router
.
push
({
name
:
'MyInfo'
,
})
}
}
}
else
{
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
res
.
message
)
vm
.
hlsPopup
.
showLongCenter
(
res
.
message
)
...
...
src/pages/userBindNew/org/bankInfo.vue
View file @
82894824
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
</div>
</div>
</div>
</div>
<bottom-tab
class=
"footer-button"
>
<bottom-tab
class=
"footer-button"
>
<tab-button
class=
"save"
@
click
.
native=
"
handSubmit
"
>
提交
</tab-button>
<tab-button
class=
"save"
@
click
.
native=
"
putData
"
>
提交
</tab-button>
</bottom-tab>
</bottom-tab>
<h-modal
ref=
"modal"
v-model=
"showModalValue"
position=
"bottom"
>
<h-modal
ref=
"modal"
v-model=
"showModalValue"
position=
"bottom"
>
<h-view>
<h-view>
...
@@ -160,11 +160,11 @@ export default {
...
@@ -160,11 +160,11 @@ export default {
vm
.
certification_status
=
''
vm
.
certification_status
=
''
vm
.
getBankInfo
()
vm
.
getBankInfo
()
vm
.
electQuery
()
vm
.
electQuery
()
/* if (window.localStorage.bp_identity === 'ORG_NO') {
/* if (window.localStorage.bp_identity === 'ORG_NO') {
vm.getOrgCertificationUrl() // 获取企业认证url
vm.getOrgCertificationUrl() // 获取企业认证url
} else {
} else {
vm.getNpCertificationUrl()
vm.getNpCertificationUrl()
}*/
}
*/
}
}
})
})
},
},
...
@@ -263,33 +263,48 @@ export default {
...
@@ -263,33 +263,48 @@ export default {
},
},
})
})
},
},
throttle
(
func
,
wait
)
{
// 节流
let
previous
=
0
return
function
()
{
let
now
=
+
new
Date
()
let
remain
=
wait
-
(
now
-
previous
)
if
(
remain
<
0
)
{
previous
=
now
func
.
call
(
this
,
arguments
)
}
}
},
putData
()
{
this
.
throttle
(
this
.
handSubmit
(),
3000
)
},
// 提交
// 提交
async
handSubmit
()
{
async
handSubmit
()
{
let
vm
=
this
let
vm
=
this
if
(
window
.
localStorage
.
bp_identity
===
'ORG_NO'
)
{
//
if (window.localStorage.bp_identity === 'ORG_NO') {
var
urlTemp
=
await
vm
.
getOrgCertificationUrl
()
// 获取企业认证url
//
var urlTemp = await vm.getOrgCertificationUrl() // 获取企业认证url
}
else
{
//
} else {
var
urlTemp
=
await
vm
.
getNpCertificationUrl
()
var
urlTemp
=
await
vm
.
getNpCertificationUrl
()
}
//
}
if
(
urlTemp
)
{
this
.
hlsPopup
.
showConfirm
(
{
t
his
.
hlsPopup
.
showConfirm
({
t
itle
:
'提示'
,
title
:
'提示
'
,
content
:
'您确认提交吗?
'
,
content
:
'您确认提交吗?'
,
onConfirm
:
data
=>
{
onConfirm
:
data
=>
{
if
(
data
)
{
if
(
data
)
{
let
url
=
$config
.
basePath
+
'bp_bind_submit'
let
url
=
$config
.
basePath
+
'bp_bind_submit'
let
param
=
{
let
param
=
{
master
:
{
master
:
{
bp_id
:
this
.
$route
.
params
.
bp_id
,
bp_id
:
this
.
$route
.
params
.
bp_id
,
company_id
:
'2145'
,
company_id
:
'2145'
,
}
,
},
}
}
let
vm
=
this
let
vm
=
this
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hls
Http
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hls
Popup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
showSuccess
(
'提交成功'
)
vm
.
hlsPopup
.
showSuccess
(
'提交成功'
)
if
(
urlTemp
)
{
if
(
vm
.
certification_status
===
'Y'
)
{
if
(
vm
.
certification_status
===
'Y'
)
{
vm
.
$router
.
push
({
vm
.
$router
.
push
({
name
:
'MyInfo'
,
name
:
'MyInfo'
,
...
@@ -303,18 +318,21 @@ export default {
...
@@ -303,18 +318,21 @@ export default {
},
},
})
})
}
else
{
}
else
{
vm
.
hlsPopup
.
showSuccess
(
vm
.
errorMsg
)
vm
.
$router
.
push
({
name
:
'MyInfo'
,
})
}
}
}
}
}
else
{
vm
.
$router
.
push
({
name
:
'MyInfo'
,
})
}
}
})
}
}
})
},
}
})
},
}
})
else
{
this
.
hlsPopup
.
showLongCenter
(
'电子签认证出错'
)
}
},
},
// 获取个人认证url
// 获取个人认证url
async
getNpCertificationUrl
()
{
async
getNpCertificationUrl
()
{
...
@@ -329,37 +347,37 @@ export default {
...
@@ -329,37 +347,37 @@ export default {
if
((
res
.
info
.
code
===
0
)
&&
(
res
.
info
.
data
.
authUrl
))
{
if
((
res
.
info
.
code
===
0
)
&&
(
res
.
info
.
data
.
authUrl
))
{
vm
.
authUrl
=
res
.
info
.
data
.
authUrl
vm
.
authUrl
=
res
.
info
.
data
.
authUrl
return
vm
.
authUrl
return
vm
.
authUrl
}
else
if
((
res
.
info
.
code
===
0
)
&&
(
res
.
info
.
data
.
openId
))
{
}
else
if
((
res
.
info
.
code
===
0
)
&&
(
res
.
info
.
data
.
openId
))
{
vm
.
authUrl
=
res
.
info
.
data
.
openId
vm
.
authUrl
=
res
.
info
.
data
.
openId
return
vm
.
authUrl
return
vm
.
authUrl
}
else
{
}
else
{
hlsPopup
.
showError
(
res
.
info
.
msg
)
//
hlsPopup.showError(res.info.msg)
//vm.errorMsg = res.info.msg
//
vm.errorMsg = res.info.msg
return
''
return
''
}
}
},
},
// 获取企业认证url
// 获取企业认证url
async
getOrgCertificationUrl
()
{
//
async getOrgCertificationUrl () {
let
vm
=
this
//
let vm = this
let
url
=
$config
.
basePath
+
'auth_company_sign'
//
let url = $config.basePath + 'auth_company_sign'
let
param
=
{
//
let param = {
phone
:
window
.
localStorage
.
user_phone
,
//
phone: window.localStorage.user_phone,
}
//
}
hlsPopup
.
showLoading
(
'请稍候'
)
//
hlsPopup.showLoading('请稍候')
let
res
=
await
vm
.
$post
(
url
,
param
)
//
let res = await vm.$post(url, param)
hlsPopup
.
hideLoading
()
//
hlsPopup.hideLoading()
if
((
res
.
info
.
code
===
0
)
&&
(
res
.
info
.
data
.
authUrl
))
{
//
if ((res.info.code === 0) && (res.info.data.authUrl)) {
vm
.
authUrl
=
res
.
info
.
data
.
authUrl
//
vm.authUrl = res.info.data.authUrl
return
vm
.
authUrl
//
return vm.authUrl
}
else
if
((
res
.
info
.
code
===
0
)
&&
(
res
.
info
.
data
.
openId
)){
//
} else if((res.info.code === 0) && (res.info.data.openId)){
vm
.
authUrl
=
res
.
info
.
data
.
openId
//
vm.authUrl = res.info.data.openId
return
vm
.
authUrl
//
return vm.authUrl
}
else
{
//
} else {
hlsPopup
.
showError
(
res
.
info
.
msg
)
//
hlsPopup.showError(res.info.msg)
return
''
//
return ''
//vm.errorMsg = res.info.msg
//
//vm.errorMsg = res.info.msg
}
//
}
},
//
},
// ocr识别入口
// ocr识别入口
ocrShow
(
ocrType
,
type
)
{
ocrShow
(
ocrType
,
type
)
{
let
vm
=
this
let
vm
=
this
...
...
src/pages/userBindNew/org/baseInfo.vue
View file @
82894824
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
@
click=
"selectIdType()"
@
click=
"selectIdType()"
>
>
</item>
</item>
<item
v-if=
"isApproved&&isMultiRole"
:showArrow=
"true"
@
click
.
native=
"selectIdMultiType()"
>
<item
v-if=
"isApproved&&isMultiRole
&&!hasMultiRole
"
:showArrow=
"true"
@
click
.
native=
"selectIdMultiType()"
>
<div
slot=
"name"
class=
"required"
>
客户类型
</div>
<div
slot=
"name"
class=
"required"
>
客户类型
</div>
<div
slot=
"content"
class=
"typeBP"
>
<div
slot=
"content"
class=
"typeBP"
>
<span>
{{
baseInfo
.
bp_type_n
}}
</span>
<span>
{{
baseInfo
.
bp_type_n
}}
</span>
...
@@ -37,6 +37,13 @@
...
@@ -37,6 +37,13 @@
</span>
</span>
</div>
</div>
</item>
</item>
<item
v-if=
"isApproved&&isMultiRole&&hasMultiRole"
:showArrow=
"true"
>
<div
slot=
"name"
class=
"required"
>
客户类型
</div>
<div
slot=
"content"
class=
"typeBP"
>
<span>
{{
baseInfo
.
bp_type_n
}}
</span>
<span
v-if=
"multiRole.bp_type_n"
>
{{
multiRole
.
bp_type_n
}}
</span>
</div>
</item>
<item
v-if=
"bp_type_flag"
>
<item
v-if=
"bp_type_flag"
>
<div
slot=
"name"
class=
"required"
>
{{
typeName
}}
</div>
<div
slot=
"name"
class=
"required"
>
{{
typeName
}}
</div>
<input
<input
...
@@ -448,7 +455,11 @@ export default {
...
@@ -448,7 +455,11 @@ export default {
multiBpType
:
{
multiBpType
:
{
bp_type_n
:
''
,
bp_type_n
:
''
,
bp_type
:
''
,
bp_type
:
''
,
},
},
// 客户选择的第二个角色
multiRole
:
{
bp_type_n
:
''
,
bp_type
:
''
,
},
// 查询出来的第二个角色
legal_personMsg
:
{
legal_personMsg
:
{
id_card_no
:
null
,
id_card_no
:
null
,
bp_legal_name
:
''
,
bp_legal_name
:
''
,
...
@@ -495,6 +506,7 @@ export default {
...
@@ -495,6 +506,7 @@ export default {
authidCardBack
:
''
,
// 授权人身份证反面图片
authidCardBack
:
''
,
// 授权人身份证反面图片
licenseImg
:
''
,
// 营业执照照片
licenseImg
:
''
,
// 营业执照照片
laImg
:
''
,
// 授权书图片
laImg
:
''
,
// 授权书图片
hasMultiRole
:
false
,
// 是否有第二个角色
idCardFrontUrlFlag
:
false
,
// 身份证正面图片,为false则用查询出来的,为true则用拍照出来的
idCardFrontUrlFlag
:
false
,
// 身份证正面图片,为false则用查询出来的,为true则用拍照出来的
idCardBackUrlFlag
:
false
,
// 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
idCardBackUrlFlag
:
false
,
// 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
...
@@ -720,6 +732,31 @@ export default {
...
@@ -720,6 +732,31 @@ export default {
next()
next()
}, */
}, */
methods
:
{
methods
:
{
checkHasmultiple
()
{
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'bp_role_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
.
hasMultiRole
=
true
if
(
vm
.
baseInfo
.
bp_type
===
'TENANT'
)
{
vm
.
multiRole
.
bp_type_n
=
'担保人'
vm
.
multiRole
.
bp_type
=
'GUTA'
}
else
if
(
vm
.
baseInfo
.
bp_type
===
'GUTA'
)
{
vm
.
multiRole
.
bp_type_n
=
'承租人'
vm
.
multiRole
.
bp_type
=
'TENANT'
}
}
else
{
vm
.
hasMultiRole
=
false
vm
.
multiRole
.
bp_type
=
''
vm
.
multiRole
.
bp_type_n
=
''
}
})
},
timeFormat
(
str
)
{
timeFormat
(
str
)
{
return
`
${
str
.
substring
(
0
,
4
)}
-
${
str
.
substring
(
4
,
6
)}
-
${
str
.
substring
(
6
)}
`
return
`
${
str
.
substring
(
0
,
4
)}
-
${
str
.
substring
(
4
,
6
)}
-
${
str
.
substring
(
6
)}
`
},
},
...
...
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