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

‘修改分期认证’

parent 51c19947
...@@ -181,7 +181,8 @@ ...@@ -181,7 +181,8 @@
isLogin: 0, isLogin: 0,
contract_no: '', contract_no: '',
equipment_id: '', equipment_id: '',
is_auth: '0' is_auth: '0',
type: 2
} }
}, },
onLoad(option) { onLoad(option) {
...@@ -228,6 +229,7 @@ ...@@ -228,6 +229,7 @@
this.isLogin = res.data.login_flg; this.isLogin = res.data.login_flg;
this.contract_no = res.data.data.contract_no; this.contract_no = res.data.data.contract_no;
this.is_auth = res.data.data.is_auth; this.is_auth = res.data.data.is_auth;
this.type = res.data.data.EquipmentInfo.type;
} }
}); });
}, },
...@@ -259,15 +261,55 @@ ...@@ -259,15 +261,55 @@
} }
}); });
} else { } else {
uni.setStorage({ if(this.type === '1') {
key: 'installment', uni.showToast({
data: data, title: '提交中',
success: () => { icon: 'none'
uni.navigateTo({ })
url: '/pages/certification/certification' 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',
data: data,
success: () => {
uni.navigateTo({
url: '/pages/certification/certification'
});
}
});
}
} }
}, },
collectGoods(id, type) { collectGoods(id, type) {
......
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