Showing
12 changed files
with
58 additions
and
40 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-26 16:10:35 | 2 | * @Date: 2022-09-26 16:10:35 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-11-02 17:00:30 | 4 | + * @LastEditTime: 2022-11-03 16:19:26 |
| 5 | * @FilePath: /swx/src/components/activity-bar.vue | 5 | * @FilePath: /swx/src/components/activity-bar.vue |
| 6 | * @Description: 活动详情页底部导航栏 | 6 | * @Description: 活动详情页底部导航栏 |
| 7 | --> | 7 | --> |
| ... | @@ -75,15 +75,15 @@ const props = defineProps({ | ... | @@ -75,15 +75,15 @@ const props = defineProps({ |
| 75 | volunteerStatus : String, | 75 | volunteerStatus : String, |
| 76 | }) | 76 | }) |
| 77 | 77 | ||
| 78 | +const emit = defineEmits(['on-handle']); | ||
| 79 | + | ||
| 78 | const goTo = (type) => { | 80 | const goTo = (type) => { |
| 79 | if (type === 'home') { // 返回首页 | 81 | if (type === 'home') { // 返回首页 |
| 80 | Taro.redirectTo({ | 82 | Taro.redirectTo({ |
| 81 | url: '../index/index' | 83 | url: '../index/index' |
| 82 | }) | 84 | }) |
| 83 | } else if (type === 'join') { // 活动报名 | 85 | } else if (type === 'join') { // 活动报名 |
| 84 | - Taro.navigateTo({ | 86 | + emit('on-handle', { type: 'join' }); |
| 85 | - url: '../joinActivity/index?id=' + getCurrentPageParam().id | ||
| 86 | - }) | ||
| 87 | } else if (type === 'volunteer') { // 义工报名 | 87 | } else if (type === 'volunteer') { // 义工报名 |
| 88 | if (props.volunteerStatus) { | 88 | if (props.volunteerStatus) { |
| 89 | Taro.navigateTo({ | 89 | Taro.navigateTo({ | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-20 15:39:37 | 2 | * @Date: 2022-09-20 15:39:37 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-11-01 14:21:37 | 4 | + * @LastEditTime: 2022-11-03 16:17:22 |
| 5 | * @FilePath: /swx/src/components/activity-card.vue | 5 | * @FilePath: /swx/src/components/activity-card.vue |
| 6 | * @Description: 活动卡片组件 | 6 | * @Description: 活动卡片组件 |
| 7 | --> | 7 | --> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-26 14:36:57 | 2 | * @Date: 2022-09-26 14:36:57 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-11-03 11:46:08 | 4 | + * @LastEditTime: 2022-11-03 16:27:17 |
| 5 | * @FilePath: /swx/src/pages/activityDetail/index.vue | 5 | * @FilePath: /swx/src/pages/activityDetail/index.vue |
| 6 | * @Description: 活动详情页 | 6 | * @Description: 活动详情页 |
| 7 | --> | 7 | --> |
| ... | @@ -106,7 +106,7 @@ | ... | @@ -106,7 +106,7 @@ |
| 106 | </view> | 106 | </view> |
| 107 | </view> | 107 | </view> |
| 108 | <view style="height: 6rem;"></view> | 108 | <view style="height: 6rem;"></view> |
| 109 | - <activity-bar :user-type="userType" :reg-id="reg_id" :member-role="member_role" :reg-role="reg_role" :is-end="is_end" :activity-status="activity_status" :volunteer-status="volunteer_status" /> | 109 | + <activity-bar @on-handle="onHandle" :user-type="userType" :reg-id="reg_id" :member-role="member_role" :reg-role="reg_role" :is-end="is_end" :activity-status="activity_status" :volunteer-status="volunteer_status" /> |
| 110 | 110 | ||
| 111 | <!-- <van-action-sheet | 111 | <!-- <van-action-sheet |
| 112 | :z-index="10" | 112 | :z-index="10" |
| ... | @@ -155,6 +155,7 @@ import { infoUserAPI } from '@/api/User/index'; | ... | @@ -155,6 +155,7 @@ import { infoUserAPI } from '@/api/User/index'; |
| 155 | import { qrCodeActivityAPI } from '@/api/Activity/index'; | 155 | import { qrCodeActivityAPI } from '@/api/Activity/index'; |
| 156 | import icon_share from '@/images/icon/share.png' | 156 | import icon_share from '@/images/icon/share.png' |
| 157 | import image_line from '@/images/line@2x-2.png' | 157 | import image_line from '@/images/line@2x-2.png' |
| 158 | +import Toast from '../../components/vant-weapp/toast/toast'; | ||
| 158 | 159 | ||
| 159 | const nickname = ref(''); | 160 | const nickname = ref(''); |
| 160 | const avatar = ref(''); | 161 | const avatar = ref(''); |
| ... | @@ -618,6 +619,21 @@ export default { | ... | @@ -618,6 +619,21 @@ export default { |
| 618 | // } | 619 | // } |
| 619 | // 返回shareObj | 620 | // 返回shareObj |
| 620 | return shareObj; | 621 | return shareObj; |
| 622 | + }, | ||
| 623 | + methods: { | ||
| 624 | + onHandle ({ type }) { // 活动报名操作回调 | ||
| 625 | + if (this.activity.reg_max && (this.activity.reg_count === this.activity.reg_max)) { | ||
| 626 | + Toast('活动人员已满'); | ||
| 627 | + return false; | ||
| 628 | + } else if (+new Date(this.server_time) > +new Date(this.activity.reg_end_time)) { | ||
| 629 | + Toast('报名已结束'); | ||
| 630 | + return false; | ||
| 631 | + } else if (type === 'join') { | ||
| 632 | + Taro.navigateTo({ | ||
| 633 | + url: '../joinActivity/index?id=' + getCurrentPageParam().id | ||
| 634 | + }) | ||
| 635 | + } | ||
| 636 | + } | ||
| 621 | } | 637 | } |
| 622 | }; | 638 | }; |
| 623 | </script> | 639 | </script> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-11-01 15:47:30 | 4 | + * @LastEditTime: 2022-11-03 16:30:02 |
| 5 | * @FilePath: /swx/src/pages/auth/index.vue | 5 | * @FilePath: /swx/src/pages/auth/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-21 16:04:10 | 2 | * @Date: 2022-09-21 16:04:10 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-11-03 13:19:04 | 4 | + * @LastEditTime: 2022-11-03 15:47:28 |
| 5 | * @FilePath: /swx/src/pages/createActivity/index.vue | 5 | * @FilePath: /swx/src/pages/createActivity/index.vue |
| 6 | * @Description: 创建活动页面 | 6 | * @Description: 创建活动页面 |
| 7 | --> | 7 | --> |
| ... | @@ -141,14 +141,14 @@ | ... | @@ -141,14 +141,14 @@ |
| 141 | <view class="form-item inner-sub"> | 141 | <view class="form-item inner-sub"> |
| 142 | <view class="inner-sub-border"> | 142 | <view class="inner-sub-border"> |
| 143 | <view class="form-item-title fix"> | 143 | <view class="form-item-title fix"> |
| 144 | - 允许内部人员报名活动 | 144 | + 允许义工报名活动 |
| 145 | <van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" /> | 145 | <van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" /> |
| 146 | </view> | 146 | </view> |
| 147 | <van-switch style="float: right; padding-top: 0.5rem;" :checked="is_inner" @change="onInnerChange" | 147 | <van-switch style="float: right; padding-top: 0.5rem;" :checked="is_inner" @change="onInnerChange" |
| 148 | size="1.5rem" active-color="#199A74" inactive-color="#FFFFFF" /> | 148 | size="1.5rem" active-color="#199A74" inactive-color="#FFFFFF" /> |
| 149 | </view> | 149 | </view> |
| 150 | </view> | 150 | </view> |
| 151 | - <view class="form-item blacklist-sub"> | 151 | + <!-- <view class="form-item blacklist-sub"> |
| 152 | <view class="blacklist-sub-border"> | 152 | <view class="blacklist-sub-border"> |
| 153 | <view class="form-item-title fix"> | 153 | <view class="form-item-title fix"> |
| 154 | 屏蔽黑名单用户 | 154 | 屏蔽黑名单用户 |
| ... | @@ -157,12 +157,12 @@ | ... | @@ -157,12 +157,12 @@ |
| 157 | <van-switch style="float: right; padding-top: 0.5rem;" :checked="is_black" @change="onBlackChange" | 157 | <van-switch style="float: right; padding-top: 0.5rem;" :checked="is_black" @change="onBlackChange" |
| 158 | size="1.5rem" active-color="#199A74" inactive-color="#FFFFFF" /> | 158 | size="1.5rem" active-color="#199A74" inactive-color="#FFFFFF" /> |
| 159 | </view> | 159 | </view> |
| 160 | - </view> | 160 | + </view> --> |
| 161 | <view class="form-item server-sub"> | 161 | <view class="form-item server-sub"> |
| 162 | <van-row> | 162 | <van-row> |
| 163 | <van-col span="10" offset="0"> | 163 | <van-col span="10" offset="0"> |
| 164 | <view class="form-item-title fix"> | 164 | <view class="form-item-title fix"> |
| 165 | - 服务岗位报名 | 165 | + 义工岗位报名 |
| 166 | <van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" /> | 166 | <van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" /> |
| 167 | </view> | 167 | </view> |
| 168 | </van-col> | 168 | </van-col> |
| ... | @@ -182,7 +182,7 @@ | ... | @@ -182,7 +182,7 @@ |
| 182 | 182 | ||
| 183 | <view class="confirm-publish-wrapper"> | 183 | <view class="confirm-publish-wrapper"> |
| 184 | <view class="box"> | 184 | <view class="box"> |
| 185 | - <view @tap="create_show=true" class="button">确定发布</view> | 185 | + <view @tap="create_show=true" class="button">确定</view> |
| 186 | </view> | 186 | </view> |
| 187 | </view> | 187 | </view> |
| 188 | 188 | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-30 09:53:14 | 2 | * @Date: 2022-09-30 09:53:14 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-11-03 14:31:02 | 4 | + * @LastEditTime: 2022-11-03 16:33:28 |
| 5 | * @FilePath: /swx/src/pages/editInfo/index.vue | 5 | * @FilePath: /swx/src/pages/editInfo/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -49,8 +49,9 @@ | ... | @@ -49,8 +49,9 @@ |
| 49 | <view class="at-input" style="margin-right: 1rem;"> | 49 | <view class="at-input" style="margin-right: 1rem;"> |
| 50 | <view class="at-input__container"> | 50 | <view class="at-input__container"> |
| 51 | <label class="h5-label at-input__title at-input__title">状态</label> | 51 | <label class="h5-label at-input__title at-input__title">状态</label> |
| 52 | - <input @tap="show_status_popup=true" class="h5-input at-input__input" placeholder-class="placeholder" :value="user_status" placeholder="请选择用户状态" :disabled="true"/> | 52 | + <!-- <input @tap="show_status_popup=true" class="h5-input at-input__input" placeholder-class="placeholder" :value="user_status" placeholder="请选择用户状态" :disabled="true"/> --> |
| 53 | - <view style="margin-right: 0; margin-top: 0.5rem;"><van-icon @tap="show_status_popup=true" :name="icon_sel" color="" /></view> | 53 | + <input class="h5-input at-input__input" placeholder-class="placeholder" :value="user_status" placeholder="" :disabled="true"/> |
| 54 | + <!-- <view style="margin-right: 0; margin-top: 0.5rem;"><van-icon @tap="show_status_popup=true" :name="icon_sel" color="" /></view> --> | ||
| 54 | </view> | 55 | </view> |
| 55 | </view> | 56 | </view> |
| 56 | <view class="at-input" style="margin-right: 1rem;"> | 57 | <view class="at-input" style="margin-right: 1rem;"> |
| ... | @@ -62,8 +63,8 @@ | ... | @@ -62,8 +63,8 @@ |
| 62 | </view> | 63 | </view> |
| 63 | <view v-if="role === 'player'" class="at-input" style="margin-right: 1rem;"> | 64 | <view v-if="role === 'player'" class="at-input" style="margin-right: 1rem;"> |
| 64 | <view class="at-input__container"> | 65 | <view class="at-input__container"> |
| 65 | - <label class="h5-label at-input__title at-input__title">陪伴者</label> | 66 | + <label class="h5-label at-input__title at-input__title">记录人</label> |
| 66 | - <input @tap="show_partner_popup=true" class="h5-input at-input__input" placeholder-class="placeholder" :value="user_partner.text" placeholder="请选择跟踪人" :disabled="true"/> | 67 | + <input @tap="show_partner_popup=true" class="h5-input at-input__input" placeholder-class="placeholder" :value="user_partner.text" placeholder="请选择记录人" :disabled="true"/> |
| 67 | <view style="margin-right: 0; margin-top: 0.5rem;"><van-icon @tap="show_partner_popup=true" :name="icon_sel" color="" /></view> | 68 | <view style="margin-right: 0; margin-top: 0.5rem;"><van-icon @tap="show_partner_popup=true" :name="icon_sel" color="" /></view> |
| 68 | </view> | 69 | </view> |
| 69 | </view> | 70 | </view> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-21 14:51:44 | 2 | * @Date: 2022-09-21 14:51:44 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-11-02 17:05:11 | 4 | + * @LastEditTime: 2022-11-03 16:13:18 |
| 5 | * @FilePath: /swx/src/pages/my/index.vue | 5 | * @FilePath: /swx/src/pages/my/index.vue |
| 6 | * @Description: 我的页面 | 6 | * @Description: 我的页面 |
| 7 | --> | 7 | --> |
| ... | @@ -43,8 +43,9 @@ | ... | @@ -43,8 +43,9 @@ |
| 43 | </view> | 43 | </view> |
| 44 | </view> | 44 | </view> |
| 45 | <view @tap="followUser" style="flex: 1; line-height: 60rpx;"> | 45 | <view @tap="followUser" style="flex: 1; line-height: 60rpx;"> |
| 46 | - <view> | 46 | + <view style="position: relative;"> |
| 47 | <van-icon :name="icon_user" size="3rem" color="" style="vertical-align: sub;" /> | 47 | <van-icon :name="icon_user" size="3rem" color="" style="vertical-align: sub;" /> |
| 48 | + <view style="width: 0.5rem; height: 0.5rem; background-color: red; border-radius: 50%; position: absolute; top: 0; right: 25%;"></view> | ||
| 48 | </view> | 49 | </view> |
| 49 | <view> | 50 | <view> |
| 50 | <text style="font-size: 1rem; color: #222;">陪伴的用户</text> | 51 | <text style="font-size: 1rem; color: #222;">陪伴的用户</text> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-11-01 16:06:39 | 4 | + * @LastEditTime: 2022-11-03 15:43:21 |
| 5 | * @FilePath: /swx/src/pages/myFollowUser/index.vue | 5 | * @FilePath: /swx/src/pages/myFollowUser/index.vue |
| 6 | * @Description: 陪伴的用户页面 | 6 | * @Description: 陪伴的用户页面 |
| 7 | --> | 7 | --> |
| ... | @@ -61,7 +61,7 @@ | ... | @@ -61,7 +61,7 @@ |
| 61 | <view class="list-wrapper" style="margin: 1rem;"> | 61 | <view class="list-wrapper" style="margin: 1rem;"> |
| 62 | <view id="navbar-page" style="background-color: white; border-radius: 0.65rem; padding: 1rem;overflow: auto; margin-bottom: 1px;"> | 62 | <view id="navbar-page" style="background-color: white; border-radius: 0.65rem; padding: 1rem;overflow: auto; margin-bottom: 1px;"> |
| 63 | <view style="display: inline-block; margin-right: 1rem; line-height: 60rpx;"> | 63 | <view style="display: inline-block; margin-right: 1rem; line-height: 60rpx;"> |
| 64 | - <view @tap="toggleColum('activity')" :class="[activated === 1 ? 'bg-gradient' : 'inactivate']" style="font-size: 1rem;">全部用户</view> | 64 | + <view @tap="toggleColum('activity')" :class="[activated === 1 ? 'bg-gradient' : 'inactivate']" style="font-size: 1rem;">全部义工</view> |
| 65 | </view> | 65 | </view> |
| 66 | <view style="display: inline-block; line-height: 60rpx; position: relative;"> | 66 | <view style="display: inline-block; line-height: 60rpx; position: relative;"> |
| 67 | <view @tap="toggleColum('join')" :class="[activated === 2 ? 'bg-gradient' : 'inactivate']">待陪伴</view> | 67 | <view @tap="toggleColum('join')" :class="[activated === 2 ? 'bg-gradient' : 'inactivate']">待陪伴</view> |
| ... | @@ -279,7 +279,7 @@ export default { | ... | @@ -279,7 +279,7 @@ export default { |
| 279 | this.show_host_popup = false; | 279 | this.show_host_popup = false; |
| 280 | }, | 280 | }, |
| 281 | toggleColum (type) { | 281 | toggleColum (type) { |
| 282 | - if (type === 'activity') { // 全部用户 | 282 | + if (type === 'activity') { // 全部义工 |
| 283 | this.activated = 1; | 283 | this.activated = 1; |
| 284 | } else { // 待陪伴 | 284 | } else { // 待陪伴 |
| 285 | this.activated = 2; | 285 | this.activated = 2; | ... | ... |
| ... | @@ -51,7 +51,7 @@ | ... | @@ -51,7 +51,7 @@ |
| 51 | <view style="position: absolute; right: 0; bottom: 0.75rem;"> | 51 | <view style="position: absolute; right: 0; bottom: 0.75rem;"> |
| 52 | <view @tap="addUser(item)" | 52 | <view @tap="addUser(item)" |
| 53 | style="color: #FFFFFF; background-color: #199A74; border-bottom-left-radius: 0.85rem; border-top-left-radius: 0.85rem; padding: 0.25rem 0.5rem 0.25rem 1rem; font-size: 0.9rem;"> | 53 | style="color: #FFFFFF; background-color: #199A74; border-bottom-left-radius: 0.85rem; border-top-left-radius: 0.85rem; padding: 0.25rem 0.5rem 0.25rem 1rem; font-size: 0.9rem;"> |
| 54 | - 添加成员</view> | 54 | + 成为义工</view> |
| 55 | </view> | 55 | </view> |
| 56 | </view> | 56 | </view> |
| 57 | </view> | 57 | </view> |
| ... | @@ -143,11 +143,11 @@ export default { | ... | @@ -143,11 +143,11 @@ export default { |
| 143 | addUser ({ id }) { | 143 | addUser ({ id }) { |
| 144 | Dialog.confirm({ | 144 | Dialog.confirm({ |
| 145 | title: '温馨提示', | 145 | title: '温馨提示', |
| 146 | - message: '是否确认添加成员?', | 146 | + message: '是否确认成为义工?', |
| 147 | confirmButtonColor: '#199A74' | 147 | confirmButtonColor: '#199A74' |
| 148 | }) | 148 | }) |
| 149 | .then(async () => { | 149 | .then(async () => { |
| 150 | - // 添加成员 | 150 | + // 成为义工 |
| 151 | const { code } = await setRoleMemberAPI({ i: id, role: 'volunteer' }); | 151 | const { code } = await setRoleMemberAPI({ i: id, role: 'volunteer' }); |
| 152 | if (code) { | 152 | if (code) { |
| 153 | this.member_list.splice(this.member_list.findIndex(item => item.id === id), 1); | 153 | this.member_list.splice(this.member_list.findIndex(item => item.id === id), 1); | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-11-01 15:13:53 | 4 | + * @LastEditTime: 2022-11-03 15:55:01 |
| 5 | * @FilePath: /swx/src/pages/userManage/index.vue | 5 | * @FilePath: /swx/src/pages/userManage/index.vue |
| 6 | * @Description: 单个主办方管理页面 | 6 | * @Description: 单个主办方管理页面 |
| 7 | --> | 7 | --> |
| ... | @@ -27,7 +27,7 @@ | ... | @@ -27,7 +27,7 @@ |
| 27 | <!-- <view style="display: flex; text-align: center;"> | 27 | <!-- <view style="display: flex; text-align: center;"> |
| 28 | <view @tap="goToAddUser" style="flex: 1;"> | 28 | <view @tap="goToAddUser" style="flex: 1;"> |
| 29 | <van-icon :name="icon_add" size="3.5rem" color="" style="vertical-align: middle;" /> | 29 | <van-icon :name="icon_add" size="3.5rem" color="" style="vertical-align: middle;" /> |
| 30 | - <text style="font-size: 1.1rem; color: #222; vertical-align: middle;"> 添加成员</text> | 30 | + <text style="font-size: 1.1rem; color: #222; vertical-align: middle;"> 成为义工</text> |
| 31 | </view> | 31 | </view> |
| 32 | <view @tap="goToSearchUser" style="flex: 1; border-left: 1px solid #F5F5F5;"> | 32 | <view @tap="goToSearchUser" style="flex: 1; border-left: 1px solid #F5F5F5;"> |
| 33 | <van-icon :name="icon_user" size="3.5rem" color="" style="vertical-align: middle;" /> | 33 | <van-icon :name="icon_user" size="3.5rem" color="" style="vertical-align: middle;" /> |
| ... | @@ -38,7 +38,7 @@ | ... | @@ -38,7 +38,7 @@ |
| 38 | <van-row> | 38 | <van-row> |
| 39 | <van-col span="20"> | 39 | <van-col span="20"> |
| 40 | <view style="padding: 0.7rem 1rem 0rem 1.5rem;"> | 40 | <view style="padding: 0.7rem 1rem 0rem 1.5rem;"> |
| 41 | - <input :value="search" class="weui-input" @blur="bindKeyBlur" @input="bindKeyInput" placeholder="请输入用户名姓名/手机号查找" style="width: 100%;" /> | 41 | + <input :value="search" class="weui-input" @blur="bindKeyBlur" @input="bindKeyInput" placeholder="请输入姓名/手机号查找" style="width: 100%;" /> |
| 42 | </view> | 42 | </view> |
| 43 | </van-col> | 43 | </van-col> |
| 44 | <van-col span="4"> | 44 | <van-col span="4"> |
| ... | @@ -84,8 +84,8 @@ | ... | @@ -84,8 +84,8 @@ |
| 84 | </van-col> | 84 | </van-col> |
| 85 | </van-row> | 85 | </van-row> |
| 86 | <view class="handle-box"> | 86 | <view class="handle-box"> |
| 87 | - <view v-if="item.role === 'player'" @tap="addUser(item)" class="add-user">添加成员</view> | 87 | + <view v-if="item.role === 'player'" @tap="addUser(item)" class="add-user">成为义工</view> |
| 88 | - <view v-if="item.role === 'volunteer'" @tap="delUser(item)" class="del-user">删除成员</view> | 88 | + <view v-if="item.role === 'volunteer'" @tap="delUser(item)" class="del-user">转成用户</view> |
| 89 | </view> | 89 | </view> |
| 90 | </view> | 90 | </view> |
| 91 | </view> | 91 | </view> |
| ... | @@ -246,11 +246,11 @@ export default { | ... | @@ -246,11 +246,11 @@ export default { |
| 246 | addUser ({ id }) { | 246 | addUser ({ id }) { |
| 247 | Dialog.confirm({ | 247 | Dialog.confirm({ |
| 248 | title: '温馨提示', | 248 | title: '温馨提示', |
| 249 | - message: '是否确认添加成员?', | 249 | + message: '是否确认成为义工?', |
| 250 | confirmButtonColor: '#199A74' | 250 | confirmButtonColor: '#199A74' |
| 251 | }) | 251 | }) |
| 252 | .then(async () => { | 252 | .then(async () => { |
| 253 | - // 添加成员 | 253 | + // 成为义工 |
| 254 | const { code } = await setRoleMemberAPI({ i: id, role: 'volunteer' }); | 254 | const { code } = await setRoleMemberAPI({ i: id, role: 'volunteer' }); |
| 255 | if (code) { | 255 | if (code) { |
| 256 | this.member_list.splice(this.member_list.findIndex(item => item.id === id), 1); | 256 | this.member_list.splice(this.member_list.findIndex(item => item.id === id), 1); |
| ... | @@ -264,11 +264,11 @@ export default { | ... | @@ -264,11 +264,11 @@ export default { |
| 264 | delUser ({ id }) { | 264 | delUser ({ id }) { |
| 265 | Dialog.confirm({ | 265 | Dialog.confirm({ |
| 266 | title: '温馨提示', | 266 | title: '温馨提示', |
| 267 | - message: '是否确认删除成员?', | 267 | + message: '是否确认转成用户?', |
| 268 | confirmButtonColor: '#199A74' | 268 | confirmButtonColor: '#199A74' |
| 269 | }) | 269 | }) |
| 270 | .then(async () => { | 270 | .then(async () => { |
| 271 | - // 删除成员 | 271 | + // 转成用户 |
| 272 | const { code } = await setRoleMemberAPI({ i: id, role: 'player' }); | 272 | const { code } = await setRoleMemberAPI({ i: id, role: 'player' }); |
| 273 | if (code) { | 273 | if (code) { |
| 274 | this.member_list.splice(this.member_list.findIndex(item => item.id === id), 1); | 274 | this.member_list.splice(this.member_list.findIndex(item => item.id === id), 1); | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-11-03 11:17:49 | 4 | + * @LastEditTime: 2022-11-03 15:53:45 |
| 5 | * @FilePath: /swx/src/pages/userSearch/index.vue | 5 | * @FilePath: /swx/src/pages/userSearch/index.vue |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | --> | 7 | --> |
| ... | @@ -47,7 +47,7 @@ | ... | @@ -47,7 +47,7 @@ |
| 47 | </van-col> | 47 | </van-col> |
| 48 | </van-row> | 48 | </van-row> |
| 49 | <view style="position: absolute; right: 0; bottom: 0.75rem;"> | 49 | <view style="position: absolute; right: 0; bottom: 0.75rem;"> |
| 50 | - <view @tap="addUser" style="color: #FFFFFF; background-color: #199A74; border-bottom-left-radius: 0.85rem; border-top-left-radius: 0.85rem; padding: 0.25rem 0.5rem 0.25rem 1rem; font-size: 0.9rem;">添加成员</view> | 50 | + <view @tap="addUser" style="color: #FFFFFF; background-color: #199A74; border-bottom-left-radius: 0.85rem; border-top-left-radius: 0.85rem; padding: 0.25rem 0.5rem 0.25rem 1rem; font-size: 0.9rem;">成为义工</view> |
| 51 | </view> | 51 | </view> |
| 52 | </view> | 52 | </view> |
| 53 | </view> | 53 | </view> |
| ... | @@ -118,7 +118,7 @@ const onPhoneClick = (number) => { | ... | @@ -118,7 +118,7 @@ const onPhoneClick = (number) => { |
| 118 | const addUser = () => { | 118 | const addUser = () => { |
| 119 | Dialog.confirm({ | 119 | Dialog.confirm({ |
| 120 | title: '温馨提示', | 120 | title: '温馨提示', |
| 121 | - message: '是否确认添加成员?', | 121 | + message: '是否确认成为义工?', |
| 122 | // confirmButtonColor: '#199A74' | 122 | // confirmButtonColor: '#199A74' |
| 123 | }) | 123 | }) |
| 124 | .then(() => { | 124 | .then(() => { | ... | ... |
-
Please register or login to post a comment