Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zong
Compass
Commits
27b622eb
Commit
27b622eb
authored
Mar 15, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
8b8a82b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
volunteersEventDetail.js
src/wx/pages/volunteersEventDetail/volunteersEventDetail.js
+8
-4
volunteersEventDetail.wxml
...wx/pages/volunteersEventDetail/volunteersEventDetail.wxml
+1
-1
volunteersEventDetail.wxss
...wx/pages/volunteersEventDetail/volunteersEventDetail.wxss
+5
-5
No files found.
src/wx/pages/volunteersEventDetail/volunteersEventDetail.js
View file @
27b622eb
...
...
@@ -20,7 +20,8 @@ Page({
isCircleOwner
:
false
,
personalMemberList
:[],
circleMemberList
:[],
menuText
:
''
menuText
:
''
,
showActionButton
:
false
},
/**
...
...
@@ -59,17 +60,20 @@ Page({
//按钮文字控制
if
(
res
.
data
.
result
.
isMember
==
false
&&
res
.
data
.
result
.
isEnrollFinish
==
false
){
that
.
setData
({
menuText
:
'报名参加'
menuText
:
'报名参加'
,
showActionButton
:
true
})
}
if
(
res
.
data
.
result
.
isMember
==
true
&&
res
.
data
.
result
.
isEnrollFinish
==
false
)
{
that
.
setData
({
menuText
:
'取消报名'
menuText
:
'取消报名'
,
showActionButton
:
true
})
}
if
(
res
.
data
.
result
.
isMember
==
true
&&
res
.
data
.
result
.
isEnrollFinish
==
true
&&
res
.
data
.
result
.
isComplete
==
false
)
{
that
.
setData
({
menuText
:
'上传凭证'
menuText
:
'上传凭证'
,
showActionButton
:
true
})
}
}
...
...
src/wx/pages/volunteersEventDetail/volunteersEventDetail.wxml
View file @
27b622eb
...
...
@@ -55,7 +55,7 @@
</view>
</van-tab>
</van-tabs>
<view class='actionBtn' bindtap='userAction'>{{menuText}}</view>
<view class='actionBtn' bindtap='userAction'
wx:if="{{showActionButton}}"
>{{menuText}}</view>
</view>
</view>
<van-dialog id="van-dialog" />
...
...
src/wx/pages/volunteersEventDetail/volunteersEventDetail.wxss
View file @
27b622eb
...
...
@@ -3,25 +3,25 @@
width: 100%;
}
.con_activeDetails{
width:
8
0%;
width:
9
0%;
margin: 30px auto;
}
.con_activeDetails>text{
display: block;
width: 100%;
font-size: 1
2
px;
font-size: 1
3
px;
margin-bottom: 15px;
}
.botCon_activeDetails{
width: 100%;
height:
76
px;
height:
100
px;
border-bottom: 1px solid #ccc;
}
.botCon_activeDetails>view{
width: 1
5
0px;
width: 1
8
0px;
float: right;
color: #666;
font-size: 1
0
px;
font-size: 1
2
px;
}
.botCon_activeDetails>view>text{
display: block;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment