Commit d1792181 by 林家欣

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

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