Commit 4ff7b2c5 authored by 王建威's avatar 王建威

‘修改分期认证’

parent 51c19947
......@@ -181,7 +181,8 @@
isLogin: 0,
contract_no: '',
equipment_id: '',
is_auth: '0'
is_auth: '0',
type: 2
}
},
onLoad(option) {
......@@ -228,6 +229,7 @@
this.isLogin = res.data.login_flg;
this.contract_no = res.data.data.contract_no;
this.is_auth = res.data.data.is_auth;
this.type = res.data.data.EquipmentInfo.type;
}
});
},
......@@ -258,6 +260,45 @@
});
}
});
} else {
if(this.type === '1') {
uni.showToast({
title: '提交中',
icon: 'none'
})
uni.request({
url: '/uni/api/certification/AddRealnameAuth',
data: {
enterprise_name: '深圳市派特堡扬子宠物医院有限公司',
social_credit_code: '91440300MA5FNCJRX2',
legal_name: '汪秀举',
legal_card: '341103198209194417',
card_positive: '11',
card_reverse: '11',
enterprise_type: 1,
organ_type: 11
},
method: 'POST',
success: (res) => {
if(res.data.code === 0) {
uni.setStorage({
key: 'installment',
data: data,
success: () => {
uni.navigateTo({
url: '/pages/signcontract/signcontract'
});
}
});
} else {
uni.hideToast();
uni.showToast({
icon: 'none',
title: res.data.message
})
}
}
})
} else {
uni.setStorage({
key: 'installment',
......@@ -269,6 +310,7 @@
}
});
}
}
},
collectGoods(id, type) {
uni.request({
......
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