Commit f6d947fb authored by 潘永坪's avatar 潘永坪

外国人身份证优化

parent 575f943a
...@@ -961,8 +961,10 @@ export default { ...@@ -961,8 +961,10 @@ export default {
//---初始化联系人列表 //---初始化联系人列表
getContactList() { getContactList() {
let data = { let data = {
openid:this.openid, openid:this.openid
credentialTypes:this.productIfo.credential.split(',') }
if(this.productIfo.credential){
data.credentialTypes=this.productIfo.credential.split(',')
} }
this.$request('wechatUser/contact/findContactList', data).then(res => { this.$request('wechatUser/contact/findContactList', data).then(res => {
if (res.code == '00') { if (res.code == '00') {
...@@ -1007,8 +1009,10 @@ export default { ...@@ -1007,8 +1009,10 @@ export default {
//---添加并选中联系人--用于添加联系人之后直接从联系人列表选出需要填写的几位联系人 //---添加并选中联系人--用于添加联系人之后直接从联系人列表选出需要填写的几位联系人
addChoose() { addChoose() {
let data = { let data = {
openid:this.openid, openid:this.openid
credentialTypes:this.productIfo.credential.split(',') }
if(this.productIfo.credential){
data.credentialTypes=this.productIfo.credential.split(',')
} }
this.$request('wechatUser/contact/findContactList', data).then(res => { this.$request('wechatUser/contact/findContactList', data).then(res => {
if (res.code == '00') { if (res.code == '00') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment