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
9b1d553f
Commit
9b1d553f
authored
Nov 23, 2022
by
LiZongLin
Browse files
Options
Browse Files
Download
Plain Diff
合并冲突
parents
15d9d07f
415dd752
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
49 deletions
+70
-49
activity.vue
tjty-app/pages_activity/activity/activity.vue
+10
-10
activity_detail.vue
tjty-app/pages_activity/activity_detail/activity_detail.vue
+24
-5
activity_immedSignIn.vue
...es_activity/activity_immedSignIn/activity_immedSignIn.vue
+31
-30
tity_message_consult.vue
...s_new_media/tity_message_consult/tity_message_consult.vue
+4
-3
tity_new_media.vue
tjty-app/pages_new_media/tity_new_media/tity_new_media.vue
+1
-1
No files found.
tjty-app/pages_activity/activity/activity.vue
View file @
9b1d553f
...
...
@@ -87,13 +87,13 @@
},
onLoad
()
{
this
.
login
()
this
.
getList
()
//
this.getList()
},
//
created() {
created
()
{
// uni.setStorageSync("title", '赛事活动')
// this.getList()
//
this.getList()
//
},
this
.
getList
()
},
onShow
()
{
console
.
log
(
'onShow'
)
this
.
getList
()
...
...
@@ -206,7 +206,7 @@
overflow-x
:hidden
;
.activity_item
{
margin
:
20rpx
20rpx
20rpx
2
0rpx
;
margin
:
30rpx
30rpx
30rpx
3
0rpx
;
height
:
100%
;
// width: 706rpx;
background
:
#ffffff
;
...
...
@@ -229,10 +229,10 @@
.image-status
{
// justify-content: end;
position
:
absolute
;
padding-left
:
8
7
%
;
top
:
-5
rpx
;
width
:
105
rpx
;
height
:
105
rpx
;
padding-left
:
8
6
%
;
top
:
0
rpx
;
width
:
98
rpx
;
height
:
98
rpx
;
z-index
:
99
;
// margin-left: 128rpx;
}
...
...
@@ -258,7 +258,7 @@
height
:
77rpx
;
opacity
:
0
.6
;
background
:
#000000
;
top
:
-
9
0rpx
;
top
:
-
8
0rpx
;
z-index
:
9
;
font-size
:
18px
;
font-weight
:
500
;
...
...
tjty-app/pages_activity/activity_detail/activity_detail.vue
View file @
9b1d553f
...
...
@@ -115,14 +115,20 @@
signupId
:
null
,
}
},
// onLaunch(){
// this.getList(this.activityId)
// },
onLoad
(
options
)
{
console
.
log
(
'onLoad'
)
this
.
activityId
=
Number
.
parseInt
(
options
.
activity_id
)
console
.
log
(
this
.
activityId
)
this
.
getList
(
this
.
activityId
)
},
onShow
()
{
console
.
log
(
'onShow'
)
this
.
getList
(
this
.
activityId
)
},
//
onShow() {
//
console.log('onShow')
//
this.getList(this.activityId)
//
},
filters
:
{
ellipsis
(
value
){
if
(
!
value
)
return
''
;
...
...
@@ -139,6 +145,7 @@
methods
:{
getList
(
activityId
){
getActivity
(
activityId
).
then
(
response
=>
{
console
.
log
(
response
)
this
.
activityObject
=
response
.
data
this
.
activityObject
.
detail
=
this
.
activityObject
.
detail
.
replace
(
/src="/
,
`src="https://www.aiwanyundong.com`
)
console
.
log
(
this
.
activityObject
)
...
...
@@ -249,6 +256,18 @@
},
//立即报名
immedSignIn
(){
var
signInSum
=
0
var
limitSum
=
0
for
(
var
i
=
0
;
i
<
this
.
activityObject
.
tjtActivityProjectVoList
.
length
;
i
++
)
{
signInSum
=
signInSum
+
this
.
activityObject
.
tjtActivityProjectVoList
[
i
].
projectSignupNum
}
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!'
)
if
(
this
.
activityObject
.
activityStatus
===
'2'
)
{
return
uni
.
$showMsg
(
'活动已结束!'
)
}
...
...
@@ -337,7 +356,7 @@
height
:
77rpx
;
opacity
:
0
.6
;
background
:
#000000
;
top
:
-
90
rpx
;
top
:
-
82
rpx
;
z-index
:
9
;
font-size
:
18px
;
font-weight
:
500
;
...
...
tjty-app/pages_activity/activity_immedSignIn/activity_immedSignIn.vue
View file @
9b1d553f
...
...
@@ -212,7 +212,7 @@ import {
if
(
this
.
projectIndex
===
this
.
projectList
.
length
)
return
''
else
return
this
.
projectSignupNum
+
'人/'
+
this
.
limitPeople
+
'人'
return
this
.
projectSignupNum
+
'/'
+
this
.
limitPeople
}
},
methods
:
{
...
...
@@ -241,39 +241,40 @@ import {
return
uni
.
$showMsg
(
'报名人数已满!'
)
}
if
(
this
.
projectFee
!==
0
){
this
.
info
.
status
=
'0'
addsignInInfo
(
this
.
info
).
then
(
response
=>
{
console
.
log
(
response
)
if
(
response
.
code
===
500
)
if
(
response
.
data
.
status
===
'1'
)
return
uni
.
$showMsg
(
response
.
msg
)
this
.
orderVo
.
signupId
=
response
.
data
this
.
orderVo
.
signupId
=
response
.
data
.
signupId
this
.
orderVo
.
wechatId
=
this
.
info
.
wechatId
// if(response.code === 200
){
//
addUnifiedOrder(this.orderVo).then(response =>{
//
console.log(response)
//
uni.requestPayment({
//
provider:'wxpay',
//
timeStamp: response.data.timeStamp,
//
nonceStr: response.data.nonceStr,
//
package: response.data.package,
//
signType: response.data.signType,
//
paySign: response.data.paySign,
//
success:function(res){
//
console.log('success'+ JSON.stringify(res))
//
uni.showLoading({
//
title: '报名成功!',
//
})
//
setTimeout(() => {
//
uni.navigateBack({
//
delta: 1
//
});
//
}, 1000);
//
},
//
fail: function (err) {
//
console.log('fail:' + JSON.stringify(err));
//
}
//
})
//
})
//
}
if
(
response
.
data
.
status
===
'0'
){
addUnifiedOrder
(
this
.
orderVo
).
then
(
response
=>
{
console
.
log
(
response
)
uni
.
requestPayment
({
provider
:
'wxpay'
,
timeStamp
:
response
.
data
.
timeStamp
,
nonceStr
:
response
.
data
.
nonceStr
,
package
:
response
.
data
.
package
,
signType
:
response
.
data
.
signType
,
paySign
:
response
.
data
.
paySign
,
success
:
function
(
res
){
console
.
log
(
'success'
+
JSON
.
stringify
(
res
))
uni
.
showLoading
({
title
:
'报名成功!'
,
})
setTimeout
(()
=>
{
uni
.
navigateBack
({
delta
:
1
});
},
1000
);
},
fail
:
function
(
err
)
{
console
.
log
(
'fail:'
+
JSON
.
stringify
(
err
));
}
})
})
}
})
}
else
{
this
.
info
.
status
=
'1'
...
...
tjty-app/pages_new_media/tity_message_consult/tity_message_consult.vue
View file @
9b1d553f
...
...
@@ -54,12 +54,12 @@
contentFlag
:
false
,
url
:
''
,
personnel
:
{
consultType
:
'
1
'
,
consultType
:
''
,
consultContent
:
''
,
nickName
:
''
,
phone
:
''
,
wechatId
:
''
,
consult_type
:
'0'
//
consult_type : '0'
},
rules
:
{
// consultContent: {
...
...
@@ -128,7 +128,8 @@
onLoad
(
options
)
{
this
.
personnel
.
wechatId
=
this
.
userInfo
.
wechatId
console
.
log
(
"this.userInfo:"
,
this
.
userInfo
)
this
.
url
=
options
.
url
this
.
personnel
.
consultType
=
options
.
consultType
console
.
log
(
"从别的页面传来的consultType--->"
,
this
.
personnel
.
consultType
)
},
onReady
()
{
// 需要在onReady中设置规则
...
...
tjty-app/pages_new_media/tity_new_media/tity_new_media.vue
View file @
9b1d553f
...
...
@@ -100,7 +100,7 @@
},
messageConsult
(
e
)
{
uni
.
navigateTo
({
url
:
'/pages_new_media/tity_message_consult/tity_message_consult?
url='
+
this
.
url
url
:
'/pages_new_media/tity_message_consult/tity_message_consult?
consultType='
+
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