Commit ecdaaa10 by Jianli Ou
parents 1d710445 c363dbdc
...@@ -20,6 +20,14 @@ const homeGetUrl = (params = {}) => { ...@@ -20,6 +20,14 @@ const homeGetUrl = (params = {}) => {
return GET(`${Prefix2}/office/domain/api/list`, params) return GET(`${Prefix2}/office/domain/api/list`, params)
} }
// 获取点击量
const websitehitcountdetail = (params = {}) => {
return POST(`${Prefix2}/office/websitehitcountdetail/api/save`, params)
}
import home from "./module/home.js" import home from "./module/home.js"
...@@ -49,6 +57,7 @@ const api = { ...@@ -49,6 +57,7 @@ const api = {
barcode, barcode,
sell, sell,
pgp, pgp,
websitehitcountdetail,
} }
export default api export default api
...@@ -43,7 +43,7 @@ import api from "./axios/index"; ...@@ -43,7 +43,7 @@ import api from "./axios/index";
Vue.use(api); Vue.use(api);
Vue.component(GsTable.name, GsTable) Vue.component(GsTable.name, GsTable)
import axios from "axios"
// 过滤器封装 // 过滤器封装
import filters from "./filters/index"; import filters from "./filters/index";
...@@ -84,8 +84,12 @@ import moment from 'moment'; ...@@ -84,8 +84,12 @@ import moment from 'moment';
Vue.prototype.$moment = moment; Vue.prototype.$moment = moment;
Vue.config.productionTip = false; Vue.config.productionTip = false;
const Prefix = process.env.NODE_ENV === 'development' ? '/gs1' : '';
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
axios.post(Prefix+"/office/websitehitcountdetail/api/save", {
route: to.fullPath
}).then(res => {
})
NProgress.start(); NProgress.start();
const whiteList = ["/404"]; const whiteList = ["/404"];
if ( if (
......
...@@ -29,11 +29,17 @@ const routes = [ ...@@ -29,11 +29,17 @@ const routes = [
children: [{ children: [{
path: "/", path: "/",
name: "Home", name: "Home",
meta: {
name: "首页",
},
component: () => import("@/views/Home/index"), component: () => import("@/views/Home/index"),
}, },
{ {
path: "/home/sousuo", path: "/home/sousuo",
name: "sousuo", name: "sousuo",
meta: {
name: "搜索",
},
component: () => import("@/views/Home/sousuo"), component: () => import("@/views/Home/sousuo"),
}, },
{ {
...@@ -1281,6 +1287,9 @@ const routes = [ ...@@ -1281,6 +1287,9 @@ const routes = [
{ {
path: "/djwhIndex/djwhlist", path: "/djwhIndex/djwhlist",
name: "djwhlist", name: "djwhlist",
meta: {
name: "党建文化",
},
component: () => import("@/views/Djwh/djwhlist"), component: () => import("@/views/Djwh/djwhlist"),
}, },
...@@ -1504,6 +1513,9 @@ const routes = [ ...@@ -1504,6 +1513,9 @@ const routes = [
{ {
path: "/djwhIndex", path: "/djwhIndex",
name: "djwhIndex", name: "djwhIndex",
meta: {
name: "党建文化",
},
component: () => import("@/views/Djwh/index"), component: () => import("@/views/Djwh/index"),
}, },
...@@ -1525,11 +1537,17 @@ const routes = [ ...@@ -1525,11 +1537,17 @@ const routes = [
{ {
path: "/login", path: "/login",
name: "login", name: "login",
meta: {
name: "登录",
},
component: () => import("@/views/User/index"), component: () => import("@/views/User/index"),
}, },
{ {
path: "/register", path: "/register",
name: "register", name: "register",
meta: {
name: "注册",
},
component: () => import("@/views/User/index"), component: () => import("@/views/User/index"),
}, },
{ {
......
...@@ -72,11 +72,11 @@ export default { ...@@ -72,11 +72,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.pictureListArr = data this.pictureListArr = data
this.pictureListArr.forEach(item => { this.pictureListArr.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.articleId}` item.href=`/News/msg?id=${item.articleId}`
} // }
}); });
} }
...@@ -95,11 +95,11 @@ export default { ...@@ -95,11 +95,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
......
...@@ -52,11 +52,11 @@ export default { ...@@ -52,11 +52,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
......
...@@ -52,11 +52,11 @@ export default { ...@@ -52,11 +52,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
} }
......
...@@ -193,11 +193,11 @@ export default { ...@@ -193,11 +193,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
......
...@@ -69,11 +69,11 @@ export default { ...@@ -69,11 +69,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
} }
......
...@@ -60,11 +60,11 @@ export default { ...@@ -60,11 +60,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/Ecommerce/detail?id=${item.id}&preTitle=应用动态` item.href=`/News/Ecommerce/detail?id=${item.id}&preTitle=应用动态`
} // }
}); });
......
...@@ -60,11 +60,11 @@ export default { ...@@ -60,11 +60,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/Ecommerce/detail?id=${item.id}&preTitle=在线视频` item.href=`/News/Ecommerce/detail?id=${item.id}&preTitle=在线视频`
} // }
}); });
......
...@@ -186,11 +186,11 @@ export default { ...@@ -186,11 +186,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
} }
......
...@@ -53,11 +53,11 @@ export default { ...@@ -53,11 +53,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
...@@ -67,6 +67,14 @@ export default { ...@@ -67,6 +67,14 @@ export default {
// 详情 // 详情
getInfo(id,directpath){ getInfo(id,directpath){
const matche = [
{
name: "国际追踪",
path: "/News/International",
}
];
this.setMatche(matche);
return
if(directpath&&directpath!==''&& directpath.length>0){ if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank'); window.open(directpath,'_blank');
}else{ }else{
......
...@@ -62,11 +62,11 @@ export default { ...@@ -62,11 +62,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
} }
...@@ -75,6 +75,14 @@ export default { ...@@ -75,6 +75,14 @@ export default {
// 详情 // 详情
getInfo(id,directpath){ getInfo(id,directpath){
const matche = [
{
name: "物联网",
path: "/News/IoT",
}
];
this.setMatche(matche);
return
if(directpath&&directpath!==''&& directpath.length>0){ if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank'); window.open(directpath,'_blank');
}else{ }else{
......
...@@ -53,11 +53,11 @@ export default { ...@@ -53,11 +53,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
} }
...@@ -66,6 +66,14 @@ export default { ...@@ -66,6 +66,14 @@ export default {
// 详情 // 详情
getInfo(id,directpath){ getInfo(id,directpath){
const matche = [
{
name: "地方动态",
path: "/News/Local",
}
];
this.setMatche(matche);
return
if(directpath&&directpath!==''&& directpath.length>0){ if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank'); window.open(directpath,'_blank');
}else{ }else{
......
...@@ -106,11 +106,11 @@ export default { ...@@ -106,11 +106,11 @@ export default {
this.urlDown = process.env.VUE_APP_HOST_URL; this.urlDown = process.env.VUE_APP_HOST_URL;
this.list.forEach(item => { this.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
......
...@@ -53,11 +53,11 @@ export default { ...@@ -53,11 +53,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/NoticeArticle?id=${item.id}` item.href=`/News/NoticeArticle?id=${item.id}`
} // }
}); });
} }
...@@ -65,6 +65,14 @@ export default { ...@@ -65,6 +65,14 @@ export default {
}, },
getInfo(id,directpath){ getInfo(id,directpath){
const matche = [
{
name: "公告通知",
path: "/News/Notice",
}
];
this.setMatche(matche);
return
if(directpath&&directpath!==''&& directpath.length>0){ if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank'); window.open(directpath,'_blank');
}else{ }else{
......
...@@ -87,11 +87,11 @@ export default { ...@@ -87,11 +87,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
} }
......
...@@ -77,11 +77,11 @@ export default { ...@@ -77,11 +77,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.articleId}` item.href=`/News/msg?id=${item.articleId}`
} // }
}); });
} }
...@@ -96,11 +96,11 @@ export default { ...@@ -96,11 +96,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.pictureListArr = data this.pictureListArr = data
this.pictureListArr.forEach(item => { this.pictureListArr.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.articleId}` item.href=`/News/msg?id=${item.articleId}`
} // }
}); });
} }
......
...@@ -52,13 +52,15 @@ export default { ...@@ -52,13 +52,15 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
console.log(this.tableResult.list)
} }
...@@ -66,8 +68,16 @@ export default { ...@@ -66,8 +68,16 @@ export default {
// 详情 // 详情
getInfo(id,directpath){ getInfo(id,directpath){
const matche = [
{
name: "标准科研动态",
path: "/News/Research",
}
];
this.setMatche(matche);
return
if(directpath&&directpath!==''&& directpath.length>0){ if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank'); window.open(directpath,'_self');
}else{ }else{
const matche = [ const matche = [
{ {
......
...@@ -334,11 +334,11 @@ export default { ...@@ -334,11 +334,11 @@ export default {
if(item.title === '最新动态') { if(item.title === '最新动态') {
item.list = data; item.list = data;
item.list.forEach(item => { item.list.forEach(item => {
if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){ // if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){
item.href=item.jumppath // item.href=item.jumppath
}else{ // }else{
item.href=`/Sell/detail?id=${item.id}&preTitle=最新动态` item.href=`/Sell/detail?id=${item.id}&preTitle=最新动态`
} // }
}); });
} }
...@@ -361,11 +361,11 @@ export default { ...@@ -361,11 +361,11 @@ export default {
if(item.title === '商品条码在零售领域应用指南') { if(item.title === '商品条码在零售领域应用指南') {
item.list = data.list; item.list = data.list;
item.list.forEach(item => { item.list.forEach(item => {
if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){ // if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){
item.href=item.jumppath // item.href=item.jumppath
}else{ // }else{
item.href=`/Sell/detail?id=${item.id}&preTitle=商品条码在零售领域应用指南` item.href=`/Sell/detail?id=${item.id}&preTitle=商品条码在零售领域应用指南`
} // }
}); });
} }
...@@ -386,11 +386,11 @@ export default { ...@@ -386,11 +386,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.qrCodeList = data.list; this.qrCodeList = data.list;
this.qrCodeList.forEach(item => { this.qrCodeList.forEach(item => {
if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){ // if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){
item.href=item.jumppath // item.href=item.jumppath
}else{ // }else{
item.href=`/Sell/detail?id=${item.id}&preTitle=商品二维码在零售领域的应用` item.href=`/Sell/detail?id=${item.id}&preTitle=商品二维码在零售领域的应用`
} // }
}); });
} else { } else {
......
...@@ -53,11 +53,11 @@ export default { ...@@ -53,11 +53,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msgVideo?id=${item.id}` item.href=`/News/msgVideo?id=${item.id}`
} // }
}); });
...@@ -67,6 +67,14 @@ export default { ...@@ -67,6 +67,14 @@ export default {
// 详情 // 详情
getInfo(id,directpath){ getInfo(id,directpath){
const matche = [
{
name: "精彩视频",
path: "/News/Video",
}
];
this.setMatche(matche);
return
if(directpath&&directpath!==''&& directpath.length>0){ if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank'); window.open(directpath,'_blank');
}else{ }else{
......
...@@ -302,11 +302,11 @@ export default { ...@@ -302,11 +302,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.top10.data = data; this.top10.data = data;
this.top10.data.forEach(item => { this.top10.data.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
} }
...@@ -322,11 +322,11 @@ export default { ...@@ -322,11 +322,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.announceListArr = data.list; this.announceListArr = data.list;
this.announceListArr.forEach(item => { this.announceListArr.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/NoticeArticle?id=${item.id}` item.href=`/News/NoticeArticle?id=${item.id}`
} // }
}); });
} }
...@@ -342,11 +342,11 @@ export default { ...@@ -342,11 +342,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.zttjListListArr = data; this.zttjListListArr = data;
this.zttjListListArr.forEach(item => { this.zttjListListArr.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
} }
...@@ -362,11 +362,11 @@ export default { ...@@ -362,11 +362,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.xgljListArr = data; this.xgljListArr = data;
this.xgljListArr.forEach(item => { this.xgljListArr.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
} }
......
...@@ -205,11 +205,11 @@ export default { ...@@ -205,11 +205,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.top10.data = data; this.top10.data = data;
this.top10.data.forEach(item => { this.top10.data.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
} }
...@@ -225,11 +225,11 @@ export default { ...@@ -225,11 +225,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.announceListArr = data.list; this.announceListArr = data.list;
this.announceListArr.forEach(item => { this.announceListArr.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/NoticeArticle?id=${item.id}` item.href=`/News/NoticeArticle?id=${item.id}`
} // }
}); });
} }
...@@ -245,11 +245,11 @@ export default { ...@@ -245,11 +245,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.zttjListListArr = data; this.zttjListListArr = data;
this.zttjListListArr.forEach(item => { this.zttjListListArr.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
} }
...@@ -265,11 +265,11 @@ export default { ...@@ -265,11 +265,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.xgljListArr = data; this.xgljListArr = data;
this.xgljListArr.forEach(item => { this.xgljListArr.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/News/msg?id=${item.id}` item.href=`/News/msg?id=${item.id}`
} // }
}); });
} }
......
...@@ -60,11 +60,11 @@ export default { ...@@ -60,11 +60,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data; this.tableResult = data;
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.directpath&&item.directpath!==''&& item.directpath.length>0){ // if(item.directpath&&item.directpath!==''&& item.directpath.length>0){
item.href=item.directpath // item.href=item.directpath
}else{ // }else{
item.href=`/PGP/detail?id=${item.id}&preTitle=应用案例` item.href=`/PGP/detail?id=${item.id}&preTitle=应用案例`
} // }
}); });
......
...@@ -59,11 +59,11 @@ export default { ...@@ -59,11 +59,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data; this.tableResult = data;
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){ // if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){
item.href=item.jumppath // item.href=item.jumppath
}else{ // }else{
item.href=`/Sell/detail?id=${item.id}&preTitle=最新动态` item.href=`/Sell/detail?id=${item.id}&preTitle=最新动态`
} // }
}); });
} else { } else {
......
...@@ -74,11 +74,11 @@ export default { ...@@ -74,11 +74,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data this.tableResult = data
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){ // if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){
item.href=item.jumppath // item.href=item.jumppath
}else{ // }else{
item.href=`/Sell/detail?id=${item.pictureid}&preTitle=图片集` item.href=`/Sell/detail?id=${item.pictureid}&preTitle=图片集`
} // }
}); });
} }
......
...@@ -59,11 +59,11 @@ export default { ...@@ -59,11 +59,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data; this.tableResult = data;
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){ // if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){
item.href=item.jumppath // item.href=item.jumppath
}else{ // }else{
item.href=`/Sell/detail?id=${item.id}&preTitle=商品二维码在零售领域的应用` item.href=`/Sell/detail?id=${item.id}&preTitle=商品二维码在零售领域的应用`
} // }
}); });
} else { } else {
......
...@@ -59,11 +59,11 @@ export default { ...@@ -59,11 +59,11 @@ export default {
if (returnCode === "0") { if (returnCode === "0") {
this.tableResult = data; this.tableResult = data;
this.tableResult.list.forEach(item => { this.tableResult.list.forEach(item => {
if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){ // if(item.jumppath&&item.jumppath!==''&& item.jumppath.length>0){
item.href=item.jumppath // item.href=item.jumppath
}else{ // }else{
item.href=`/Sell/detail?id=${item.id}&preTitle=商品条码在零售领域应用指南` item.href=`/Sell/detail?id=${item.id}&preTitle=商品条码在零售领域应用指南`
} // }
}); });
} else { } else {
......
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