Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-11-14 16:25:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3d2508ee20dc368cc1f24a1b459786b8c115a539
3d2508ee
1 parent
ca246e09
义工申请被拒提醒功能优化
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
13 deletions
src/pages/activityDetail/index.vue
src/pages/createActivity/index.vue
src/pages/followList/index.vue
src/pages/joinList/index.vue
src/pages/activityDetail/index.vue
View file @
3d2508e
<!--
* @Date: 2022-09-26 14:36:57
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-14 1
1:00:19
* @LastEditTime: 2022-11-14 1
6: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 });
});
}
},
...
...
src/pages/createActivity/index.vue
View file @
3d2508e
<!--
* @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">
...
...
src/pages/followList/index.vue
View file @
3d2508e
...
...
@@ -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
})
...
...
src/pages/joinList/index.vue
View file @
3d2508e
...
...
@@ -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
})
...
...
Please
register
or
login
to post a comment