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
efc84b31
Commit
efc84b31
authored
Nov 22, 2022
by
刘鑫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了一些BUG
parent
67017e8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
40 deletions
+54
-40
course.vue
tjty-app/pages_course/tjty_course_course/course.vue
+42
-17
myActivity.vue
tjty-app/pages_my/myActicity/myActivity.vue
+12
-23
No files found.
tjty-app/pages_course/tjty_course_course/course.vue
View file @
efc84b31
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<!-- 选项卡内容轮播滑动显示,current为当前第几个swiper子项 -->
<!-- 选项卡内容轮播滑动显示,current为当前第几个swiper子项 -->
<swiper
@
change=
"change"
:current=
"isActive"
class=
"swiper-content"
:style=
"fullHeight"
>
<swiper
@
change=
"change"
:current=
"isActive"
class=
"swiper-content"
:style=
"fullHeight"
>
<swiper-item
class=
"swiperitem-content"
>
<swiper-item
class=
"swiperitem-content"
>
<scroll-view
scroll-y
style=
"height: 100%;"
@
scrolltolower=
"ReachBottom"
lower-threshold=
"15
0px"
>
<scroll-view
scroll-y
style=
"height: 100%;"
lower-threshold=
"2
0px"
>
<view
class=
"nav_item"
>
<view
class=
"nav_item"
>
<view
v-if=
"ByTypelist.length == 0"
>
<view
v-if=
"ByTypelist.length == 0"
>
<view
class=
"none"
>
<view
class=
"none"
>
...
@@ -28,7 +28,6 @@
...
@@ -28,7 +28,6 @@
margin: 40rpx 0 0 268rpx;
margin: 40rpx 0 0 268rpx;
color: #666666;"
>
暂无数据
</view>
color: #666666;"
>
暂无数据
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-else
class=
"card"
v-for=
"(item,index) in ByTypelist"
:key=
"index"
>
<view
v-else
class=
"card"
v-for=
"(item,index) in ByTypelist"
:key=
"index"
>
...
@@ -51,9 +50,7 @@
...
@@ -51,9 +50,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
v-show=
"isLoadMore"
>
//loading加载提示处
<view
class=
"bottomAdd"
v-show=
"total >= max"
@
tap=
"more"
>
查看更多
</view>
<uni-load-more
:status=
"loadStatus"
></uni-load-more>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
</swiper-item>
</swiper-item>
...
@@ -245,6 +242,7 @@
...
@@ -245,6 +242,7 @@
},
},
data
()
{
data
()
{
return
{
return
{
max
:
5
,
// token:uni.getStorageSync("token"),
// token:uni.getStorageSync("token"),
onMore
:
true
,
onMore
:
true
,
loadStatus
:
'loading'
,
loadStatus
:
'loading'
,
...
@@ -327,7 +325,7 @@
...
@@ -327,7 +325,7 @@
//获取手机屏幕的高度,让其等于swiper的高度,从而使屏幕充满
//获取手机屏幕的高度,让其等于swiper的高度,从而使屏幕充满
uni
.
getSystemInfo
({
uni
.
getSystemInfo
({
success
:
function
(
res
)
{
success
:
function
(
res
)
{
that
.
fullHeight
=
"height:"
+
res
.
windowHeight
+
"px"
;
that
.
fullHeight
=
"height:"
+
res
.
windowHeight
+
"
r
px"
;
}
}
});
});
// 获取标题区域宽度,和每个子元素节点的宽度
// 获取标题区域宽度,和每个子元素节点的宽度
...
@@ -347,6 +345,23 @@
...
@@ -347,6 +345,23 @@
// }},
// }},
methods
:
{
methods
:
{
more
()
{
this
.
max
+=
10
;
//每次点击加1条
if
(
this
.
queryParams
.
pageNum
*
this
.
queryParams
.
pageSize
>=
this
.
total
)
return
uni
.
$showMsg
(
'数据加载完毕!'
)
// if (this.isloading) return
//让页码自增1
this
.
queryParams
.
pageNum
+=
1
console
.
log
(
this
.
queryParams
.
pageNum
)
// 重新获取列表数据
this
.
flag
=
false
this
.
list
(
this
.
type
,
this
.
queryParams
.
pageNum
)
},
...
mapMutations
(
'm_user'
,
[
'updateToken'
]),
...
mapMutations
(
'm_user'
,
[
'updateToken'
]),
...
mapMutations
(
'm_user'
,
[
'updateUserInfo'
]),
...
mapMutations
(
'm_user'
,
[
'updateUserInfo'
]),
//登录判断
//登录判断
...
@@ -404,17 +419,17 @@
...
@@ -404,17 +419,17 @@
}
}
});
});
},
},
ReachBottom
()
{
//
ReachBottom() {
if
(
this
.
queryParams
.
pageNum
*
this
.
queryParams
.
pageSize
>=
this
.
total
)
//
if (this.queryParams.pageNum * this.queryParams.pageSize >= this.total)
return
uni
.
$showMsg
(
'数据加载完毕!'
)
//
return uni.$showMsg('数据加载完毕!')
// if (this.isloading) return
//
// if (this.isloading) return
//让页码自增1
//
//让页码自增1
this
.
queryParams
.
pageNum
+=
1
//
this.queryParams.pageNum += 1
console
.
log
(
this
.
queryParams
.
pageNum
)
//
console.log(this.queryParams.pageNum)
// 重新获取列表数据
//
// 重新获取列表数据
this
.
flag
=
false
//
this.flag = false
this
.
list
(
this
.
type
,
this
.
queryParams
.
pageNum
)
//
this.list(this.type, this.queryParams.pageNum)
},
//
},
// lowerBottom() {
// lowerBottom() {
...
@@ -689,5 +704,15 @@
...
@@ -689,5 +704,15 @@
height
:
334rpx
;
height
:
334rpx
;
}
}
.bottomAdd
{
display
:
flex
;
justify-content
:
center
;
color
:
rgb
(
94
,
94
,
94
);
padding-bottom
:
10px
;
}
}
}
</
style
>
</
style
>
tjty-app/pages_my/myActicity/myActivity.vue
View file @
efc84b31
...
@@ -25,33 +25,17 @@
...
@@ -25,33 +25,17 @@
<view
class=
"question"
><text>
{{
item
.
activityName
}}
</text></view>
<view
class=
"question"
><text>
{{
item
.
activityName
}}
</text></view>
<dividerface></dividerface>
<dividerface></dividerface>
<view
class=
"item"
style=
"display: flex"
>
比赛时间:
<view
class=
"item"
style=
"display: flex"
>
比赛时间:
<view
class=
"time"
>
{{
item
.
activityTime
}}
</view></view>
<view
class=
"time"
>
<view
class=
"item"
style=
"display: flex"
>
报名时间:
<view
class=
"time"
>
{{
item
.
activityTime
}}
</view></view>
{{
item
.
activityTime
}}
<view
class=
"item"
style=
"display: flex;margin-left: 34rpx;"
>
参赛人:
<view
class=
"time"
>
{{
item
.
activityTime
}}
</view></view>
</view>
</view>
<view
class=
"item1"
>
<view
class=
"item1"
>
<view
>
<view
>
<!--
<text
style=
"color:#FCA624;font-family: Source Han Sans CN, Source Han Sans CN-Regular;
font-weight: 400;"
v-if=
"item.activityStatus==='0'"
>
未开始
</text>
<text
style=
"color:#36B25B;font-family: Source Han Sans CN, Source Han Sans CN-Regular;
font-weight: 400;"
v-if=
"item.activityStatus==='1'"
>
进行中
</text>
<text
style=
"color:#999999;"
v-if=
"item.activityStatus==='2'"
>
已结束
</text>
-->
<image
class=
"image-status"
src=
"../../static/oper-icon/content_tag_weikaishi@2x.png"
<image
class=
"image-status"
src=
"../../static/oper-icon/content_tag_weikaishi@2x.png"
v-if=
"item.activityStatus==='0'"
></image>
v-if=
"item.activityStatus==='0'"
></image>
<image
class=
"image-status"
src=
"../../static/oper-icon/content_tag_jinxingzhong@2x.png"
<image
class=
"image-status"
src=
"../../static/oper-icon/content_tag_jinxingzhong@2x.png"
v-else-if=
"item.activityStatus==='1'"
></image>
v-else-if=
"item.activityStatus==='1'"
></image>
<image
class=
"image-status"
src=
"../../static/oper-icon/content_tag_yijieshu@2x.png"
v-else
></image>
<image
class=
"image-status"
src=
"../../static/oper-icon/content_tag_yijieshu@2x.png"
v-else
></image>
<!--
<button
style=
"width: 111px;
<button
style=
"width: 111px;
height: 30px;
height: 30px;
background: #3b7cde;
background: #3b7cde;
border-radius: 15px;
border-radius: 15px;
...
@@ -59,9 +43,14 @@ font-weight: 400;" v-if="item.activityStatus==='1'">
...
@@ -59,9 +43,14 @@ font-weight: 400;" v-if="item.activityStatus==='1'">
display: block;
display: block;
float: right;"
@
click=
"goActivity(item.type,wechatId,item.activityId)"
>
float: right;"
@
click=
"goActivity(item.type,wechatId,item.activityId)"
>
<text
style=
"font-size: 14px;color: #ffffff;font-family: Source Han Sans CN, Source Han Sans CN-Regular;"
>
报名详情
</text>
<text
style=
"font-size: 14px;color: #ffffff;font-family: Source Han Sans CN, Source Han Sans CN-Regular;"
>
报名详情
</text>
</button>
</button>
-->
</view>
</view>
</view>
</view>
<view
style=
"display: flex;"
>
<button
style=
"width: 50%;background-color: #3b7cde;border-radius:0 0 0 16px;"
>
报名详情
</button>
<button
@
click=
"goActivity(item.type,wechatId,item.activityId)"
style=
"width: 50%;background-color: #3b7cde;border-radius:0 0 16px 0;"
>
活动详情
</button>
</view>
</view>
</view>
</view>
</view>
...
@@ -109,7 +98,7 @@ import { userInfo } from 'os';
...
@@ -109,7 +98,7 @@ import { userInfo } from 'os';
url
:
'/pages_activity/activity_signInDetail/activity_signInDetail?wechat_id='
+
wechatId
+
'&activity_id='
+
activityId
url
:
'/pages_activity/activity_signInDetail/activity_signInDetail?wechat_id='
+
wechatId
+
'&activity_id='
+
activityId
})
})
console
.
log
(
'sdsdsds'
,
activityId
)
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages_events/tjty_ans_detail/tjty_ans_detail?activityId=
${
activityId
}
`
url
:
`/pages_events/tjty_ans_detail/tjty_ans_detail?activityId=
${
activityId
}
`
...
@@ -186,7 +175,7 @@ import { userInfo } from 'os';
...
@@ -186,7 +175,7 @@ import { userInfo } from 'os';
}
}
.question
{
.question
{
margin-top
:
5%
;
margin-top
:
5%
;
margin
:
2%
1
0
%
0
5%
;
margin
:
2%
1
5
%
0
5%
;
min-height
:
72px
;
min-height
:
72px
;
height
:
auto
;
height
:
auto
;
line-height
:
30px
;
line-height
:
30px
;
...
...
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