Commit c363dbdc by Lyan

点击量添加

parent ba7cd2b9
...@@ -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"),
}, },
{ {
......
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