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
544efc71
Commit
544efc71
authored
Feb 24, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ffcccc22
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
126 additions
and
9 deletions
+126
-9
pages.json
pages.json
+2
-0
news.vue
pages/kotra/news.vue
+18
-9
newsInDetail.vue
pages/kotra/newsInDetail.vue
+106
-0
No files found.
pages.json
View file @
544efc71
...
...
@@ -583,6 +583,8 @@
"path"
:
"zixunList"
//咨询信息
},{
"path"
:
"activeInnerDetail"
//活动详情
},{
"path"
:
"newsInDetail"
//新闻详情
}]
}
],
"globalStyle"
:
{
...
...
pages/kotra/news.vue
View file @
544efc71
...
...
@@ -2,15 +2,16 @@
.koraNewsList
{
display
:
flex
;
width
:
100%
;
height
:
100px
;
padding
:
10px
;
border-bottom
:
1px
solid
#F4F4F4
;
flex
:
1
;
}
.newsLeft
{
width
:
1
40
px
;
height
:
80
px
;
width
:
1
53
px
;
height
:
115
px
;
flex-shrink
:
0
;
border-radius
:
3px
;
overflow
:
hidden
;
}
.newsLeft
img
{
width
:
100%
;
...
...
@@ -19,7 +20,7 @@
.koranewRight
{
position
:
relative
;
width
:
100%
;
margin-left
:
1
5
px
;
margin-left
:
1
2
px
;
}
.koraDate
{
position
:
absolute
;
...
...
@@ -29,10 +30,10 @@
}
.koraRName
{
color
:
#404040
;
font-size
:
1
5
px
;
font-size
:
1
4
px
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
3
;
overflow
:
hidden
;
}
.koraNewsSearch
{
...
...
@@ -49,7 +50,8 @@
color
:
#fff
;
text-align
:
center
;
line-height
:
34px
;
border-radius
:
2px
;
border-radius
:
3px
;
margin-top
:
0.5px
;
margin-right
:
20px
;
display
:
inline-block
;
}
...
...
@@ -65,7 +67,7 @@
<scroll-view
v-else
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:style=
"
{ 'height': `calc(100%)`}">
<view>
<view
class=
"koraNewsList"
v-for=
"(item,index) in dataList"
:key=
"index"
>
<view
class=
"koraNewsList"
v-for=
"(item,index) in dataList"
:key=
"index"
@
click=
"goNewsDetail(item)"
>
<view
class=
"newsLeft"
>
<img
:src=
"item.CoverImg"
alt=
""
/>
</view>
...
...
@@ -86,7 +88,7 @@
export
default
{
data
()
{
return
{
pageTitle
:
"
最新动向
"
,
pageTitle
:
"
新闻
"
,
msg
:{
pageIndex
:
1
,
pageSize
:
10
,
...
...
@@ -141,6 +143,13 @@
this
.
status
=
"nomore"
;
}
},
//跳转至新闻详情
goNewsDetail
(
item
){
console
.
log
(
item
,
'item'
);
uni
.
navigateTo
({
url
:
'/pages/kotra/newsInDetail?Id='
+
item
.
Id
});
}
}
}
</
script
>
pages/kotra/newsInDetail.vue
0 → 100644
View file @
544efc71
<
style
>
.newsInDetail
.acdetailTop
{
width
:
100%
;
height
:
auto
;
background-color
:
#fff
;
padding
:
15px
;
}
.newsInDetail
.acdetailImg
{
width
:
100%
;
height
:
190px
;
border-radius
:
3px
;
overflow
:
hidden
;
}
.newsInDetail
.acdetaiTitle
{
margin
:
15px
auto
;
color
:
#0B0B0B
;
font-size
:
16px
;
font-weight
:
bold
;
text-align
:
center
;
}
.newsInDetail
.acdetaiWriter
{
display
:
flex
;
justify-content
:
space-between
;
color
:
#B9B9B9
;
font-size
:
12px
;
font-weight
:
bold
;
margin-top
:
10px
;
align-items
:
center
;
}
.newsInDetail
.acdetaiLine
{
width
:
100%
;
height
:
10px
;
background-color
:
#F3F5F7
;
}
.newsInDetail
.acdetailBottom
{
width
:
100%
;
min-height
:
283px
;
padding
:
15px
;
background-color
:
#fff
;
}
.newsInDetail
.newsInDetail_Intro
{
color
:
#404040
;
font-size
:
14px
;
line-height
:
25px
;
margin-top
:
20px
;
}
</
style
>
<
template
>
<view
class=
"newsInDetail"
style=
"height:100vh;"
>
<view
class=
"acdetailTop"
>
<view
class=
"acdetailImg"
>
<img
:src=
"dataList.CoverImg"
alt=
""
style=
"width:100%;height:100%;"
/>
</view>
<view
class=
"acdetaiTitle"
>
{{
dataList
.
Title
}}
</view>
<view
class=
"acdetaiWriter"
>
<view>
行业:
{{
dataList
.
Industry
}}
</view>
</view>
<view
class=
"acdetaiWriter"
>
<view>
发布:
{{
dataList
.
PublishTimeStr
}}
</view>
</view>
</view>
<view
class=
"acdetaiLine"
></view>
<view
class=
"acdetailBottom"
>
<u-divider
color=
"#0B0B0B;"
half-width=
"50"
border-color=
"#0B0B0B"
fontSize=
"35"
>
详情内容
</u-divider>
<view
class=
"newsInDetail_Intro"
v-html=
"dataList.NewsInfo"
></view>
</view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
pageTitle
:
'新闻详情'
,
msg
:
{
Id
:
0
},
dataList
:{}
}
},
created
()
{},
mounted
()
{
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
},
onLoad
(
option
)
{
this
.
msg
.
Id
=
option
.
Id
;
this
.
getList
();
},
methods
:
{
getList
(){
this
.
request2
({
url
:
"/api/AppletTrade/GetCommerceNews"
,
data
:
this
.
msg
,
},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
}
}
);
}
}
}
</
script
>
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