Commit c363dbdc by Lyan

点击量添加

parent ba7cd2b9
......@@ -20,6 +20,14 @@ const homeGetUrl = (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"
......@@ -49,6 +57,7 @@ const api = {
barcode,
sell,
pgp,
websitehitcountdetail,
}
export default api
......@@ -43,7 +43,7 @@ import api from "./axios/index";
Vue.use(api);
Vue.component(GsTable.name, GsTable)
import axios from "axios"
// 过滤器封装
import filters from "./filters/index";
......@@ -84,8 +84,12 @@ import moment from 'moment';
Vue.prototype.$moment = moment;
Vue.config.productionTip = false;
const Prefix = process.env.NODE_ENV === 'development' ? '/gs1' : '';
router.beforeEach((to, from, next) => {
axios.post(Prefix+"/office/websitehitcountdetail/api/save", {
route: to.fullPath
}).then(res => {
})
NProgress.start();
const whiteList = ["/404"];
if (
......
......@@ -29,11 +29,17 @@ const routes = [
children: [{
path: "/",
name: "Home",
meta: {
name: "首页",
},
component: () => import("@/views/Home/index"),
},
{
path: "/home/sousuo",
name: "sousuo",
meta: {
name: "搜索",
},
component: () => import("@/views/Home/sousuo"),
},
{
......@@ -1281,6 +1287,9 @@ const routes = [
{
path: "/djwhIndex/djwhlist",
name: "djwhlist",
meta: {
name: "党建文化",
},
component: () => import("@/views/Djwh/djwhlist"),
},
......@@ -1504,6 +1513,9 @@ const routes = [
{
path: "/djwhIndex",
name: "djwhIndex",
meta: {
name: "党建文化",
},
component: () => import("@/views/Djwh/index"),
},
......@@ -1525,11 +1537,17 @@ const routes = [
{
path: "/login",
name: "login",
meta: {
name: "登录",
},
component: () => import("@/views/User/index"),
},
{
path: "/register",
name: "register",
meta: {
name: "注册",
},
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