hookehuyr

🐞 fix: 捐赠人姓名不能为空

......@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-31 22:09:58
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-16 15:12:18
* @LastEditTime: 2022-06-17 13:42:56
* @FilePath: /tswj/src/components/DonateFlower/index.vue
* @Description: 捐花组件
-->
......@@ -121,6 +121,10 @@ const donateFlower = () => {
Toast.fail('请先查看捐赠协议,勾选同意!');
return false;
}
if (!props.item.donate_name) {
Toast.fail('捐赠人姓名不能为空!');
return false;
}
// 捐钱接口
// 根据类型过滤提交数据
// 儿童: 提交 perf_id,kg_id
......@@ -149,17 +153,17 @@ const addDonate = async (params) => {
if (data.id) {
closeBtn();
// TODO: 微信支付
// wechatPay(data.id);
wechatPay(data.id);
// 交易成功跳转回调页面
// TEMP: 临时传参 donate_id, 页面到时候给到后端跳转
// 回调地址
// http://voice.onwall.cn/f/voice/#/client/wechatpayCallback?donate_id=xxx
$router.push({
path: '/client/wechatpayCallback',
query: {
donate_id: data.id
}
})
// $router.push({
// path: '/client/wechatpayCallback',
// query: {
// donate_id: data.id
// }
// })
}
}
......