From 6eed411a990e4e83761f60b8203874038a742e13 Mon Sep 17 00:00:00 2001 From: wulin Date: Mon, 24 Aug 2020 09:27:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8A=BD=E5=A5=96=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 4 +- src/api/api_staff.js | 10 ++ src/router/index.js | 3 +- src/views/common/dingtalkluck.vue | 40 ++++--- src/views/common/lzluck.vue | 189 ++++++++++++++++++++++++++++++ 5 files changed, 227 insertions(+), 19 deletions(-) create mode 100644 src/views/common/lzluck.vue diff --git a/config/index.js b/config/index.js index a1c2365..a222aa5 100644 --- a/config/index.js +++ b/config/index.js @@ -13,13 +13,13 @@ module.exports = { assetsPublicPath: '/', proxyTable: { '/lz_management': { - target: 'http://192.168.43.94:8080', + target: 'http://localhost:8080', changeOrigin: true } }, // 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..6ac003c 100644 --- a/src/views/common/dingtalkluck.vue +++ b/src/views/common/dingtalkluck.vue @@ -2,7 +2,8 @@
-
+

{{dataForm.verify}}

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