Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-17 13:43:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
caf1f84cfb0660d2d5ef299dc7d388cf0f2fe507
caf1f84c
1 parent
9d9b894f
🐞 fix: 捐赠人姓名不能为空
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
src/components/DonateFlower/index.vue
src/components/DonateFlower/index.vue
View file @
caf1f84
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-31 22:09:58
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-1
6 15:12:18
* @LastEditTime: 2022-06-1
7 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
//
}
//
})
}
}
...
...
Please
register
or
login
to post a comment