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-16 10:48:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4a7b912e89ade4934a9e6bebd81947acfaa1395d
4a7b912e
1 parent
8ab23484
✨ feat: 更新报名义工时提示,参加活动已签到状态下,不能进行其他操作
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
6 deletions
src/components/activity-bar.vue
src/pages/joinInfo/index.less
src/pages/joinInfo/index.vue
src/utils/config.js
src/components/activity-bar.vue
View file @
4a7b912
<!--
* @Date: 2022-09-26 16:10:35
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-1
4 11:11:53
* @LastEditTime: 2022-11-1
6 10:33:15
* @FilePath: /swx/src/components/activity-bar.vue
* @Description: 活动详情页底部导航栏
-->
...
...
@@ -101,7 +101,7 @@ const goTo = (type, status) => {
// player报名义工之前需要弹出提示框,告诉用户注意事项。
Dialog.alert({
title: '温馨提示',
message: '
报名义工的注意事项
',
message: '
义工报名成功后请等待主办方审核,可以在报名信息页查看审核结果
',
confirmButtonColor: "#199A74",
confirmButtonText: '知道了'
}).then(() => {
...
...
src/pages/joinInfo/index.less
View file @
4a7b912
...
...
@@ -40,4 +40,18 @@
border-radius: 1.5rem;
}
}
.box-single {
padding: 1rem 0;
margin: 1rem;
padding-bottom: 2rem;
margin-top: 0;
text-align: center;
width: 100%;
.button {
color: #FFFFFF;
background-color: #199A74;
padding: 0.65rem 1rem;
border-radius: 1.5rem;
}
}
}
...
...
src/pages/joinInfo/index.vue
View file @
4a7b912
<!--
* @Date: 2022-09-27 17:13:05
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-11-
01 13:50:43
* @LastEditTime: 2022-11-
16 10:46:50
* @FilePath: /swx/src/pages/joinInfo/index.vue
* @Description: 活动报名
-->
...
...
@@ -46,7 +46,7 @@
</view>
</view>
<view class="confirm-wrapper-page">
<view
v-if="status !== '已签到'"
class="confirm-wrapper-page">
<view class="box">
<view @tap="cancelJoin" class="button">取消报名</view>
</view>
...
...
@@ -54,6 +54,11 @@
<view @tap="editJoin" class="button">修改报名</view>
</view>
</view>
<view v-else class="confirm-wrapper-page">
<view class="box-single">
<view @tap="closeBtn" class="button">关闭</view>
</view>
</view>
<van-dialog id="van-dialog" />
</template>
...
...
@@ -94,6 +99,10 @@ const editJoin = (val) => {
url: '../joinActivity/index?type=edit®_id=' + getCurrentPageParam().reg_id + '&id=' + getCurrentPageParam().id
})
}
const closeBtn = () => {
Taro.navigateBack()
}
</script>
<script>
...
...
@@ -116,6 +125,7 @@ export default {
this.phone = data.phone;
this.age_group = data.age_group;
this.user_sex = data.gender === 'man' ? '男士' : '女士';
this.status = data.status === 'enable' ? '已签到' : '';
// 额外信息
if (data.extend) {
this.extend = [];
...
...
src/utils/config.js
View file @
4a7b912
/*
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-1
0-09 15:41:43
* @LastEditTime: 2022-1
1-16 10:41:25
* @FilePath: /swx/src/utils/config.js
* @Description: 文件描述
*/
const
BASE_URL
=
"http://wenxuan.onwall.cn"
;
// TAG:服务器环境配置
const
BASE_URL
=
"http://wenxuan.onwall.cn"
;
// 测试服务器
// const BASE_URL = "https://oa.onwall.cn"; // 正式服务器
export
default
BASE_URL
...
...
Please
register
or
login
to post a comment