Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
a6a29b1f
Commit
a6a29b1f
authored
Feb 25, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d39c0ce4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
45 deletions
+96
-45
activeInnerDetail.vue
pages/kotra/activeInnerDetail.vue
+11
-6
activityList.vue
pages/kotra/activityList.vue
+85
-39
No files found.
pages/kotra/activeInnerDetail.vue
View file @
a6a29b1f
...
@@ -100,11 +100,12 @@
...
@@ -100,11 +100,12 @@
</view>
</view>
</view>
</view>
<view
class=
"acdetailBtn"
v-if=
"dataList.ActivityStatus==2"
>
报名活动(已结束)
</view>
<template
v-if=
"isShowBtn"
>
<view
class=
"acdetailBtn"
@
click=
"showModal=true"
style=
"background-color: #000450;"
v-if=
"dataList.ActivityStatus==1&&dataList.IsJoinActivity==0"
>
马上报名
</view>
<view
class=
"acdetailBtn"
v-if=
"dataList.ActivityStatus==2"
>
报名活动(已结束)
</view>
<view
class=
"acdetailBtn"
style=
"background-color: #000450;"
v-if=
"dataList.ActivityStatus==0"
>
未开始
</view>
<view
class=
"acdetailBtn"
@
click=
"showModal=true"
style=
"background-color: #000450;"
v-if=
"dataList.ActivityStatus==1&&dataList.IsJoinActivity==0"
>
马上报名
</view>
<view
class=
"acdetailBtn"
v-if=
"dataList.IsJoinActivity==1"
>
已报名
</view>
<view
class=
"acdetailBtn"
style=
"background-color: #000450;"
v-if=
"dataList.ActivityStatus==0"
>
未开始
</view>
<view
class=
"acdetailBtn"
v-if=
"dataList.IsJoinActivity==1"
>
已报名
</view>
</
template
>
<u-popup
v-model=
"showModal"
mode=
"center"
length=
"80%"
>
<u-popup
v-model=
"showModal"
mode=
"center"
length=
"80%"
>
<view
style=
'display: flex;flex-direction: column;align-items: center;background: #fff;'
>
<view
style=
'display: flex;flex-direction: column;align-items: center;background: #fff;'
>
<view
style=
"display: flex;width: 100%;margin-top:30px;padding-left:20px;"
>
<view
style=
"display: flex;width: 100%;margin-top:30px;padding-left:20px;"
>
...
@@ -142,7 +143,8 @@
...
@@ -142,7 +143,8 @@
ActivityId
:
0
,
ActivityId
:
0
,
LinkMan
:
""
,
LinkMan
:
""
,
LinkTel
:
""
LinkTel
:
""
}
},
isShowBtn
:
true
}
}
},
},
created
()
{},
created
()
{},
...
@@ -154,6 +156,9 @@
...
@@ -154,6 +156,9 @@
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
msg
.
Id
=
option
.
Id
;
this
.
msg
.
Id
=
option
.
Id
;
this
.
signMsg
.
ActivityId
=
option
.
Id
;
this
.
signMsg
.
ActivityId
=
option
.
Id
;
if
(
option
.
isFromActive
==
1
){
this
.
isShowBtn
=
false
;
}
this
.
getList
();
this
.
getList
();
},
},
methods
:
{
methods
:
{
...
...
pages/kotra/activityList.vue
View file @
a6a29b1f
<
style
>
<
style
>
.activityList
{
.activityList
{
background-color
:
#F3F5F7
;
background-color
:
#F3F5F7
;
padding
:
15px
;
padding
:
15px
;
}
}
.activityList
.activeList
{
.activityList
.activeList
{
background-color
:
#fff
;
background-color
:
#fff
;
margin-bottom
:
15px
;
margin-bottom
:
15px
;
padding
:
15px
;
padding
:
15px
;
}
}
.activityList
.activeTop
{
.activityList
.activeTop
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
}
}
.activityList
.activeLeftTitle
{
color
:
#111111
;
.activityList
.activeLeftTitle
{
font-size
:
14px
;
color
:
#111111
;
font-size
:
14px
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.activityList
.activeBtm
{
.activityList
.activeBtm
{
display
:
flex
;
display
:
flex
;
margin-top
:
10px
;
margin-top
:
10px
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.activityList
.activeLeftImg
{
width
:
111px
;
.activityList
.activeLeftImg
{
height
:
70px
;
width
:
111px
;
height
:
70px
;
flex-shrink
:
0
;
flex-shrink
:
0
;
}
}
.activityList
.activeRight
{
margin-left
:
15px
;
.activityList
.activeRight
{
color
:
#B9B9B9
;
margin-left
:
15px
;
font-size
:
12px
;
color
:
#B9B9B9
;
font-size
:
12px
;
width
:
100%
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<view
class=
"activityList"
style=
"height:100vh;"
>
<view
class=
"activityList"
style=
"height:100vh;"
>
<view
class=
"activeList"
>
<u-empty
v-if=
"dataList.length==0"
text=
"暂无数据"
mode=
"data"
></u-empty>
<view
class=
"activeTop"
>
<scroll-view
v-else
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ 'height': `calc(100%)`}">
<view
class=
"activeLeftTitle"
>
中韩贸易交流活动
</view>
<view>
<view>
<view
class=
"activeList"
v-for=
"(item,index) in dataList"
:key=
"index"
@
click=
"goActiveDetail(item)"
>
<image
style=
"width:20px;height:20px;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/arrow_right.png"
mode=
""
></image>
<view
class=
"activeTop"
>
<view
class=
"activeLeftTitle"
>
{{
item
.
ActivityName
}}
</view>
<view>
<image
style=
"width:20px;height:20px;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/arrow_right.png"
mode=
""
></image>
</view>
</view>
<view
class=
"activeBtm"
>
<view
class=
"activeLeftImg"
>
<image
style=
"width:100%;height:100%;"
:src=
"item.CoverImg"
></image>
</view>
<view
class=
"activeRight"
>
<view>
活动类型:
{{
item
.
ActivityTypeName
}}
</view>
<view
style=
"margin:10px 0"
>
开放时间:
{{
item
.
StartTimeStr
}}
</view>
<view>
结束时间:
{{
item
.
EndTimeStr
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"activeBtm"
>
<view
style=
"padding:10px 0;"
>
<view
class=
"activeLeftImg"
>
<u-loadmore
:status=
"status"
:load-text=
"loadText"
bg-color=
"#F3F5F7"
:font-size=
"24"
:margin-top=
"0"
:margin-bottom=
"0"
/>
<image
style=
"width:100%;height:100%;"
src=
""
></image>
</view>
<view
class=
"activeRight"
>
<view>
活动类型:现场活动
</view>
<view
style=
"margin:10px 0"
>
开放时间:2020-01-16
</view>
<view>
结束时间:2021-02-10
</view>
</view>
</view>
</view>
</view>
</
scroll-
view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -61,8 +77,18 @@
...
@@ -61,8 +77,18 @@
data
()
{
data
()
{
return
{
return
{
pageTitle
:
'活动列表'
,
pageTitle
:
'活动列表'
,
qmsg
:{
pageIndex
:
1
,
pageSize
:
10
},
qmsg
:
{
dataList
:{}
pageIndex
:
1
,
pageSize
:
10
},
pageCount
:
1
,
dataList
:
[],
loadText
:
{
loadmore
:
"轻轻上拉,加载更多"
,
loading
:
"努力加载中"
,
nomore
:
"没有更多了"
,
},
status
:
''
,
}
}
},
},
created
()
{},
created
()
{},
...
@@ -72,21 +98,41 @@
...
@@ -72,21 +98,41 @@
});
});
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
getList
();
this
.
getList
(
1
);
},
},
methods
:
{
methods
:
{
getList
(){
getList
(
num
)
{
if
(
num
==
1
)
{
this
.
dataList
=
[];
}
this
.
request2
({
this
.
request2
({
url
:
"/api/AppletTrade/GetUserActivityPage"
,
url
:
"/api/AppletTrade/GetUserActivityPage"
,
data
:
this
.
qmsg
,
data
:
this
.
qmsg
,
},
},
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
// this.dataList = res.data;
this
.
dataList
=
res
.
data
.
pageData
;
console
.
log
(
res
,
'采购数据'
);
this
.
pageCount
=
res
.
data
.
pageCount
;
console
.
log
(
res
,
'采购数据'
);
}
}
}
}
);
);
},
//滚动加载
lower
(
e
)
{
if
(
this
.
msg
.
pageIndex
<
this
.
pageCount
)
{
this
.
msg
.
pageIndex
++
;
this
.
status
=
"loading"
;
this
.
getList
();
}
else
{
this
.
status
=
"nomore"
;
}
},
//跳转至活动详情
goActiveDetail
(
item
){
uni
.
navigateTo
({
url
:
'/pages/kotra/activeInnerDetail?Id='
+
item
.
Id
+
'&isFromActive='
+
'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