diff --git a/.env b/.env
index d407df6..f5d8333 100644
--- a/.env
+++ b/.env
@@ -1,3 +1,9 @@
-VITE_TITLE = 'Vue Naive Admin'
+VITE_TITLE = '捷兑通 - 平台端'
-VITE_PORT = 3100
+VITE_PORT = 4000
+
+VITE_WS_URL = 'www.wanzhuanyongcheng.cn/admin/data'
+
+VITE_WS1_URL = 'www.jdt168.com/dice/home'
+
+VITE_GAME_API = 'https://www.jdt168.com'
\ No newline at end of file
diff --git a/.env.development b/.env.development
index 9feaca6..39ce38e 100644
--- a/.env.development
+++ b/.env.development
@@ -2,10 +2,10 @@
VITE_PUBLIC_PATH = '/'
# 是否启用MOCK
-VITE_USE_MOCK = true
+VITE_USE_MOCK = false
-# 是否启用MOCK
+# 是否启用代理
VITE_USE_PROXY = true
# base api
-VITE_BASE_API = '/api'
+VITE_BASE_API = '/admin'
diff --git a/.env.production b/.env.production
index 67c17e2..ce6a786 100644
--- a/.env.production
+++ b/.env.production
@@ -1,11 +1,13 @@
# 资源公共路径,需要以 /开头和结尾
-VITE_PUBLIC_PATH = '/'
+VITE_PUBLIC_PATH = '/static/admin'
# 是否启用MOCK
-VITE_USE_MOCK = true
+VITE_USE_MOCK = false
# base api
-VITE_BASE_API = '/api'
+VITE_BASE_API = 'https://www.wanzhuanyongcheng.cn/admin'
+
+# VITE_GAME_API = 'http://www.wanzhuanyongcheng.cn/admin'
# 是否启用压缩
VITE_USE_COMPRESS = true
diff --git a/build/constant.js b/build/constant.js
index e63072c..29ef842 100644
--- a/build/constant.js
+++ b/build/constant.js
@@ -6,28 +6,28 @@ export const PROXY_CONFIG = {
* @请求路径 http://localhost:3100/api/user
* @转发路径 http://localhost:8080/user
*/
- '/api': {
- target: 'http://localhost:8080',
+ '/admin': {
+ target: 'https://www.wanzhuanyongcheng.cn',
changeOrigin: true,
- rewrite: (path) => path.replace(new RegExp('^/api'), ''),
+ // rewrite: (path) => path.replace(new RegExp('^/api'), ''),
},
/**
* @desc 不替换匹配值
* @请求路径 http://localhost:3100/api/v2/user
* @转发路径 http://localhost:8080/api/v2/user
*/
- '/api/v2': {
- target: 'http://localhost:8080',
- changeOrigin: true,
- },
+ // '/api/v2': {
+ // target: 'http://localhost:8080',
+ // changeOrigin: true,
+ // },
/**
* @desc 替换部分匹配值
* @请求路径 http://localhost:3100/api/v3/user
* @转发路径 http://localhost:8080/user
*/
- '/api/v3': {
- target: 'http://localhost:8080',
- changeOrigin: true,
- rewrite: (path) => path.replace(new RegExp('^/api'), ''),
- },
+ // '/api/v3': {
+ // target: 'http://localhost:8080',
+ // changeOrigin: true,
+ // rewrite: (path) => path.replace(new RegExp('^/api'), ''),
+ // },
}
diff --git a/settings/theme.json b/settings/theme.json
index add0a7e..d611894 100644
--- a/settings/theme.json
+++ b/settings/theme.json
@@ -8,7 +8,7 @@
},
"naiveThemeOverrides": {
"common": {
- "primaryColor": "#316C72FF",
+ "primaryColor": "#409EFFE3",
"primaryColorHover": "#316C72E3",
"primaryColorPressed": "#2B4C59FF",
"primaryColorSuppl": "#316C72E3",
diff --git a/src/components/Upload.vue b/src/components/Upload.vue
new file mode 100644
index 0000000..12c935e
--- /dev/null
+++ b/src/components/Upload.vue
@@ -0,0 +1,67 @@
+
+
+ 点击上传
+
+
+
+
+
+
diff --git a/src/components/page/AppPage.vue b/src/components/page/AppPage.vue
index 9e30448..56df81a 100644
--- a/src/components/page/AppPage.vue
+++ b/src/components/page/AppPage.vue
@@ -2,7 +2,7 @@
diff --git a/src/hooks/useScript.js b/src/hooks/useScript.js
new file mode 100644
index 0000000..73d5ec6
--- /dev/null
+++ b/src/hooks/useScript.js
@@ -0,0 +1,43 @@
+import { onMounted, onUnmounted, ref } from 'vue'
+
+export function useScript(opts) {
+ const isLoading = ref(false)
+ const error = ref(false)
+ const success = ref(false)
+ let script
+
+ const promise = new Promise((resolve, reject) => {
+ onMounted(() => {
+ script = document.createElement('script')
+ script.type = 'text/javascript'
+ script.charset = 'utf-8'
+ script.onload = function () {
+ isLoading.value = false
+ success.value = true
+ error.value = false
+ resolve('')
+ }
+
+ script.onerror = function (err) {
+ isLoading.value = false
+ success.value = false
+ error.value = true
+ reject(err)
+ }
+
+ script.src = opts.src
+ document.head.appendChild(script)
+ })
+ })
+
+ onUnmounted(() => {
+ script && script.remove()
+ })
+
+ return {
+ isLoading,
+ error,
+ success,
+ toPromise: () => promise,
+ }
+}
diff --git a/src/layout/components/header/index.vue b/src/layout/components/header/index.vue
index 571ab26..4f8c0c0 100644
--- a/src/layout/components/header/index.vue
+++ b/src/layout/components/header/index.vue
@@ -4,9 +4,9 @@
-
+
-
+
@@ -17,7 +17,7 @@ import BreadCrumb from './components/BreadCrumb.vue'
import MenuCollapse from './components/MenuCollapse.vue'
import FullScreen from './components/FullScreen.vue'
import UserAvatar from './components/UserAvatar.vue'
-import GithubSite from './components/GithubSite.vue'
+// import GithubSite from './components/GithubSite.vue'
import ThemeMode from './components/ThemeMode.vue'
-import MessageNotification from './components/MessageNotification.vue'
+// import MessageNotification from './components/MessageNotification.vue'
diff --git a/src/router/guard/permission-guard.js b/src/router/guard/permission-guard.js
index 55b8a29..29b296b 100644
--- a/src/router/guard/permission-guard.js
+++ b/src/router/guard/permission-guard.js
@@ -1,4 +1,4 @@
-import { getToken, refreshAccessToken, isNullOrWhitespace } from '@/utils'
+import { getToken, isNullOrWhitespace } from '@/utils'
const WHITE_LIST = ['/login', '/404']
export function createPermissionGuard(router) {
@@ -14,7 +14,7 @@ export function createPermissionGuard(router) {
/** 有token的情况 */
if (to.path === '/login') return { path: '/' }
- refreshAccessToken()
+ // refreshAccessToken()
return true
})
}
diff --git a/src/router/index.js b/src/router/index.js
index e30129b..9ed22eb 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -4,7 +4,7 @@ import { basicRoutes, EMPTY_ROUTE, NOT_FOUND_ROUTE } from './routes'
import { getToken, isNullOrWhitespace } from '@/utils'
import { useUserStore, usePermissionStore } from '@/store'
-const isHash = import.meta.env.VITE_USE_HASH === 'true'
+const isHash = true
export const router = createRouter({
history: isHash ? createWebHashHistory('/') : createWebHistory('/'),
routes: basicRoutes,
diff --git a/src/router/routes/index.js b/src/router/routes/index.js
index e293376..b9ab945 100644
--- a/src/router/routes/index.js
+++ b/src/router/routes/index.js
@@ -1,4 +1,4 @@
-const Layout = () => import('@/layout/index.vue')
+// const Layout = () => import('@/layout/index.vue')
export const basicRoutes = [
{
@@ -18,42 +18,42 @@ export const basicRoutes = [
},
},
- {
- name: 'ExternalLink',
- path: '/external-link',
- component: Layout,
- meta: {
- title: '外部链接',
- icon: 'mdi:link-variant',
- order: 4,
- },
- children: [
- {
- name: 'LinkGithubSrc',
- path: 'https://github.com/zclzone/vue-naive-admin',
- meta: {
- title: '源码 - github',
- icon: 'mdi:github',
- },
- },
- {
- name: 'LinkGiteeSrc',
- path: 'https://gitee.com/zclzone/vue-naive-admin',
- meta: {
- title: '源码 - gitee',
- icon: 'simple-icons:gitee',
- },
- },
- {
- name: 'LinkDocs',
- path: 'https://zclzone.github.io/vue-naive-admin-docs',
- meta: {
- title: '文档 - vuepress',
- icon: 'mdi:vuejs',
- },
- },
- ],
- },
+ // {
+ // name: 'ExternalLink',
+ // path: '/external-link',
+ // component: Layout,
+ // meta: {
+ // title: '外部链接',
+ // icon: 'mdi:link-variant',
+ // order: 4,
+ // },
+ // children: [
+ // {
+ // name: 'LinkGithubSrc',
+ // path: 'https://github.com/zclzone/vue-naive-admin',
+ // meta: {
+ // title: '源码 - github',
+ // icon: 'mdi:github',
+ // },
+ // },
+ // {
+ // name: 'LinkGiteeSrc',
+ // path: 'https://gitee.com/zclzone/vue-naive-admin',
+ // meta: {
+ // title: '源码 - gitee',
+ // icon: 'simple-icons:gitee',
+ // },
+ // },
+ // {
+ // name: 'LinkDocs',
+ // path: 'https://zclzone.github.io/vue-naive-admin-docs',
+ // meta: {
+ // title: '文档 - vuepress',
+ // icon: 'mdi:vuejs',
+ // },
+ // },
+ // ],
+ // },
]
export const NOT_FOUND_ROUTE = {
diff --git a/src/store/modules/user/index.js b/src/store/modules/user/index.js
index f14fb7f..7ac4e45 100644
--- a/src/store/modules/user/index.js
+++ b/src/store/modules/user/index.js
@@ -2,7 +2,7 @@ import { defineStore } from 'pinia'
import { resetRouter } from '@/router'
import { useTagsStore, usePermissionStore } from '@/store'
import { removeToken, toLogin } from '@/utils'
-import api from '@/api'
+// import api from '@/api'
export const useUserStore = defineStore('user', {
state() {
@@ -26,14 +26,14 @@ export const useUserStore = defineStore('user', {
},
actions: {
async getUserInfo() {
- try {
- const res = await api.getUser()
- const { id, name, avatar, role } = res.data
- this.userInfo = { id, name, avatar, role }
- return Promise.resolve(res.data)
- } catch (error) {
- return Promise.reject(error)
- }
+ // try {
+ // const res = await api.getUser()
+ // const { id, name, avatar, role } = res.data
+ // this.userInfo = { id, name, avatar, role }
+ // return Promise.resolve(res.data)
+ // } catch (error) {
+ // return Promise.reject(error)
+ // }
},
async logout() {
const { resetTags } = useTagsStore()
diff --git a/src/utils/http/index.js b/src/utils/http/index.js
index 6fa57ef..aa5bbbb 100644
--- a/src/utils/http/index.js
+++ b/src/utils/http/index.js
@@ -14,6 +14,4 @@ export function createAxios(options = {}) {
return service
}
-export const request = createAxios({
- baseURL: import.meta.env.VITE_BASE_API,
-})
+export const request = createAxios({})
diff --git a/src/utils/http/interceptors.js b/src/utils/http/interceptors.js
index 531109d..a1497b6 100644
--- a/src/utils/http/interceptors.js
+++ b/src/utils/http/interceptors.js
@@ -2,6 +2,11 @@ import { getToken } from '@/utils'
import { resolveResError } from './helpers'
export function reqResolve(config) {
+ if (config.url.includes('/dice')) {
+ config.baseURL = import.meta.env.VITE_GAME_API
+ } else {
+ config.baseURL = import.meta.env.VITE_BASE_API
+ }
// 处理不需要token的请求
if (config.noNeedToken) {
return config
@@ -28,7 +33,7 @@ export function reqReject(error) {
export function resResolve(response) {
// TODO: 处理不同的 response.headers
const { data, status, config, statusText } = response
- if (data?.code !== 0) {
+ if (data?.code !== 200) {
const code = data?.code ?? status
/** 根据code处理对应的操作,并返回处理后的message */
diff --git a/src/views/business/mer_list/api.js b/src/views/business/mer_list/api.js
new file mode 100644
index 0000000..e105d2b
--- /dev/null
+++ b/src/views/business/mer_list/api.js
@@ -0,0 +1,7 @@
+import { request } from '@/utils'
+
+export default {
+ getList: (data) => request.post('/store', data),
+ addMer: (data) => request.post('/store/edit', data),
+ getMerType: () => request.post('/store/getOther'),
+}
diff --git a/src/views/business/mer_list/index.vue b/src/views/business/mer_list/index.vue
new file mode 100644
index 0000000..ebbc80e
--- /dev/null
+++ b/src/views/business/mer_list/index.vue
@@ -0,0 +1,434 @@
+
+
+
+ 新增商户
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+ 重置
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/business/mer_type/api.js b/src/views/business/mer_type/api.js
new file mode 100644
index 0000000..96d36bd
--- /dev/null
+++ b/src/views/business/mer_type/api.js
@@ -0,0 +1,6 @@
+import { request } from '@/utils'
+
+export default {
+ getMerType: (data) => request.post('/typesof', data),
+ addMerType: (data) => request.post('/typesof/edit', data),
+}
diff --git a/src/views/business/mer_type/index.vue b/src/views/business/mer_type/index.vue
new file mode 100644
index 0000000..1cb1426
--- /dev/null
+++ b/src/views/business/mer_type/index.vue
@@ -0,0 +1,182 @@
+
+
+ 新增商户类型
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+ 取消
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/business/mer_verify/api.js b/src/views/business/mer_verify/api.js
new file mode 100644
index 0000000..e69de29
diff --git a/src/views/business/mer_verify/index.vue b/src/views/business/mer_verify/index.vue
new file mode 100644
index 0000000..35a41e0
--- /dev/null
+++ b/src/views/business/mer_verify/index.vue
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
diff --git a/src/views/business/route.js b/src/views/business/route.js
new file mode 100644
index 0000000..669503a
--- /dev/null
+++ b/src/views/business/route.js
@@ -0,0 +1,40 @@
+const Layout = () => import('@/layout/index.vue')
+
+export default {
+ name: '商户管理',
+ path: '/merchant',
+ component: Layout,
+ redirect: '/mer_list',
+ children: [
+ {
+ name: 'Merlist',
+ path: 'mer_list',
+ component: () => import('./mer_list/index.vue'),
+ meta: {
+ title: '商户列表',
+ icon: 'mdi:account-multiple',
+ order: 10,
+ },
+ },
+ {
+ name: 'Mertype',
+ path: 'mer_type',
+ component: () => import('./mer_type/index.vue'),
+ meta: {
+ title: '商户类型',
+ icon: 'mdi:account-multiple',
+ order: 10,
+ },
+ },
+ {
+ name: 'Merverify',
+ path: 'mer_verify',
+ component: () => import('./mer_verify/index.vue'),
+ meta: {
+ title: '入驻审核',
+ icon: 'mdi:account-multiple',
+ order: 10,
+ },
+ },
+ ],
+}
diff --git a/src/views/commodity/commodity_class/api.js b/src/views/commodity/commodity_class/api.js
new file mode 100644
index 0000000..39f027f
--- /dev/null
+++ b/src/views/commodity/commodity_class/api.js
@@ -0,0 +1,6 @@
+import { request } from '@/utils'
+
+export default {
+ getMerClass: (data) => request.post('/classify', data),
+ addMerClass: (data) => request.post('/classify/edit', data),
+}
diff --git a/src/views/commodity/commodity_class/index.vue b/src/views/commodity/commodity_class/index.vue
new file mode 100644
index 0000000..be34822
--- /dev/null
+++ b/src/views/commodity/commodity_class/index.vue
@@ -0,0 +1,182 @@
+
+
+ 新增商品分类
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+ 取消
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/commodity/hot_list/api.js b/src/views/commodity/hot_list/api.js
new file mode 100644
index 0000000..b58671d
--- /dev/null
+++ b/src/views/commodity/hot_list/api.js
@@ -0,0 +1,6 @@
+import { request } from '@/utils'
+
+export default {
+ getHotlist: (data) => request.post('/goods', data),
+ getHotStatus: (data) => request.post('/goods/process', data),
+}
diff --git a/src/views/commodity/hot_list/index.vue b/src/views/commodity/hot_list/index.vue
new file mode 100644
index 0000000..366488a
--- /dev/null
+++ b/src/views/commodity/hot_list/index.vue
@@ -0,0 +1,155 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/commodity/point/api.js b/src/views/commodity/point/api.js
new file mode 100644
index 0000000..a400dc8
--- /dev/null
+++ b/src/views/commodity/point/api.js
@@ -0,0 +1,6 @@
+import { request } from '@/utils'
+
+export default {
+ getPointlist: (data) => request.post('/point/goods', data),
+ getPointStatus: (data) => request.post('/point/goods/process', data),
+}
diff --git a/src/views/commodity/point/index.vue b/src/views/commodity/point/index.vue
new file mode 100644
index 0000000..3d261fa
--- /dev/null
+++ b/src/views/commodity/point/index.vue
@@ -0,0 +1,155 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/commodity/route.js b/src/views/commodity/route.js
new file mode 100644
index 0000000..c4da70a
--- /dev/null
+++ b/src/views/commodity/route.js
@@ -0,0 +1,40 @@
+const Layout = () => import('@/layout/index.vue')
+
+export default {
+ name: '商品管理',
+ path: '/commodity',
+ component: Layout,
+ redirect: '/commodity_class',
+ children: [
+ {
+ name: 'CommodityClass',
+ path: 'commodity_class',
+ component: () => import('./commodity_class/index.vue'),
+ meta: {
+ title: '商品分类',
+ icon: 'mdi:account-multiple',
+ order: 10,
+ },
+ },
+ {
+ name: 'HotList',
+ path: 'hot_list',
+ component: () => import('./hot_list/index.vue'),
+ meta: {
+ title: '活动商品',
+ icon: 'mdi:account-multiple',
+ order: 10,
+ },
+ },
+ {
+ name: 'PointList',
+ path: 'point_list',
+ component: () => import('./point/index.vue'),
+ meta: {
+ title: '积分商品',
+ icon: 'mdi:account-multiple',
+ order: 10,
+ },
+ },
+ ],
+}
diff --git a/src/views/demo/base/route.js b/src/views/demo/base/route.js
index 0eac9eb..ecede20 100644
--- a/src/views/demo/base/route.js
+++ b/src/views/demo/base/route.js
@@ -5,6 +5,7 @@ export default {
path: '/base',
component: Layout,
redirect: '/base/index',
+ isHidden: true,
meta: {
title: '基础功能',
icon: 'majesticons:compass-line',
diff --git a/src/views/error-page/route.js b/src/views/error-page/route.js
index 8ea7655..ea2829b 100644
--- a/src/views/error-page/route.js
+++ b/src/views/error-page/route.js
@@ -5,6 +5,7 @@ export default {
path: '/error-page',
component: Layout,
redirect: '/error-page/404',
+ isHidden: true,
meta: {
title: '错误页',
icon: 'mdi:alert-circle-outline',
diff --git a/src/views/game/api.js b/src/views/game/api.js
new file mode 100644
index 0000000..67e2adc
--- /dev/null
+++ b/src/views/game/api.js
@@ -0,0 +1,8 @@
+import { request } from '@/utils'
+
+export default {
+ getData: () => request.post('/dice/getisStart'),
+ setStatus: (data) => request.post('/dice/isStart', data),
+ getDS: () => request.post('/dice/getBetting'),
+ setDS: (data) => request.post('/dice/setBetting', data),
+}
diff --git a/src/views/game/data/index.vue b/src/views/game/data/index.vue
new file mode 100644
index 0000000..e42677e
--- /dev/null
+++ b/src/views/game/data/index.vue
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+ 预开期数:
+ {{ list[0]?.periods || 0 }}
+
+
+ 剩余开奖时间:
+ {{ time || 0 }}
+
+
+
+
+
+ {{ item.count }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/game/route.js b/src/views/game/route.js
new file mode 100644
index 0000000..19f9b82
--- /dev/null
+++ b/src/views/game/route.js
@@ -0,0 +1,19 @@
+const Layout = () => import('@/layout/index.vue')
+
+export default {
+ name: '游戏管理',
+ path: '/game',
+ component: Layout,
+ redirect: '/game_data',
+ children: [
+ {
+ name: 'Gamelist',
+ path: 'game_data',
+ component: () => import('./data/index.vue'),
+ meta: {
+ title: '实时数据',
+ order: 10,
+ },
+ },
+ ],
+}
diff --git a/src/views/game/sys/index.vue b/src/views/game/sys/index.vue
new file mode 100644
index 0000000..e69de29
diff --git a/src/views/login/api.js b/src/views/login/api.js
index d1c539c..940f30b 100644
--- a/src/views/login/api.js
+++ b/src/views/login/api.js
@@ -1,5 +1,5 @@
import { request } from '@/utils'
export default {
- login: (data) => request.post('/auth/login', data, { noNeedToken: true }),
+ login: (data) => request.post('/login', data, { noNeedToken: true }),
}
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index e9d23b0..71b96b0 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -19,7 +19,7 @@
v-model:value="loginInfo.name"
autofocus
class="h-50 items-center pl-10 text-16"
- placeholder="admin"
+ placeholder="请输入账号"
:maxlength="20"
/>
@@ -29,7 +29,7 @@
class="h-50 items-center pl-10 text-16"
type="password"
show-password-on="mousedown"
- placeholder="123456"
+ placeholder="请输入密码"
:maxlength="20"
@keypress.enter="handleLogin"
/>
@@ -99,7 +99,8 @@ async function handleLogin() {
try {
loading.value = true
$message.loading('正在验证...')
- const res = await api.login({ name, password: password.toString() })
+ const res = await api.login({ phone: name, password: password.toString() })
+ console.log(res.data.token)
$message.success('登录成功')
setToken(res.data.token)
if (isRemember.value) {
diff --git a/src/views/order/index/api.js b/src/views/order/index/api.js
new file mode 100644
index 0000000..d3cdc33
--- /dev/null
+++ b/src/views/order/index/api.js
@@ -0,0 +1,5 @@
+import { request } from '@/utils'
+
+export default {
+ getOrder: (data) => request.post('/order', data),
+}
diff --git a/src/views/order/index/index.vue b/src/views/order/index/index.vue
new file mode 100644
index 0000000..c4b47a9
--- /dev/null
+++ b/src/views/order/index/index.vue
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/order/point/api.js b/src/views/order/point/api.js
new file mode 100644
index 0000000..47a2068
--- /dev/null
+++ b/src/views/order/point/api.js
@@ -0,0 +1,5 @@
+import { request } from '@/utils'
+
+export default {
+ getPoint: (data) => request.post('/point/order', data),
+}
diff --git a/src/views/order/point/index.vue b/src/views/order/point/index.vue
new file mode 100644
index 0000000..b04344e
--- /dev/null
+++ b/src/views/order/point/index.vue
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/order/route.js b/src/views/order/route.js
new file mode 100644
index 0000000..d3d3d49
--- /dev/null
+++ b/src/views/order/route.js
@@ -0,0 +1,30 @@
+const Layout = () => import('@/layout/index.vue')
+
+export default {
+ name: '订单管理',
+ path: '/order',
+ component: Layout,
+ redirect: '/order_list',
+ children: [
+ {
+ name: 'Orderlist',
+ path: 'order_list',
+ component: () => import('./index/index.vue'),
+ meta: {
+ title: '活动订单',
+ icon: 'mdi:account-multiple',
+ order: 10,
+ },
+ },
+ {
+ name: 'Pointlist',
+ path: 'point_list',
+ component: () => import('./point/index.vue'),
+ meta: {
+ title: '积分订单',
+ icon: 'mdi:account-multiple',
+ order: 10,
+ },
+ },
+ ],
+}
diff --git a/src/views/system/index/api.js b/src/views/system/index/api.js
new file mode 100644
index 0000000..1d2a1e9
--- /dev/null
+++ b/src/views/system/index/api.js
@@ -0,0 +1,6 @@
+import { request } from '@/utils'
+
+export default {
+ getBanner: (data) => request.post('/rotation', data),
+ addBanner: (data) => request.post('/rotation/edit', data),
+}
diff --git a/src/views/system/index/index.vue b/src/views/system/index/index.vue
new file mode 100644
index 0000000..43dfdd9
--- /dev/null
+++ b/src/views/system/index/index.vue
@@ -0,0 +1,206 @@
+
+
+ 新增幻灯片
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+ 取消
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/route.js b/src/views/system/route.js
new file mode 100644
index 0000000..43778fd
--- /dev/null
+++ b/src/views/system/route.js
@@ -0,0 +1,30 @@
+const Layout = () => import('@/layout/index.vue')
+
+export default {
+ name: '系统设置',
+ path: '/sys',
+ component: Layout,
+ redirect: '/sys_banner',
+ children: [
+ {
+ name: 'Sysbanner',
+ path: 'sys_banner',
+ component: () => import('./index/index.vue'),
+ meta: {
+ title: '幻灯片管理',
+ icon: 'mdi:account-multiple',
+ order: 10,
+ },
+ },
+ {
+ name: 'Syssys',
+ path: 'sys_sys',
+ component: () => import('./sys/index.vue'),
+ meta: {
+ title: '商城设置',
+ icon: 'mdi:account-multiple',
+ order: 10,
+ },
+ },
+ ],
+}
diff --git a/src/views/system/sys/api.js b/src/views/system/sys/api.js
new file mode 100644
index 0000000..f3c8d3c
--- /dev/null
+++ b/src/views/system/sys/api.js
@@ -0,0 +1,6 @@
+import { request } from '@/utils'
+
+export default {
+ getConfig: (data) => request.post('/userConfig', data),
+ editConfig: (data) => request.post('/userConfig/edit', data),
+}
diff --git a/src/views/system/sys/index.vue b/src/views/system/sys/index.vue
new file mode 100644
index 0000000..764fa77
--- /dev/null
+++ b/src/views/system/sys/index.vue
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+ 保存
+
+
+
+
+
+
+
+
diff --git a/src/views/user/index/api.js b/src/views/user/index/api.js
new file mode 100644
index 0000000..0ba8fa2
--- /dev/null
+++ b/src/views/user/index/api.js
@@ -0,0 +1,5 @@
+import { request } from '@/utils'
+
+export default {
+ getUser: (data) => request.post('/user', data),
+}
diff --git a/src/views/user/index/index.vue b/src/views/user/index/index.vue
new file mode 100644
index 0000000..11fddf0
--- /dev/null
+++ b/src/views/user/index/index.vue
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/views/user/route.js b/src/views/user/route.js
new file mode 100644
index 0000000..c7c28c3
--- /dev/null
+++ b/src/views/user/route.js
@@ -0,0 +1,19 @@
+const Layout = () => import('@/layout/index.vue')
+
+export default {
+ name: '用户管理',
+ path: '/user',
+ component: Layout,
+ redirect: '/user_list',
+ children: [
+ {
+ name: 'Userlist',
+ path: 'user_list',
+ component: () => import('./index/index.vue'),
+ meta: {
+ title: '用户列表',
+ order: 10,
+ },
+ },
+ ],
+}
diff --git a/src/views/workbench/index.vue b/src/views/workbench/index.vue
index 563cc30..51564c3 100644
--- a/src/views/workbench/index.vue
+++ b/src/views/workbench/index.vue
@@ -9,7 +9,7 @@
今天又是元气满满的一天
-
+
-
+