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-18 16:33:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
849d4b613892e48f0571f9ddb3223e49e5007677
849d4b61
1 parent
ab1f9fd5
✨ feat(捐花模块): 接口prepare_donate有值就显示相关字段,传值也是一样
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
15 deletions
src/components/DonateFlower/index.vue
src/composables/useVideoList.js
src/components/DonateFlower/index.vue
View file @
849d4b6
...
...
@@ -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
7 17:25:28
* @LastEditTime: 2022-06-1
8 16:27:20
* @FilePath: /tswj/src/components/DonateFlower/index.vue
* @Description: 捐花组件
-->
...
...
@@ -37,7 +37,7 @@
<div v-else style="border: 1px solid #11D2B1; padding: 0.4rem 1rem;" @click="more_donate = true">更多花花
</div>
</div>
<div v-if="
userType === USER_TYPE.CHILDREN || userType === USER_TYPE.KINDERGARTEN
" class="donate-name">
<div v-if="
item.kg_id
" class="donate-name">
<van-row>
<van-col span="4" style="line-height: 2;">幼儿园</van-col>
<van-col span="18">
...
...
@@ -45,7 +45,7 @@
</van-col>
</van-row>
</div>
<div v-if="
userType === USER_TYPE.CHILDREN
" class="donate-name">
<div v-if="
item.perf_id
" class="donate-name">
<van-row>
<van-col span="4" style="line-height: 2;">助力人</van-col>
<van-col span="18">
...
...
@@ -132,21 +132,28 @@ const donateFlower = () => {
// 儿童: 提交 perf_id,kg_id
// 幼儿园: 提交 kg_id
// 访客
// let params = {
// qty: donate_number.value,
// donate_name: props.item.donate_name,
// };
// switch (props.userType) {
// case USER_TYPE.CHILDREN:
// params.perf_id = props.item.perf_id;
// params.kg_id = props.item.kg_id;
// break;
// case USER_TYPE.KINDERGARTEN:
// params.kg_id = props.item.kg_id;
// break;
// case USER_TYPE.VISIT:
// break;
// }
// 业务逻辑调整,有值就传值显示
let params = {
qty: donate_number.value,
donate_name: props.item.donate_name,
perf_id: props.item.perf_id,
kg_id: props.item.kg_id,
};
switch (props.userType) {
case USER_TYPE.CHILDREN:
params.perf_id = props.item.perf_id;
params.kg_id = props.item.kg_id;
break;
case USER_TYPE.KINDERGARTEN:
params.kg_id = props.item.kg_id;
break;
case USER_TYPE.VISIT:
break;
}
addDonate(params);
}
...
...
src/composables/useVideoList.js
View file @
849d4b6
/*
* @Date: 2022-05-05 18:07:16
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-18 0
0:22:36
* @LastEditTime: 2022-06-18 0
5:35:23
* @FilePath: /tswj/src/composables/useVideoList.js
* @Description: 文件描述
*/
...
...
Please
register
or
login
to post a comment