diff --git a/src/permission.js b/src/permission.js index 76d65c0b..6e4e9002 100644 --- a/src/permission.js +++ b/src/permission.js @@ -195,6 +195,11 @@ const whiteList = [ '/contracted/login',//登录 '/contracted/index',//首页 + //虫害APP + '/pest/pestLogin',//登录 + '/pest/index',//首页 + '/pest/agriculturalRecords',//农事记录 + ] router.beforeEach((to, from, next) => { @@ -285,6 +290,8 @@ router.beforeEach((to, from, next) => { next(`/lawEnforcement/login?redirect=${to.fullPath}`) } else if (to.path.indexOf('/sunVillage') !== -1) { next(`/sunVillage/login`) + } else if (to.path.indexOf('/pest') !== -1) { + next(`/pest/pestLogin`) } else { next(`/login?redirect=${to.fullPath}`) } diff --git a/src/router/index.js b/src/router/index.js index 1ef30e7f..a789898e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5954,6 +5954,34 @@ export const constantRoutes = [ }, component: (resolve) => require(['@/views/contracted/user/passWord'], resolve) }, + //<--------------------------------------虫害APP--------------------------------------> + { + path: '/pest/pestLogin', + name: 'pestLogin', + meta: { + title: '登录', + hidden: true, + }, + component: (resolve) => require(['@/views/pest/pestLogin'], resolve) + }, + { + path: '/pest/index', + name: 'pestIndex', + meta: { + title: '首页', + hidden: true, + }, + component: (resolve) => require(['@/views/pest/index'], resolve) + }, + { + path: '/pest/agriculturalRecords', + name: 'pestAgriculturalRecords', + meta: { + title: '农事记录', + hidden: true, + }, + component: (resolve) => require(['@/views/pest/agriculturalRecords'], resolve) + }, ]; diff --git a/src/views/pest/agriculturalRecords.vue b/src/views/pest/agriculturalRecords.vue new file mode 100644 index 00000000..b9e06554 --- /dev/null +++ b/src/views/pest/agriculturalRecords.vue @@ -0,0 +1,284 @@ + + + diff --git a/src/views/pest/index.vue b/src/views/pest/index.vue new file mode 100644 index 00000000..d5207d72 --- /dev/null +++ b/src/views/pest/index.vue @@ -0,0 +1,479 @@ + + + diff --git a/src/views/pest/pestLogin.vue b/src/views/pest/pestLogin.vue new file mode 100644 index 00000000..10663bec --- /dev/null +++ b/src/views/pest/pestLogin.vue @@ -0,0 +1,470 @@ + + + diff --git a/static/images/pest/index/index_icon_01.png b/static/images/pest/index/index_icon_01.png new file mode 100644 index 00000000..464f5b6d Binary files /dev/null and b/static/images/pest/index/index_icon_01.png differ diff --git a/static/images/pest/index/login_out.png b/static/images/pest/index/login_out.png new file mode 100644 index 00000000..5f8b5514 Binary files /dev/null and b/static/images/pest/index/login_out.png differ diff --git a/static/images/pest/index/pest_index_bg.png b/static/images/pest/index/pest_index_bg.png new file mode 100644 index 00000000..279ff54f Binary files /dev/null and b/static/images/pest/index/pest_index_bg.png differ diff --git a/static/images/pest/index/pest_index_icon_10.png b/static/images/pest/index/pest_index_icon_10.png new file mode 100644 index 00000000..f4bcb747 Binary files /dev/null and b/static/images/pest/index/pest_index_icon_10.png differ diff --git a/static/images/pest/index/pest_index_icon_11.png b/static/images/pest/index/pest_index_icon_11.png new file mode 100644 index 00000000..eee536cd Binary files /dev/null and b/static/images/pest/index/pest_index_icon_11.png differ diff --git a/static/images/pest/index/pest_index_icon_12.png b/static/images/pest/index/pest_index_icon_12.png new file mode 100644 index 00000000..d963573e Binary files /dev/null and b/static/images/pest/index/pest_index_icon_12.png differ diff --git a/static/images/pest/index/pest_index_icon_13.png b/static/images/pest/index/pest_index_icon_13.png new file mode 100644 index 00000000..8d41965e Binary files /dev/null and b/static/images/pest/index/pest_index_icon_13.png differ diff --git a/static/images/pest/index/pest_index_icon_14.png b/static/images/pest/index/pest_index_icon_14.png new file mode 100644 index 00000000..44ac418a Binary files /dev/null and b/static/images/pest/index/pest_index_icon_14.png differ diff --git a/static/images/pest/index/pest_index_icon_15.png b/static/images/pest/index/pest_index_icon_15.png new file mode 100644 index 00000000..7bae5a58 Binary files /dev/null and b/static/images/pest/index/pest_index_icon_15.png differ diff --git a/static/images/pest/index/pest_index_icon_2.png b/static/images/pest/index/pest_index_icon_2.png new file mode 100644 index 00000000..df799751 Binary files /dev/null and b/static/images/pest/index/pest_index_icon_2.png differ diff --git a/static/images/pest/index/pest_index_icon_3.png b/static/images/pest/index/pest_index_icon_3.png new file mode 100644 index 00000000..1de5e76e Binary files /dev/null and b/static/images/pest/index/pest_index_icon_3.png differ diff --git a/static/images/pest/index/pest_index_icon_4.png b/static/images/pest/index/pest_index_icon_4.png new file mode 100644 index 00000000..6e1a63c3 Binary files /dev/null and b/static/images/pest/index/pest_index_icon_4.png differ diff --git a/static/images/pest/index/pest_index_icon_5.png b/static/images/pest/index/pest_index_icon_5.png new file mode 100644 index 00000000..b05499b1 Binary files /dev/null and b/static/images/pest/index/pest_index_icon_5.png differ diff --git a/static/images/pest/index/pest_index_icon_6.png b/static/images/pest/index/pest_index_icon_6.png new file mode 100644 index 00000000..d8959a30 Binary files /dev/null and b/static/images/pest/index/pest_index_icon_6.png differ diff --git a/static/images/pest/index/pest_index_icon_7.png b/static/images/pest/index/pest_index_icon_7.png new file mode 100644 index 00000000..0ca0a802 Binary files /dev/null and b/static/images/pest/index/pest_index_icon_7.png differ diff --git a/static/images/pest/index/pest_index_icon_8.png b/static/images/pest/index/pest_index_icon_8.png new file mode 100644 index 00000000..e8e5b9f1 Binary files /dev/null and b/static/images/pest/index/pest_index_icon_8.png differ diff --git a/static/images/pest/index/pest_index_icon_9.png b/static/images/pest/index/pest_index_icon_9.png new file mode 100644 index 00000000..401816be Binary files /dev/null and b/static/images/pest/index/pest_index_icon_9.png differ diff --git a/static/images/pest/pest_login_bg.png b/static/images/pest/pest_login_bg.png new file mode 100644 index 00000000..d35afd12 Binary files /dev/null and b/static/images/pest/pest_login_bg.png differ diff --git a/static/images/pest/pest_login_header.png b/static/images/pest/pest_login_header.png new file mode 100644 index 00000000..b380707f Binary files /dev/null and b/static/images/pest/pest_login_header.png differ