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
c6bbab6a
Commit
c6bbab6a
authored
Nov 23, 2022
by
王永阿飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了bug
parent
ba1e886d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
29 deletions
+24
-29
activity.js
tjty-app/api/activity.js
+10
-0
activity.vue
tjty-app/pages_activity/activity/activity.vue
+3
-2
activity_detail.vue
tjty-app/pages_activity/activity_detail/activity_detail.vue
+7
-22
activity_immedSignIn.vue
...es_activity/activity_immedSignIn/activity_immedSignIn.vue
+4
-5
No files found.
tjty-app/api/activity.js
View file @
c6bbab6a
...
...
@@ -76,4 +76,14 @@ export function addUnifiedOrder(orderVo) {
method
:
'post'
,
data
:
orderVo
})
}
//微信支付回调下
export
function
addUnifiedOrderWx
(
orderVo
)
{
return
request
({
url
:
'http://bin001.free.idcfengye.com/dealFlow/stream/wxPayNotify'
,
method
:
'post'
,
data
:
orderVo
})
}
\ No newline at end of file
tjty-app/pages_activity/activity/activity.vue
View file @
c6bbab6a
...
...
@@ -220,8 +220,8 @@
.image
{
position
:
absolute
;
border-top-left-radius
:
15
rpx
;
border-top-right-radius
:
15
rpx
;
border-top-left-radius
:
30
rpx
;
border-top-right-radius
:
30
rpx
;
height
:
400rpx
;
width
:
100%
;
}
...
...
@@ -230,6 +230,7 @@
// justify-content: end;
position
:
absolute
;
padding-left
:
86%
;
// right: 0.01rpx;
top
:
0rpx
;
width
:
98rpx
;
height
:
98rpx
;
...
...
tjty-app/pages_activity/activity_detail/activity_detail.vue
View file @
c6bbab6a
...
...
@@ -104,6 +104,8 @@
export
default
{
data
()
{
return
{
//加载一次导航
isGoNavigate
:
false
,
activityId
:
null
,
wechatId
:
1
,
activityObject
:{},
...
...
@@ -122,6 +124,7 @@
onLoad
(
options
)
{
console
.
log
(
'onLoad'
)
this
.
activityId
=
Number
.
parseInt
(
options
.
activity_id
)
this
.
isGoNavigate
=
true
console
.
log
(
this
.
activityId
)
this
.
getList
(
this
.
activityId
)
},
...
...
@@ -264,39 +267,21 @@
for
(
var
i
=
0
;
i
<
this
.
activityObject
.
tjtActivityProjectVoList
.
length
;
i
++
)
{
limitSum
=
limitSum
+
this
.
activityObject
.
tjtActivityProjectVoList
[
i
].
limitPeople
}
console
.
log
(
signInSum
)
console
.
log
(
limitSum
)
if
(
signInSum
===
limitSum
)
return
uni
.
$showMsg
(
'报名人数已满
1
!'
)
return
uni
.
$showMsg
(
'报名人数已满!'
)
if
(
this
.
activityObject
.
activityStatus
===
'2'
)
{
return
uni
.
$showMsg
(
'活动已结束!'
)
}
// let signupTime = Date.parse(this.activityObject.signupTime)
// console.log('signupTime'+signupTime)
// console.log('now'+Date.parse(new Date))
// if(signupTime
<=
Date
.
parse
(
new
Date
)){
// return uni.$showMsg('报名已结束!')}
console
.
log
(
Date
.
parse
(
this
.
activityObject
.
signupTime
))
console
.
log
(
Date
.
parse
(
new
Date
()))
if
(
Date
.
parse
(
this
.
activityObject
.
signupTime
.
replace
(
/-/g
,
'/'
))
<
Date
.
parse
(
new
Date
()))
{
return
wx
.
showToast
({
title
:
'报名已结束!'
,
icon
:
'none'
,
duration
:
2000
})
}
else
{
uni
.
navigateTo
({
url
:
'/pages_activity/activity_immedSignIn/activity_immedSignIn?activity_id='
+
this
.
activityId
})
}
return
uni
.
$showMsg
(
'报名已结束!'
)}
if
(
Date
.
parse
(
this
.
activityObject
.
activityEnd
.
replace
(
/-/g
,
'/'
))
<
new
Date
()){
return
uni
.
$showMsg
(
'报名已结束!'
)}
else
{
uni
.
navigateTo
({
url
:
'/pages_activity/activity_immedSignIn/activity_immedSignIn?activity_id='
+
this
.
activityId
})
}
this
.
isGoNavigate
=
false
},
}
}
...
...
tjty-app/pages_activity/activity_immedSignIn/activity_immedSignIn.vue
View file @
c6bbab6a
...
...
@@ -59,7 +59,7 @@ import {
mapState
}
from
'vuex'
import
{
getProjectInfo
,
addsignInInfo
,
addUnifiedOrder
getProjectInfo
,
addsignInInfo
,
addUnifiedOrder
,
addUnifiedOrderWx
}
from
"@/api/activity.js"
;
export
default
{
data
()
{
...
...
@@ -243,12 +243,11 @@ import {
if
(
this
.
projectFee
!==
0
){
this
.
info
.
status
=
'0'
addsignInInfo
(
this
.
info
).
then
(
response
=>
{
console
.
log
(
response
)
if
(
response
.
data
.
status
===
'1'
)
console
.
log
(
response
)
//存在的话就返回报错
if
(
response
.
data
.
code
===
500
)
return
uni
.
$showMsg
(
response
.
msg
)
this
.
orderVo
.
signupId
=
response
.
data
.
signupId
this
.
orderVo
.
wechatId
=
this
.
info
.
wechatId
if
(
response
.
data
.
status
===
'0'
){
addUnifiedOrder
(
this
.
orderVo
).
then
(
response
=>
{
console
.
log
(
response
)
uni
.
requestPayment
({
...
...
@@ -274,7 +273,7 @@ import {
}
})
})
}
})
}
else
{
this
.
info
.
status
=
'1'
...
...
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