Showing
7 changed files
with
49 additions
and
4 deletions
@@ -40,6 +40,8 @@ | @@ -40,6 +40,8 @@ | ||
40 | <a class="btn btn-info" href="/admin/activity/article?actId={{id}}">文章列表</a> | 40 | <a class="btn btn-info" href="/admin/activity/article?actId={{id}}">文章列表</a> |
41 | <a class="btn btn-primary" href="/admin/activity/createArticle?actId={{id}}"> | 41 | <a class="btn btn-primary" href="/admin/activity/createArticle?actId={{id}}"> |
42 | 创建文章</a> | 42 | 创建文章</a> |
43 | + <a class="btn btn-primary" href="/admin/wheelSurf/decor?actId={{id}}"> | ||
44 | + 大转盘活动配置</a> | ||
43 | <button class="btn btn-danger btn-delete" data-id="{{id}}">删除活动 | 45 | <button class="btn btn-danger btn-delete" data-id="{{id}}">删除活动 |
44 | </button> | 46 | </button> |
45 | </td> | 47 | </td> |
@@ -107,7 +107,8 @@ module.exports = (env) => { | @@ -107,7 +107,8 @@ module.exports = (env) => { | ||
107 | alias:{ | 107 | alias:{ |
108 | 'vue$':'vue/dist/vue.esm.js', | 108 | 'vue$':'vue/dist/vue.esm.js', |
109 | 'vue@': path.join(__dirname, '../public/vue') | 109 | 'vue@': path.join(__dirname, '../public/vue') |
110 | - } | 110 | + }, |
111 | + extensions: ['.js', '.json', '.vue'] | ||
111 | }, | 112 | }, |
112 | stats: { | 113 | stats: { |
113 | children: false | 114 | children: false |
@@ -5,6 +5,9 @@ | @@ -5,6 +5,9 @@ | ||
5 | */ | 5 | */ |
6 | #注意:GO;分割执行块 | 6 | #注意:GO;分割执行块 |
7 | 7 | ||
8 | +# 活动表区分类型 | ||
9 | +ALTER TABLE activity ADD `type` INT(2) DEFAULT 0 COMMENT '活动类型:1、大转盘活动'; | ||
10 | +GO; | ||
8 | 11 | ||
9 | # 大转盘活动配置数据表 | 12 | # 大转盘活动配置数据表 |
10 | CREATE TABLE IF NOT EXISTS act_wheel_surf_conf ( | 13 | CREATE TABLE IF NOT EXISTS act_wheel_surf_conf ( |
1 | import Vue from 'vue'; | 1 | import Vue from 'vue'; |
2 | import VueRouter from 'vue-router'; | 2 | import VueRouter from 'vue-router'; |
3 | import App from 'vue@/App.vue'; | 3 | import App from 'vue@/App.vue'; |
4 | -import {create, list} from 'vue@/wheel-surf'; | 4 | +import {create, list, decor} from 'vue@/wheel-surf'; |
5 | 5 | ||
6 | require('admin/wheel-surf.page.css'); | 6 | require('admin/wheel-surf.page.css'); |
7 | 7 | ||
@@ -10,6 +10,7 @@ Vue.use(VueRouter); | @@ -10,6 +10,7 @@ Vue.use(VueRouter); | ||
10 | const router = new VueRouter({ | 10 | const router = new VueRouter({ |
11 | routes: [ | 11 | routes: [ |
12 | {path: '/admin/wheelSurf', component: list}, | 12 | {path: '/admin/wheelSurf', component: list}, |
13 | + {path: '/admin/wheelSurf/decor', name: 'decor', component: decor}, | ||
13 | {path: '/admin/wheelSurf/create', name: 'create', component: create} | 14 | {path: '/admin/wheelSurf/create', name: 'create', component: create} |
14 | ], | 15 | ], |
15 | mode: 'history' | 16 | mode: 'history' |
public/vue/wheel-surf/decor.vue
0 → 100644
1 | +<template> | ||
2 | + <div> | ||
3 | + <div class=""> | ||
4 | + <div class="main-conf"> | ||
5 | + | ||
6 | + </div> | ||
7 | + <div class="main-"> | ||
8 | + | ||
9 | + </div> | ||
10 | + </div> | ||
11 | + <div> | ||
12 | + <button class="btn btn-info">预览</button> | ||
13 | + <button class="btn btn-primary">保存</button> | ||
14 | + </div> | ||
15 | + </div> | ||
16 | +</template> | ||
17 | +<script> | ||
18 | + module.exports = { | ||
19 | + data() { | ||
20 | + return { | ||
21 | + actId: 0 | ||
22 | + }; | ||
23 | + }, | ||
24 | + created() { | ||
25 | + this.actId = this.$route.query.actId; | ||
26 | + }, | ||
27 | + methods: { | ||
28 | + create() { | ||
29 | + this.$router.push({name: 'create'}); | ||
30 | + } | ||
31 | + } | ||
32 | + } | ||
33 | +</script> | ||
34 | +<style> | ||
35 | + | ||
36 | +</style> |
-
Please register or login to post a comment