hookehuyr

义工申请被拒提醒功能优化

<!--
* @Date: 2022-09-26 14:36:57
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-14 11:00:19
* @LastEditTime: 2022-11-14 16:22:12
* @FilePath: /swx/src/pages/activityDetail/index.vue
* @Description: 活动详情页
-->
......@@ -549,16 +549,16 @@ export default {
}
// 活动状态判断显示
this.activity_status = getCurrentPageParam().status ? getCurrentPageParam().status : '';
// 用户是否需要弹窗
// 用户是否需要弹窗 没有读过消息&&义工申请被拒绝
if (!this.is_read_notice && data.volunteer_reg?.status === 'reject') {
Dialog.confirm({
Dialog.alert({
title: '温馨提示',
message: '您报名义工申请已被拒绝,确认后下次将不会再次弹出提示窗口。',
message: '您报名义工申请已被拒绝',
confirmButtonColor: "#199A74",
}).then(async() => {
confirmButtonText: '知道了'
}).then(async () => {
// on close
const { code, data } = await noticeRegAPI({ i: id });
}).catch(() => {
const { code, data } = await noticeRegAPI({ i: this.volunteer_reg_id });
});
}
},
......
<!--
* @Date: 2022-09-21 16:04:10
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-03 18:07:08
* @LastEditTime: 2022-11-14 16:00:16
* @FilePath: /swx/src/pages/createActivity/index.vue
* @Description: 创建活动页面
-->
......@@ -124,7 +124,7 @@
<van-col span="12" offset="0">
<view class="form-item-title fix">
是否公开显示
<van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" />
<!-- <van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" /> -->
</view>
</van-col>
<van-col span="12" offset="0">
......@@ -142,7 +142,7 @@
<view class="inner-sub-border">
<view class="form-item-title fix">
允许义工报名活动
<van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" />
<!-- <van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" /> -->
</view>
<van-switch style="float: right; padding-top: 0.5rem;" :checked="is_inner" @change="onInnerChange"
size="1.5rem" active-color="#199A74" inactive-color="#FFFFFF" />
......@@ -163,7 +163,7 @@
<van-col span="10" offset="0">
<view class="form-item-title fix">
义工岗位报名
<van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" />
<!-- <van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" /> -->
</view>
</van-col>
<van-col span="14" offset="0">
......
......@@ -170,7 +170,14 @@ export default {
},
methods: {
goToUserInfo ({ status, member_id }) {
if (status === 'request') return false; // 未审核的人没有信息,不能查看详情
if (status === 'request') {
Taro.showToast({
title: '义工身份还未通过审核',
icon: 'none',
duration: 2000
});
return false; // 未审核的人没有信息,不能查看详情
}
Taro.navigateTo({
url: '../userInfo/index?member_id=' + member_id
})
......
......@@ -169,7 +169,14 @@ export default {
},
methods: {
goToUserInfo({ status, member_id }) {
if (status === 'request') return false; // 未审核的人没有信息,不能查看详情
if (status === 'request') {
Taro.showToast({
title: '义工身份还未通过审核',
icon: 'none',
duration: 2000
});
return false; // 未审核的人没有信息,不能查看详情
}
Taro.navigateTo({
url: '../userInfo/index?member_id=' + member_id
})
......