Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
tjty-app
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
王永飞
tjty-app
Commits
81ad2859
Commit
81ad2859
authored
Nov 24, 2022
by
刘鑫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善页面
parent
f8dd7ca1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
33 deletions
+83
-33
myActivity.js
tjty-app/api/myActivity.js
+21
-1
myActivity.vue
tjty-app/pages_my/myActicity/myActivity.vue
+62
-32
No files found.
tjty-app/api/myActivity.js
View file @
81ad2859
...
...
@@ -8,4 +8,24 @@ export function getMyActivitySignupByWechatId(wechatId) {
url
:
'/tjt-activity/activity/getMyActivitySignupByWechatId/'
+
wechatId
,
method
:
'get'
})
}
\ No newline at end of file
}
export
function
getsignupexam
(
signupId
)
{
return
request
({
url
:
'/tjt-activity/signupexam/selectByActivitySignupId/'
+
signupId
,
method
:
'get'
})
}
export
function
getsignup
(
signupId
)
{
return
request
({
url
:
'/tjt-activity/signup/selectByActivitySignupId/'
+
signupId
,
method
:
'get'
})
}
tjty-app/pages_my/myActicity/myActivity.vue
View file @
81ad2859
...
...
@@ -56,7 +56,7 @@
</view>
<view
style=
"display: flex;"
>
<button
@
tap=
"tapPopup"
style=
"width: 50%;background-color: #3b7cde;border-radius:0 0 0 16px;"
>
报名详情
</button>
<button
@
tap=
"tapPopup
(item.type,item.tasSignupId,item.taseSignupId)
"
style=
"width: 50%;background-color: #3b7cde;border-radius:0 0 0 16px;"
>
报名详情
</button>
<button
@
click=
"goDetail(item.type,wechatId,item.activityId)"
style=
"width: 50%;background-color: #3b7cde;border-radius:0 0 16px 0;"
>
活动详情
</button>
...
...
@@ -64,19 +64,40 @@
</view>
</view>
<view
class=
"popup"
v-show=
"show
"
>
<view
class=
"popup"
v-show=
"show
exam"
>
<view
class=
"popup-info"
>
<view
style=
"margin-bottom: 20px;margin-left: 45px;"
>
学校
:
------
</view>
<view
style=
"margin-bottom: 20px; margin-left:15px;"
>
家长姓名
:
------
</view>
<view
style=
"margin-bottom: 20px; margin-left:15px;"
>
联系手机
:
------
</view>
<view
style=
"margin-bottom: 20px; margin-left:15px;"
>
孩子姓名
:
------
</view>
<view
style=
"margin-bottom: 20px;"
>
孩子证件号
:
------
</view>
<view
style=
"margin-bottom: 20px;margin-left: 45px;"
>
学校
:
{{
signupexamlist
.
school
}}
</view>
<view
style=
"margin-bottom: 20px; margin-left:15px;"
>
家长姓名
:
{{
signupexamlist
.
parentName
}}
</view>
<view
style=
"margin-bottom: 20px; margin-left:15px;"
>
联系手机
:
{{
signupexamlist
.
phone
}}
</view>
<view
style=
"margin-bottom: 20px; margin-left:15px;"
>
孩子姓名
:
{{
signupexamlist
.
name
}}
</view>
<view
style=
"margin-bottom: 20px;"
>
孩子证件号
:
{{
signupexamlist
.
idCard
}}
</view>
<view
>
<view
style=
"margin: 30% 30px 5% 20px;"
><button
style=
"width: 80px;height: 28px;line-height: 24px;"
type=
"default"
@
tap=
"cancel"
><text
style=
"font-size: 15px;"
>
关闭
</text></button></view>
</view>
</view>
</view>
<view
class=
"popup"
v-show=
"show"
>
else
<view
class=
"popup-info"
>
<view
style=
"margin-bottom: 20px; margin-left:30px;"
>
姓名
:
{{
signuplist
.
name
}}
</view>
<view
style=
"margin-bottom: 20px; margin-left:30px;"
v-if=
"signuplist.sex==0"
>
性别
:
男
</view>
<view
style=
"margin-bottom: 20px; margin-left:30px;"
v-else=
"signuplist.sex==1"
>
性别
:
女
</view>
<view
style=
"margin-bottom: 20px; margin-left:30px;"
>
手机
:
{{
signuplist
.
phone
}}
</view>
<view
style=
"margin-bottom: 20px;margin-left:15px;"
>
证件号
:
{{
signuplist
.
idCard
}}
</view>
<view
style=
"margin-bottom: 20px;margin-left:30px;"
>
项目
:
{{
signuplist
.
projectName
}}
</view>
<view
style=
"margin-bottom: 20px;margin-left:30px;"
>
费用
:
{{
signuplist
.
projectFee
}}
</view>
<view
style=
"margin-bottom: 20px;"
v-if=
"signuplist.projectFee==!0"
>
缴费时间
:
{{
signuplist
.
transactionTime
}}
</view>
<view
>
<view
style=
"margin: 30% 30px 5% 20px;"
><button
style=
"width: 80px;height: 28px;line-height: 24px;"
type=
"default"
@
tap=
"cancel"
><text
style=
"font-size: 15px;"
>
关闭
</text></button></view>
</view>
</view>
</view>
</view>
</
template
>
...
...
@@ -86,11 +107,10 @@
mapState
}
from
'vuex'
import
{
getMyActivitySignupByWechatId
getMyActivitySignupByWechatId
,
getsignupexam
,
getsignup
,
}
from
"@/api/myActivity.js"
;
import
{
getSinInInfo
}
from
"@/api/activity.js"
;
import
{
userInfo
...
...
@@ -98,13 +118,16 @@
export
default
{
data
()
{
return
{
showtime
:
false
,
showexam
:
false
,
show
:
false
,
wechatId
:
null
,
status
:
1
,
myActivitylist
:
[],
total
:
0
,
signInList
:
[]
signInList
:
[],
signupexamlist
:{},
signuplist
:{}
}
},
computed
:
{
...
...
@@ -118,14 +141,35 @@
},
methods
:
{
tapPopup
()
{
this
.
show
=
true
;
tapPopup
(
type
,
tasSignupId
,
taseSignupId
)
{
if
(
type
===
'2'
){
this
.
showexam
=
true
;
getsignupexam
(
taseSignupId
).
then
(
response
=>
{
this
.
signupexamlist
=
response
.
data
console
.
log
(
this
.
signupexamlist
)
})
}
else
{
this
.
show
=
true
;
getsignup
(
tasSignupId
).
then
(
response
=>
{
this
.
signuplist
=
response
.
data
console
.
log
(
this
.
signuplist
)
})
}
},
// 点击弹窗取消
cancel
()
{
this
.
show
=
false
;
this
.
showexam
=
false
;
},
getList
(
wechatId
)
{
getMyActivitySignupByWechatId
(
wechatId
).
then
(
response
=>
{
...
...
@@ -136,14 +180,6 @@
console
.
log
(
this
.
total
)
});
},
// getlista(wechatId,activityId){
// getSinInInfo(wechatId,activityId).then(response=>{
// console.log("jkbnj",response)
// this.signInList =[...this.signInList, ...response.rows] || []
// })
// },
goActivity
(
type
,
wechatId
,
activityId
)
{
if
(
type
===
'1'
)
{
...
...
@@ -162,19 +198,13 @@
},
goDetail
(
type
,
wechatId
,
activityId
){
if
(
type
===
'2'
){
// uni.navigateTo({
// url: `/pages_events/tjty_ans_detail/tjty_ans_detail?activityId=${activityId}`
// })
getSinInInfo
(
wechatId
,
activityId
).
then
(
response
=>
{
console
.
log
(
"jkbnj"
,
response
)
this
.
signInList
=
response
.
data
uni
.
navigateTo
({
url
:
`/pages_events/tjty_ans_detail/tjty_ans_detail?activityId=
${
activityId
}
`
})
}
else
{
uni
.
navigateTo
({
url
:
`/pages_activity/activity_detail/activity_detail?activity
I
d=
${
activityId
}
`
url
:
`/pages_activity/activity_detail/activity_detail?activity
_i
d=
${
activityId
}
`
})
}
},
...
...
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