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
62c5a132
Commit
62c5a132
authored
Oct 17, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
银行卡信息带出
parent
9616dcbe
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
67 deletions
+43
-67
bankInfo.vue
src/pages/userBind/np/bankInfo.vue
+6
-2
naturePerson.vue
src/pages/userBind/np/naturePerson.vue
+23
-58
bankInfo.vue
src/pages/userBind/org/bankInfo.vue
+5
-1
enterprise.vue
src/pages/userBind/org/enterprise.vue
+9
-6
No files found.
src/pages/userBind/np/bankInfo.vue
View file @
62c5a132
...
@@ -21,8 +21,8 @@
...
@@ -21,8 +21,8 @@
<div
class=
"clear"
/>
<div
class=
"clear"
/>
<div
class=
"card-content"
>
<div
class=
"card-content"
>
<ul>
<ul>
<li
v-for=
"(item,index) in getBankList"
:key=
"index"
>
<li
v-for=
"(item,index) in getBankList"
:key=
"index"
>
<item-option
class=
"slider"
>
<item-option
class=
"slider"
@
click
.
native=
"sendList(item)"
>
<div
<div
:style=
"'background-image: url('+ changeBgImg (item) +')'"
:style=
"'background-image: url('+ changeBgImg (item) +')'"
class=
"my-bank-card"
class=
"my-bank-card"
...
@@ -65,6 +65,10 @@ export default {
...
@@ -65,6 +65,10 @@ export default {
this
.
showModalValue
=
true
this
.
showModalValue
=
true
this
.
$emit
(
'getInfo'
,
this
.
showModalValue
)
this
.
$emit
(
'getInfo'
,
this
.
showModalValue
)
},
},
sendList
(
a
)
{
this
.
$emit
(
'getList'
,
a
)
this
.
sendFlag
()
},
changeBgImg
(
item
)
{
changeBgImg
(
item
)
{
if
(
item
.
bank_full_name
===
'中国农业银行'
)
{
if
(
item
.
bank_full_name
===
'中国农业银行'
)
{
return
backImg1
return
backImg1
...
...
src/pages/userBind/np/naturePerson.vue
View file @
62c5a132
...
@@ -198,19 +198,13 @@
...
@@ -198,19 +198,13 @@
<span>
{{
list
.
description
}}
</span>
<span>
{{
list
.
description
}}
</span>
<div
class=
"img-content"
>
<div
class=
"img-content"
>
<!--待上传图片列表-->
<!--待上传图片列表-->
<div
v-for=
"(item, index) in upload_list"
v-if=
"item.check_id==list.check_id"
:key=
"index"
class=
"card-upload"
>
<div
v-for=
"(list, index) in upload_list"
:key=
"index"
>
<img
:src=
"item.picture"
>
<img
:src=
"list.picture"
>
<div
class=
"close"
@
click=
"delete_pic(item.attachment_id)"
>
<img
src=
"@/assets/userBind/deleteIcon.png"
>
</div>
</div>
</div>
<!--从服务器上下载的图片-->
<!--从服务器上下载的图片-->
<div
v-for=
"item in dowload_list"
>
<div
v-for=
"item in dowload_list"
class=
"card-upload"
>
<div
v-for=
"(pic, index) in item"
v-if=
"pic.check_id==list.check_id"
:key=
"index"
class=
"card-upload"
>
<div
v-for=
"(pic, index) in item"
:key=
"index"
>
<img
:src=
"pic.url"
>
<img
:src=
"item.url"
>
<div
class=
"close"
@
click=
"delete_pic(pic.attachment_id)"
>
<img
src=
"@/assets/userBind/deleteIcon.png"
>
</div>
</div>
</div>
</div>
</div>
<div
class=
"card-upload"
@
click=
"imgUploadShow(list.check_id)"
>
<div
class=
"card-upload"
@
click=
"imgUploadShow(list.check_id)"
>
...
@@ -219,7 +213,7 @@
...
@@ -219,7 +213,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<BankInfo
v-show=
"tabNum==1"
:getBankList=
"getBankList"
@
getInfo=
"getInfo"
/>
<BankInfo
v-show=
"tabNum==1"
:getBankList=
"getBankList"
@
getInfo=
"getInfo"
@
getList=
"getList"
/>
<InvoiceInfo
<InvoiceInfo
v-show=
"tabNum==2"
v-show=
"tabNum==2"
:baseInfo=
"baseInfo"
:baseInfo=
"baseInfo"
...
@@ -439,38 +433,35 @@ export default {
...
@@ -439,38 +433,35 @@ export default {
}
}
})
})
},
},
load_picture
(
check_id
,
index
)
{
load_picture
(
check_id
)
{
let
vm
=
this
let
vm
=
this
let
url
=
process
.
env
.
basePath
+
'attachment_list_query'
+
'&index'
+
index
// 附件查询
let
url
=
process
.
env
.
basePath
+
'attachment_list_query'
let
param
=
{
let
param
=
{
check_id
:
check_id
,
check_id
:
check_id
,
}
}
hlsPopup
.
showLoading
(
'请稍候'
)
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
console
.
log
(
'%%%%%%%%%%%%'
+
res
)
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
res
.
lists
.
forEach
(
item
=>
{
console
.
log
(
'**********'
+
res
.
lists
)
item
[
'url'
]
=
process
.
env
.
filePath
+
'attachment_id='
+
item
.
attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
})
vm
.
dowload_list
.
push
(
res
.
lists
)
}
else
{
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
})
})
},
},
async
verified
()
{
async
verified
()
{
let
bpId
=
await
this
.
saveWord
()
//
let bpId = await this.saveWord()
this
.
getBankInfo
()
//
this.getBankInfo()
// 查询资料清单
// 查询资料清单
this
.
loadItemList
()
this
.
loadItemList
()
},
},
loadItemList
()
{
loadItemList
()
{
let
vm
=
this
let
vm
=
this
let
bpId
=
window
.
localStorage
.
getItem
(
'user_id'
)
let
url
=
process
.
env
.
basePath
+
'prj_cdd_check_list'
let
url
=
process
.
env
.
basePath
+
'prj_cdd_check_list'
let
param
=
{
let
param
=
{
master
:
{
master
:
{
'document_id'
:
bpId
,
'document_id'
:
7928
,
'document_table'
:
'HLS_BP_MASTER'
,
'document_table'
:
'HLS_BP_MASTER'
,
'tab_group'
:
'HLS_NP'
,
'tab_group'
:
'HLS_NP'
,
},
},
...
@@ -481,8 +472,8 @@ export default {
...
@@ -481,8 +472,8 @@ export default {
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
cddItemList
=
[...
res
.
lists
]
vm
.
cddItemList
=
[...
res
.
lists
]
// 查询图片
// 查询图片
vm
.
cddItemList
.
forEach
(
(
item
,
index
)
=>
{
vm
.
cddItemList
.
forEach
(
item
=>
{
vm
.
load_picture
(
item
.
check_id
,
index
)
vm
.
load_picture
(
item
.
check_id
)
})
})
}
}
})
})
...
@@ -552,7 +543,6 @@ export default {
...
@@ -552,7 +543,6 @@ export default {
// 图片上传入口
// 图片上传入口
imgUploadShow
(
check_id
)
{
imgUploadShow
(
check_id
)
{
let
vm
=
this
let
vm
=
this
//vm.upload_list = []
hlsPopup
.
showActionSheet
({
hlsPopup
.
showActionSheet
({
titleText
:
'请选择照片'
,
titleText
:
'请选择照片'
,
buttonArray
:
[
'拍照'
,
'从相册取'
],
buttonArray
:
[
'拍照'
,
'从相册取'
],
...
@@ -571,7 +561,6 @@ export default {
...
@@ -571,7 +561,6 @@ export default {
'pkvalue'
:
check_id
,
'pkvalue'
:
check_id
,
'source_type'
:
'PRJ_CDD_ITEM_CHECK'
,
'source_type'
:
'PRJ_CDD_ITEM_CHECK'
,
'picture'
:
''
,
'picture'
:
''
,
'check_id'
:
check_id
,
'filePath'
:
''
,
'filePath'
:
''
,
'attachment_id'
:
''
,
'attachment_id'
:
''
,
'user_id'
:
1
,
'user_id'
:
1
,
...
@@ -598,21 +587,21 @@ export default {
...
@@ -598,21 +587,21 @@ export default {
quality
:
100
,
quality
:
100
,
}
}
let
success
=
function
(
imgUrl
)
{
let
success
=
function
(
imgUrl
)
{
var
list
=
[]
for
(
let
i
=
0
;
i
<
imgUrl
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
imgUrl
.
length
;
i
++
)
{
let
obj
=
{
let
obj
=
{
'pkvalue'
:
check_id
,
'pkvalue'
:
check_id
,
'source_type'
:
'PRJ_CDD_ITEM_CHECK'
,
'source_type'
:
'PRJ_CDD_ITEM_CHECK'
,
'picture'
:
''
,
'picture'
:
''
,
'check_id'
:
check_id
,
'filePath'
:
''
,
'filePath'
:
''
,
'attachment_id'
:
''
,
'attachment_id'
:
''
,
'user_id'
:
1
,
'user_id'
:
1
,
}
}
obj
.
picture
=
imgUrl
[
i
]
obj
.
picture
=
imgUrl
[
i
]
obj
.
filePath
=
imgUrl
[
i
]
obj
.
filePath
=
imgUrl
[
i
]
var
list
=
[]
list
.
push
(
obj
)
list
.
push
(
obj
)
}
}
// 拍完一张立马执行保存图片逻辑
vm
.
save_picture
(
list
)
vm
.
save_picture
(
list
)
}
}
let
error
=
function
()
{
let
error
=
function
()
{
...
@@ -621,6 +610,7 @@ export default {
...
@@ -621,6 +610,7 @@ export default {
},
},
// 图片保存
// 图片保存
save_picture
(
list
)
{
save_picture
(
list
)
{
alert
(
'图片待上传数组 '
+
JSON
.
stringify
(
list
))
let
vm
=
this
let
vm
=
this
if
(
list
.
length
)
{
if
(
list
.
length
)
{
// hlsPopup.showLoading('图片上传请稍候')
// hlsPopup.showLoading('图片上传请稍候')
...
@@ -636,6 +626,7 @@ export default {
...
@@ -636,6 +626,7 @@ export default {
for
(
var
i
=
0
;
i
<
list
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
list
.
length
;
i
++
)
{
let
uploadSuccess
=
function
(
res
)
{
let
uploadSuccess
=
function
(
res
)
{
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
alert
(
'返回结果 '
+
JSON
.
stringify
(
res
.
response
))
alreadyUploadNum
++
alreadyUploadNum
++
for
(
var
j
=
0
;
j
<
list
.
length
;
j
++
)
{
for
(
var
j
=
0
;
j
<
list
.
length
;
j
++
)
{
if
(
list
[
j
].
filePath
===
res
.
response
.
filePath
)
{
if
(
list
[
j
].
filePath
===
res
.
response
.
filePath
)
{
...
@@ -657,24 +648,6 @@ export default {
...
@@ -657,24 +648,6 @@ export default {
hlsPopup
.
hideLoading
()
hlsPopup
.
hideLoading
()
}
}
},
},
// 删除图片
delete_pic
(
attachment_id
)
{
hlsPopup
.
showLongCenter
(
'接口还没写'
)
/* let vm = this
let url = process.env.basePath + 'attachment_list_query'
let param = {
attachment_id: attachment_id,
}
hlsPopup.showLoading('请稍候')
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
} else {
hlsPopup.showLongCenter(res.message)
}
})*/
},
/* uploadIdCardFront () {
/* uploadIdCardFront () {
let vm = this
let vm = this
let url = process.env.basePath + 'attachment_upload'
let url = process.env.basePath + 'attachment_upload'
...
@@ -885,6 +858,9 @@ export default {
...
@@ -885,6 +858,9 @@ export default {
getInfo
(
i
)
{
getInfo
(
i
)
{
this
.
showModalValue
=
i
this
.
showModalValue
=
i
},
},
getList
(
a
)
{
Object
.
assign
(
this
.
bank
,
a
)
},
showModal
()
{
showModal
()
{
this
.
showModalValue
=
true
this
.
showModalValue
=
true
},
},
...
@@ -1246,17 +1222,7 @@ export default {
...
@@ -1246,17 +1222,7 @@ export default {
align-items: center;
align-items: center;
margin-top: 12px;
margin-top: 12px;
margin-left: 12px;
margin-left: 12px;
float: left;
// float: left;
.close {
position: relative;
color: #F96F68;
margin-top: -100%;
margin-left: -10%;
img{
width: 14px;
height: 14px;
}
}
img {
img {
width: 88px;
width: 88px;
height: 88px;
height: 88px;
...
@@ -1357,4 +1323,3 @@ export default {
...
@@ -1357,4 +1323,3 @@ export default {
line-height: 34px !important;
line-height: 34px !important;
}
}
</
style
>
</
style
>
</h-view></textarea></item></list-item></div></h-content></template>
src/pages/userBind/org/bankInfo.vue
View file @
62c5a132
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<div
class=
"card-content"
>
<div
class=
"card-content"
>
<ul>
<ul>
<li
v-for=
"(item,index) in getBankList"
:key=
"index"
>
<li
v-for=
"(item,index) in getBankList"
:key=
"index"
>
<item-option
class=
"slider"
>
<item-option
class=
"slider"
@
click
.
native=
"sendList(item)"
>
<div
<div
:style=
"'background-image: url('+ changeBgImg (item) +')'"
:style=
"'background-image: url('+ changeBgImg (item) +')'"
class=
"my-bank-card"
class=
"my-bank-card"
...
@@ -72,6 +72,10 @@ export default {
...
@@ -72,6 +72,10 @@ export default {
this
.
showModalValue
=
true
this
.
showModalValue
=
true
this
.
$emit
(
'getInfo'
,
this
.
showModalValue
)
this
.
$emit
(
'getInfo'
,
this
.
showModalValue
)
},
},
sendList
(
a
)
{
this
.
$emit
(
'getList'
,
a
)
this
.
sendFlag
()
},
changeBgImg
(
item
)
{
changeBgImg
(
item
)
{
if
(
item
.
bank_full_name
===
'中国农业银行'
)
{
if
(
item
.
bank_full_name
===
'中国农业银行'
)
{
return
backImg1
return
backImg1
...
...
src/pages/userBind/org/enterprise.vue
View file @
62c5a132
...
@@ -318,7 +318,7 @@
...
@@ -318,7 +318,7 @@
</div>
</div>
</div>
</div>
<!--
<BankInfo
v-show=
"tabNum==1"
:bp_id=
"bp_id"
@
getInfo=
"getInfo"
/>
-->
<!--
<BankInfo
v-show=
"tabNum==1"
:bp_id=
"bp_id"
@
getInfo=
"getInfo"
/>
-->
<BankInfo
v-show=
"tabNum==1"
:getBankList=
"getBankList"
@
getInfo=
"getInfo"
/>
<BankInfo
v-show=
"tabNum==1"
:getBankList=
"getBankList"
@
getInfo=
"getInfo"
@
getList=
"getList"
/>
<InvoiceInfo
<InvoiceInfo
v-show=
"tabNum==2"
v-show=
"tabNum==2"
:tabNum=
"tabNum"
:tabNum=
"tabNum"
...
@@ -901,7 +901,7 @@ export default {
...
@@ -901,7 +901,7 @@ export default {
vm
.
bp_id
=
res
.
bp_id
vm
.
bp_id
=
res
.
bp_id
vm
.
getBankInfo
()
vm
.
getBankInfo
()
// 查询资料清单
// 查询资料清单
//vm.loadItemList()
//
vm.loadItemList()
}
}
})
})
}
}
...
@@ -913,6 +913,9 @@ export default {
...
@@ -913,6 +913,9 @@ export default {
getInfo
(
i
)
{
getInfo
(
i
)
{
this
.
showModalValue
=
i
this
.
showModalValue
=
i
},
},
getList
(
i
)
{
Object
.
assign
(
this
.
bank_lists
,
i
)
},
getinvoiceList
(
val
)
{
getinvoiceList
(
val
)
{
console
.
log
(
val
)
console
.
log
(
val
)
this
.
invoiceInfo
=
val
this
.
invoiceInfo
=
val
...
@@ -1274,7 +1277,7 @@ export default {
...
@@ -1274,7 +1277,7 @@ export default {
// 图片上传入口
// 图片上传入口
imgUploadShow
(
check_id
)
{
imgUploadShow
(
check_id
)
{
let
vm
=
this
let
vm
=
this
//vm.upload_list = []
//
vm.upload_list = []
hlsPopup
.
showActionSheet
({
hlsPopup
.
showActionSheet
({
titleText
:
'请选择照片'
,
titleText
:
'请选择照片'
,
buttonArray
:
[
'拍照'
,
'从相册取'
],
buttonArray
:
[
'拍照'
,
'从相册取'
],
...
@@ -1380,9 +1383,9 @@ export default {
...
@@ -1380,9 +1383,9 @@ export default {
}
}
},
},
// 删除图片
// 删除图片
delete_pic
(
attachment_id
)
{
delete_pic
(
attachment_id
)
{
hlsPopup
.
showLongCenter
(
'接口还没写'
)
hlsPopup
.
showLongCenter
(
'接口还没写'
)
/*let vm = this
/*
let vm = this
let url = process.env.basePath + 'attachment_list_query'
let url = process.env.basePath + 'attachment_list_query'
let param = {
let param = {
attachment_id: attachment_id,
attachment_id: attachment_id,
...
@@ -1395,7 +1398,7 @@ export default {
...
@@ -1395,7 +1398,7 @@ export default {
} else {
} else {
hlsPopup.showLongCenter(res.message)
hlsPopup.showLongCenter(res.message)
}
}
})*/
})
*/
},
},
},
},
}
}
...
...
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