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
e032cb69
Commit
e032cb69
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
8dd4b4f6
a4ef38d3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
39 deletions
+33
-39
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
tjty_customer.vue
tjty-app/pages_service/tjty_customer/tjty_customer.vue
+9
-10
No files found.
tjty-app/api/activity.js
View file @
e032cb69
...
@@ -76,4 +76,14 @@ export function addUnifiedOrder(orderVo) {
...
@@ -76,4 +76,14 @@ export function addUnifiedOrder(orderVo) {
method
:
'post'
,
method
:
'post'
,
data
:
orderVo
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 @
e032cb69
...
@@ -220,8 +220,8 @@
...
@@ -220,8 +220,8 @@
.image
{
.image
{
position
:
absolute
;
position
:
absolute
;
border-top-left-radius
:
15
rpx
;
border-top-left-radius
:
30
rpx
;
border-top-right-radius
:
15
rpx
;
border-top-right-radius
:
30
rpx
;
height
:
400rpx
;
height
:
400rpx
;
width
:
100%
;
width
:
100%
;
}
}
...
@@ -230,6 +230,7 @@
...
@@ -230,6 +230,7 @@
// justify-content: end;
// justify-content: end;
position
:
absolute
;
position
:
absolute
;
padding-left
:
86%
;
padding-left
:
86%
;
// right: 0.01rpx;
top
:
0rpx
;
top
:
0rpx
;
width
:
98rpx
;
width
:
98rpx
;
height
:
98rpx
;
height
:
98rpx
;
...
...
tjty-app/pages_activity/activity_detail/activity_detail.vue
View file @
e032cb69
...
@@ -104,6 +104,8 @@
...
@@ -104,6 +104,8 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
//加载一次导航
isGoNavigate
:
false
,
activityId
:
null
,
activityId
:
null
,
wechatId
:
1
,
wechatId
:
1
,
activityObject
:{},
activityObject
:{},
...
@@ -122,6 +124,7 @@
...
@@ -122,6 +124,7 @@
onLoad
(
options
)
{
onLoad
(
options
)
{
console
.
log
(
'onLoad'
)
console
.
log
(
'onLoad'
)
this
.
activityId
=
Number
.
parseInt
(
options
.
activity_id
)
this
.
activityId
=
Number
.
parseInt
(
options
.
activity_id
)
this
.
isGoNavigate
=
true
console
.
log
(
this
.
activityId
)
console
.
log
(
this
.
activityId
)
this
.
getList
(
this
.
activityId
)
this
.
getList
(
this
.
activityId
)
},
},
...
@@ -264,39 +267,21 @@
...
@@ -264,39 +267,21 @@
for
(
var
i
=
0
;
i
<
this
.
activityObject
.
tjtActivityProjectVoList
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
this
.
activityObject
.
tjtActivityProjectVoList
.
length
;
i
++
)
{
limitSum
=
limitSum
+
this
.
activityObject
.
tjtActivityProjectVoList
[
i
].
limitPeople
limitSum
=
limitSum
+
this
.
activityObject
.
tjtActivityProjectVoList
[
i
].
limitPeople
}
}
console
.
log
(
signInSum
)
console
.
log
(
limitSum
)
if
(
signInSum
===
limitSum
)
if
(
signInSum
===
limitSum
)
return
uni
.
$showMsg
(
'报名人数已满
1
!'
)
return
uni
.
$showMsg
(
'报名人数已满!'
)
if
(
this
.
activityObject
.
activityStatus
===
'2'
)
{
if
(
this
.
activityObject
.
activityStatus
===
'2'
)
{
return
uni
.
$showMsg
(
'活动已结束!'
)
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
()))
{
if
(
Date
.
parse
(
this
.
activityObject
.
signupTime
.
replace
(
/-/g
,
'/'
))
<
Date
.
parse
(
new
Date
()))
{
return
wx
.
showToast
({
return
uni
.
$showMsg
(
'报名已结束!'
)}
title
:
'报名已结束!'
,
icon
:
'none'
,
duration
:
2000
})
}
else
{
uni
.
navigateTo
({
url
:
'/pages_activity/activity_immedSignIn/activity_immedSignIn?activity_id='
+
this
.
activityId
})
}
if
(
Date
.
parse
(
this
.
activityObject
.
activityEnd
.
replace
(
/-/g
,
'/'
))
<
new
Date
()){
if
(
Date
.
parse
(
this
.
activityObject
.
activityEnd
.
replace
(
/-/g
,
'/'
))
<
new
Date
()){
return
uni
.
$showMsg
(
'报名已结束!'
)}
return
uni
.
$showMsg
(
'报名已结束!'
)}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages_activity/activity_immedSignIn/activity_immedSignIn?activity_id='
+
this
.
activityId
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 @
e032cb69
...
@@ -59,7 +59,7 @@ import {
...
@@ -59,7 +59,7 @@ import {
mapState
mapState
}
from
'vuex'
}
from
'vuex'
import
{
import
{
getProjectInfo
,
addsignInInfo
,
addUnifiedOrder
getProjectInfo
,
addsignInInfo
,
addUnifiedOrder
,
addUnifiedOrderWx
}
from
"@/api/activity.js"
;
}
from
"@/api/activity.js"
;
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -243,12 +243,11 @@ import {
...
@@ -243,12 +243,11 @@ import {
if
(
this
.
projectFee
!==
0
){
if
(
this
.
projectFee
!==
0
){
this
.
info
.
status
=
'0'
this
.
info
.
status
=
'0'
addsignInInfo
(
this
.
info
).
then
(
response
=>
{
addsignInInfo
(
this
.
info
).
then
(
response
=>
{
console
.
log
(
response
)
console
.
log
(
response
)
//存在的话就返回报错
if
(
response
.
data
.
status
===
'1'
)
if
(
response
.
data
.
code
===
500
)
return
uni
.
$showMsg
(
response
.
msg
)
return
uni
.
$showMsg
(
response
.
msg
)
this
.
orderVo
.
signupId
=
response
.
data
.
signupId
this
.
orderVo
.
signupId
=
response
.
data
.
signupId
this
.
orderVo
.
wechatId
=
this
.
info
.
wechatId
this
.
orderVo
.
wechatId
=
this
.
info
.
wechatId
if
(
response
.
data
.
status
===
'0'
){
addUnifiedOrder
(
this
.
orderVo
).
then
(
response
=>
{
addUnifiedOrder
(
this
.
orderVo
).
then
(
response
=>
{
console
.
log
(
response
)
console
.
log
(
response
)
uni
.
requestPayment
({
uni
.
requestPayment
({
...
@@ -274,7 +273,7 @@ import {
...
@@ -274,7 +273,7 @@ import {
}
}
})
})
})
})
}
})
})
}
else
{
}
else
{
this
.
info
.
status
=
'1'
this
.
info
.
status
=
'1'
...
...
tjty-app/pages_service/tjty_customer/tjty_customer.vue
View file @
e032cb69
...
@@ -15,11 +15,9 @@
...
@@ -15,11 +15,9 @@
</view>
</view>
<noData
v-if=
"!customerListLength"
:style=
"fullHeight"
></noData>
<noData
v-if=
"!customerListLength"
:style=
"fullHeight"
></noData>
<!-- 选项卡内容轮播滑动显示,current为当前第几个swiper子项 -->
<!-- 选项卡内容轮播滑动显示,current为当前第几个swiper子项 -->
<
!--
<
swiper
@
change=
"change"
:current=
"isActive"
class=
"swiper-content"
:style=
"fullHeight"
<swiper
@
change=
"change"
:current=
"isActive"
class=
"swiper-content"
:style=
"fullHeight"
v-if=
"customerList.length !== 0"
>
v-if=
"customerList.length !== 0"
>
<swiper-item
class=
"swiperitem-content"
>
-->
<swiper-item
class=
"swiperitem-content"
@
touchmove
.
stop=
"stopTouchMove"
>
<view
class=
"swiper-content"
:style=
"fullHeight"
v-if=
"customerList.length !== 0"
>
<view
class=
"swiperitem-content"
>
<scroll-view
scroll-y
style=
"height: 100%;"
@
scrolltolower=
"lowerBottom"
lower-threshold=
"150px"
<scroll-view
scroll-y
style=
"height: 100%;"
@
scrolltolower=
"lowerBottom"
lower-threshold=
"150px"
refresher-enabled=
"true"
@
refresherrefresh=
"refresh"
:refresher-triggered=
"triggered"
>
refresher-enabled=
"true"
@
refresherrefresh=
"refresh"
:refresher-triggered=
"triggered"
>
<view
class=
"nav_item"
>
<view
class=
"nav_item"
>
...
@@ -34,11 +32,8 @@
...
@@ -34,11 +32,8 @@
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
</view>
</swiper-item>
</view>
</swiper>
<!--
</swiper-item>
</swiper>
-->
<view
class=
"nav_item_bottom"
>
<view
class=
"nav_item_bottom"
>
<button
style=
"background-color:#3b7cde; color:white;"
@
click=
"goPhoneBtn(phoneNumber)"
>
咨询电话
</button>
<button
style=
"background-color:#3b7cde; color:white;"
@
click=
"goPhoneBtn(phoneNumber)"
>
咨询电话
</button>
<button
type=
"primary"
@
click=
"gotoMessageConsult"
>
留言咨询
</button>
<button
type=
"primary"
@
click=
"gotoMessageConsult"
>
留言咨询
</button>
...
@@ -158,6 +153,10 @@
...
@@ -158,6 +153,10 @@
}
}
});
});
},
},
//限制页面左右滑动
stopTouchMove
()
{
return
true
},
//留言咨询
//留言咨询
gotoMessageConsult
()
{
gotoMessageConsult
()
{
console
.
log
(
"准备进入到留言咨询。。。。"
)
console
.
log
(
"准备进入到留言咨询。。。。"
)
...
@@ -357,7 +356,7 @@
...
@@ -357,7 +356,7 @@
min-height
:
calc
(
100%
-
10%
);
min-height
:
calc
(
100%
-
10%
);
padding
:
5rpx
;
padding
:
5rpx
;
height
:
auto
;
height
:
auto
;
padding-bottom
:
20
%
;
padding-bottom
:
35
%
;
.customer-item
{
.customer-item
{
margin
:
20rpx
5%
;
margin
:
20rpx
5%
;
...
...
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