Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
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
吴迪
gs1
Commits
da81d761
Commit
da81d761
authored
Dec 25, 2021
by
Lyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
retailList
parent
8f0f2410
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
190 additions
and
42 deletions
+190
-42
news.js
src/axios/module/news.js
+12
-1
index.vue
src/views/Djwh/index.vue
+2
-2
knowledgeList.vue
src/views/Knowledge/knowledgeList.vue
+20
-5
Center.vue
src/views/News/Center.vue
+18
-3
ECommerce.vue
src/views/News/ECommerce.vue
+2
-2
Notice.vue
src/views/News/Notice.vue
+2
-2
index.vue
src/views/News/index.vue
+122
-26
msg.vue
src/views/News/msg.vue
+12
-1
No files found.
src/axios/module/news.js
View file @
da81d761
...
@@ -135,6 +135,15 @@ const jcspList = (params = {}) => {
...
@@ -135,6 +135,15 @@ const jcspList = (params = {}) => {
const
jcspiInfo
=
(
params
=
{})
=>
{
const
jcspiInfo
=
(
params
=
{})
=>
{
return
GET
(
`
${
Prefix
}
/office/news/api/jcspiInfo/
${
params
.
id
}
`
)
return
GET
(
`
${
Prefix
}
/office/news/api/jcspiInfo/
${
params
.
id
}
`
)
}
}
// 零售
const
retailList
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/news/api/retailList`
,
params
);
}
// 物流
const
logostocsList
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/news/api/logostocsList`
,
params
);
}
export
default
{
export
default
{
...
@@ -167,5 +176,7 @@ export default {
...
@@ -167,5 +176,7 @@ export default {
bzkydtList
,
bzkydtList
,
sdztList
,
sdztList
,
jcspList
,
jcspList
,
jcspiInfo
jcspiInfo
,
retailList
,
logostocsList
}
}
src/views/Djwh/index.vue
View file @
da81d761
...
@@ -293,8 +293,8 @@ export default {
...
@@ -293,8 +293,8 @@ export default {
}
else
{
}
else
{
const
matche
=
[
const
matche
=
[
{
{
name
:
"
行业应用
"
,
name
:
"
深度专题
"
,
path
:
"/News/
Application
"
,
path
:
"/News/
DepthTopics
"
,
}
}
];
];
this
.
setMatche
(
matche
);
this
.
setMatche
(
matche
);
...
...
src/views/Knowledge/knowledgeList.vue
View file @
da81d761
...
@@ -209,6 +209,22 @@
...
@@ -209,6 +209,22 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"knowledge-cnt"
v-else
>
<div
class=
"knowledge-title"
>
</div>
<div
class=
"knowledge-container card "
>
<div
class=
"row g-2 "
>
<div
class=
"col bzwx"
>
<div
class=
"card-body"
>
<p
class=
"card-text"
>
{{
message
}}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-lg-4"
>
<div
class=
"col-lg-4"
>
<!-- 热点点击 -->
<!-- 热点点击 -->
...
@@ -271,7 +287,7 @@ export default {
...
@@ -271,7 +287,7 @@ export default {
zxcbm
:[]
zxcbm
:[]
},
},
hotListArr
:[],
hotListArr
:[],
message
:
''
};
};
},
},
...
@@ -317,10 +333,8 @@ export default {
...
@@ -317,10 +333,8 @@ export default {
});
});
},
},
goKnowledgeList
(){
goKnowledgeList
(){
this
.
$router
.
push
({
path
:
'/Knowledge/knowledgeList'
,
this
.
searchKnowledgeList
(
this
.
chaxun
.
type
,
this
.
chaxun
.
keywords
)
query
:
{
type
:
this
.
chaxun
.
type
,
title
:
this
.
chaxun
.
keywords
}
});
},
},
getInfo
(
id
,
directpath
){
getInfo
(
id
,
directpath
){
if
(
directpath
&&
directpath
!==
''
&&
directpath
.
length
>
0
){
if
(
directpath
&&
directpath
!==
''
&&
directpath
.
length
>
0
){
...
@@ -354,6 +368,7 @@ export default {
...
@@ -354,6 +368,7 @@ export default {
const
{
returnCode
,
data
}
=
policyListRes
;
const
{
returnCode
,
data
}
=
policyListRes
;
if
(
returnCode
===
"0"
)
{
if
(
returnCode
===
"0"
)
{
this
.
listResult
=
data
this
.
listResult
=
data
this
.
message
=
'查询无结果!'
}
}
...
...
src/views/News/Center.vue
View file @
da81d761
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
<cate
:father=
"zxhdCate"
></cate>
<cate
:father=
"zxhdCate"
></cate>
<div
class=
"container"
>
<div
class=
"container"
>
<ul
class=
"picNews-ul"
>
<ul
class=
"picNews-ul"
>
<li
v-for=
"(tmp, i) in
4"
:key=
"i
"
>
<li
v-for=
"(tmp, i) in
pictureListArr"
:key=
"i"
@
click=
"getInfo(tmp.pictureid,tmp.jumppath)
"
>
<div
class=
"picNews-li-tp"
>
<div
class=
"picNews-li-tp"
>
<img
src=
"../../assets/image/news/tpzx-tp1.jpg
"
alt=
""
/>
<img
:src=
"tmp.picFile
"
alt=
""
/>
</div>
</div>
<div
class=
"picNews-li-bt"
>
<div
class=
"picNews-li-bt"
>
中国物品编码中心应邀出席食品安全智慧监管研讨会
{{
tmp
.
title
}}
</div>
</div>
</li>
</li>
</ul>
</ul>
...
@@ -47,10 +47,12 @@ export default {
...
@@ -47,10 +47,12 @@ export default {
pageSize
:
15
,
pageSize
:
15
,
totalCount
:
0
totalCount
:
0
},
},
pictureListArr
:[]
};
};
},
},
created
()
{
created
()
{
this
.
initListFn
(
this
.
tableResult
.
currPage
);
this
.
initListFn
(
this
.
tableResult
.
currPage
);
this
.
pictureTop4
()
},
},
methods
:
{
methods
:
{
...
mapMutations
({
...
mapMutations
({
...
@@ -60,6 +62,17 @@ export default {
...
@@ -60,6 +62,17 @@ export default {
lookMore
()
{
lookMore
()
{
window
.
open
(
'/News/PicNews'
,
'_target'
);
window
.
open
(
'/News/PicNews'
,
'_target'
);
},
},
// 图片资讯列表TOP4
async
pictureTop4
()
{
const
listRes
=
await
this
.
$api
.
news
.
pictureTop4
();
const
{
returnCode
,
data
}
=
listRes
;
if
(
returnCode
===
"0"
)
{
this
.
pictureListArr
=
data
}
},
// 列表
// 列表
async
initListFn
(
page
,
limit
)
{
async
initListFn
(
page
,
limit
)
{
const
params
=
{
const
params
=
{
...
@@ -131,6 +144,8 @@ export default {
...
@@ -131,6 +144,8 @@ export default {
margin-bottom
:
30px
;
margin-bottom
:
30px
;
img
{
img
{
width
:
100%
;
width
:
100%
;
height
:
140px
;
background
:
url('../../assets/image/news/tpzx-tp1.jpg')
100%
100%
;
}
}
.picNews-li-bt
{
.picNews-li-bt
{
width
:
90%
;
width
:
90%
;
...
...
src/views/News/ECommerce.vue
View file @
da81d761
...
@@ -54,8 +54,8 @@
...
@@ -54,8 +54,8 @@
<!--
<span
class=
"more"
>
更多>>
</span>
-->
<!--
<span
class=
"more"
>
更多>>
</span>
-->
</p>
</p>
<
!--
<img
src=
"../../assets/image/news/dzsw2.png"
alt=
""
>
--
>
<
img
src=
"../../assets/image/news/dzsw2.png"
alt=
""
>
<
video
controls=
"controls"
src=
""
width=
"100%"
height=
"100%"
webkit-playsinline=
""
></video
>
<
!--
<video
controls=
"controls"
src=
""
width=
"100%"
height=
"100%"
webkit-playsinline=
""
></video>
--
>
</div>
</div>
</div>
</div>
<div
class=
"col-lg-6 lunbo "
>
<div
class=
"col-lg-6 lunbo "
>
...
...
src/views/News/Notice.vue
View file @
da81d761
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"composite"
>
<div
class=
"composite"
>
<cate
:father=
"bzkydtCate"
></cate>
<cate
:father=
"bzkydtCate"
></cate>
<div
class=
"container"
>
<div
class=
"container"
>
<
p
style=
"color:red;margin:15px 0 0 0 ;"
>
【中心】
</p
>
<
!--
<p
style=
"color:red;margin:15px 0 0 0 ;"
>
【中心】
</p>
--
>
<list
:list=
"tableResult.list"
@
getInfo=
'getInfo'
/>
<list
:list=
"tableResult.list"
@
getInfo=
'getInfo'
/>
<pages
:total=
"tableResult.totalCount"
:currPage=
"tableResult.currPage"
:pageSize=
"tableResult.pageSize"
@
getLimit=
'initListFn'
/>
<pages
:total=
"tableResult.totalCount"
:currPage=
"tableResult.currPage"
:pageSize=
"tableResult.pageSize"
@
getLimit=
'initListFn'
/>
</div>
</div>
...
@@ -69,7 +69,7 @@ export default {
...
@@ -69,7 +69,7 @@ export default {
];
];
this
.
setMatche
(
matche
);
this
.
setMatche
(
matche
);
let
link
=
this
.
$router
.
resolve
({
let
link
=
this
.
$router
.
resolve
({
path
:
`/News/
msg
?id=
${
id
}
`
,
path
:
`/News/
NoticeArticle
?id=
${
id
}
`
,
});
});
window
.
open
(
link
.
href
,
'_blank'
)
window
.
open
(
link
.
href
,
'_blank'
)
}
}
...
...
src/views/News/index.vue
View file @
da81d761
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
</div>
</div>
<ul
class=
"li-right-ul"
>
<ul
class=
"li-right-ul"
>
<li
v-for=
"(tmpB, ii) in tmpA.list"
:key=
"ii"
>
<li
v-for=
"(tmpB, ii) in tmpA.list"
:key=
"ii"
>
<span></span><span>
{{
tmpB
.
nam
e
}}
</span>
<span></span><span>
{{
tmpB
.
titl
e
}}
</span>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -148,13 +148,13 @@ export default {
...
@@ -148,13 +148,13 @@ export default {
path
:
'/News/Retail'
,
path
:
'/News/Retail'
,
list
:
[
list
:
[
{
{
nam
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
titl
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
},
},
{
{
nam
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
titl
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
},
},
{
{
nam
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
titl
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
},
},
],
],
},
},
...
@@ -164,13 +164,13 @@ export default {
...
@@ -164,13 +164,13 @@ export default {
path
:
'/News/Logistics'
,
path
:
'/News/Logistics'
,
list
:
[
list
:
[
{
{
nam
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
titl
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
},
},
{
{
nam
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
titl
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
},
},
{
{
nam
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
titl
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
},
},
],
],
},
},
...
@@ -180,13 +180,13 @@ export default {
...
@@ -180,13 +180,13 @@ export default {
path
:
'/News/Health'
,
path
:
'/News/Health'
,
list
:
[
list
:
[
{
{
nam
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
titl
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
},
},
{
{
nam
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
titl
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
},
},
{
{
nam
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
titl
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
},
},
],
],
},
},
...
@@ -196,13 +196,13 @@ export default {
...
@@ -196,13 +196,13 @@ export default {
path
:
'/News/FoodSafety'
,
path
:
'/News/FoodSafety'
,
list
:
[
list
:
[
{
{
nam
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
titl
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
},
},
{
{
nam
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
titl
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
},
},
{
{
nam
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
titl
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
},
},
],
],
},
},
...
@@ -212,13 +212,13 @@ export default {
...
@@ -212,13 +212,13 @@ export default {
path
:
'/News/ECommerce'
,
path
:
'/News/ECommerce'
,
list
:
[
list
:
[
{
{
nam
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
titl
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
},
},
{
{
nam
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
titl
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
},
},
{
{
nam
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
titl
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
},
},
],
],
},
},
...
@@ -228,13 +228,13 @@ export default {
...
@@ -228,13 +228,13 @@ export default {
path
:
'/News/MCommerce'
,
path
:
'/News/MCommerce'
,
list
:
[
list
:
[
{
{
nam
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
titl
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
},
},
{
{
nam
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
titl
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
},
},
{
{
nam
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
titl
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
},
},
],
],
},
},
...
@@ -244,13 +244,13 @@ export default {
...
@@ -244,13 +244,13 @@ export default {
path
:
'/News/IoT'
,
path
:
'/News/IoT'
,
list
:
[
list
:
[
{
{
nam
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
titl
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
},
},
{
{
nam
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
titl
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
},
},
{
{
nam
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
titl
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
},
},
],
],
},
},
...
@@ -260,13 +260,13 @@ export default {
...
@@ -260,13 +260,13 @@ export default {
path
:
'/News/Other'
,
path
:
'/News/Other'
,
list
:
[
list
:
[
{
{
nam
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
titl
e
:
"手机扫描商品条码:即时价格比较是零售业未来"
,
},
},
{
{
nam
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
titl
e
:
"山东德州市场约两成零售商品的条码为假冒伪造"
,
},
},
{
{
nam
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
titl
e
:
"如何在非零售商品上使用商品条码——非零售商品的"
,
},
},
],
],
},
},
...
@@ -298,6 +298,16 @@ export default {
...
@@ -298,6 +298,16 @@ export default {
this
.
depthListFn
();
this
.
depthListFn
();
//top
//top
this
.
newsTop10
()
this
.
newsTop10
()
//零售
this
.
retailList
()
//物流
// this.logostocsList()
// 电子商务
this
.
yydtList
()
//物联网
this
.
iotList
()
// 其他
this
.
otherList
()
},
},
methods
:{
methods
:{
...
mapMutations
({
...
mapMutations
({
...
@@ -323,6 +333,7 @@ export default {
...
@@ -323,6 +333,7 @@ export default {
path
:
path
,
path
:
path
,
});
});
},
},
async
initListFn
(
limit
,
classId
)
{
async
initListFn
(
limit
,
classId
)
{
const
params
=
{
const
params
=
{
page
:
1
,
page
:
1
,
...
@@ -414,7 +425,79 @@ export default {
...
@@ -414,7 +425,79 @@ export default {
window
.
open
(
link
.
href
,
'_blank'
)
window
.
open
(
link
.
href
,
'_blank'
)
}
}
}
},
//零售列表
async
retailList
()
{
const
params
=
{
page
:
1
,
size
:
3
,
};
const
listRes
=
await
this
.
$api
.
news
.
retailList
(
params
);
const
{
returnCode
,
data
}
=
listRes
;
if
(
returnCode
===
"0"
)
{
this
.
four
[
0
].
list
=
data
.
list
}
},
//物流列表
async
logostocsList
()
{
const
params
=
{
page
:
1
,
size
:
3
,
};
const
listRes
=
await
this
.
$api
.
news
.
logostocsList
(
params
);
const
{
returnCode
,
data
}
=
listRes
;
if
(
returnCode
===
"0"
)
{
this
.
four
[
1
].
list
=
data
.
list
}
},
//电子商务列表
async
yydtList
()
{
const
params
=
{
page
:
1
,
limit
:
3
,
};
const
listRes
=
await
this
.
$api
.
news
.
yydtList
(
params
);
const
{
returnCode
,
data
}
=
listRes
;
if
(
returnCode
===
"0"
)
{
this
.
four
[
4
].
list
=
data
.
list
}
},
// 物联网列表
async
iotList
(
page
,
limit
)
{
const
params
=
{
page
:
1
,
limit
:
3
,
classId
:
30
};
const
listRes
=
await
this
.
$api
.
news
.
iotList
(
params
);
const
{
returnCode
,
data
}
=
listRes
;
if
(
returnCode
===
"0"
)
{
this
.
four
[
6
].
list
=
data
.
list
}
},
// 其他
async
otherList
(
page
,
limit
)
{
const
params
=
{
page
:
1
,
limit
:
3
,
};
const
listRes
=
await
this
.
$api
.
news
.
otherList
(
params
);
const
{
returnCode
,
data
}
=
listRes
;
if
(
returnCode
===
"0"
)
{
this
.
four
[
7
].
list
=
data
.
list
}
},
}
}
};
};
</
script
>
</
script
>
...
@@ -439,6 +522,19 @@ export default {
...
@@ -439,6 +522,19 @@ export default {
</
style
>
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.news
{
.news
{
.picNews-top
{
@include
module-box;
}
.picNews-bottom
{
@include
module-box;
margin-top
:
30px
;
}
.picNews-li-tp
{
img{
height
:
140px
;
background
:
url('../../assets/image/news/tpzx-tp1.jpg')
100%
100%
;
}
}
@mixin
newsUl
{
@mixin
newsUl
{
ul
{
ul
{
padding
:
0
;
padding
:
0
;
...
...
src/views/News/msg.vue
View file @
da81d761
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
<div
class=
"cate"
>
<div
class=
"cate"
>
<span>
公告通知
</span>
<span>
公告通知
</span>
</div>
</div>
<list2
:list=
"announceListArr"
@
getInfo=
"getInfo"
/>
<list2
:list=
"announceListArr"
@
getInfo=
"get
Notice
Info"
/>
</div>
</div>
</div>
</div>
<div
class=
"zttj"
>
<div
class=
"zttj"
>
...
@@ -232,6 +232,17 @@ export default {
...
@@ -232,6 +232,17 @@ export default {
window
.
open
(
link
.
href
,
"_blank"
);
window
.
open
(
link
.
href
,
"_blank"
);
}
}
},
},
getNoticeInfo
(
id
,
directpath
){
if
(
directpath
&&
directpath
!==
''
&&
directpath
.
length
>
0
){
window
.
open
(
directpath
,
'_blank'
);
}
else
{
let
link
=
this
.
$router
.
resolve
({
path
:
`/News/NoticeArticle?id=
${
id
}
`
,
});
window
.
open
(
link
.
href
,
'_blank'
)
}
},
// weibo
// weibo
toweibo
()
{
toweibo
()
{
this
.
sharesinastring
=
this
.
sharesinastring
=
...
...
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