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-10-25 17:09:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f160a6f95f4cf2ec1e482e823a98d5937e46ff02
f160a6f9
1 parent
d4e45d5d
fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
src/components/activity-bar.vue
src/components/activity-card.vue
src/components/activity-bar.vue
View file @
f160a6f
<!--
* @Date: 2022-09-26 16:10:35
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-25 1
6:25:19
* @LastEditTime: 2022-10-25 1
7:08:45
* @FilePath: /swx/src/components/activity-bar.vue
* @Description: 活动详情页底部导航栏
-->
...
...
@@ -17,7 +17,18 @@
</view>
</van-col>
<van-col span="19">
<view v-if="!isEnd">
<!-- <view v-if="isEnd == 1">
<view class="activity-close">
<view class="button">活动结束</view>
</view>
</view>
<view v-else-if="activityStatus === '报名结束'">
<view class="user-reg">
<view class="button">报名结束</view>
</view>
</view> -->
<!-- TODO: 后期看一下控制是不是放在里边的页面去做 -->
<view>
<view v-if="userType === 'volunteer'" class="user-not-reg">
<view class="button" @tap="goTo('volunteer')">义工报名</view>
<view class="button" @tap="goTo('join')">活动报名</view>
...
...
@@ -36,11 +47,6 @@
<view class="button" @tap="goTo('volunteer')">义工报名</view>
</view>
</view>
<view v-else>
<view class="activity-close">
<view class="button" @tap="goTo('info')">活动结束</view>
</view>
</view>
</van-col>
</van-row>
</view>
...
...
@@ -62,6 +68,7 @@ const props = defineProps({
regId: String,
memberRole : String,
isEnd : String,
activityStatus : String,
})
const goTo = (type) => {
...
...
src/components/activity-card.vue
View file @
f160a6f
<!--
* @Date: 2022-09-20 15:39:37
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-25 16:
37:35
* @LastEditTime: 2022-10-25 16:
59:43
* @FilePath: /swx/src/components/activity-card.vue
* @Description: 活动卡片组件
-->
...
...
@@ -90,7 +90,6 @@ const formatStatus = (item) => {
} else if (dayjs(item.activity_time).isBefore(dayjs(item.server_time))) {
return '活动进行中';
}
return 'mo'
}
const goTo = (id, status) => {
...
...
Please
register
or
login
to post a comment