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-26 15:54:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
51a24a73e70af2e1765ed6dd81426e06c039801c
51a24a73
1 parent
8c8f208c
优化细节
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
13 deletions
src/app.less
src/components/activity-card.vue
src/pages/activityDetail/index.vue
src/pages/index/index.vue
src/pages/myCreateActivity/index.vue
src/pages/userInfo/index.vue
src/app.less
View file @
51a24a7
...
...
@@ -5,3 +5,5 @@ page {
margin: 0;
height: 100%;
}
.van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.van-multi-ellipsis--l3{-webkit-line-clamp:3}.van-clearfix:after{clear:both;content:"";display:table}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{border:0 solid #ebedf0;bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
...
...
src/components/activity-card.vue
View file @
51a24a7
<!--
* @Date: 2022-09-20 15:39:37
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-26 1
1:39:21
* @LastEditTime: 2022-10-26 1
4:20:33
* @FilePath: /swx/src/components/activity-card.vue
* @Description: 活动卡片组件
-->
...
...
@@ -30,7 +30,7 @@
</van-row>
<view v-if="status === 'creator'">
<view @tap="editActivity(data)" class="edit-button">编辑</view>
<view @tap="finishActivity(data)" v-if="formatStatus(data) === '报名未开始' || formatStatus(data) === '报名中' || formatStatus(data) === '报名结束'" class="finish-button">结束</view>
<view @tap="finishActivity(data)" v-if="formatStatus(data) === '报名未开始' || formatStatus(data) === '报名中' || formatStatus(data) === '报名结束'
|| formatStatus(data) === '活动进行中'
" class="finish-button">结束</view>
<view @tap="delActivity(data)" v-if="formatStatus(data) === '未发布' || formatStatus(data) === '已结束'" class="close-button">删除</view>
</view>
</view>
...
...
src/pages/activityDetail/index.vue
View file @
51a24a7
<!--
* @Date: 2022-09-26 14:36:57
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-26
09:14:00
* @LastEditTime: 2022-10-26
14:02:39
* @FilePath: /swx/src/pages/activityDetail/index.vue
* @Description: 活动详情页
-->
...
...
@@ -513,10 +513,14 @@ export default {
}
}
if (this.member_role === 'volunteer') {
if (this.
activity.is_inner
) {
status = '
volunteer
'
if (this.
reg_id
) {
status = '
player_join
'
} else {
status = 'volunteer_only'
if (this.activity.is_inner) {
status = 'volunteer'
} else {
status = 'volunteer_only'
}
}
}
return status
...
...
src/pages/index/index.vue
View file @
51a24a7
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-2
1 17:23:18
* @LastEditTime: 2022-10-2
6 14:03:25
* @FilePath: /swx/src/pages/index/index.vue
* @Description: 首页
-->
...
...
@@ -135,7 +135,7 @@ export default {
carousel: [],
flag: true,
page: 0,
limit:
3
,
limit:
10
,
scrollStyle: { height: '1000rpx' }
};
},
...
...
src/pages/myCreateActivity/index.vue
View file @
51a24a7
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-26 1
1:39:02
* @LastEditTime: 2022-10-26 1
5:21:16
* @FilePath: /swx/src/pages/myCreateActivity/index.vue
* @Description:
文件描述
* @Description:
创建的活动页面
-->
<template>
<div class="my-create-activity-page">
...
...
@@ -29,7 +29,7 @@
<view class="box">
<text class="bg-gradient" style="font-size: 1.15rem;">活动统计</text>
</view>
<
view class="partner-box">用户陪伴</view
>
<
!-- <view @tap="goToPartner" class="partner-box">用户陪伴</view> --
>
</view>
<view class="header-info">
<view class="activity">
...
...
src/pages/userInfo/index.vue
View file @
51a24a7
<!--
* @Date: 2022-09-29 16:32:03
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-2
4 16:48:30
* @LastEditTime: 2022-10-2
6 15:52:36
* @FilePath: /swx/src/pages/userInfo/index.vue
* @Description: 用户资料
-->
...
...
@@ -147,7 +147,7 @@ export default {
const { code, data } = await infoMemberAPI({ i: getCurrentPageParam().member_id });
if (code) {
this.name = data.member.name;
this.avatar = data.member.avatar ? data.member.avatar : 'http
s://jdc.jd.com/img/200
';
this.avatar = data.member.avatar ? data.member.avatar : 'http
://gyzs.onwall.cn/tou%402x.png
';
this.reg_count = data.reg_count;
this.age_group = data.member.age_group;
this.gender = data.member.gender === 'man' ? '男士' : '女士';
...
...
Please
register
or
login
to post a comment