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
8dacc23b
Commit
8dacc23b
authored
Nov 23, 2022
by
王宝峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.91isoft.com:90/wyf/tjty-app
into dev
parents
2120b7e2
f568be8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
5 deletions
+67
-5
tjty_ans_info.vue
tjty-app/pages_events/tjty_ans_detail/tjty_ans_info.vue
+67
-5
No files found.
tjty-app/pages_events/tjty_ans_detail/tjty_ans_info.vue
View file @
8dacc23b
...
...
@@ -69,7 +69,8 @@
getAreaList
,
getPeople
,
dailyQuestion
,
selectexamType
selectexamType
,
selectRegisterList
}
from
'@/api/dailyAnswer.js'
import
{
getActivity
...
...
@@ -81,6 +82,7 @@
export
default
{
data
()
{
return
{
registerPeopleNum
:
0
,
//本微信报名人数
examCount
:
''
,
//题库试卷判断
idFlag
:
''
,
color
:
'background:#EEEEEE'
,
...
...
@@ -219,20 +221,56 @@
},
computed
:
{
...
mapState
(
'm_user'
,
[
'userInfo'
])
},
onLoad
(
options
)
{
this
.
info
.
activityId
=
options
.
activityId
this
.
info
.
wechatId
=
this
.
userInfo
.
wechatId
this
.
getArea
()
this
.
getActivityDetial
(
options
.
activityId
)
this
.
getPerson
()
uni
.
setStorageSync
(
'pages'
,
'ans_info'
)
},
onShow
()
{
this
.
getPerson
()
this
.
getRegisterListLength
()
},
onHide
()
{
this
.
info
.
areaId
=
1
this
.
getArea
()
this
.
cityIndex
=
this
.
cityList
.
length
-
1
this
.
cityCode
=
''
this
.
info
.
cityId
=
''
this
.
areaIndex
=
16
this
.
areaDisable
=
true
this
.
areaCode
=
''
this
.
info
.
cityAreaId
=
''
this
.
schoolIndex
=
-
1
this
.
schoolCode
=
''
this
.
info
.
schoolId
=
''
this
.
schoolDisable
=
true
this
.
info
.
idFlag
=
false
this
.
info
.
areaId
=
1
this
.
info
.
parentName
=
''
this
.
info
.
name
=
''
this
.
info
.
phone
=
''
this
.
info
.
idCard
=
''
this
.
info
.
cityId
=
''
this
.
info
.
cityAreaId
=
''
this
.
info
.
schoolId
=
''
},
onReady
()
{
this
.
$refs
.
form
.
setRules
(
this
.
rules
)
},
methods
:
{
//获取报名人数
getRegisterListLength
()
{
selectRegisterList
(
this
.
info
.
wechatId
,
this
.
info
.
activityId
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
console
.
log
(
"本微信号报名信息"
,
res
);
this
.
registerPeopleNum
=
res
.
data
.
length
}
})
},
IdChange
(
e
)
{
// console.log(e);
let
idCareReg
=
...
...
@@ -295,6 +333,29 @@
if
(
this
.
info
.
idFlag
)
{
return
}
if
(
this
.
registerPeopleNum
===
3
)
{
return
uni
.
$showMsg
(
'每个答题活动最多只能报名三人!'
)
this
.
cityIndex
=
this
.
cityList
.
length
-
1
this
.
cityCode
=
''
this
.
info
.
cityId
=
''
this
.
areaIndex
=
16
this
.
areaDisable
=
true
this
.
areaCode
=
''
this
.
info
.
cityAreaId
=
''
this
.
schoolIndex
=
-
1
this
.
schoolCode
=
''
this
.
info
.
schoolId
=
''
this
.
schoolDisable
=
true
this
.
info
.
idFlag
=
false
this
.
info
.
areaId
=
1
this
.
info
.
parentName
=
''
this
.
info
.
name
=
''
this
.
info
.
phone
=
''
this
.
info
.
idCard
=
''
this
.
info
.
cityId
=
''
this
.
info
.
cityAreaId
=
''
this
.
info
.
schoolId
=
''
}
addTjtActivitySignupExams
(
this
.
info
).
then
(
res
=>
{
console
.
log
(
res
);
if
(
res
>=
0
&&
res
!==
''
)
{
...
...
@@ -311,9 +372,9 @@
dailyQuestion
(
res
,
time
).
then
(
res1
=>
{
console
.
log
(
"试卷"
,
res1
);
if
(
res1
.
data
.
length
>
0
)
{
if
(
this
.
examCount
===
0
)
{
if
(
this
.
examCount
===
0
)
{
return
uni
.
$showMsg
(
'报名成功,暂无试卷!'
)
}
else
{
}
else
{
uni
.
showToast
({
title
:
'报名成功!'
,
icon
:
'none'
...
...
@@ -339,6 +400,7 @@
}).
catch
(
err
=>
{
this
.
info
.
idFlag
=
this
.
idFlag
console
.
log
(
this
.
info
.
idFlag
);
this
.
getPerson
()
console
.
log
(
'表单错误信息:'
,
err
);
})
},
...
...
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