|
@@ -87,14 +87,23 @@
|
|
|
}
|
|
|
|
|
|
function onSubmit() {
|
|
|
+ const {giver, giverPhone} = info.value
|
|
|
+ /**
|
|
|
+ * 20250915
|
|
|
+ * 1.代缴个人支付接口增加代缴用户姓名,代缴用户联系电话
|
|
|
+ * 2.目前对接正式数据,未作支付测试
|
|
|
+ */
|
|
|
const form = {
|
|
|
title: `${info.value.year}年度个人会费代缴`,
|
|
|
year: info.value.year,
|
|
|
amount: info.value.duePrice,
|
|
|
desc: `${info.value.year}年度个人会费代缴`,
|
|
|
userId: info.value.userId,
|
|
|
- openid: openid.value
|
|
|
+ openid: openid.value,
|
|
|
+ giver,
|
|
|
+ giverPhone
|
|
|
}
|
|
|
+ // console.log(form, "支付代缴个人")
|
|
|
personPayment(form).then(res => {
|
|
|
if (res && res.code === 0) {
|
|
|
const params = res.data
|
|
@@ -122,7 +131,8 @@
|
|
|
onLoad((load) => {
|
|
|
yearList.value = []
|
|
|
const year = new Date().getFullYear()
|
|
|
-
|
|
|
+ const giver = load.giver
|
|
|
+ const giverPhone = load.giverPhone
|
|
|
openid.value = uni.getStorageSync('openid')
|
|
|
|
|
|
for (let i = 0; i < 10; i++) {
|
|
@@ -134,13 +144,16 @@
|
|
|
|
|
|
form.value = {
|
|
|
name: load.name,
|
|
|
- idNumber: load.idNumber
|
|
|
+ idNumber: load.idNumber,
|
|
|
+
|
|
|
}
|
|
|
person(form.value).then(res => {
|
|
|
if (res && res.code === 0) {
|
|
|
info.value = res.data
|
|
|
info.value.year = year
|
|
|
info.value.userId = res.data.userId
|
|
|
+ info.value.giver = giver
|
|
|
+ info.value.giverPhone = giverPhone
|
|
|
}
|
|
|
})
|
|
|
})
|