From 5f470478cda23276ad35913a8a3c6549b6ce47af Mon Sep 17 00:00:00 2001 From: Echo <1711788888@qq.com> Date: Tue, 2 Sep 2025 20:32:51 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=96=B0=E5=A2=9E=E8=AE=B2=E5=B8=88?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E5=AE=A1=E6=A0=B8=E9=A1=B5=EF=BC=8C=E6=96=B0?= =?UTF-8?q?=E5=A2=9Evip=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 2 +- src/api/goods/vip.js | 42 ++++ src/config.js | 10 +- src/view/goods/vip/index.vue | 329 +++++++++++++++++++++++++++ src/view/user/user/teacherApply.vue | 337 ++++++++++++++++++++++++++++ 5 files changed, 716 insertions(+), 4 deletions(-) create mode 100644 src/api/goods/vip.js create mode 100644 src/view/goods/vip/index.vue create mode 100644 src/view/user/user/teacherApply.vue diff --git a/.env.production b/.env.production index 9345df2..0fbd439 100644 --- a/.env.production +++ b/.env.production @@ -4,4 +4,4 @@ ENV = 'production' VITE_BASE_API = /api VITE_FILE_API = /api #下方修改为你的线上ip(如果需要在线使用表单构建工具时使用,其余情况无需使用以下环境变量) -VITE_BASE_PATH = https://demo.gin-vue-admin.com +VITE_BASE_PATH = http://lckt.hnlc5588.cn diff --git a/src/api/goods/vip.js b/src/api/goods/vip.js new file mode 100644 index 0000000..e209da9 --- /dev/null +++ b/src/api/goods/vip.js @@ -0,0 +1,42 @@ +import service from '@/utils/request' + +// @tag goods +// @summary 获取vip列表 +// @param {object} params +// @return {object} data +// @router get /vip/list +export const list = (params) => { + return service({ + url: '/vip/list', + method: 'get', + params + }) +} + +export const add = (data) => { + return service({ + url: '/vip', + method: 'post', + data + }) +} +export const edit = (data) => { + return service({ + url: '/vip', + method: 'put', + data + }) +} +export const del = (data) => { + return service({ + url: '/vip', + method: 'delete', + data + }) +} +export const detail = (id) => { + return service({ + url: '/vip/'+ id, + method: 'get', + }) +} diff --git a/src/config.js b/src/config.js index 109f4f2..e9d0d5a 100644 --- a/src/config.js +++ b/src/config.js @@ -1,6 +1,10 @@ -import {getDict} from '@/utils/dictionary' -export let userStatus = await getDict('user-status') -export const ORDER_SEARCH_CONFIG = [ +// 移除 top-level await,改为静态配置 +export const userStatus = [ + { label: '启用', value: 1 }, + { label: '禁用', value: 0 } +] + +export const ORDER_SEARCH_CONFIG = [ { type: 'input', prop:'order_no', diff --git a/src/view/goods/vip/index.vue b/src/view/goods/vip/index.vue new file mode 100644 index 0000000..d18d2a2 --- /dev/null +++ b/src/view/goods/vip/index.vue @@ -0,0 +1,329 @@ + + + + + diff --git a/src/view/user/user/teacherApply.vue b/src/view/user/user/teacherApply.vue new file mode 100644 index 0000000..22437cf --- /dev/null +++ b/src/view/user/user/teacherApply.vue @@ -0,0 +1,337 @@ + + + + +