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
63ec0a43
Commit
63ec0a43
authored
Dec 09, 2021
by
Lyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
其他页面列表联调
parent
d54853b5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
19 deletions
+49
-19
news.js
src/axios/module/news.js
+6
-1
Other.vue
src/views/News/Other.vue
+36
-18
PicNews.vue
src/views/News/PicNews.vue
+7
-0
No files found.
src/axios/module/news.js
View file @
63ec0a43
...
...
@@ -39,6 +39,10 @@ const announceList = (params = {}) => {
const
announInfo
=
(
params
=
{})
=>
{
return
GET
(
`
${
Prefix
}
/office/news/api/announInfo/
${
params
.
id
}
`
)
}
// 其他
const
otherList
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/news/api/otherList`
,
params
)
}
export
default
{
pictureList
,
...
...
@@ -48,5 +52,6 @@ export default {
yydtList
,
spList
,
announceList
,
announInfo
announInfo
,
otherList
}
src/views/News/Other.vue
View file @
63ec0a43
...
...
@@ -13,9 +13,9 @@
</div>
<list
:list=
"list"
/>
<list
:list=
"
tableResult.
list"
/>
<pages
/>
<pages
:total=
"tableResult.totalCount"
:currPage=
"tableResult.currPage"
@
getLimit=
'initListFn'
/>
</div>
</div>
</
template
>
...
...
@@ -41,31 +41,49 @@ export default {
ico
:
""
,
},
list
:
[
{
name
:
"《建材行业商品条码应用指南》"
,
},
{
name
:
"江苏镇江实施气瓶条码管理不走过场 气瓶“身份证”帮了监管忙"
,
},
{
name
:
"北京烟花将贴身份证 防止“黑花炮”流入市场"
,
},
],
list2
:[
{
name
:
'《建材行业商品条码应用指南》'
,
path
:
'http://www.gs1cn.org/Manage/down/建材行业商品条码应用指南.pdf'
},
{
name
:
' 服装行业商品条码应用指南'
,
path
:
'http://www.gs1cn.org/Manage/down/服装行业商品条码应用指南.pdf'
}
]
],
tableResult
:{
list
:[],
currPage
:
1
,
pageSize
:
15
,
totalCount
:
0
}
};
},
methods
:
{},
created
()
{
this
.
initListFn
(
this
.
tableResult
.
currPage
);
},
methods
:{
// 行业应用
async
initListFn
(
page
,
limit
)
{
const
params
=
{
page
:
page
,
limit
:
20
,
};
const
listRes
=
await
this
.
$api
.
news
.
otherList
(
params
);
const
{
returnCode
,
data
}
=
listRes
;
if
(
returnCode
===
"0"
)
{
this
.
tableResult
=
data
}
},
// getInfo(id){
// console.log(id,'id')
// this.$router.push({
// path: `/Knowledge/Statuteinfo?id=${id}`,
// });
// }
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/views/News/PicNews.vue
View file @
63ec0a43
...
...
@@ -146,5 +146,11 @@ export default {
@include
module-box;
margin-top
:
30px
;
}
.picNews-li-tp
{
img{
height
:
140px
;
background
:
url('../../assets/image/news/tpzx-tp1.jpg')
100%
100%
;
}
}
}
</
style
>
\ No newline at end of file
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