hookehuyr

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

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