Commit 63ec0a43 by Lyan

其他页面列表联调

parent d54853b5
......@@ -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
}
......@@ -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>
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment