Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
Project
Project
Details
Activity
Releases
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
向伟
educationStu
Commits
a0cc33d2
Commit
a0cc33d2
authored
Sep 16, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6a337486
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
72 deletions
+97
-72
activity.js
src/api/activity.js
+12
-0
signUpList.vue
src/components/signUpList.vue
+67
-53
pages.json
src/pages.json
+1
-1
activityDetails.vue
src/pages/activity/activityDetails.vue
+5
-5
activityList.vue
src/pages/activity/activityList.vue
+12
-13
No files found.
src/api/activity.js
View file @
a0cc33d2
...
...
@@ -57,4 +57,16 @@ export function activitySignUp(data) {
method
:
'post'
,
data
})
}
/**
* 获取参加的活动列表
* @param {JSON参数} data
*/
export
function
activityJoinList
(
data
)
{
return
request
({
url
:
'/AppletEducation/GetUserJoinActivityPageListJxh'
,
method
:
'post'
,
data
})
}
\ No newline at end of file
src/components/signUpList.vue
View file @
a0cc33d2
...
...
@@ -32,9 +32,14 @@
<image
:src=
"x.CoverImg"
mode=
"aspectFill"
style=
"width: 110px; height: 67px; border-radius: 8px"
style=
"
width: 220rpx;
height: 134rpx;
border-radius: 16rpx;
box-shadow: 0rpx 10rpx 30rpx 0rpx rgba(36, 36, 36, 0.2);
"
></image>
<view
style=
"margin-left:
10px; height: 67
px"
>
<view
style=
"margin-left:
20rpx; height: 134r
px"
>
<view
class=
"box-title"
>
{{
x
.
ActivityName
}}
</view>
<view
style=
"font-size: 12px; color: #666666; margin-top: 8px"
>
活动类型:
{{
x
.
TypeName
}}
</view
...
...
@@ -42,41 +47,42 @@
</view>
</view>
<view
class=
"box-top-r-b"
>
<
u
-icon
<
van
-icon
name=
"contact"
:size=
"28
"
size=
"28rpx
"
color=
"#999999"
style=
"margin-right: 5px"
></
u
-icon>
></
van
-icon>
<view
style=
"
max-width: 280rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 24rpx;
"
>
{{
x
.
LinkMan
}}
</view
>
<
u
-icon
<
van
-icon
name=
"friends-o"
:size=
"28
"
size=
"28rpx
"
color=
"#999999"
style=
"margin-right:
5px; margin-left: 10
px"
></
u
-icon>
<view>
{{
x
.
PeopleNum
}}
</view>
<
u
-icon
style=
"margin-right:
10rpx; margin-left: 20r
px"
></
van
-icon>
<view
style=
"font-size: 24rpx"
>
{{
x
.
PeopleNum
}}
</view>
<
van
-icon
name=
"phone-o"
:size=
"28
"
size=
"28rpx
"
color=
"#999999"
style=
"margin-right:
5px; margin-left: 10
px"
></
u
-icon>
<view>
{{
x
.
LinkTel
}}
</view>
<
u
-icon
style=
"margin-right:
10rpx; margin-left: 20r
px"
></
van
-icon>
<view
style=
"font-size: 24rpx"
>
{{
x
.
LinkTel
}}
</view>
<
van
-icon
name=
"star-o"
:size=
"28
"
size=
"28rpx
"
:color=
"mainColor"
style=
"margin-right:
5px; margin-left: 10
px"
></
u
-icon>
style=
"margin-right:
10rpx; margin-left: 20r
px"
></
van
-icon>
<view
v-if=
"x.Money > 0 && x.TotalPoint == 0"
:style=
"
{ color: mainColor }"
...
...
@@ -95,7 +101,7 @@
</view>
<view
class=
"box-Remark"
>
<view
class=
"box-Remark-top"
>
<view
style=
"width: calc(100vw -
110
px)"
>
<view
style=
"width: calc(100vw -
220r
px)"
>
备注:
{{
x
.
Remark
==
""
?
"无"
:
x
.
Remark
}}
</view>
<view
...
...
@@ -178,6 +184,7 @@
flex-direction: column;
align-items: center;
background: #fff;
width: 650rpx;
"
>
<view
...
...
@@ -186,25 +193,27 @@
align-items: center;
justify-content: center;
height: 140rpx;
font-size: 30rpx;
"
>
<Text>
是否取消订单?
</Text>
是否取消订单?
</view>
<view
style=
"
display: flex;
flex-direction: column;
height: 160rpx;
margin-left: 30rpx;
width: 100%;
font-size: 30rpx;
box-sizing: border-box;
padding: 0 30rpx;
"
>
<Text
style=
"margin-left: 20rpx; margin-top: 10rpx"
>
备注
</Text>
<input
class=
"uni-input inputM"
style=
"margin-left: 20rpx; margin-top: 10rpx"
备注
<textarea
style=
"margin-top: 10rpx; font-size: 30rpx"
v-model=
"cancelRemark"
placeholder=
"输入备注"
placeholder=
"请输入备注"
placeholder-style=
"color:#999"
/>
</view>
<view
...
...
@@ -215,6 +224,7 @@
height: 100rpx;
border-top: 1px solid #f5f5f5;
width: 100%;
font-size: 30rpx;
"
>
<view
...
...
@@ -223,22 +233,24 @@
display: flex;
align-items: center;
justify-content: center;
font-size: 30rpx;
"
@
click=
"show = false"
>
<Text>
取消
</Text>
取消
</view>
<view
style=
"
width: 50%;
color: #a0cfff;
color: #00acf9;
font-size: 30rpx;
display: flex;
align-items: center;
justify-content: center;
"
@
click=
"queren"
>
<Text>
确定
</Text>
确定
</view>
</view>
</view>
...
...
@@ -259,7 +271,7 @@ import {
onMounted
,
}
from
"vue"
;
import
Loadmore
from
"./loadmore.vue"
;
import
{
getActivity
List
,
cancelSignUp
}
from
"../api/activity"
;
import
{
activityJoin
List
,
cancelSignUp
}
from
"../api/activity"
;
export
default
{
components
:
{
Loadmore
,
...
...
@@ -271,7 +283,7 @@ export default {
u
:
{},
show
:
false
,
current
:
0
,
mainColor
:
""
,
mainColor
:
"
#00acf9
"
,
contentHeight
:
0
,
msg
:
{
...
...
@@ -307,7 +319,7 @@ export default {
that
.
getList
();
},
async
getList
()
{
let
res
=
await
getActivity
List
(
data
.
msg
);
let
res
=
await
activityJoin
List
(
data
.
msg
);
if
(
res
)
{
if
(
data
.
msg
.
pageIndex
===
1
)
{
data
.
g
=
res
.
data
.
pageData
;
...
...
@@ -335,6 +347,7 @@ export default {
index
:
i
,
Id
:
x
.
Id
,
};
data
.
show
=
true
;
},
//取消报名
...
...
@@ -413,16 +426,16 @@ export default {
}
.mysignupList
.box-top
{
width
:
100%
;
height
:
67
px
;
height
:
134
r
px
;
display
:
flex
;
align-items
:
center
;
}
.mysignupList
.box-title
{
width
:
calc
(
100vw
-
30px
-
110px
-
10
px
);
font-size
:
15
px
;
width
:
calc
(
100vw
-
60
rpx
-
220
rpx
-
20
r
px
);
font-size
:
30
r
px
;
color
:
#000000
;
font-weight
:
500
;
line-height
:
22
px
;
line-height
:
44
r
px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
...
...
@@ -433,18 +446,19 @@ export default {
width
:
100%
;
display
:
flex
;
align-items
:
center
;
font-size
:
13
px
;
font-size
:
26
r
px
;
color
:
#666666
;
margin-top
:
10
px
;
margin-top
:
20
r
px
;
}
.mysignupList
.box-Remark
{
width
:
100%
;
padding
:
14px
10px
;
font-size
:
11px
;
box-sizing
:
border-box
;
padding
:
28
rpx
20
rpx
;
font-size
:
22
rpx
;
color
:
#777777
;
background
:
#ededed
;
margin-top
:
13
px
;
border-radius
:
6
px
;
margin-top
:
26
r
px
;
border-radius
:
12
r
px
;
}
.mysignupList
.box-Remark-top
{
width
:
100%
;
...
...
@@ -453,27 +467,27 @@ export default {
justify-content
:
space-between
;
}
.mysignupList
.box-Remark-top-r
{
font-size
:
11
px
;
font-size
:
22
r
px
;
}
.mysignupList
.box-Remark-b
{
width
:
100%
;
display
:
flex
;
justify-content
:
flex-end
;
margin-top
:
5
px
;
margin-top
:
10
r
px
;
}
.mysignupList
.box-Remark-btn
{
width
:
60
px
;
height
:
25
px
;
border-radius
:
12.5
px
;
border
:
1px
solid
#333
333
;
width
:
120
r
px
;
height
:
50
r
px
;
border-radius
:
25
r
px
;
border
:
1px
solid
#333
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
13
px
;
color
:
#333
333
;
font-size
:
26
r
px
;
color
:
#333
;
}
.mysignupList
.scroll-box
{
height
:
calc
(
100vh
-
90
px
);
height
:
calc
(
100vh
-
180
r
px
);
width
:
calc
(
100vw
);
overflow
:
hidden
;
}
...
...
src/pages.json
View file @
a0cc33d2
...
...
@@ -72,7 +72,7 @@
],
"tabBar"
:
{
"color"
:
"#7A7E83"
,
"selectedColor"
:
"#
3cc51f
"
,
"selectedColor"
:
"#
00ACF9
"
,
"borderStyle"
:
"black"
,
"backgroundColor"
:
"#ffffff"
,
"list"
:
[{
...
...
src/pages/activity/activityDetails.vue
View file @
a0cc33d2
...
...
@@ -124,7 +124,7 @@
.title-pic
.line-bottom
{
width
:
71
rpx
;
height
:
12
rpx
;
background-color
:
#
40766e
;
background-color
:
#
00ACF9
;
border-radius
:
4
rpx
;
position
:
absolute
;
left
:
0
;
...
...
@@ -197,7 +197,7 @@
width
:
100%
;
min-height
:
90
rpx
;
border-radius
:
20
rpx
;
background-color
:
#
40766e
;
background-color
:
#
00ACF9
;
color
:
#fff
;
display
:
flex
;
box-sizing
:
border-box
;
...
...
@@ -221,7 +221,7 @@
position
:
absolute
;
width
:
4
rpx
;
height
:
100%
;
background-color
:
#
40766e
;
background-color
:
#
00ACF9
;
left
:
24
rpx
;
top
:
90
rpx
;
}
...
...
@@ -343,10 +343,10 @@
</view>
</view>
<view
v-if=
"detial.IsJoinActivity == 1"
>
<view
class=
"details-box-top-f"
style=
"background: #
40766e
"
></view>
<view
class=
"details-box-top-f"
style=
"background: #
00ACF9
"
></view>
<view
class=
"details-box-t-positions"
:style=
"
{ background: '#
40766E
' }"
:style=
"
{ background: '#
00ACF9
' }"
>
已报名
</view>
...
...
src/pages/activity/activityList.vue
View file @
a0cc33d2
...
...
@@ -97,11 +97,11 @@
<view
v-if=
"x.IsJoinActivity == 1"
>
<view
class=
"details-box-top-f"
style=
"background: #
40766e
"
style=
"background: #
00acf9
"
></view>
<view
class=
"details-box-t-positions"
:style=
"
{ background: '#
40766E
' }"
:style=
"
{ background: '#
00ACF9
' }"
>
已报名
</view>
...
...
@@ -332,14 +332,14 @@ export default {
}
return
att
;
},
//
getorder() {
//
//报名成功处理
//
data.current = 2; //让他直接跳入我报名
// if (Object.keys(this.$refs).length > 0 && this.$
refs.children) {
//
//判断
// this.$refs.children
.getfzuj();
//
}
//
},
getorder
()
{
//报名成功处理
data
.
current
=
2
;
//让他直接跳入我报名
if
(
Object
.
keys
(
refs
).
length
>
0
&&
refs
.
children
)
{
//判断
refs
.
children
.
$vm
.
getfzuj
();
}
},
lower
(
e
)
{
if
(
data
.
msg
.
pageIndex
<
data
.
PageCount
)
{
data
.
pageState
=
"loading"
;
...
...
@@ -361,7 +361,6 @@ export default {
data
.
msg
.
SelectIsEnd
=
0
;
that
.
getList
();
}
else
{
console
.
log
(
253
,
refs
);
refs
.
children
.
$vm
.
getfzuj
();
}
},
...
...
@@ -420,7 +419,7 @@ export default {
}
.currentStyle
{
color
:
#fff
;
background-color
:
#
40766e
;
background-color
:
#
00acf9
;
}
.box-top-r
{
width
:
200
rpx
;
...
...
@@ -429,7 +428,7 @@ export default {
align-items
:
center
;
justify-content
:
center
;
font-size
:
26
rpx
;
color
:
#
40766e
;
color
:
#
00acf9
;
background
:
#edf0f3
;
border-radius
:
8
rpx
;
box-sizing
:
border-box
;
...
...
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