Commit d1792181 by 林家欣

修改党建文化、专题聚焦、应用领域、其他列表链接

parent 8c8c2994
......@@ -112,7 +112,7 @@ export default {
},
methods: {
ckxqJump() {
window.open('/Knowledge/xts', '_blank');
window.open('/Knowledge/GS1System/goodsPosition', '_blank');
// this.$router.push({
// path: '/Knowledge/xts'
// })
......
......@@ -357,76 +357,76 @@ export default {
},
],
},
// {
// name: "常见问题",
// path: "",
// active: "",
// children: [
// {
// name: "1.业务办理",
// path: "/Business/Faq",
// active: "",
// query: {
// type: "ywbl",
// },
// noneChild: true,
// },
// {
// name: "2.产品信息通报",
// path: "/Business/Faq",
// active: "",
// query: {
// type: "cpxxtb",
// },
// noneChild: true,
// },
// {
// name: "3.编码技术",
// path: "/Business/Faq",
// active: "",
// query: {
// type: "bmjs",
// },
// noneChild: true,
// },
// {
// name: "4.法规与标准",
// path: "/Business/Faq",
// active: "",
// query: {
// type: "fgybz",
// },
// noneChild: true,
// },
// {
// name: "5.条码质量",
// path: "/Business/Faq",
// active: "",
// query: {
// type: "tmzl",
// },
// noneChild: true,
// },
// {
// name: "6.条码技术应用",
// path: "/Business/Faq",
// active: "",
// query: {
// type: "tmjsyy",
// },
// noneChild: true,
// },
// {
// name: "7.其他",
// path: "/Business/Faq",
// active: "",
// query: {
// type: "other",
// },
// noneChild: true,
// },
// ],
// },
{
name: "常见问题",
path: "",
active: "",
children: [
{
name: "1.业务办理",
path: "/Business/Faq",
active: "",
query: {
type: "ywbl",
},
noneChild: true,
},
{
name: "2.产品信息通报",
path: "/Business/Faq",
active: "",
query: {
type: "cpxxtb",
},
noneChild: true,
},
{
name: "3.编码技术",
path: "/Business/Faq",
active: "",
query: {
type: "bmjs",
},
noneChild: true,
},
{
name: "4.法规与标准",
path: "/Business/Faq",
active: "",
query: {
type: "fgybz",
},
noneChild: true,
},
{
name: "5.条码质量",
path: "/Business/Faq",
active: "",
query: {
type: "tmzl",
},
noneChild: true,
},
{
name: "6.条码技术应用",
path: "/Business/Faq",
active: "",
query: {
type: "tmjsyy",
},
noneChild: true,
},
{
name: "7.其他",
path: "/Business/Faq",
active: "",
query: {
type: "other",
},
noneChild: true,
},
],
},
],
},
{
......
<template>
<div class="list">
<div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg">
<div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg(tmp)">
<div class="col li">
<span></span>
<span :title="tmp.title">{{tmp.title}}</span>
......@@ -12,10 +12,8 @@
export default {
props: ['list'],
methods: {
handelMsg() {
this.$router.push({
path: '/News/Msg'
});
handelMsg(obj) {
this.$emit('toList2Father', obj);
},
},
}
......
<template>
<div class="list">
<div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg">
<div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg(tmp)">
<div class="col li">
<span></span>
<span :title="tmp.name">{{tmp.name}}</span>
......@@ -12,10 +12,8 @@
export default {
props: ['list'],
methods: {
handelMsg() {
this.$router.push({
path: '/News/Msg'
});
handelMsg(obj) {
window.open(obj.url, '_blank');
},
},
}
......
<template>
<div class="list">
<div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg">
<div v-for="(tmp, i) in list" :key="i" class="row" @click="handelMsg(tmp)">
<div class="col li">
<span></span>
<span :title="tmp.name">{{tmp.name}}</span>
......@@ -12,10 +12,8 @@
export default {
props: ['list'],
methods: {
handelMsg() {
this.$router.push({
path: '/News/Msg'
});
handelMsg(obj) {
window.open(obj.url, '_blank');
},
},
}
......
......@@ -156,7 +156,7 @@
<div class="col-lg-6 wsxtcy bgWhite">
<div class="ywdt-cate ywdt-cate-bj2">
<span>我是系统成员</span>
<span style="width: 148px;">(成员专区)</span>
<span style="width: 148px">(成员专区)</span>
</div>
<div class="row ywdt-kj wsxtcy-row">
<div
......@@ -309,7 +309,13 @@
</el-input>
</div>
<div class="col-lg-3 chaxun-right">
<button @click="toSearch(chaxun.type,chaxun.keywords,'company')">境内条码查询</button>
<button
@click="
toSearch(chaxun.type, chaxun.keywords, 'company')
"
>
境内条码查询
</button>
</div>
</div>
</div>
......@@ -344,7 +350,13 @@
</el-input>
</div>
<div class="col-lg-3 chaxun-right">
<button @click="toSearch(chaxun.type,chaxun.keywords,'product')">境内条码查询</button>
<button
@click="
toSearch(chaxun.type, chaxun.keywords, 'product')
"
>
境内条码查询
</button>
</div>
</div>
</div>
......@@ -410,7 +422,9 @@
<div class="col">
<div class="home-bottom-cont">
<div class="djwh">
<div class="home-bottom-cate">党建文化</div>
<div class="home-bottom-cate" @click="handelHomeBottomCate(1)">
党建文化
</div>
<div class="djwh-tp">
<a href="/djwh" target="blank"
><img
......@@ -418,10 +432,12 @@
alt=""
/></a>
</div>
<list2 :list="djwh.data" />
<list2 :list="djwh.data" @toList2Father="djwhReceive"/>
</div>
<div class="ztjj">
<div class="home-bottom-cate">专题聚焦</div>
<div class="home-bottom-cate" @click="handelHomeBottomCate(2)">
专题聚焦
</div>
<div class="djwh-tp">
<a href="/News/DepthTopics" target="blank"
><img
......@@ -429,14 +445,16 @@
alt=""
/></a>
</div>
<list2 :list="ztjj.data" />
<list2 :list="ztjj.data" @toList2Father="ztjjReceive"/>
</div>
<div class="yyly">
<div class="home-bottom-cate">应用领域</div>
<div class="home-bottom-cate" @click="handelHomeBottomCate(3)">
应用领域
</div>
<yylyList :list="yyly.data" />
</div>
<div class="other">
<div class="home-bottom-cate">
<div class="home-bottom-cate" @click="handelHomeBottomCate(4)">
质检中心/协会/杂志社/标准委/其他
</div>
<otherList :list="other.data" />
......@@ -676,7 +694,7 @@ export default {
{
ico: require("../../assets/image/home/wsxtcy-ico2.png"),
name: "我要续展",
type: 'link',
type: "link",
url: link.wyxz,
},
{
......@@ -796,8 +814,8 @@ export default {
ico: require("../../assets/image/home/dzfw-ico9.png"),
name: "国家物联网标识管理中心",
isChecked: true,
url: 'https://www.iotroot.com/',
type: 'link'
url: "https://www.iotroot.com/",
type: "link",
},
{
id: "9",
......@@ -850,58 +868,53 @@ export default {
data: [],
},
ztjj: {
data: [
{
title: "“扫”遍双十一 “码”上确定性",
},
{
title: "“码上”陪你笑傲电商江湖",
},
{
title: "进口商品如何发布全网,拿好这个跨境进口数据法宝",
},
{
title: "小条码,大未来",
},
{
title: "助力电商逆生长,“码”上加速有法宝",
},
],
data: [],
},
yyly: {
data: [
{
name: "零售",
url: '/News/Retail',
},
{
name: "物流",
url: '/News/Logistics',
},
{
name: "医疗卫生",
url: '/News/Health',
},
{
name: "食品安全追溯",
url: '/News/FoodSafety',
},
{
name: "电子商务",
url: '/News/ECommerce',
},
{
name: "移动商务",
url: '/News/MCommerce',
},
{
name: "物联网",
url: '/News/IoT',
},
{
name: "其他",
url: '/News/Other',
},
{
name: "国家食品(产品)安全追溯平台",
url: 'http://www.chinatrace.org/',
},
{
name: "国家产品质量信用平台",
url: 'http://zlxy.ancc.org.cn/',
},
{
name: "国家物联网标识管理与公共服务平台",
url: 'https://www.iotroot.com/',
},
],
},
......@@ -909,42 +922,55 @@ export default {
data: [
{
name: "国家射频识别产品质量检验检测中心",
url: '/Org/Sites',
},
{
name: "国家条码质量检验检测中心",
url: '/Org/Sites',
},
{
name: "中国自动识别技术协会",
url: '/Org/Sites',
},
{
name: "中国条码技术与应用协会",
url: '/Org/Sites',
},
{
name: "《中国自动识别技术》杂志社电子版",
url: '/Org/Sites',
},
{
name: "中国ECR委员会",
url: '/Org/Sites',
},
{
name: "全国物品编码标准化技术委员会",
url: '/Org/Sites',
},
{
name: "全国物流信息管理标准化技术委员会",
url: '/Org/Sites',
},
{
name: "全国自动识别与数据采集分委员会",
url: '/Org/Sites',
},
{
name: "物联网标识工作组",
url: '/Org/Sites',
},
{
name: "全球产品电子代码中国管理中心",
url: '/Org/Sites',
},
{
name: "中国UNSPSC动态维护管理中心",
url: '/Org/Sites',
},
{
name: "北京东方捷码科技开发中心",
url: '/Org/Sites',
},
],
},
......@@ -977,16 +1003,27 @@ export default {
this.getCustomServiceFromServer();
},
methods: {
handelHomeBottomCate(i) {
if (i === 1) {
window.open('/djwh', '_blank');
} else if (i === 2) {
window.open('/News/DepthTopics', '_blank');
} else if (i === 3) {
window.open('/News/index', '_blank');
} else if (i === 4) {
window.open('/Org/Sites', '_blank');
}
},
toSearch(type, keyword, infoType) {
console.log(type)
console.log(type);
this.$router.push({
path: '/search/internal',
path: "/search/internal",
query: {
keyword,
type,
infoType
}
})
infoType,
},
});
},
getCustomService() {
let service = localStorage.getItem("gs-custom-service") || "";
......@@ -999,7 +1036,7 @@ export default {
async getCustomServiceFromServer() {
const searchGlnRes = await this.$api.home.customService();
const {returnCode, data} = searchGlnRes;
const { returnCode, data } = searchGlnRes;
if (returnCode === "0") {
localStorage.setItem("gs-custom-service", JSON.stringify(data));
this.showCustomService(data);
......@@ -1045,6 +1082,8 @@ export default {
this.homeNewGtin();
// 党建文化新闻列表
this.homeGet4PartyTopNews();
// 专题聚焦
this.homeGetsdztListTopNews();
// 首页小轮播图
this.homeSmallImages();
},
......@@ -1121,6 +1160,35 @@ export default {
this.djwh.data = data;
}
},
// 专题聚焦
async homeGetsdztListTopNews() {
const params = {
page: 1,
limit: 5,
};
const homeGetsdztListTopNewsRes = await this.$api.news.sdztList(
params
);
const { returnCode, data } = homeGetsdztListTopNewsRes;
if (returnCode === "0") {
console.log(homeGetsdztListTopNewsRes, "专题聚焦");
this.ztjj.data = data.list;
}
},
// 党建文化列表点击
djwhReceive(msg) {
let routeData = this.$router.resolve({
path: '/News/Msg',
query: {
id: msg.id
}
});
window.open(routeData.href, "_blank");
},
// 专题聚焦列表点击
ztjjReceive(msg) {
window.open(msg.directpath, "_blank");
},
// 首页小轮播图
async homeSmallImages() {
const homeSmallImagesRes = await this.$api.home.homeSmallImages();
......@@ -1168,7 +1236,7 @@ export default {
// 我是系统成员点击事件
wsxtcyHandelClick(i) {
console.log(i, "我是系统成员点击事件");
if (this.wsxtcy[i].type === 'link') {
if (this.wsxtcy[i].type === "link") {
window.open(this.wsxtcy[i].url, "_blank");
} else {
let routeData = this.$router.resolve({
......@@ -2282,6 +2350,7 @@ export default {
padding: 15px 0 15px 20px;
// font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600;
cursor: pointer;
}
.home-bottom-cont {
......
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