hookehuyr

🐞 fix(捐花组件): 修复用户类型字段

......@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-06-01 16:00:48
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-01 16:37:19
* @LastEditTime: 2022-06-07 16:37:07
* @FilePath: /tswj/src/api/C/donate.js
* @Description: 捐钱操作API
*/
......
......@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-31 18:32:38
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-02 21:15:28
* @LastEditTime: 2022-06-07 16:33:09
* @FilePath: /tswj/src/components/DonateBar/index.vue
* @Description: 爱心助力底部固定栏
-->
......
......@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-31 22:09:58
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-02 21:40:50
* @LastEditTime: 2022-06-07 16:41:09
* @FilePath: /tswj/src/components/DonateFlower/index.vue
* @Description: 捐花组件
-->
......@@ -121,10 +121,10 @@ const donateFlower = async () => {
qty: donate_number.value,
donate_name: props.item.donate_name,
};
if (props.donateType === 'C') { // 助力TA
if (props.userType === 'C') { // 助力TA
params.perf_id = props.item.perf_id;
params.kg_id = props.item.kg_id;
} else if (props.donateType === 'K') {
} else if (props.userType === 'K') {
params.kg_id = props.item.kg_id;
}
const { data } = await addDonateAPI(params);
......