diff --git a/config/index.js b/config/index.js index 65e08e2..72e858a 100644 --- a/config/index.js +++ b/config/index.js @@ -20,6 +20,7 @@ module.exports = { // Various Dev Server settings // host: '192.168.43.94', // can be overwritten by process.env.HOST + host: IP, // can be overwritten by process.env.HOST port: 8001, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/api/api_staff.js b/src/api/api_staff.js index 4aeeb7e..a731c5d 100644 --- a/src/api/api_staff.js +++ b/src/api/api_staff.js @@ -41,4 +41,14 @@ export const apiDingtalkLogin = data => { // 钉钉抽奖登记 export const apiDingtalkLuck = data => { return http({ url: '/lz_management/dtlg/luck', method: 'post', data }) +} + +// 钉钉抽奖详情 +export const apiGetLuck = params => { + return http({ url: '/lz_management/luck/getLuckById', method: 'get', params }) +} + +// 中将记录登记 +export const apiUpdateLuck = data => { + return http({ url: '/lz_management/luck/updateLuck', method: 'post', data }) } \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 48966c5..4fd9a12 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -9,8 +9,6 @@ import Router from 'vue-router' import { apiGetMenuNav } from '@/api/api_menu' import { isURL } from '@/utils/validate' import { clearLoginInfo } from '@/utils' -import VConsole from 'vconsole' -let vConsole = new VConsole()// eslint-disable-line no-unused-vars Vue.use(Router) // 开发环境不使用懒加载, 因为懒加载页面太多的话会造成webpack热更新太慢, 所以只有生产环境使用懒加载 @@ -18,6 +16,7 @@ const _import = require('./import-' + process.env.NODE_ENV) // 全局路由(无需嵌套上左右整体布局) const globalRoutes = [ + { path: '/lzluck', component: _import('common/lzluck'), name: 'lzluck', meta: { title: '霖梓抽奖' } }, { path: '/dingtalkluck', component: _import('common/dingtalkluck'), name: 'dingtalkluck', meta: { title: '钉钉抽奖登记' } }, { path: '/404', component: _import('common/404'), name: '404', meta: { title: '404未找到' } }, { path: '/login', component: _import('common/login'), name: 'login', meta: { title: '登录' } } diff --git a/src/views/common/dingtalkluck.vue b/src/views/common/dingtalkluck.vue index edaf7e2..1ed8f70 100644 --- a/src/views/common/dingtalkluck.vue +++ b/src/views/common/dingtalkluck.vue @@ -2,7 +2,8 @@
-
+

{{dataForm.verify}}

@@ -14,7 +15,7 @@ + + +