7 Commits
master ... 1.4

Author SHA1 Message Date
daZongZi
f3a0963599 reset H5 pwd 2025-08-04 16:48:17 +08:00
daZongZi
e649a912de success readme done 2025-07-31 17:29:20 +08:00
daZongZi
f7014466ab Merge branch 'master' into 1.4 2025-07-31 16:50:33 +08:00
daZongZi
b65741320c Merge branch 'master' into 1.4
# Conflicts:
#	crmeb/crmeb-common/src/main/java/com/zbkj/common/utils/CrmebUtil.java
#	crmeb/sql/Crmeb_1.3.4.sql
2025-07-31 16:47:46 +08:00
zzp
15c340fd4d 后端代码提交 2025-06-24 16:36:16 +08:00
zzp
9c139cb43f 后端代码提交 2025-06-24 16:23:52 +08:00
超凡
35fec82e4a feat:v1.4前端更新 2025-06-24 14:43:09 +08:00
2793 changed files with 146770 additions and 73030 deletions

View File

@@ -104,11 +104,11 @@ CRMEB开源商城PHPhttps://gitee.com/ZhongBangKeJi/CRMEB
--- ---
[![](crmeb/crmebimage/crmebimage/demoimage/gitee-广告_java多商户.jpg)](https://www.crmeb.com/index/java_merchant) [![](crmeb/crmebimage/demoimage/gitee-广告_java多商户.jpg)](https://www.crmeb.com/index/java_merchant)
### 🎬 系统演示: ### 🎬 系统演示:
![](crmeb/crmebimage/crmebimage/demoimage/c1.jpg) ![](crmeb/crmebimage/demoimage/c1.jpg)
移动端https://java.crmeb.net<br> 移动端https://java.crmeb.net<br>
WEBPC管理端https://admin.java.crmeb.net<br> WEBPC管理端https://admin.java.crmeb.net<br>
账号密码: demo/crmeb.com<br> 账号密码: demo/crmeb.com<br>
@@ -133,34 +133,34 @@ WEBPC管理端https://admin.java.crmeb.net<br>
### 💟 UI界面 ### 💟 UI界面
#### 核心功能 #### 核心功能
![](crmeb/crmebimage/crmebimage/demoimage/javaop2.jpg) ![](crmeb/crmebimage/demoimage/javaop2.jpg)
### 📱 移动端预览 ### 📱 移动端预览
<!-- ![](crmeb/crmebimage/crmebimage/demoimage/03-mobile-01.png) <!-- ![](crmeb/crmebimage/demoimage/03-mobile-01.png)
![](crmeb/crmebimage/crmebimage/demoimage/04-mobile-02.png) ![](crmeb/crmebimage/demoimage/04-mobile-02.png)
![](crmeb/crmebimage/crmebimage/demoimage/05-mobile-03.png) --> ![](crmeb/crmebimage/demoimage/05-mobile-03.png) -->
![](crmeb/crmebimage/crmebimage/demoimage/001front.jpg) ![](crmeb/crmebimage/demoimage/001front.jpg)
### WEB PC管理端预览 ### WEB PC管理端预览
<!-- ![](crmeb/crmebimage/crmebimage/demoimage/07-pc-01.png) <!-- ![](crmeb/crmebimage/demoimage/07-pc-01.png)
![](crmeb/crmebimage/crmebimage/demoimage/08-pc-02.png) ![](crmeb/crmebimage/demoimage/08-pc-02.png)
![](crmeb/crmebimage/crmebimage/demoimage/09-pc-03.png) ![](crmeb/crmebimage/demoimage/09-pc-03.png)
![](crmeb/crmebimage/crmebimage/demoimage/10-pc-04.png) ![](crmeb/crmebimage/demoimage/10-pc-04.png)
![](crmeb/crmebimage/crmebimage/demoimage/11-pc-05.png) ![](crmeb/crmebimage/demoimage/11-pc-05.png)
![](crmeb/crmebimage/crmebimage/demoimage/12-pc-06.png) --> ![](crmeb/crmebimage/demoimage/12-pc-06.png) -->
![](crmeb/crmebimage/crmebimage/demoimage/001admin.jpg) ![](crmeb/crmebimage/demoimage/001admin.jpg)
![](crmeb/crmebimage/crmebimage/demoimage/13yemiandesiner-min.gif) ![](crmeb/crmebimage/demoimage/13yemiandesiner-min.gif)
![](crmeb/crmebimage/crmebimage/demoimage/14yijianhuanse-min.gif) ![](crmeb/crmebimage/demoimage/14yijianhuanse-min.gif)
![](crmeb/crmebimage/crmebimage/demoimage/15webPCadmin-min.gif) ![](crmeb/crmebimage/demoimage/15webPCadmin-min.gif)
--- ---
### 📲 CRMEB开源技术交流群 ### 📲 CRMEB开源技术交流群
扫码进群可领取开源版接口文档、产品功能清单、高清UI设计图、思维脑图 扫码进群可领取开源版接口文档、产品功能清单、高清UI设计图、思维脑图
![](crmeb/crmebimage/crmebimage/demoimage/wellcomJavaGroup.jpg) ![](crmeb/crmebimage/demoimage/wellcomJavaGroup.jpg)
#### 📈 技术社区 #### 📈 技术社区

View File

@@ -2,7 +2,9 @@
ENV = 'development' ENV = 'development'
# base api # base api
VUE_APP_BASE_API = 'http://127.0.0.1:8080' # VUE_APP_BASE_API = '/dev-api'
# VUE_APP_BASE_API = 'https://api.java.crmeb.net'
VUE_APP_BASE_API = 'http://192.168.31.35:2500'
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
# to control whether the babel-plugin-dynamic-import-node plugin is enabled. # to control whether the babel-plugin-dynamic-import-node plugin is enabled.

View File

@@ -2,5 +2,6 @@
ENV = 'production' ENV = 'production'
# base api # base api
VUE_APP_BASE_API = 'http://api.xxx' # VUE_APP_BASE_API = '/prod-api'
# VUE_APP_BASE_API = 'https://api.java.crmeb.net'
VUE_APP_BASE_API = 'http://192.168.31.35:2500'

View File

@@ -1,5 +1,7 @@
ENV = 'production' ENV = 'production'
# base api # base api
VUE_APP_BASE_API = 'http://api.xxx' # VUE_APP_BASE_API = '/prod-api'
# VUE_APP_BASE_API = 'https://api.java.crmeb.net'
VUE_APP_BASE_API = 'http://192.168.31.35:2500'

24
admin/.prettierignore Normal file
View File

@@ -0,0 +1,24 @@
.DS_Store
node_modules/
dist/
public/
plop-templates/
tests/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
**/*.log
tests/**/coverage/
tests/e2e/reports
selenium-debug.log
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.local
*.md

35
admin/.prettierrc.js Normal file
View File

@@ -0,0 +1,35 @@
module.exports = {
// 一行最多 120 字符
printWidth: 120,
// 使用 2 个空格缩进
tabWidth: 2,
// 不使用 tab 缩进,而使用空格
useTabs: false,
// 行尾需要有分号
semi: true,
// 使用单引号代替双引号
singleQuote: true,
// 对象的 key 仅在必要时用引号
quoteProps: 'as-needed',
// jsx 不使用单引号,而使用双引号
jsxSingleQuote: false,
// 末尾使用逗号
trailingComma: 'all',
// 大括号内的首尾需要空格 { foo: bar }
bracketSpacing: true,
// 箭头函数,只有一个参数的时候,也需要括号
arrowParens: 'always',
// 每个文件格式化的范围是文件的全部内容
rangeStart: 0,
rangeEnd: Infinity,
// 不需要写文件开头的 @prettier
requirePragma: false,
// 不需要自动在文件开头插入 @prettier
insertPragma: false,
// 使用默认的折行标准
proseWrap: 'preserve',
// 根据显示样式决定 html 要不要折行
htmlWhitespaceSensitivity: 'css',
// 换行符使用 lf
endOfLine: 'lf',
};

View File

@@ -1,4 +1,4 @@
{ {
"compilerOptions": { "compilerOptions": {
"baseUrl": "./", "baseUrl": "./",
"paths": { "paths": {
@@ -6,4 +6,4 @@
} }
}, },
"exclude": ["node_modules", "dist"] "exclude": ["node_modules", "dist"]
} }

View File

@@ -9,6 +9,8 @@
"build:prod": "vue-cli-service build", "build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging", "build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview", "preview": "node build/index.js --preview",
"prettier:comment": "自动格式化当前目录下的所有文件",
"prettier": "prettier --write .",
"lint": "eslint --fix --ext .js,.vue src", "lint": "eslint --fix --ext .js,.vue src",
"test:unit": "jest --clearCache && vue-cli-service test:unit", "test:unit": "jest --clearCache && vue-cli-service test:unit",
"test:ci": "npm run lint && npm run test:unit", "test:ci": "npm run lint && npm run test:unit",
@@ -44,27 +46,29 @@
"babel-polyfill": "^6.26.0", "babel-polyfill": "^6.26.0",
"clipboard": "^2.0.4", "clipboard": "^2.0.4",
"core-js": "^2.6.11", "core-js": "^2.6.11",
"crypto-js": "^4.1.1", "crypto-js": "^4.2.0",
"echarts": "4.2.1", "echarts": "4.2.1",
"element-ui": "2.13.0", "element-ui": "2.15.6",
"file-saver": "2.0.1", "file-saver": "2.0.1",
"fuse.js": "3.4.4", "fuse.js": "3.4.4",
"js-cookie": "2.2.0", "js-cookie": "2.2.0",
"jsonlint": "1.6.3",
"jszip": "3.2.1", "jszip": "3.2.1",
"mpvue-calendar": "^2.3.7", "mpvue-calendar": "^2.3.7",
"sass": "1.26.2",
"sass-loader": "^7.2.0",
"normalize.css": "7.0.0", "normalize.css": "7.0.0",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"path-to-regexp": "2.4.0", "path-to-regexp": "2.4.0",
"print-js": "^1.6.0",
"printjs": "^1.1.0",
"qrcodejs2": "^0.0.2", "qrcodejs2": "^0.0.2",
"screenfull": "4.2.0", "sass": "1.26.2",
"sass-loader": "^7.2.0",
"screenfull": "5.0.2",
"script-loader": "0.7.2", "script-loader": "0.7.2",
"throttle-debounce": "^2.1.0", "throttle-debounce": "^2.1.0",
"vconsole": "^3.3.2", "vconsole": "^3.3.2",
"vue": "2.6.10", "vue": "2.6.10",
"vue-awesome-swiper": "^3.1.3", "vue-awesome-swiper": "^3.1.3",
"vue-cropper": "^0.5.8",
"vue-echarts": "^4.0.3", "vue-echarts": "^4.0.3",
"vue-router": "3.0.2", "vue-router": "3.0.2",
"vue-ydui": "^1.2.6", "vue-ydui": "^1.2.6",
@@ -74,28 +78,25 @@
"xlsx": "0.14.1" "xlsx": "0.14.1"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "7.0.0",
"@babel/register": "7.0.0",
"@vue/cli-plugin-babel": "3.5.3", "@vue/cli-plugin-babel": "3.5.3",
"@vue/cli-plugin-eslint": "^3.9.1", "@vue/cli-plugin-eslint": "^3.9.1",
"@vue/cli-plugin-unit-jest": "3.5.3", "@vue/cli-plugin-unit-jest": "3.5.3",
"@vue/cli-service": "3.5.3", "@vue/cli-service": "4.0.0",
"@vue/test-utils": "1.0.0-beta.29", "@vue/test-utils": "1.0.0-beta.29",
"babel-core": "7.0.0-bridge.0", "babel-core": "7.0.0-bridge.0",
"babel-jest": "23.6.0", "babel-jest": "23.6.0",
"chalk": "2.4.2", "chalk": "2.4.2",
"chokidar": "^3.1.1",
"connect": "3.6.6", "connect": "3.6.6",
"eslint": "5.15.3", "eslint": "5.15.3",
"eslint-plugin-vue": "5.2.2", "eslint-plugin-vue": "5.2.2",
"html-webpack-plugin": "3.2.0", "html-webpack-plugin": "3.2.0",
"husky": "1.3.1", "husky": "1.3.1",
"lint-staged": "8.1.5", "lint-staged": "8.1.5",
"mockjs": "1.0.1-beta3",
"plop": "2.3.0", "plop": "2.3.0",
"prettier": "^2.5.1",
"runjs": "^4.3.2", "runjs": "^4.3.2",
"script-loader": "^0.7.2",
"script-ext-html-webpack-plugin": "2.1.3", "script-ext-html-webpack-plugin": "2.1.3",
"script-loader": "^0.7.2",
"serve-static": "^1.13.2", "serve-static": "^1.13.2",
"svg-sprite-loader": "4.1.3", "svg-sprite-loader": "4.1.3",
"svgo": "1.2.0", "svgo": "1.2.0",

View File

File diff suppressed because one or more lines are too long

View File

@@ -1,11 +1,93 @@
<template> <template>
<div id="app"> <div id="app">
<router-view /> <router-view v-if="isRouterAlive" />
<Setings ref="setingsRef" />
</div> </div>
</template> </template>
<script> <script>
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import { Local } from '@/utils/storage.js';
import Setings from '@/layout/navBars/breadcrumb/setings.vue';
export default { export default {
name: 'App' name: 'App',
} components: { Setings },
provide() {
return {
reload: this.reload,
};
},
data() {
return {
isRouterAlive: true,
};
},
watch: {
// 监听路由 控制侧边栏显示 标记当前顶栏菜单(如需要)
$route(to, from) {
const onRoutes = to.meta.activeMenu ? to.meta.activeMenu : to.meta.path;
this.$store.commit('menu/setActivePath', onRoutes);
if (to.name == 'crud_crud') {
this.$store.state.user.oneLvRoutes.map((e) => {
if (e.path === to.path) {
to.meta.title = e.title;
}
});
}
//优惠券、秒杀活动
if (['creatProduct', 'CreatCoupon', 'CreatSeckill', 'CreatTag', 'border', 'articleCreat'].includes(to.name)) {
let route = to.matched[1].path.split(':')[0];
this.$store.state.user.oneLvRoutes.map((e) => {
if (route.indexOf(e.path) != -1) {
to.meta.title = `${e.title} ${to.params.id ? 'ID:' + to.params.id : ''}`;
}
});
}
//个人中心、修改密码
if (['MaintainUser', 'MaintainUpdate'].includes(to.name)) {
this.bus.$emit('oneCatName', '控制台');
}
},
},
mounted() {
this.openSetingsDrawer();
this.getLayoutThemeConfig();
},
methods: {
reload() {
this.isRouterAlive = false;
this.$nextTick(function () {
this.isRouterAlive = true;
});
},
// 布局配置弹窗打开
openSetingsDrawer() {
this.bus.$on('openSetingsDrawer', () => {
this.$refs.setingsRef.openDrawer();
});
},
// 获取缓存中的布局配置
getLayoutThemeConfig() {
if (Local.get('JavaPlatThemeConfigPrev')) {
this.$store.dispatch('themeConfig/setThemeConfig', Local.get('JavaPlatThemeConfigPrev'));
document.documentElement.style.cssText = Local.get('JavaPlatThemeConfigStyle');
} else {
Local.set('JavaPlatThemeConfigPrev', this.$store.state.themeConfig.themeConfig);
}
},
},
destroyed() {
this.bus.$off('openSetingsDrawer');
},
};
</script> </script>

View File

@@ -1,14 +1,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* 绑定产品 * 绑定产品
@@ -17,13 +17,13 @@ import request from '@/utils/request'
export function bindProduct(pram) { export function bindProduct(pram) {
const data = { const data = {
id: pram.id, id: pram.id,
productId: pram.productId productId: pram.productId,
} };
return request({ return request({
url: '/admin/article/bind/product', url: '/admin/article/bind/product',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
/** /**
@@ -33,13 +33,13 @@ export function bindProduct(pram) {
*/ */
export function DelArticle(pram) { export function DelArticle(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/article/delete', url: '/admin/article/delete',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
/** /**
@@ -49,13 +49,13 @@ export function DelArticle(pram) {
*/ */
export function InfoArticle(id) { export function InfoArticle(id) {
const data = { const data = {
id: id id: id,
} };
return request({ return request({
url: '/admin/article/info', url: '/admin/article/info',
method: 'get', method: 'get',
params: data params: data,
}) });
} }
/** /**
@@ -68,13 +68,13 @@ export function ListArticle(pram) {
keywords: pram.keywords, keywords: pram.keywords,
cid: pram.cid, cid: pram.cid,
page: pram.page, page: pram.page,
limit: pram.limit limit: pram.limit,
} };
return request({ return request({
url: '/admin/article/list', url: '/admin/article/list',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
/** /**
@@ -95,13 +95,13 @@ export function AddArticle(pram) {
sort: pram.sort, sort: pram.sort,
synopsis: pram.synopsis, synopsis: pram.synopsis,
title: pram.title, title: pram.title,
url: pram.url url: pram.url,
} };
return request({ return request({
url: '/admin/article/save', url: '/admin/article/save',
method: 'post', method: 'post',
data: data data: data,
}) });
} }
/** /**
@@ -122,12 +122,12 @@ export function UpdateArticle(pram) {
sort: pram.sort, sort: pram.sort,
synopsis: pram.synopsis, synopsis: pram.synopsis,
title: pram.title, title: pram.title,
url: pram.url url: pram.url,
} };
return request({ return request({
url: '/admin/article/update', url: '/admin/article/update',
method: 'post', method: 'post',
params: { id: pram.id }, params: { id: pram.id },
data: data data: data,
}) });
} }

View File

@@ -1,41 +1,32 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import req from './req' import request from '@/utils/request';
/** /**
* 查询授权 * 获取版权信息
* @param pram
*/ */
export function authCertQuery(prams) { export function copyrightInfoApi() {
const data = { return request({
domain_name:prams.host, url: '/admin/copyright/get/info',
label:22, method: 'get',
version:'2.0' });
}
return req({
url: document.location.protocol + '//authorize.crmeb.net/api/auth_cert_query',
// url: 'https://authorize.crmeb.net/api/auth_cert_query',
method: 'POST',
data
})
} }
/** /**
* 授权表单提交 * @description 账号登录检测
*/ */
export function authCertSubmit(data) { export function accountDetectionApi(data) {
return req({ return request({
url: document.location.protocol + '//authorize.crmeb.net/api/auth_apply', url: '/admin/login/account/detection',
// url: 'https://authorize.crmeb.net/api/auth_apply', method: 'post',
method: 'POST', data,
data });
}) }
}

View File

@@ -1,14 +1,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* 新增分类 * 新增分类
@@ -22,13 +22,13 @@ export function addCategroy(pram) {
sort: pram.sort, sort: pram.sort,
status: pram.status, status: pram.status,
type: pram.type, type: pram.type,
url: pram.url url: pram.url,
} };
return request({ return request({
url: '/admin/category/save', url: '/admin/category/save',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
/** /**
@@ -37,13 +37,13 @@ export function addCategroy(pram) {
*/ */
export function infoCategroy(pram) { export function infoCategroy(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/category/info', url: '/admin/category/info',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
/** /**
@@ -52,13 +52,13 @@ export function infoCategroy(pram) {
*/ */
export function deleteCategroy(pram) { export function deleteCategroy(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/category/delete', url: '/admin/category/delete',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
/** /**
@@ -72,14 +72,13 @@ export function listCategroy(pram) {
page: pram.page, page: pram.page,
pid: pram.pid, pid: pram.pid,
status: pram.status, status: pram.status,
type: pram.type type: pram.type,
};
}
return request({ return request({
url: '/admin/category/list', url: '/admin/category/list',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
/** /**
@@ -90,13 +89,13 @@ export function treeCategroy(pram) {
const data = { const data = {
type: pram.type, type: pram.type,
status: pram.status, status: pram.status,
name: pram.name name: pram.name,
} };
return request({ return request({
url: '/admin/category/list/tree', url: '/admin/category/list/tree',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
/** /**
@@ -112,13 +111,13 @@ export function updateCategroy(pram) {
status: pram.status, status: pram.status,
type: pram.type, type: pram.type,
url: pram.url, url: pram.url,
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/category/update', url: '/admin/category/update',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
/** /**
@@ -127,13 +126,13 @@ export function updateCategroy(pram) {
*/ */
export function categroyByIds(pram) { export function categroyByIds(pram) {
const data = { const data = {
ids: pram.ids ids: pram.ids,
} };
return request({ return request({
url: '/admin/category/list/ids', url: '/admin/category/list/ids',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
/** /**
@@ -143,8 +142,8 @@ export function categroyByIds(pram) {
export function categroyUpdateStatus(id) { export function categroyUpdateStatus(id) {
return request({ return request({
url: `/admin/category/updateStatus/${id}`, url: `/admin/category/updateStatus/${id}`,
method: 'GET' method: 'GET',
}) });
} }
/** /**
@@ -155,6 +154,6 @@ export function articleInfoApi(params) {
return request({ return request({
url: `/admin/article/info`, url: `/admin/article/info`,
method: 'GET', method: 'GET',
params params,
}) });
} }

View File

@@ -1,37 +1,37 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
// 配置管理 // 配置管理
export function configDelete(pram) { export function configDelete(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: 'admin/system/config/delete', url: 'admin/system/config/delete',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function configInfo(pram) { export function configInfo(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: 'admin/system/config/info', url: 'admin/system/config/info',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function configList(pram) { export function configList(pram) {
const data = { const data = {
@@ -51,13 +51,13 @@ export function configList(pram) {
value: pram.value, value: pram.value,
width: pram.width, width: pram.width,
page: pram.page, page: pram.page,
limit: pram.limit limit: pram.limit,
} };
return request({ return request({
url: 'admin/system/config/list', url: 'admin/system/config/list',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
export function configSave(pram) { export function configSave(pram) {
@@ -76,13 +76,13 @@ export function configSave(pram) {
type: pram.type, type: pram.type,
updateType: pram.updateType, updateType: pram.updateType,
value: pram.value, value: pram.value,
width: pram.width width: pram.width,
} };
return request({ return request({
url: 'admin/system/config/save', url: 'admin/system/config/save',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
export function configUpdate(pram) { export function configUpdate(pram) {
@@ -101,11 +101,11 @@ export function configUpdate(pram) {
type: pram.type, type: pram.type,
updateType: pram.updateType, updateType: pram.updateType,
value: pram.value, value: pram.value,
width: pram.width width: pram.width,
} };
return request({ return request({
url: 'admin/system/config/update', url: 'admin/system/config/update',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }

View File

@@ -1,38 +1,38 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
// 配置分类管理 // 配置分类管理
// 注意暂时没用到,使用无限极分类实现 // 注意暂时没用到,使用无限极分类实现
export function configTabDelete(pram) { export function configTabDelete(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: 'admin/system/config/tab/delete', url: 'admin/system/config/tab/delete',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function configTabInfo(pram) { export function configTabInfo(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: 'admin/system/config/tab/info', url: 'admin/system/config/tab/info',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function configTabList(pram) { export function configTabList(pram) {
@@ -45,13 +45,13 @@ export function configTabList(pram) {
parameter: pram.parameter, parameter: pram.parameter,
status: pram.status, status: pram.status,
page: pram.page, page: pram.page,
limit: pram.limit limit: pram.limit,
} };
return request({ return request({
url: 'admin/system/config/tab/list', url: 'admin/system/config/tab/list',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
export function configSave(pram) { export function configSave(pram) {
@@ -70,13 +70,13 @@ export function configSave(pram) {
type: pram.type, type: pram.type,
updateType: pram.updateType, updateType: pram.updateType,
value: pram.value, value: pram.value,
width: pram.width width: pram.width,
} };
return request({ return request({
url: 'admin/system/config/save', url: 'admin/system/config/save',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
export function configUpdate(pram) { export function configUpdate(pram) {
@@ -95,11 +95,11 @@ export function configUpdate(pram) {
type: pram.type, type: pram.type,
updateType: pram.updateType, updateType: pram.updateType,
value: pram.value, value: pram.value,
width: pram.width width: pram.width,
} };
return request({ return request({
url: 'admin/system/config/update', url: 'admin/system/config/update',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }

View File

@@ -1,69 +1,69 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
// 首页数据概览 // 首页数据概览
export function viewModelApi() { export function viewModelApi() {
return request({ return request({
url: '/admin/statistics/home/index', url: '/admin/statistics/home/index',
method: 'GET', method: 'GET',
}) });
} }
// 用户曲线图 // 用户曲线图
export function chartUserApi() { export function chartUserApi() {
return request({ return request({
url: '/admin/statistics/home/chart/user', url: '/admin/statistics/home/chart/user',
method: 'get' method: 'get',
}) });
} }
// 用户购买统计 // 用户购买统计
export function chartBuyApi() { export function chartBuyApi() {
return request({ return request({
url: '/admin/statistics/home/chart/user/buy', url: '/admin/statistics/home/chart/user/buy',
method: 'get' method: 'get',
}) });
} }
// 订单量趋势 30天 // 订单量趋势 30天
export function chartOrder30Api() { export function chartOrder30Api() {
return request({ return request({
url: '/admin/statistics/home/chart/order', url: '/admin/statistics/home/chart/order',
method: 'get' method: 'get',
}) });
} }
// 订单量趋势 月 // 订单量趋势 月
export function chartOrderMonthApi() { export function chartOrderMonthApi() {
return request({ return request({
url: '/admin/statistics/home/chart/order/month', url: '/admin/statistics/home/chart/order/month',
method: 'get' method: 'get',
}) });
} }
// 订单量趋势 周 // 订单量趋势 周
export function chartOrderWeekApi() { export function chartOrderWeekApi() {
return request({ return request({
url: '/admin/statistics/home/chart/order/week', url: '/admin/statistics/home/chart/order/week',
method: 'get' method: 'get',
}) });
} }
// 订单量趋势 年 // 订单量趋势 年
export function chartOrderYearApi() { export function chartOrderYearApi() {
return request({ return request({
url: '/admin/statistics/home/chart/order/year', url: '/admin/statistics/home/chart/order/year',
method: 'get' method: 'get',
}) });
} }
// 首页经营数据 // 首页经营数据
@@ -71,5 +71,5 @@ export function businessData() {
return request({ return request({
url: '/admin/statistics/home/operating/data', url: '/admin/statistics/home/operating/data',
method: 'get', method: 'get',
}) });
} }

13
admin/src/api/devise.js Normal file
View File

@@ -0,0 +1,13 @@
import request from '@/utils/request';
/**
* 提现申请 列表
* @param pram
*/
export function diyListApi(params) {
return request({
url: '/admin/pagediy/list',
method: 'get',
params,
});
}

View File

@@ -1,15 +1,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* @description 分销设置 -- 详情 * @description 分销设置 -- 详情
@@ -17,8 +16,8 @@ import request from '@/utils/request'
export function configApi() { export function configApi() {
return request({ return request({
url: '/admin/store/retail/spread/manage/get', url: '/admin/store/retail/spread/manage/get',
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -28,8 +27,8 @@ export function configUpdateApi(data) {
return request({ return request({
url: '/admin/store/retail/spread/manage/set', url: '/admin/store/retail/spread/manage/set',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -39,20 +38,20 @@ export function promoterListApi(params) {
return request({ return request({
url: '/admin/store/retail/list', url: '/admin/store/retail/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* @description 推广人 -- 列表 * @description 推广人 -- 列表
*/ */
export function spreadListApi( params, data) { export function spreadListApi(params, data) {
return request({ return request({
url: '/admin/store/retail/spread/userlist', url: '/admin/store/retail/spread/userlist',
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
@@ -63,8 +62,8 @@ export function spreadOrderListApi(params, data) {
url: '/admin/store/retail/spread/orderlist', url: '/admin/store/retail/spread/orderlist',
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
@@ -73,8 +72,8 @@ export function spreadOrderListApi(params, data) {
export function spreadClearApi(id) { export function spreadClearApi(id) {
return request({ return request({
url: `/admin/store/retail/spread/clean/${id}`, url: `/admin/store/retail/spread/clean/${id}`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -84,6 +83,6 @@ export function spreadStatisticsApi(params) {
return request({ return request({
url: `/admin/store/retail/statistics`, url: `/admin/store/retail/statistics`,
method: 'get', method: 'get',
params params,
}) });
} }

View File

@@ -1,14 +1,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* 提现申请 列表 * 提现申请 列表
@@ -18,8 +18,8 @@ export function applyListApi(params) {
return request({ return request({
url: '/admin/finance/apply/list', url: '/admin/finance/apply/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -30,8 +30,8 @@ export function applyBalanceApi(params) {
return request({ return request({
url: '/admin/finance/apply/balance', url: '/admin/finance/apply/balance',
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -42,8 +42,8 @@ export function applyUpdateApi(params) {
return request({ return request({
url: '/admin/finance/apply/update', url: '/admin/finance/apply/update',
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -55,8 +55,8 @@ export function applyStatusApi(params, data) {
url: '/admin/finance/apply/apply', url: '/admin/finance/apply/apply',
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
@@ -67,8 +67,8 @@ export function topUpLogListApi(params) {
return request({ return request({
url: '/admin/user/topUpLog/list', url: '/admin/user/topUpLog/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -78,8 +78,8 @@ export function topUpLogListApi(params) {
export function balanceApi() { export function balanceApi() {
return request({ return request({
url: '/admin/user/topUpLog/balance', url: '/admin/user/topUpLog/balance',
method: 'post' method: 'post',
}) });
} }
/** /**
@@ -90,8 +90,8 @@ export function topUpLogDeleteApi(params) {
return request({ return request({
url: '/admin/user/topUpLog/delete', url: '/admin/user/topUpLog/delete',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -102,8 +102,8 @@ export function refundApi(data) {
return request({ return request({
url: '/admin/user/topUpLog/refund', url: '/admin/user/topUpLog/refund',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -114,8 +114,8 @@ export function monitorListApi(params) {
return request({ return request({
url: '/admin/finance/founds/monitor/list', url: '/admin/finance/founds/monitor/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -125,8 +125,8 @@ export function monitorListApi(params) {
export function monitorListOptionApi() { export function monitorListOptionApi() {
return request({ return request({
url: `/admin/finance/founds/monitor/list/option`, url: `/admin/finance/founds/monitor/list/option`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -137,7 +137,6 @@ export function brokerageListApi(params) {
return request({ return request({
url: '/admin/finance/founds/monitor/brokerage/record', url: '/admin/finance/founds/monitor/brokerage/record',
method: 'get', method: 'get',
params params,
}) });
} }

View File

@@ -1,30 +1,30 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
// 城市列表 // 城市列表
export function cityList(data) { export function cityList(data) {
return request({ return request({
url: '/admin/system/city/list', url: '/admin/system/city/list',
method: 'get', method: 'get',
params: { ...data } params: { ...data },
}) });
} }
// 城市列表 // 城市列表
export function cityListTree() { export function cityListTree() {
return request({ return request({
url: '/admin/system/city/list/tree', url: '/admin/system/city/list/tree',
method: 'get' method: 'get',
}) });
} }
// 城市修改状态 // 城市修改状态
@@ -32,8 +32,8 @@ export function updateStatus(data) {
return request({ return request({
url: '/admin/system/city/update/status', url: '/admin/system/city/update/status',
method: 'post', method: 'post',
params: { ...data } params: { ...data },
}) });
} }
// 城市修改 // 城市修改
@@ -41,8 +41,8 @@ export function cityUpdate(data) {
return request({ return request({
url: '/admin/system/city/update', url: '/admin/system/city/update',
method: 'post', method: 'post',
params: { ...data } params: { ...data },
}) });
} }
// 城市详情 // 城市详情
@@ -50,8 +50,8 @@ export function cityInfo(data) {
return request({ return request({
url: '/admin/system/city/info', url: '/admin/system/city/info',
method: 'get', method: 'get',
params: { ...data } params: { ...data },
}) });
} }
// 物流公司列表 // 物流公司列表
@@ -59,16 +59,16 @@ export function expressList(data) {
return request({ return request({
url: '/admin/express/list', url: '/admin/express/list',
method: 'get', method: 'get',
params: { ...data } params: { ...data },
}) });
} }
// 同步物流公司 // 同步物流公司
export function expressSyncApi() { export function expressSyncApi() {
return request({ return request({
url: '/admin/express/sync/express', url: '/admin/express/sync/express',
method: 'post' method: 'post',
}) });
} }
// 物流公司修改状态 // 物流公司修改状态
@@ -76,8 +76,8 @@ export function expressUpdateShow(data) {
return request({ return request({
url: '/admin/express/update/show', url: '/admin/express/update/show',
method: 'post', method: 'post',
data data,
}) });
} }
// 物流公司 编辑 // 物流公司 编辑
@@ -85,8 +85,8 @@ export function expressUpdate(data) {
return request({ return request({
url: '/admin/express/update', url: '/admin/express/update',
method: 'post', method: 'post',
data data,
}) });
} }
// 新增物流公司 // 新增物流公司
@@ -94,8 +94,8 @@ export function expressSave(data) {
return request({ return request({
url: '/admin/express/save', url: '/admin/express/save',
method: 'post', method: 'post',
params: { ...data } params: { ...data },
}) });
} }
// 删除物流公司 // 删除物流公司
@@ -103,8 +103,8 @@ export function expressDelete(data) {
return request({ return request({
url: '/admin/express/delete', url: '/admin/express/delete',
method: 'GET', method: 'GET',
params: { ...data } params: { ...data },
}) });
} }
// 物流运费模板列表 // 物流运费模板列表
@@ -112,8 +112,8 @@ export function shippingTemplatesList(data) {
return request({ return request({
url: '/admin/express/shipping/templates/list', url: '/admin/express/shipping/templates/list',
method: 'get', method: 'get',
params: { ...data } params: { ...data },
}) });
} }
// 物流运费模板详情 // 物流运费模板详情
@@ -121,8 +121,8 @@ export function templateDetailApi(data) {
return request({ return request({
url: '/admin/express/shipping/templates/info', url: '/admin/express/shipping/templates/info',
method: 'get', method: 'get',
params: { ...data } params: { ...data },
}) });
} }
// 物流运费模板包邮 // 物流运费模板包邮
@@ -130,8 +130,8 @@ export function shippingFree(data) {
return request({ return request({
url: '/admin/express/shipping/free/list', url: '/admin/express/shipping/free/list',
method: 'get', method: 'get',
params: { ...data } params: { ...data },
}) });
} }
// 物流运费模板不包邮 // 物流运费模板不包邮
@@ -139,8 +139,8 @@ export function shippingRegion(data) {
return request({ return request({
url: 'admin/express/shipping/region/list', url: 'admin/express/shipping/region/list',
method: 'get', method: 'get',
params: { ...data } params: { ...data },
}) });
} }
// 物流运费模板新增 // 物流运费模板新增
@@ -148,8 +148,8 @@ export function shippingSave(data) {
return request({ return request({
url: 'admin/express/shipping/templates/save', url: 'admin/express/shipping/templates/save',
method: 'post', method: 'post',
data: data data: data,
}) });
} }
// 物流运费模板更新 // 物流运费模板更新
@@ -158,8 +158,8 @@ export function shippingUpdate(data, id) {
url: 'admin/express/shipping/templates/update', url: 'admin/express/shipping/templates/update',
method: 'post', method: 'post',
data: data, data: data,
params: { ...id } params: { ...id },
}) });
} }
// 物流运费模板删除 // 物流运费模板删除
@@ -167,8 +167,8 @@ export function shippingDetete(data) {
return request({ return request({
url: 'admin/express/shipping/templates/delete', url: 'admin/express/shipping/templates/delete',
method: 'get', method: 'get',
params: data params: data,
}) });
} }
// 物流公司详情 // 物流公司详情
@@ -176,6 +176,6 @@ export function expressInfo(data) {
return request({ return request({
url: 'admin/express/info', url: 'admin/express/info',
method: 'get', method: 'get',
params: { ...data } params: { ...data },
}) });
} }

View File

@@ -1,14 +1,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* 优惠券 列表 * 优惠券 列表
@@ -18,8 +18,8 @@ export function marketingListApi(params) {
return request({ return request({
url: '/admin/marketing/coupon/list', url: '/admin/marketing/coupon/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -30,8 +30,8 @@ export function marketingSendApi(params) {
return request({ return request({
url: '/admin/marketing/coupon/send/list', url: '/admin/marketing/coupon/send/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -42,8 +42,8 @@ export function couponInfoApi(params) {
return request({ return request({
url: '/admin/marketing/coupon/info', url: '/admin/marketing/coupon/info',
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -54,8 +54,8 @@ export function couponUserApi(params) {
return request({ return request({
url: '/admin/marketing/coupon/user/receive', url: '/admin/marketing/coupon/user/receive',
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -66,8 +66,8 @@ export function couponSaveApi(data) {
return request({ return request({
url: '/admin/marketing/coupon/save', url: '/admin/marketing/coupon/save',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -78,8 +78,8 @@ export function couponIssueStatusApi(params) {
return request({ return request({
url: '/admin/marketing/coupon/update/status', url: '/admin/marketing/coupon/update/status',
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -90,8 +90,8 @@ export function couponDeleteApi(params) {
return request({ return request({
url: '/admin/marketing/coupon/delete', url: '/admin/marketing/coupon/delete',
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -102,8 +102,8 @@ export function couponUserListApi(params) {
return request({ return request({
url: '/admin/marketing/coupon/user/list', url: '/admin/marketing/coupon/user/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -115,8 +115,8 @@ export function integralListApi(params, data) {
url: '/admin/user/integral/list', url: '/admin/user/integral/list',
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
@@ -127,8 +127,8 @@ export function seckillListApi(params) {
return request({ return request({
url: '/admin/store/seckill/manger/list', url: '/admin/store/seckill/manger/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -139,8 +139,8 @@ export function seckillInfoApi(params) {
return request({ return request({
url: '/admin/store/seckill/manger/info', url: '/admin/store/seckill/manger/info',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -151,8 +151,8 @@ export function seckillSaveApi(data) {
return request({ return request({
url: '/admin/store/seckill/manger/save', url: '/admin/store/seckill/manger/save',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -164,8 +164,8 @@ export function seckillUpdateApi(params, data) {
url: '/admin/store/seckill/manger/update', url: '/admin/store/seckill/manger/update',
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
@@ -176,11 +176,10 @@ export function seckillDeleteApi(params) {
return request({ return request({
url: '/admin/store/seckill/manger/delete', url: '/admin/store/seckill/manger/delete',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* 秒杀商品 列表 * 秒杀商品 列表
* @param pram * @param pram
@@ -189,8 +188,8 @@ export function seckillStoreListApi(params) {
return request({ return request({
url: '/admin/store/seckill/list', url: '/admin/store/seckill/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -201,8 +200,8 @@ export function seckillStoreInfoApi(params) {
return request({ return request({
url: '/admin/store/seckill/info', url: '/admin/store/seckill/info',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -213,8 +212,8 @@ export function seckillStoreSaveApi(data) {
return request({ return request({
url: '/admin/store/seckill/save', url: '/admin/store/seckill/save',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -226,8 +225,8 @@ export function seckillStoreUpdateApi(params, data) {
url: '/admin/store/seckill/update', url: '/admin/store/seckill/update',
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
@@ -238,8 +237,8 @@ export function seckillStoreDeleteApi(params) {
return request({ return request({
url: '/admin/store/seckill/delete', url: '/admin/store/seckill/delete',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -249,19 +248,19 @@ export function seckillStoreStatusApi(params) {
return request({ return request({
url: '/admin/store/seckill/update/status', url: '/admin/store/seckill/update/status',
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
* 秒杀配置 修改状态 * 秒杀配置 修改状态
*/ */
export function seckillConfigStatusApi(id,params) { export function seckillConfigStatusApi(id, params) {
return request({ return request({
url: `/admin/store/seckill/manger/update/status/${id}`, url: `/admin/store/seckill/manger/update/status/${id}`,
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -271,8 +270,8 @@ export function bargainListApi(params) {
return request({ return request({
url: `/admin/store/bargain/list`, url: `/admin/store/bargain/list`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -282,8 +281,8 @@ export function bargainSaveApi(data) {
return request({ return request({
url: `/admin/store/bargain/save`, url: `/admin/store/bargain/save`,
method: 'POST', method: 'POST',
data data,
}) });
} }
/** /**
@@ -293,8 +292,8 @@ export function bargainInfoApi(params) {
return request({ return request({
url: `/admin/store/bargain/info`, url: `/admin/store/bargain/info`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -305,8 +304,8 @@ export function bargainUpdateApi(params, data) {
url: `/admin/store/bargain/update`, url: `/admin/store/bargain/update`,
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
@@ -316,8 +315,8 @@ export function bargainDeleteApi(params) {
return request({ return request({
url: `/admin/store/bargain/delete`, url: `/admin/store/bargain/delete`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -326,8 +325,8 @@ export function bargainDeleteApi(params) {
export function bargainOrderPinkApi(id) { export function bargainOrderPinkApi(id) {
return request({ return request({
url: `/admin/store/bargain/bargain_list/${id}`, url: `/admin/store/bargain/bargain_list/${id}`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -337,8 +336,8 @@ export function bargainListListApi(params) {
return request({ return request({
url: `/admin/store/bargain/bargain_list`, url: `/admin/store/bargain/bargain_list`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -348,8 +347,8 @@ export function bargainStatusApi(params) {
return request({ return request({
url: `/admin/store/bargain/update/status`, url: `/admin/store/bargain/update/status`,
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -359,8 +358,8 @@ export function combinationListApi(params) {
return request({ return request({
url: `/admin/store/combination/list`, url: `/admin/store/combination/list`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -370,8 +369,8 @@ export function combinationDeleteApi(params) {
return request({ return request({
url: `/admin/store/combination/delete`, url: `/admin/store/combination/delete`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -381,20 +380,20 @@ export function combinationSaveApi(data) {
return request({ return request({
url: `/admin/store/combination/save`, url: `/admin/store/combination/save`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
* 拼团商品 修改 * 拼团商品 修改
*/ */
export function combinationUpdateApi(params,data) { export function combinationUpdateApi(params, data) {
return request({ return request({
url: `/admin/store/combination/update`, url: `/admin/store/combination/update`,
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
@@ -404,8 +403,8 @@ export function combinationInfoApi(params) {
return request({ return request({
url: `/admin/store/combination/info`, url: `/admin/store/combination/info`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -415,8 +414,8 @@ export function combinationStatusApi(params) {
return request({ return request({
url: `/admin/store/combination/update/status`, url: `/admin/store/combination/update/status`,
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -426,8 +425,8 @@ export function combineListApi(params) {
return request({ return request({
url: `/admin/store/combination/combine/list`, url: `/admin/store/combination/combine/list`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -437,8 +436,8 @@ export function combineStatisticsApi(params) {
return request({ return request({
url: `/admin/store/combination/statistics`, url: `/admin/store/combination/statistics`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -447,8 +446,8 @@ export function combineStatisticsApi(params) {
export function combineOrderPinkApi(id) { export function combineOrderPinkApi(id) {
return request({ return request({
url: `/admin/store/combination/order_pink/${id}`, url: `/admin/store/combination/order_pink/${id}`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -458,8 +457,8 @@ export function exportBargainApi(params) {
return request({ return request({
url: `/admin/export/excel/bargain/product`, url: `/admin/export/excel/bargain/product`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -469,112 +468,55 @@ export function exportcombiantionApi(params) {
return request({ return request({
url: `/admin/export/excel/combiantion/product`, url: `/admin/export/excel/combiantion/product`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* 视频号 草稿列表 * @description 活动样式
*/ */
export function draftListApi(params) { export function atuosphereList(params) {
return request({ return request({
url: `/admin/pay/component/product/draft/list`, url: `/admin/activitystyle/list`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* 视频号 商品列表 * @description 活动样式
*/ */
export function videoProductListApi(params) { export function atmosphereStatusApi(data) {
return request({ return request({
url: `/admin/pay/component/product/list`, url: `/admin/activitystyle/status`,
method: 'post',
data,
});
}
/**
* @description 活动样式
*/
export function atmosphereDelete(params) {
return request({
url: `/admin/activitystyle/delete`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* 视频号 类目 * @description 氛围图 -- 选择商品列表 氛围图、活动边框公用同一接口type传值判断
*/ */
export function catListApi(params) { export function selectProductList(data) {
return request({ return request.get(`marketing/spu/lst`, data);
url: `/admin/pay/component/cat/get/list`,
method: 'get'
})
} }
/** /**
* 视频号 添加 * @description 氛围图 -- 创建氛围图
*/ */
export function videoAddApi(data) { export function createAtuosphere(data) {
return request({ return request.post(`admin/activitystyle/save`, data);
url: `/admin/pay/component/product/add`,
method: 'post',
data
})
} }
/** /**
* 视频号 编辑 * @description 氛围图 -- 编辑氛围图
*/ */
export function videoUpdateApi(data) { export function atuosphereUpdateApi(data) {
return request({ return request.post(`admin/activitystyle/update`, data);
url: `/admin/pay/component/product/update`,
method: 'post',
data
})
}
/**
* 视频号 上架
*/
export function videoUpApi(proId) {
return request({
url: `/admin/pay/component/product/listing/${proId}`,
method: 'post'
})
}
/**
* 视频号 下架
*/
export function videoDownApi(proId) {
return request({
url: `/admin/pay/component/product/delisting/${proId}`,
method: 'post'
})
}
/**
* 视频号 删除
*/
export function videoDelApi(proId) {
return request({
url: `/admin/pay/component/product/delete/${proId}`,
method: 'post'
})
}
/**
* 视频号 草稿商品详情
*/
export function draftInfoApi(id) {
return request({
url: `/admin/pay/component/product/draft/get/${id}`,
method: 'get'
})
}
/**
* 视频号 草稿商品编辑
*/
export function draftUpdateApi(data) {
return request({
url: `/admin/pay/component/product/update`,
method: 'post',
data
})
} }

View File

@@ -1,14 +1,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* 订单 列表 * 订单 列表
@@ -18,8 +18,8 @@ export function orderListApi(params) {
return request({ return request({
url: '/admin/store/order/list', url: '/admin/store/order/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -30,8 +30,8 @@ export function orderStatusNumApi(params) {
return request({ return request({
url: '/admin/store/order/status/num', url: '/admin/store/order/status/num',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -42,8 +42,8 @@ export function orderListDataApi(params) {
return request({ return request({
url: '/admin/store/order/list/data', url: '/admin/store/order/list/data',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* 订单 删除 * 订单 删除
@@ -53,8 +53,8 @@ export function orderDeleteApi(params) {
return request({ return request({
url: '/admin/store/order/delete', url: '/admin/store/order/delete',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -66,8 +66,8 @@ export function orderUpdateApi(data, params) {
url: '/admin/store/order/update', url: '/admin/store/order/update',
method: 'post', method: 'post',
data, data,
params params,
}) });
} }
/** /**
@@ -78,8 +78,8 @@ export function orderLogApi(params) {
return request({ return request({
url: '/admin/store/order/status/list', url: '/admin/store/order/status/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -90,8 +90,8 @@ export function orderDetailApi(params) {
return request({ return request({
url: '/admin/store/order/info', url: '/admin/store/order/info',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -102,8 +102,8 @@ export function orderMarkApi(params) {
return request({ return request({
url: '/admin/store/order/mark', url: '/admin/store/order/mark',
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -114,8 +114,8 @@ export function orderSendApi(data) {
return request({ return request({
url: '/admin/store/order/send', url: '/admin/store/order/send',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -126,8 +126,8 @@ export function orderRefuseApi(params) {
return request({ return request({
url: '/admin/store/order/refund/refuse', url: '/admin/store/order/refund/refuse',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -138,8 +138,8 @@ export function orderRefundApi(params) {
return request({ return request({
url: '/admin/store/order/refund', url: '/admin/store/order/refund',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -149,8 +149,8 @@ export function orderRefundApi(params) {
export function writeUpdateApi(vCode) { export function writeUpdateApi(vCode) {
return request({ return request({
url: `/admin/store/order/writeUpdate/${vCode}`, url: `/admin/store/order/writeUpdate/${vCode}`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -160,8 +160,8 @@ export function writeUpdateApi(vCode) {
export function writeConfirmApi(vCode) { export function writeConfirmApi(vCode) {
return request({ return request({
url: `/admin/store/order/writeConfirm/${vCode}`, url: `/admin/store/order/writeConfirm/${vCode}`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -170,8 +170,8 @@ export function writeConfirmApi(vCode) {
export function orderStatisticsApi() { export function orderStatisticsApi() {
return request({ return request({
url: `/admin/store/order/statistics`, url: `/admin/store/order/statistics`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -181,8 +181,8 @@ export function statisticsDataApi(params) {
return request({ return request({
url: `/admin/store/order/statisticsData`, url: `/admin/store/order/statisticsData`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -192,8 +192,8 @@ export function updatePriceApi(data) {
return request({ return request({
url: `admin/store/order/update/price`, url: `admin/store/order/update/price`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -203,8 +203,8 @@ export function orderTimeApi(params) {
return request({ return request({
url: `/admin/store/order/time`, url: `/admin/store/order/time`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -213,8 +213,8 @@ export function orderTimeApi(params) {
export function sheetInfoApi() { export function sheetInfoApi() {
return request({ return request({
url: `/admin/store/order/sheet/info`, url: `/admin/store/order/sheet/info`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -224,8 +224,8 @@ export function getLogisticsInfoApi(params) {
return request({ return request({
url: `/admin/store/order/getLogisticsInfo`, url: `/admin/store/order/getLogisticsInfo`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -234,8 +234,8 @@ export function getLogisticsInfoApi(params) {
export function companyGetListApi() { export function companyGetListApi() {
return request({ return request({
url: `/admin/pay/component/delivery/company/get/list`, url: `/admin/pay/component/delivery/company/get/list`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -245,16 +245,27 @@ export function videoSendApi(data) {
return request({ return request({
url: `/admin/store/order/video/send`, url: `/admin/store/order/video/send`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
*打印小票 *打印小票
*/ */
export function orderPrint(id) { export function orderPrint(id) {
return request({ return request({
url: `/admin/yly/print/${id}`, url: `/admin/yly/print/${id}`,
method: 'get', method: 'get',
}) });
}
/**
*更改订单运单号
*/
export function updateTrackingNumberApi(data) {
return request({
url: `/admin/store/order/update/tracking/number`,
method: 'post',
data,
});
} }

90
admin/src/api/pagediy.js Normal file
View File

@@ -0,0 +1,90 @@
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import request from '@/utils/request';
/**
* 列表
*/
export function pagediyListApi(params) {
return request({
url: '/admin/pagediy/list',
method: 'get',
params,
});
}
/**
* 新增
*/
export function pagediySaveApi(data) {
return request({
url: '/admin/pagediy/save',
method: 'post',
data,
});
}
/**
* 更新
*/
export function pagediyUpdateApi(data) {
return request({
url: '/admin/pagediy/update',
method: 'post',
data,
});
}
/**
*详情
*/
export function pagediyInfoApi(id) {
return request({
url: `/admin/pagediy/info/${id}`,
method: 'get',
});
}
/**
*删除
*/
export function pagediyDeleteApi(params) {
return request({
url: `/admin/pagediy/delete`,
method: 'get',
params,
});
}
/**
*设为首页
*/
export function pagediySetdefaultApi(id) {
return request({
url: `/admin/pagediy/setdefault/${id}`,
method: 'get',
});
}
/**
*获取首页
*/
export function pagediyGetSetHome(id) {
return request({
url: `/admin/pagediy/getdefault`,
method: 'get',
});
}
/**
* 获取小程序二维码
* @returns {*}
*/
export function wechatQrcodeApi(data) {
return request({
url: `/public/wechat/mini/get/qrcode`,
method: 'post',
data,
});
}

View File

@@ -1,33 +1,32 @@
import axios from 'axios' import axios from 'axios';
const service = axios.create({ const service = axios.create({
timeout: 40000, timeout: 40000,
}) });
service.interceptors.request.use( service.interceptors.request.use(
config => { (config) => {
return config return config;
}, },
error => { (error) => {
Promise.reject(error) Promise.reject(error);
} },
) );
// response interceptor // response interceptor
service.interceptors.response.use( service.interceptors.response.use(
response => { (response) => {
const res = response const res = response;
if (res.status !== 200 && res.status !== 401) { if (res.status !== 200 && res.status !== 401) {
Message({ Message({
message: res.data.msg || 'Error', message: res.data.msg || 'Error',
type: 'error', type: 'error',
duration: 5 * 1000 duration: 5 * 1000,
}) });
return Promise.reject() return Promise.reject();
}else { } else {
return res.data return res.data;
} }
}, },
error => { (error) => {},
} );
) export default service;
export default service

View File

@@ -1,63 +1,63 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* 新增 * 新增
* @param * @param
*/ */
export function addRole(pram) { export function addRole(pram) {
const data = { const data = {
level: pram.level, level: pram.level,
roleName: pram.roleName, roleName: pram.roleName,
status: pram.status, status: pram.status,
rules: pram.rules rules: pram.rules,
} };
// data.rules = pram.rules.join(',') // data.rules = pram.rules.join(',')
return request({ return request({
url: '/admin/system/role/save', url: '/admin/system/role/save',
method: 'POST', method: 'POST',
data: data data: data,
}) });
} }
/** /**
* 删除 * 删除
* @param * @param
*/ */
export function delRole(pram) { export function delRole(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/system/role/delete', url: '/admin/system/role/delete',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
/** /**
* 详情 * 详情
* @param * @param
*/ */
export function getInfo(pram) { export function getInfo(pram) {
return request({ return request({
url: `/admin/system/role/info/${pram}`, url: `/admin/system/role/info/${pram}`,
method: 'GET', method: 'GET',
}) });
} }
/** /**
* 分页列表 * 分页列表
* @param * @param
*/ */
export function getRoleList(pram) { export function getRoleList(pram) {
const data = { const data = {
@@ -68,53 +68,53 @@ export function getRoleList(pram) {
limit: pram.limit, limit: pram.limit,
roleName: pram.roleName, roleName: pram.roleName,
rules: pram.rules, rules: pram.rules,
status: pram.status status: pram.status,
} };
return request({ return request({
url: '/admin/system/role/list', url: '/admin/system/role/list',
method: 'get', method: 'get',
params: data params: data,
}) });
} }
/** /**
* 修改 * 修改
* @param * @param
*/ */
export function updateRole(pram) { export function updateRole(pram) {
const data = { const data = {
id: pram.id, id: pram.id,
roleName: pram.roleName, roleName: pram.roleName,
rules: pram.rules, rules: pram.rules,
status: pram.status status: pram.status,
} };
return request({ return request({
url: '/admin/system/role/update', url: '/admin/system/role/update',
method: 'post', method: 'post',
params: {id: pram.id}, params: { id: pram.id },
data: data data: data,
}) });
} }
/** /**
* 修改身份状态 * 修改身份状态
* @param * @param
*/ */
export function updateRoleStatus(pram) { export function updateRoleStatus(pram) {
return request({ return request({
url: '/admin/system/role/updateStatus', url: '/admin/system/role/updateStatus',
method: 'get', method: 'get',
params: {id: pram.id,status:pram.status}, params: { id: pram.id, status: pram.status },
}) });
} }
/** /**
* 缓存菜单 * 缓存菜单
* @param * @param
*/ */
export function menuCacheList(pram) { export function menuCacheList(pram) {
return request({ return request({
url: '/admin/system/menu/cache/tree', url: '/admin/system/menu/cache/tree',
method: 'get', method: 'get',
}) });
} }

View File

@@ -1,14 +1,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* 角色详情 * 角色详情
@@ -17,7 +17,7 @@ export function getRoleById(pram) {
return request({ return request({
url: `/admin/system/role/info/${pram.roles}`, url: `/admin/system/role/info/${pram.roles}`,
method: 'GET', method: 'GET',
}) });
} }
/** /**
@@ -27,6 +27,6 @@ export function getRoleById(pram) {
export function menuListApi() { export function menuListApi() {
return request({ return request({
url: '/admin/getMenus', url: '/admin/getMenus',
method: 'GET' method: 'GET',
}) });
} }

94
admin/src/api/schedule.js Normal file
View File

@@ -0,0 +1,94 @@
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import request from '@/utils/request';
// 定时任务列表
export function jobList() {
return request({
url: '/admin/schedule/job/list',
method: 'get',
});
}
// 定时任务日志分页列表
export function jobLogList(data) {
return request({
url: '/admin/schedule/job/log/list',
method: 'get',
params: { ...data },
});
}
// 添加定时任务
export function scheduleJobAdd(pram) {
const data = {
jobId: pram.jobId,
beanName: pram.beanName,
cronExpression: pram.cronExpression,
methodName: pram.methodName,
params: pram.params,
remark: pram.remark,
};
return request({
url: '/admin/schedule/job/add',
method: 'post',
data: data,
});
}
// 删除定时任务
export function scheduleJobDelete(id) {
return request({
url: `/admin/schedule/job/delete/${id}`,
method: 'post',
});
}
// 启动定时任务
export function scheduleJobStart(id) {
return request({
url: `/admin/schedule/job/start/${id}`,
method: 'post',
});
}
// 暂停定时任务
export function scheduleJobSuspend(id) {
return request({
url: `/admin/schedule/job/suspend/${id}`,
method: 'post',
});
}
// 立即执行定时任务(一次)暂停定时任务
export function scheduleJobTrig(id) {
return request({
url: `/admin/schedule/job/trig/${id}`,
method: 'post',
});
}
// 定时任务编辑
export function scheduleJobUpdate(pram) {
const data = {
jobId: pram.jobId,
beanName: pram.beanName,
cronExpression: pram.cronExpression,
methodName: pram.methodName,
params: pram.params,
remark: pram.remark,
};
return request({
url: '/admin/schedule/job/update',
method: 'post',
data: { ...data },
});
}

View File

@@ -1,14 +1,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* @description 短信发送记录 -- 列表 * @description 短信发送记录 -- 列表
*/ */
@@ -16,8 +16,8 @@ export function smsLstApi(params) {
return request({ return request({
url: '/admin/pass/user/record', url: '/admin/pass/user/record',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* @description 短信账户 -- 登录 * @description 短信账户 -- 登录
@@ -26,8 +26,8 @@ export function configApi(data) {
return request({ return request({
url: '/admin/pass/login', url: '/admin/pass/login',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
* @description 短信账户 -- 获取验证码 * @description 短信账户 -- 获取验证码
@@ -36,8 +36,8 @@ export function captchaApi(params) {
return request({ return request({
url: `/admin/pass/sendUserCode`, url: `/admin/pass/sendUserCode`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* @description 短信账户 -- 注册 * @description 短信账户 -- 注册
@@ -46,8 +46,8 @@ export function registerApi(data) {
return request({ return request({
url: '/admin/pass/register', url: '/admin/pass/register',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
* @description 短信账户 -- 是否登录 * @description 短信账户 -- 是否登录
@@ -55,8 +55,8 @@ export function registerApi(data) {
export function isLoginApi() { export function isLoginApi() {
return request({ return request({
url: '/admin/pass/isLogin', url: '/admin/pass/isLogin',
method: 'get' method: 'get',
}) });
} }
/** /**
* @description 短信账户 -- 退出登录 * @description 短信账户 -- 退出登录
@@ -64,8 +64,8 @@ export function isLoginApi() {
export function logoutApi() { export function logoutApi() {
return request({ return request({
url: '/admin/pass/logout', url: '/admin/pass/logout',
method: 'get' method: 'get',
}) });
} }
/** /**
* @description 短信账户 -- 剩余条数 * @description 短信账户 -- 剩余条数
@@ -73,8 +73,8 @@ export function logoutApi() {
export function smsNumberApi() { export function smsNumberApi() {
return request({ return request({
url: '/admin/sms/logout', url: '/admin/sms/logout',
method: 'get' method: 'get',
}) });
} }
/** /**
* @description 短信模板 -- 列表 * @description 短信模板 -- 列表
@@ -83,8 +83,8 @@ export function smsTempLstApi(params) {
return request({ return request({
url: '/admin/sms/temps', url: '/admin/sms/temps',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* @description 短信购买 -- 支付套餐 * @description 短信购买 -- 支付套餐
@@ -93,8 +93,8 @@ export function smsPriceApi(params) {
return request({ return request({
url: '/admin/pass/meal/list', url: '/admin/pass/meal/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* @description 短信购买 -- 支付码 * @description 短信购买 -- 支付码
@@ -103,8 +103,8 @@ export function payCodeApi(data) {
return request({ return request({
url: '/admin/pass/meal/code', url: '/admin/pass/meal/code',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
* @description 短信模板 -- 添加表单 * @description 短信模板 -- 添加表单
@@ -113,8 +113,8 @@ export function tempCreateApi(data) {
return request({ return request({
url: '/admin/sms/temp/apply', url: '/admin/sms/temp/apply',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
* @description 短信 -- 用户信息 * @description 短信 -- 用户信息
@@ -122,8 +122,8 @@ export function tempCreateApi(data) {
export function smsInfoApi() { export function smsInfoApi() {
return request({ return request({
url: '/admin/pass/info', url: '/admin/pass/info',
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -133,8 +133,8 @@ export function smsSaveApi(params) {
return request({ return request({
url: '/admin/sms/config/save', url: '/admin/sms/config/save',
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -144,8 +144,8 @@ export function updatePasswordApi(data) {
return request({ return request({
url: '/admin/pass/update/password', url: '/admin/pass/update/password',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -155,8 +155,8 @@ export function updateHoneApi(data) {
return request({ return request({
url: '/admin/pass/update/phone', url: '/admin/pass/update/phone',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -166,8 +166,8 @@ export function serviceOpenApi(data) {
return request({ return request({
url: '/admin/pass/service/open', url: '/admin/pass/service/open',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -177,8 +177,8 @@ export function exportTempApi(params) {
return request({ return request({
url: '/admin/express/template', url: '/admin/express/template',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -188,8 +188,8 @@ export function expressAllApi(params) {
return request({ return request({
url: 'admin/express/all', url: 'admin/express/all',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -199,8 +199,8 @@ export function smsSignApi(data) {
return request({ return request({
url: 'admin/sms/modify/sign', url: 'admin/sms/modify/sign',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -210,6 +210,16 @@ export function phoneValidatorApi(data) {
return request({ return request({
url: 'admin/pass/update/phone/validator', url: 'admin/pass/update/phone/validator',
method: 'post', method: 'post',
data data,
}) });
}
/**
* @description 一号通 商家寄件 快递列表
*/
export function shipmentExpressApi() {
return request({
url: '/admin/pass/shipment/express',
method: 'get',
});
} }

View File

@@ -1,14 +1,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* 商品统计数据 * 商品统计数据
@@ -18,133 +18,133 @@ export function productDataApi(params) {
return request({ return request({
url: `/admin/statistics/product/data`, url: `/admin/statistics/product/data`,
method: 'GET', method: 'GET',
params params,
}) });
} }
/** /**
* 商品排行数据 * 商品排行数据
* @param pram * @param pram
*/ */
export function productRankApi(params) { export function productRankApi(params) {
return request({ return request({
url: `/admin/statistics/product/ranking`, url: `/admin/statistics/product/ranking`,
method: 'GET', method: 'GET',
params params,
}) });
} }
/** /**
* 商品趋势数据 * 商品趋势数据
* @param pram * @param pram
*/ */
export function productTrendApi(params) { export function productTrendApi(params) {
return request({ return request({
url: `/admin/statistics/product/trend`, url: `/admin/statistics/product/trend`,
method: 'GET', method: 'GET',
params params,
}) });
} }
/** /**
* 交易统计数据 * 交易统计数据
* @param pram * @param pram
*/ */
export function tradeDataApi() { export function tradeDataApi() {
return request({ return request({
url: `/admin/statistics/trade/data`, url: `/admin/statistics/trade/data`,
method: 'GET', method: 'GET',
}) });
} }
/** /**
* 交易概览 * 交易概览
* @param pram * @param pram
*/ */
export function tradeOverviewApi(params) { export function tradeOverviewApi(params) {
return request({ return request({
url: `/admin/statistics/trade/overview`, url: `/admin/statistics/trade/overview`,
method: 'GET', method: 'GET',
params params,
}) });
} }
/** /**
* 交易趋势 * 交易趋势
* @param pram * @param pram
*/ */
export function tradeTrendApi(params) { export function tradeTrendApi(params) {
return request({ return request({
url: `/admin/statistics/trade/trend`, url: `/admin/statistics/trade/trend`,
method: 'GET', method: 'GET',
params params,
}) });
} }
/** /**
* 用户总数据 * 用户总数据
* @param pram * @param pram
*/ */
export function userTotalData() { export function userTotalData() {
return request({ return request({
url: `/admin/statistics/user/total/data`, url: `/admin/statistics/user/total/data`,
method: 'GET' method: 'GET',
}) });
} }
/** /**
* 用户区域数据 * 用户区域数据
* @param pram * @param pram
*/ */
export function userAreaData() { export function userAreaData() {
return request({ return request({
url: `/admin/statistics/user/area`, url: `/admin/statistics/user/area`,
method: 'GET' method: 'GET',
}) });
} }
/** /**
* 用户渠道数据 * 用户渠道数据
* @param pram * @param pram
*/ */
export function userChannelData() { export function userChannelData() {
return request({ return request({
url: `/admin/statistics/user/channel`, url: `/admin/statistics/user/channel`,
method: 'GET' method: 'GET',
}) });
} }
/** /**
* 用户概览 * 用户概览
* @param pram * @param pram
*/ */
export function userOverviewData(params) { export function userOverviewData(params) {
return request({ return request({
url: `/admin/statistics/user/overview`, url: `/admin/statistics/user/overview`,
method: 'GET', method: 'GET',
params params,
}) });
} }
/** /**
* 用户性别数据 * 用户性别数据
* @param pram * @param pram
*/ */
export function userSexData() { export function userSexData() {
return request({ return request({
url: `/admin/statistics/user/sex`, url: `/admin/statistics/user/sex`,
method: 'GET', method: 'GET',
}) });
} }
/** /**
* 用户概览列表 * 用户概览列表
* @param pram * @param pram
*/ */
export function userOverviewListApi(params) { export function userOverviewListApi(params) {
return request({ return request({
url: `/admin/statistics/user/overview/list`, url: `/admin/statistics/user/overview/list`,
method: 'GET', method: 'GET',
params params,
}) });
} }

View File

@@ -1,14 +1,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* 新增商品 * 新增商品
@@ -18,8 +18,8 @@ export function productCreateApi(data) {
return request({ return request({
url: '/admin/store/product/save', url: '/admin/store/product/save',
method: 'POST', method: 'POST',
data data,
}) });
} }
/** /**
@@ -30,8 +30,8 @@ export function productUpdateApi(data) {
return request({ return request({
url: '/admin/store/product/update', url: '/admin/store/product/update',
method: 'POST', method: 'POST',
data data,
}) });
} }
/** /**
@@ -41,8 +41,8 @@ export function productUpdateApi(data) {
export function productDetailApi(id) { export function productDetailApi(id) {
return request({ return request({
url: `/admin/store/product/info/${id}`, url: `/admin/store/product/info/${id}`,
method: 'GET' method: 'GET',
}) });
} }
/** /**
@@ -53,18 +53,19 @@ export function productDeleteApi(id, type) {
return request({ return request({
url: `/admin/store/product/delete/${id}`, url: `/admin/store/product/delete/${id}`,
method: 'get', method: 'get',
params:{type:type} params: { type: type },
}) });
} }
/** /**
* 商品列表 表头数量 * 商品列表 表头数量
*/ */
export function productHeadersApi() { export function productHeadersApi(params) {
return request({ return request({
url: '/admin/store/product/tabs/headers', url: '/admin/store/product/tabs/headers',
method: 'GET' method: 'GET',
}) params,
});
} }
/** /**
@@ -75,8 +76,8 @@ export function productLstApi(params) {
return request({ return request({
url: '/admin/store/product/list', url: '/admin/store/product/list',
method: 'GET', method: 'GET',
params params,
}) });
} }
/** /**
* 商品分类 * 商品分类
@@ -86,8 +87,8 @@ export function categoryApi(params) {
return request({ return request({
url: '/admin/category/list/tree', url: '/admin/category/list/tree',
method: 'GET', method: 'GET',
params params,
}) });
} }
/** /**
* 商品上架 * 商品上架
@@ -96,8 +97,8 @@ export function categoryApi(params) {
export function putOnShellApi(id) { export function putOnShellApi(id) {
return request({ return request({
url: `/admin/store/product/putOnShell/${id}`, url: `/admin/store/product/putOnShell/${id}`,
method: 'GET' method: 'GET',
}) });
} }
/** /**
* 商品下架 * 商品下架
@@ -106,8 +107,8 @@ export function putOnShellApi(id) {
export function offShellApi(id) { export function offShellApi(id) {
return request({ return request({
url: `/admin/store/product/offShell/${id}`, url: `/admin/store/product/offShell/${id}`,
method: 'GET' method: 'GET',
}) });
} }
/** /**
* 商品规格 列表 * 商品规格 列表
@@ -117,8 +118,19 @@ export function templateListApi(params) {
return request({ return request({
url: '/admin/store/product/rule/list', url: '/admin/store/product/rule/list',
method: 'GET', method: 'GET',
params params,
}) });
}
/**
* 增加库存
* @param pram
*/
export function stockAddApi(data) {
return request({
url: '/admin/store/product/quick/stock/add',
method: 'POST',
data,
});
} }
/** /**
* 商品规格 删除 * 商品规格 删除
@@ -127,8 +139,8 @@ export function templateListApi(params) {
export function attrDeleteApi(id) { export function attrDeleteApi(id) {
return request({ return request({
url: `/admin/store/product/rule/delete/${id}`, url: `/admin/store/product/rule/delete/${id}`,
method: 'get' method: 'get',
}) });
} }
/** /**
* 商品规格 新增 * 商品规格 新增
@@ -138,8 +150,8 @@ export function attrCreatApi(data) {
return request({ return request({
url: '/admin/store/product/rule/save', url: '/admin/store/product/rule/save',
method: 'POST', method: 'POST',
data data,
}) });
} }
/** /**
* 商品规格 编辑 * 商品规格 编辑
@@ -149,8 +161,8 @@ export function attrEditApi(data) {
return request({ return request({
url: '/admin/store/product/rule/update', url: '/admin/store/product/rule/update',
method: 'POST', method: 'POST',
data data,
}) });
} }
/** /**
* 商品规格 详情 * 商品规格 详情
@@ -159,8 +171,8 @@ export function attrEditApi(data) {
export function attrInfoApi(id) { export function attrInfoApi(id) {
return request({ return request({
url: `admin/store/product/rule/info/${id}`, url: `admin/store/product/rule/info/${id}`,
method: 'GET' method: 'GET',
}) });
} }
/** /**
* 商品评论 列表 * 商品评论 列表
@@ -170,8 +182,8 @@ export function replyListApi(params) {
return request({ return request({
url: '/admin/store/product/reply/list', url: '/admin/store/product/reply/list',
method: 'GET', method: 'GET',
params params,
}) });
} }
/** /**
* 商品评论 新增 * 商品评论 新增
@@ -181,8 +193,8 @@ export function replyCreatApi(data) {
return request({ return request({
url: '/admin/store/product/reply/save', url: '/admin/store/product/reply/save',
method: 'POST', method: 'POST',
data data,
}) });
} }
/** /**
* 商品评论 编辑 * 商品评论 编辑
@@ -192,8 +204,8 @@ export function replyEditApi(data) {
return request({ return request({
url: '/admin/store/product/reply/update', url: '/admin/store/product/reply/update',
method: 'POST', method: 'POST',
data data,
}) });
} }
/** /**
* 商品评论 详情 * 商品评论 详情
@@ -202,8 +214,8 @@ export function replyEditApi(data) {
export function replyInfoApi(id) { export function replyInfoApi(id) {
return request({ return request({
url: `/admin/store/product/reply/info/${id}`, url: `/admin/store/product/reply/info/${id}`,
method: 'GET' method: 'GET',
}) });
} }
/** /**
* 商品评论 删除 * 商品评论 删除
@@ -212,8 +224,8 @@ export function replyInfoApi(id) {
export function replyDeleteApi(id) { export function replyDeleteApi(id) {
return request({ return request({
url: `/admin/store/product/reply/delete/${id}`, url: `/admin/store/product/reply/delete/${id}`,
method: 'GET' method: 'GET',
}) });
} }
/** /**
@@ -224,8 +236,8 @@ export function replyCommentApi(data) {
return request({ return request({
url: `/admin/store/product/reply/comment`, url: `/admin/store/product/reply/comment`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -236,8 +248,8 @@ export function productExportApi(params) {
return request({ return request({
url: `/admin/export/excel/product`, url: `/admin/export/excel/product`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -248,11 +260,10 @@ export function importProductApi(params) {
return request({ return request({
url: `/admin/store/product/importProduct`, url: `/admin/store/product/importProduct`,
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
* 商品复制 一号通 * 商品复制 一号通
* @param pram * @param pram
@@ -261,8 +272,8 @@ export function copyProductApi(data) {
return request({ return request({
url: `/admin/store/product/copy/product`, url: `/admin/store/product/copy/product`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -272,8 +283,8 @@ export function copyProductApi(data) {
export function restoreApi(id) { export function restoreApi(id) {
return request({ return request({
url: `/admin/store/product/restore/${id}`, url: `/admin/store/product/restore/${id}`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -284,8 +295,8 @@ export function productExcelApi(params) {
return request({ return request({
url: `/admin/export/excel/product`, url: `/admin/export/excel/product`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -295,18 +306,28 @@ export function productExcelApi(params) {
export function copyConfigApi() { export function copyConfigApi() {
return request({ return request({
url: `/admin/store/product/copy/config`, url: `/admin/store/product/copy/config`,
method: 'post' method: 'post',
}) });
} }
/** /**
* 订单数据 导出 * 订单数据 导出
* @param pram * @param pram
*/ */
export function orderExcelApi(params) { export function orderExcelApi(params) {
return request({ return request({
url: `/admin/export/excel/order`, url: `/admin/export/excel/order`,
method: 'get', method: 'get',
params params,
}) });
} }
/**
* 根据商品id集合查询商品列表
* @param pram
*/
export function productListbyidsApi(ids) {
return request({
url: `/admin/store/product/listids/${ids}`,
method: 'get',
});
}

View File

@@ -1,14 +1,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* 提货点分页列表 * 提货点分页列表
@@ -18,19 +18,20 @@ export function storeListApi(data) {
return request({ return request({
url: '/admin/system/store/list', url: '/admin/system/store/list',
method: 'get', method: 'get',
params: data params: data,
}) });
} }
/** /**
* 提货点数量 * 提货点数量
* @param pram * @param pram
*/ */
export function storeGetCountApi() { export function storeGetCountApi(params) {
return request({ return request({
url: '/admin/system/store/getCount', url: '/admin/system/store/getCount',
method: 'get' method: 'get',
}) params,
});
} }
/** /**
@@ -41,8 +42,8 @@ export function storeUpdateStatusApi(data) {
return request({ return request({
url: '/admin/system/store/update/status', url: '/admin/system/store/update/status',
method: 'get', method: 'get',
params: data params: data,
}) });
} }
/** /**
@@ -53,8 +54,8 @@ export function storeDeleteApi(data) {
return request({ return request({
url: '/admin/system/store/delete', url: '/admin/system/store/delete',
method: 'get', method: 'get',
params: data params: data,
}) });
} }
/** /**
@@ -65,8 +66,8 @@ export function allDeleteApi(params) {
return request({ return request({
url: '/admin/system/store/completely/delete', url: '/admin/system/store/completely/delete',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -77,8 +78,8 @@ export function storeSaveApi(data) {
return request({ return request({
url: '/admin/system/store/save', url: '/admin/system/store/save',
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -89,22 +90,22 @@ export function storeInfoApi(data) {
return request({ return request({
url: '/admin/system/store/info', url: '/admin/system/store/info',
method: 'get', method: 'get',
params: data params: data,
}) });
} }
/** /**
* 提货点修改 * 提货点修改
* @param pram * @param pram
*/ */
export function storeUpdateApi(data,id) { export function storeUpdateApi(data, id) {
// const param = ; // const param = ;
return request({ return request({
url: '/admin/system/store/update', url: '/admin/system/store/update',
method: 'post', method: 'post',
params: {id: id}, params: { id: id },
data data,
}) });
} }
/** /**
@@ -115,8 +116,8 @@ export function storeRecoveryApi(params) {
return request({ return request({
url: '/admin/system/store/recovery', url: '/admin/system/store/recovery',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -127,8 +128,8 @@ export function storeStaffListApi(data) {
return request({ return request({
url: '/admin/system/store/staff/list', url: '/admin/system/store/staff/list',
method: 'get', method: 'get',
params: data params: data,
}) });
} }
/** /**
@@ -139,8 +140,8 @@ export function storeStaffSaveApi(data) {
return request({ return request({
url: '/admin/system/store/staff/save', url: '/admin/system/store/staff/save',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
/** /**
@@ -151,11 +152,10 @@ export function storeStaffDeleteApi(data) {
return request({ return request({
url: '/admin/system/store/staff/delete', url: '/admin/system/store/staff/delete',
method: 'get', method: 'get',
params: data params: data,
}) });
} }
/** /**
* 核销员编辑 * 核销员编辑
* @param pram * @param pram
@@ -164,8 +164,8 @@ export function storeStaffUpdateApi(data) {
return request({ return request({
url: '/admin/system/store/staff/update', url: '/admin/system/store/staff/update',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
/** /**
@@ -176,8 +176,8 @@ export function storeStaffInfoApi(id) {
return request({ return request({
url: '/admin/system/store/staff/info', url: '/admin/system/store/staff/info',
method: 'get', method: 'get',
params: id params: id,
}) });
} }
/** /**
@@ -188,8 +188,8 @@ export function storeStaffUpdateStatusApi(data) {
return request({ return request({
url: '/admin/system/store/staff/update/status', url: '/admin/system/store/staff/update/status',
method: 'get', method: 'get',
params: data params: data,
}) });
} }
/** /**
@@ -200,8 +200,8 @@ export function userListApi(data) {
return request({ return request({
url: '/admin/wechat/user/list', url: '/admin/wechat/user/list',
method: 'get', method: 'get',
params: data params: data,
}) });
} }
/** /**
@@ -212,16 +212,6 @@ export function orderListApi(params) {
return request({ return request({
url: '/admin/system/store/order/list', url: '/admin/system/store/order/list',
method: 'post', method: 'post',
params params,
}) });
} }

View File

@@ -1,14 +1,14 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
/** /**
* @description 附件分类 -- 所有分类 * @description 附件分类 -- 所有分类
*/ */
@@ -16,42 +16,42 @@ export function formatLstApi(data) {
return request.get({ return request.get({
url: '/admin/product/save', url: '/admin/product/save',
method: 'POST', method: 'POST',
data data,
}) });
} }
/** /**
* @description 附件分类 -- 添加分类 * @description 附件分类 -- 添加分类
*/ */
export function attachmentCreateApi() { export function attachmentCreateApi() {
return request.get(`system/attachment/category/create/form`) return request.get(`system/attachment/category/create/form`);
} }
/** /**
* @description 附件分类 -- 编辑分类 * @description 附件分类 -- 编辑分类
*/ */
export function attachmentUpdateApi(id) { export function attachmentUpdateApi(id) {
return request.get(`system/attachment/category/update/form/${id}`) return request.get(`system/attachment/category/update/form/${id}`);
} }
/** /**
* @description 附件分类 -- 删除分类 * @description 附件分类 -- 删除分类
*/ */
export function attachmentDeleteApi(id) { export function attachmentDeleteApi(id) {
return request.delete(`system/attachment/category/delete/${id}`) return request.delete(`system/attachment/category/delete/${id}`);
} }
/** /**
* @description 图片列表 * @description 图片列表
*/ */
export function attachmentListApi(data) { export function attachmentListApi(data) {
return request.get(`system/attachment/lst`, data) return request.get(`system/attachment/lst`, data);
} }
/** /**
* @description 图片列表 -- 删除 * @description 图片列表 -- 删除
*/ */
export function picDeleteApi(id) { export function picDeleteApi(id) {
return request.delete(`system/attachment/delete`, id) return request.delete(`system/attachment/delete`, id);
} }
/** /**
* @description 图片列表 -- 修改附件分类 * @description 图片列表 -- 修改附件分类
*/ */
export function categoryApi(ids, attachment_category_id) { export function categoryApi(ids, attachment_category_id) {
return request.post(`system/attachment/category`, { ids, attachment_category_id }) return request.post(`system/attachment/category`, { ids, attachment_category_id });
} }

View File

@@ -1,58 +1,58 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
export function configCheckUnique(pram) { export function configCheckUnique(pram) {
const data = { const data = {
name: pram.name name: pram.name,
} };
return request({ return request({
url: '/admin/system/config/check', url: '/admin/system/config/check',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function configDelete(pram) { export function configDelete(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/system/config/delete', url: '/admin/system/config/delete',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function configInfo(pram) { export function configInfo(pram) {
const data = { const data = {
formId: pram.id formId: pram.id,
} };
return request({ return request({
url: '/admin/system/config/info', url: '/admin/system/config/info',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function configList(pram) { export function configList(pram) {
const data = { const data = {
page: pram.page, page: pram.page,
limit: pram.limit limit: pram.limit,
} };
return request({ return request({
url: '/admin/system/config/list', url: '/admin/system/config/list',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function configSave(pram) { export function configSave(pram) {
@@ -65,57 +65,194 @@ export function configSave(pram) {
pid: pram.pid, pid: pram.pid,
status: pram.status, status: pram.status,
type: pram.type, type: pram.type,
value: pram.value // value 存储表单配置数据,其他的参数来自于父级数据 justForAPI value: pram.value, // value 存储表单配置数据,其他的参数来自于父级数据 justForAPI
} },
} };
return request({ return request({
url: '/admin/system/config/save', url: '/admin/system/config/save',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
export function configSaveForm(pram) { export function configSaveForm(pram) {
return request({ return request({
url: '/admin/system/config/save/form', url: '/admin/system/config/save/form',
method: 'POST', method: 'POST',
data: pram data: pram,
}) });
} }
export function configUpdate(pram) { export function configUpdate(pram) {
const data = { const data = {
id: pram.id, id: pram.id,
systemConfigRequest: pram.systemConfigRequest systemConfigRequest: pram.systemConfigRequest,
} };
return request({ return request({
url: '/admin/system/config/update', url: '/admin/system/config/update',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
export function configSaveUniq(pram) { export function configSaveUniq(pram) {
const data = { const data = {
key: pram.key, key: pram.key,
value: pram.value value: pram.value,
} };
return request({ return request({
url: '/admin/system/config/saveuniq', url: '/admin/system/config/saveuniq',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
export function configGetUniq(pram) { /**
const data = { * @description 获取管理端logo
key: pram.key */
} export function getSiteLogoApi() {
return request({ return request({
url: '/admin/system/config/getuniq', url: '/admin/system/config/get/site/logo',
method: 'GET', method: 'GET',
params: data });
})
} }
/**
* @description 获取文件存储类型
*/
export function getUploadTypeApi() {
return request({
url: '/admin/system/config/get/upload/type',
method: 'GET',
});
}
/**
* @description 获取小程序下载地址
*/
export function getMiniDownloadUrlApi() {
return request({
url: '/admin/system/config/get/mini/download/url',
method: 'GET',
});
}
/**
* @description 获取腾讯地图key
*/
export function getTxMapKeyApi() {
return request({
url: '/admin/system/config/get/tx/map/key',
method: 'GET',
});
}
/**
* @description 获取移动端首页列表样式
*/
export function getHomeStyleApi() {
return request({
url: '/admin/system/config/get/home/page/list/style',
method: 'GET',
});
}
/**
* @description 获取移动端首页列表样式
*/
export function getAuthHostApi() {
return request({
url: '/admin/system/config/get/auth/host',
method: 'GET',
});
}
/**
* @description 清除config缓存
*/
export function clearCacheApi() {
return request({
url: '/admin/system/config/clear/cache',
method: 'post',
});
}
/**
* @description 获取主题色
*/
export function changeColorApi() {
return request({
url: '/admin/system/config/get/change/color',
method: 'get',
});
}
/**
* @description 保存主题色
*/
export function saveColorApi(data) {
return request({
url: '/admin/system/config/save/change/color',
method: 'post',
data,
});
}
/**
* @description 保存移动端首页列表样式
*/
export function savehomeStyleApi(data) {
return request({
url: '/admin/system/config/save/home/page/list/style',
method: 'post',
data,
});
}
/**
* @description 一号通 应用保存
*/
export function passAppSaveApi(data) {
return request({
url: '/admin/pass/appsave',
method: 'post',
data,
});
}
/**
* @description 一号通 应用详情获取
*/
export function passAppInfoApi() {
return request({
url: '/admin/pass/appget',
method: 'get',
});
}
/**
* @description 获取移动端域名
*/
export function frontDomainApi(data) {
return request({
url: '/public/jsconfig/get/front/domain',
method: 'GET',
});
}
/**
* @description 获取图片域名
*/
export function mediaDomainApi(data) {
return request({
url: '/public/jsconfig/get/admin/mediadomain',
method: 'GET',
});
}
/**
* @description 获取系统状态信息
*/
export function systemStateInfoApi() {
return request({
url: '/admin/system/status/info',
method: 'get',
});
}

View File

@@ -1,65 +1,65 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
export function getFormConfigInfo(pram) { export function getFormConfigInfo(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/system/form/temp/info', url: '/admin/system/form/temp/info',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function getFormConfigList(pram) { export function getFormConfigList(pram) {
const data = { const data = {
keywords: pram.keywords, keywords: pram.keywords,
page: pram.page, page: pram.page,
limit: pram.limit limit: pram.limit,
} };
return request({ return request({
url: '/admin/system/form/temp/list', url: '/admin/system/form/temp/list',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function getFormConfigSave(pram) { export function getFormConfigSave(pram) {
const data = { const data = {
content: pram.content, content: pram.content,
info: pram.info, info: pram.info,
name: pram.name name: pram.name,
} };
return request({ return request({
url: '/admin/system/form/temp/save', url: '/admin/system/form/temp/save',
method: 'POST', method: 'POST',
data: data data: data,
}) });
} }
export function getFormConfigEdit(pram) { export function getFormConfigEdit(pram) {
const params = { id: pram.id } const params = { id: pram.id };
const data = { const data = {
content: pram.content, content: pram.content,
info: pram.info, info: pram.info,
name: pram.name name: pram.name,
} };
return request({ return request({
url: '/admin/system/form/temp/update', url: '/admin/system/form/temp/update',
method: 'POST', method: 'POST',
params: params, params: params,
data: data data: data,
}) });
} }
/** /**
@@ -68,63 +68,63 @@ export function getFormConfigEdit(pram) {
*/ */
export function notificationListApi(pram) { export function notificationListApi(pram) {
const data = { const data = {
sendType: pram.sendType sendType: pram.sendType,
//发送类型1通知会员2通知平台 //发送类型1通知会员2通知平台
} };
return request({ return request({
url: '/admin/system/notification/list', url: '/admin/system/notification/list',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
/** /**
* 小程序订阅模板开关 * 小程序订阅模板开关
* @param pram * @param pram
*/ */
export function notificationRoutine(id) { export function notificationRoutine(id) {
return request({ return request({
url: `/admin/system/notification/routine/switch/${id}`, url: `/admin/system/notification/routine/switch/${id}`,
method: 'post', method: 'post',
}) });
} }
/** /**
* 公众号模板开关 * 公众号模板开关
* @param pram * @param pram
*/ */
export function notificationWechat(id) { export function notificationWechat(id) {
return request({ return request({
url: `/admin/system/notification/wechat/switch/${id}`, url: `/admin/system/notification/wechat/switch/${id}`,
method: 'post', method: 'post',
}) });
} }
/** /**
* 发送短信开关 * 发送短信开关
* @param pram * @param pram
*/ */
export function notificationSms(id) { export function notificationSms(id) {
return request({ return request({
url: `/admin/system/notification/sms/switch/${id}`, url: `/admin/system/notification/sms/switch/${id}`,
method: 'post', method: 'post',
}) });
} }
/** /**
* 通知详情 * 通知详情
* @param pram * @param pram
*/ */
export function notificationDetail(param) { export function notificationDetail(param) {
let data = { let data = {
detailType:param.type, detailType: param.type,
id:param.id id: param.id,
}; };
return request({ return request({
url: `/admin/system/notification/detail`, url: `/admin/system/notification/detail`,
method: 'get', method: 'get',
params:data params: data,
}) });
} }
//admin/system/notification/detail //admin/system/notification/detail
@@ -132,16 +132,36 @@ export function notificationListApi(pram) {
* 修改通知 * 修改通知
* @param pram * @param pram
*/ */
export function notificationUpdate(param) { export function notificationUpdate(param) {
let data = { let data = {
detailType:param.type, detailType: param.type,
id:param.id, id: param.id,
status:param.status, status: param.status,
tempId:param.tempId tempId: param.tempId,
}; };
return request({ return request({
url: `/admin/system/notification/update`, url: `/admin/system/notification/update`,
method: 'post', method: 'post',
data data,
}) });
} }
/**
* @description 获取行为验证码
*/
export function knowUserCaptchaApi(data) {
return request({
url: '/public/safety/get',
method: 'post',
data,
});
}
/**
* @description 验证行为验证码
*/
export function knowUserSmsCaptchaApi(data) {
return request({
url: '/public/safety/check',
method: 'post',
data,
});
}

View File

@@ -1,75 +1,75 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
export function groupDelete(pram) { export function groupDelete(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/system/group/delete', url: '/admin/system/group/delete',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function groupInfo(pram) { export function groupInfo(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/system/group/info', url: '/admin/system/group/info',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function groupList(pram) { export function groupList(pram) {
const data = { const data = {
keywords: pram.keywords, keywords: pram.keywords,
page: pram.page, page: pram.page,
limit: pram.limit limit: pram.limit,
} };
return request({ return request({
url: '/admin/system/group/list', url: '/admin/system/group/list',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function groupDataList(pram) { export function groupDataList(pram) {
const data = { const data = {
gid:pram.gid, gid: pram.gid,
keywords: pram.keywords, keywords: pram.keywords,
page: pram.page, page: pram.page,
limit: pram.limit limit: pram.limit,
} };
return request({ return request({
url: '/admin/system/group/data/list', url: '/admin/system/group/data/list',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function groupSave(pram) { export function groupSave(pram) {
const data = { const data = {
formId: pram.formId, formId: pram.formId,
info: pram.info, info: pram.info,
name: pram.name name: pram.name,
} };
return request({ return request({
url: '/admin/system/group/save', url: '/admin/system/group/save',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
export function groupEdit(pram) { export function groupEdit(pram) {
@@ -77,34 +77,34 @@ export function groupEdit(pram) {
formId: pram.formId, formId: pram.formId,
info: pram.info, info: pram.info,
name: pram.name, name: pram.name,
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/system/group/update', url: '/admin/system/group/update',
method: 'POST', method: 'POST',
params: data params: data,
}) });
} }
/** /**
* @description 页面设计 获取数据 * @description 页面设计 获取数据
*/ */
export function designListApi() { export function designListApi() {
return request.get(`/admin/page/layout/index`) return request.get(`/admin/page/layout/index`);
} }
/** /**
* @description 页面设计商品Tab 获取数据 * @description 页面设计商品Tab 获取数据
*/ */
export function goodDesignList(pram) { export function goodDesignList(pram) {
const data = { const data = {
gid: pram.gid, gid: pram.gid,
} };
return request({ return request({
url: '/admin/system/group/data/list', url: '/admin/system/group/data/list',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
/** /**
@@ -114,39 +114,38 @@ export function SaveDataApi(data, url) {
return request({ return request({
url: url, url: url,
method: 'POST', method: 'POST',
data data,
}) });
} }
/** /**
* @description 获取配置 * @description 获取配置
*/ */
export function getDataApi(data) { export function getDataApi(data) {
return request({ return request({
url: '/admin/page/layout/category/config', url: '/admin/page/layout/category/config',
method: 'GET', method: 'GET',
data data,
}) });
} }
/** /**
* @description 保存设置 * @description 保存设置
*/ */
export function themeSave(params) { export function themeSave(params) {
return request({ return request({
url: `/admin/system/config/saveuniq`, url: `/admin/system/config/saveuniq`,
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
* @description 获取设置 * @description 页面底部导航
*/ */
export function getTheme(params) { export function getBottomNavigationApi() {
return request({ return request({
url: `/admin/system/config/getuniq`, url: '/admin/page/layout/bottom/navigation/get',
method: 'get', method: 'GET',
params });
})
} }

View File

@@ -1,35 +1,35 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
export function groupDataDelete(pram) { export function groupDataDelete(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/system/group/data/delete', url: '/admin/system/group/data/delete',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function groupDataInfo(pram) { export function groupDataInfo(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/system/group/data/info', url: '/admin/system/group/data/info',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function groupDataList(pram) { export function groupDataList(pram) {
@@ -38,21 +38,21 @@ export function groupDataList(pram) {
keywords: pram.keywords, keywords: pram.keywords,
status: pram.status, // 1=开启 2=关闭 status: pram.status, // 1=开启 2=关闭
page: pram.page, page: pram.page,
limit: pram.limit limit: pram.limit,
} };
return request({ return request({
url: '/admin/system/group/data/list', url: '/admin/system/group/data/list',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function groupDataSave(pram) { export function groupDataSave(pram) {
return request({ return request({
url: '/admin/system/group/data/save', url: '/admin/system/group/data/save',
method: 'POST', method: 'POST',
data: pram data: pram,
}) });
} }
export function groupDataEdit(pram, id) { export function groupDataEdit(pram, id) {
@@ -60,6 +60,6 @@ export function groupDataEdit(pram, id) {
url: '/admin/system/group/data/update', url: '/admin/system/group/data/update',
method: 'POST', method: 'POST',
data: pram, data: pram,
params: { id: id } params: { id: id },
}) });
} }

View File

@@ -1,46 +1,45 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
export function systemConfigCheck(pram) { export function systemConfigCheck(pram) {
const data = { const data = {
name: pram.name name: pram.name,
} };
return request({ return request({
url: '/admin/system/config/check', url: '/admin/system/config/check',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function systemConfigInfo(pram) { export function systemConfigInfo(pram) {
const data = { const data = {
formId: pram.id formId: pram.id,
} };
return request({ return request({
url: '/admin/system/config/info', url: '/admin/system/config/info',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function systemConfigSave(pram) { export function systemConfigSave(pram) {
return request({ return request({
url: '/admin/system/config/save/form', url: '/admin/system/config/save/form',
method: 'POST', method: 'POST',
data: pram data: pram,
}) });
} }
/** /**
* 文件上传 * 文件上传
* @param data * @param data
@@ -50,8 +49,8 @@ export function fileFileApi(data, params) {
url: '/admin/upload/file', url: '/admin/upload/file',
method: 'POST', method: 'POST',
params, params,
data data,
}) });
} }
/** /**
@@ -63,8 +62,8 @@ export function fileImageApi(data, params) {
url: '/admin/upload/image', url: '/admin/upload/image',
method: 'POST', method: 'POST',
params, params,
data data,
}) });
} }
/** /**
@@ -75,8 +74,8 @@ export function fileListApi(params) {
return request({ return request({
url: '/admin/system/attachment/list', url: '/admin/system/attachment/list',
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -86,8 +85,8 @@ export function fileListApi(params) {
export function fileDeleteApi(id) { export function fileDeleteApi(id) {
return request({ return request({
url: `/admin/system/attachment/delete/${id}`, url: `/admin/system/attachment/delete/${id}`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -98,11 +97,10 @@ export function attachmentMoveApi(data) {
return request({ return request({
url: `/admin/system/attachment/move`, url: `/admin/system/attachment/move`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
* 微信上传图片 * 微信上传图片
* @param data * @param data
@@ -112,7 +110,6 @@ export function wechatUploadApi(data, params) {
url: `/admin/wechat/media/upload`, url: `/admin/wechat/media/upload`,
method: 'post', method: 'post',
data, data,
params params,
}) });
} }

View File

@@ -1,50 +1,50 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
export function getMenu() { export function getMenu() {
return request({ return request({
url: '/admin/system/role/testMenu', url: '/admin/system/role/testMenu',
method: 'GET' method: 'GET',
}) });
} }
export function adminDel(pram) { export function adminDel(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/system/admin/delete', url: '/admin/system/admin/delete',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function adminInfo(pram) { export function adminInfo(pram) {
const data = { const data = {
id: pram.id id: pram.id,
} };
return request({ return request({
url: '/admin/system/admin/info', url: '/admin/system/admin/info',
method: 'GET', method: 'GET',
params: data params: data,
}) });
} }
export function adminList(params) { export function adminList(params) {
return request({ return request({
url: '/admin/system/admin/list', url: '/admin/system/admin/list',
method: 'GET', method: 'GET',
params params,
}) });
} }
export function adminAdd(pram) { export function adminAdd(pram) {
@@ -55,31 +55,31 @@ export function adminAdd(pram) {
realName: pram.realName, realName: pram.realName,
roles: pram.roles.join(','), roles: pram.roles.join(','),
status: pram.status, status: pram.status,
phone: pram.phone phone: pram.phone,
} };
return request({ return request({
url: '/admin/system/admin/save', url: '/admin/system/admin/save',
method: 'POST', method: 'POST',
data: data data: data,
}) });
} }
export function adminUpdate(pram) { export function adminUpdate(pram) {
const data = { const data = {
account: pram.account, account: pram.account,
level: pram.level, phone: pram.phone,
pwd: pram.pwd, pwd: pram.pwd,
roles:pram.roles, roles: pram.roles,
realName: pram.realName, realName: pram.realName,
status: pram.status, status: pram.status,
id: pram.id, id: pram.id,
isDel: pram.isDel isDel: pram.isDel,
} };
return request({ return request({
url: '/admin/system/admin/update', url: '/admin/system/admin/update',
method: 'POST', method: 'POST',
data data,
}) });
} }
/** /**
@@ -90,8 +90,8 @@ export function updateStatusApi(params) {
return request({ return request({
url: `/admin/system/admin/updateStatus`, url: `/admin/system/admin/updateStatus`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -102,84 +102,84 @@ export function updateIsSmsApi(params) {
return request({ return request({
url: `/admin/system/admin/update/isSms`, url: `/admin/system/admin/update/isSms`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* 权限规则菜单列表 * 权限规则菜单列表
* @param pram * @param pram
*/ */
export function menuListApi(params) { export function menuListApi(params) {
const data = { const data = {
menuType: params.menuType, //菜单类型:M-目录C-菜单A-按钮 menuType: params.menuType, //菜单类型:M-目录C-菜单A-按钮
name: params.name, //菜单名称 name: params.name, //菜单名称
} };
return request({ return request({
url: `/admin/system/menu/list`, url: `/admin/system/menu/list`,
method: 'get', method: 'get',
params:data params: data,
}) });
} }
/** /**
* 权限规则新增菜单 * 权限规则新增菜单
* @param data * @param data
*/ */
export function menuAdd(data) { export function menuAdd(data) {
let systemMenuRequest = data; let systemMenuRequest = data;
return request({ return request({
url: `/admin/system/menu/add`, url: `/admin/system/menu/add`,
method: 'post', method: 'post',
data:systemMenuRequest data: systemMenuRequest,
}) });
} }
/** /**
* 权限规则删除菜单 * 权限规则删除菜单
* @param data * @param data
*/ */
export function menuDelete(id) { export function menuDelete(id) {
return request({ return request({
url: `/admin/system/menu/delete/${id}`, url: `/admin/system/menu/delete/${id}`,
method: 'post', method: 'post',
}) });
} }
/** /**
* 权限规则菜单详情 * 权限规则菜单详情
* @param data * @param data
*/ */
export function menuInfo(id) { export function menuInfo(id) {
return request({ return request({
url: `/admin/system/menu/info/${id}`, url: `/admin/system/menu/info/${id}`,
method: 'get', method: 'get',
}) });
} }
/** /**
* 权限规则菜单修改 * 权限规则菜单修改
* @param data * @param data
*/ */
export function menuUpdate(data) { export function menuUpdate(data) {
let systemMenuRequest = data; let systemMenuRequest = data;
return request({ return request({
url: `/admin/system/menu/update`, url: `/admin/system/menu/update`,
method: 'post', method: 'post',
data:systemMenuRequest data: systemMenuRequest,
}) });
} }
/** /**
* 权限规则修改菜单显示状态 * 权限规则修改菜单显示状态
* @param data * @param data
*/ */
export function menuUpdateShowStatus(params) { export function menuUpdateShowStatus(params) {
return request({ return request({
url: `/admin/system/menu/updateShowStatus`, url: `/admin/system/menu/updateShowStatus`,
method: 'post', method: 'post',
params params,
}) });
} }
// //
@@ -187,10 +187,32 @@ export function updateIsSmsApi(params) {
* 权限规则菜单详情 * 权限规则菜单详情
* @param data * @param data
*/ */
export function sensitiveListApi(params) { export function sensitiveListApi(params) {
return request({ return request({
url: `/admin/log/sensitive/list`, url: `/admin/log/sensitive/list`,
method: 'get', method: 'get',
params params,
}) });
} }
/**
* 修改登录用户信息
* @param data
*/
export function adminNameUpdateApi(data) {
return request({
url: `/admin/login/admin/update`,
method: 'post',
data,
});
}
/**
* 修改登录密码
* @param data
*/
export function adminPwdUpdateApi(data) {
return request({
url: `/admin/login/update/password`,
method: 'post',
data,
});
}

View File

@@ -1,36 +1,36 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
export function login(data) { export function login(data) {
return request({ return request({
url: '/admin/login', url: '/admin/login',
method: 'post', method: 'post',
data data,
}) });
} }
export function getInfo(token) { export function getInfo(token) {
return request({ return request({
url: '/admin/getAdminInfoByToken', url: '/admin/getAdminInfoByToken',
method: 'get', method: 'get',
params: { token } params: { token },
}) });
} }
export function logout() { export function logout() {
return request({ return request({
url: '/admin/logout', url: '/admin/logout',
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -41,8 +41,8 @@ export function userListApi(params) {
return request({ return request({
url: `/admin/user/list`, url: `/admin/user/list`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -54,20 +54,20 @@ export function userUpdateApi(params, data) {
url: `/admin/user/update`, url: `/admin/user/update`,
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
* 会员管理等级 修改 * 会员管理等级 修改
* @param pram * @param pram
*/ */
export function userLevelUpdateApi( data) { export function userLevelUpdateApi(data) {
return request({ return request({
url: `/admin/user/update/level`, url: `/admin/user/update/level`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -78,8 +78,8 @@ export function userInfoApi(params) {
return request({ return request({
url: `/admin/user/info`, url: `/admin/user/info`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -90,8 +90,8 @@ export function infobyconditionApi(params) {
return request({ return request({
url: `/admin/user/infobycondition`, url: `/admin/user/infobycondition`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -102,8 +102,8 @@ export function topdetailApi(params) {
return request({ return request({
url: `/admin/user/topdetail`, url: `/admin/user/topdetail`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -114,8 +114,8 @@ export function groupPiApi(params) {
return request({ return request({
url: `/admin/user/group`, url: `/admin/user/group`,
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -126,8 +126,8 @@ export function tagPiApi(params) {
return request({ return request({
url: `/admin/user/tag`, url: `/admin/user/tag`,
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -138,8 +138,8 @@ export function foundsApi(params) {
return request({ return request({
url: `/admin/user/operate/founds`, url: `/admin/user/operate/founds`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -150,8 +150,8 @@ export function userDeleteApi(params) {
return request({ return request({
url: `/admin/user/delete`, url: `/admin/user/delete`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -161,8 +161,8 @@ export function userDeleteApi(params) {
export function levelListApi() { export function levelListApi() {
return request({ return request({
url: `/admin/system/user/level/list`, url: `/admin/system/user/level/list`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -173,21 +173,21 @@ export function levelSaveApi(data) {
return request({ return request({
url: `/admin/system/user/level/save`, url: `/admin/system/user/level/save`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
* 会员等级 编辑 * 会员等级 编辑
* @param pram * @param pram
*/ */
export function levelUpdateApi(params, data) { export function levelUpdateApi(params, data) {
return request({ return request({
url: `/admin/system/user/level/update/${params}`, url: `/admin/system/user/level/update/${params}`,
method: 'post', method: 'post',
// params, // params,
data data,
}) });
} }
/** /**
@@ -198,19 +198,19 @@ export function levelInfoApi(params) {
return request({ return request({
url: `/admin/system/user/level/info`, url: `/admin/system/user/level/info`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* 会员等级 删除 * 会员等级 删除
* @param pram * @param pram
*/ */
export function levelDeleteApi(id) { export function levelDeleteApi(id) {
return request({ return request({
url: `/admin/system/user/level/delete/${id}`, url: `/admin/system/user/level/delete/${id}`,
method: 'post' method: 'post',
}) });
} }
/** /**
@@ -221,8 +221,8 @@ export function levelUseApi(data) {
return request({ return request({
url: `/admin/system/user/level/use`, url: `/admin/system/user/level/use`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -233,8 +233,8 @@ export function tagListApi(params) {
return request({ return request({
url: `/admin/user/tag/list`, url: `/admin/user/tag/list`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -245,8 +245,8 @@ export function tagSaveApi(data) {
return request({ return request({
url: `/admin/user/tag/save`, url: `/admin/user/tag/save`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -258,8 +258,8 @@ export function tagUpdateApi(params, data) {
url: `/admin/user/tag/update`, url: `/admin/user/tag/update`,
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
@@ -270,8 +270,8 @@ export function tagInfoApi(params) {
return request({ return request({
url: `/admin/user/tag/info`, url: `/admin/user/tag/info`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -282,8 +282,8 @@ export function tagDeleteApi(params) {
return request({ return request({
url: `/admin/user/tag/delete`, url: `/admin/user/tag/delete`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -294,8 +294,8 @@ export function groupListApi(params) {
return request({ return request({
url: `/admin/user/group/list`, url: `/admin/user/group/list`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -306,8 +306,8 @@ export function groupSaveApi(data) {
return request({ return request({
url: `/admin/user/group/save`, url: `/admin/user/group/save`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -319,8 +319,8 @@ export function groupUpdateApi(params, data) {
url: `/admin/user/group/update`, url: `/admin/user/group/update`,
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
@@ -331,8 +331,8 @@ export function groupInfoApi(params) {
return request({ return request({
url: `/admin/user/group/info`, url: `/admin/user/group/info`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -343,8 +343,8 @@ export function groupDeleteApi(params) {
return request({ return request({
url: `/admin/user/group/delete`, url: `/admin/user/group/delete`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -353,8 +353,8 @@ export function groupDeleteApi(params) {
export function getLoginPicApi() { export function getLoginPicApi() {
return request({ return request({
url: `/admin/getLoginPic`, url: `/admin/getLoginPic`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -363,8 +363,8 @@ export function getLoginPicApi() {
export function captchaApi() { export function captchaApi() {
return request({ return request({
url: `/admin/validate/code/get`, url: `/admin/validate/code/get`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -374,8 +374,8 @@ export function updateSpreadApi(data) {
return request({ return request({
url: `/admin/user/update/spread`, url: `/admin/user/update/spread`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -385,6 +385,17 @@ export function updatePhoneApi(params) {
return request({ return request({
url: `/admin/user/update/phone`, url: `/admin/user/update/phone`,
method: 'get', method: 'get',
params params,
}) });
}
/**
* 查询是否需要开启图形验证码
* @returns {*}
*/
export function captchaconfigApi() {
return request({
url: `/admin/validate/code/getcaptchaconfig`,
method: 'get',
});
} }

View File

@@ -1,40 +1,40 @@
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ] // | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved. // | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权 // | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com> // | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
import request from '@/utils/request' import request from '@/utils/request';
export function menuCreate(data) { export function menuCreate(data) {
return request({ return request({
url: '/admin/wechat/menu/public/create', url: '/admin/wechat/menu/public/create',
method: 'post', method: 'post',
params: data params: data,
}) });
} }
export function menuDelete(data) { export function menuDelete(data) {
return request({ return request({
url: '/admin/wechat/menu/public/delete', url: '/admin/wechat/menu/public/delete',
method: 'post', method: 'post',
params: data params: data,
}) });
} }
export function menuInfo(pram) { export function menuInfo(pram) {
const data = { const data = {
isAsync: pram.isAsync isAsync: pram.isAsync,
} };
return request({ return request({
url: '/admin/wechat/menu/public/get', url: '/admin/wechat/menu/public/get',
method: 'post', method: 'post',
params: data params: data,
}) });
} }
/** /**
@@ -45,8 +45,8 @@ export function wechatTemplateListApi(params) {
return request({ return request({
url: `/admin/wechat/template/list`, url: `/admin/wechat/template/list`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -57,8 +57,8 @@ export function wechatTemplateSaveApi(data) {
return request({ return request({
url: `/admin/wechat/template/save`, url: `/admin/wechat/template/save`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -69,8 +69,8 @@ export function wechatTemplateUpdateApi(id, data) {
return request({ return request({
url: `/admin/wechat/template/update/${id}`, url: `/admin/wechat/template/update/${id}`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -80,8 +80,8 @@ export function wechatTemplateUpdateApi(id, data) {
export function wechatTemplateInfoApi(id) { export function wechatTemplateInfoApi(id) {
return request({ return request({
url: `/admin/wechat/template/info/${id}`, url: `/admin/wechat/template/info/${id}`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -92,8 +92,8 @@ export function wechatTemplateStatusApi(id, params) {
return request({ return request({
url: `/admin/wechat/template/update/status/${id}`, url: `/admin/wechat/template/update/status/${id}`,
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
@@ -103,8 +103,8 @@ export function wechatTemplateStatusApi(id, params) {
export function wechatTemplateDeleteApi(id) { export function wechatTemplateDeleteApi(id) {
return request({ return request({
url: `/admin/wechat/template/delete/${id}`, url: `/admin/wechat/template/delete/${id}`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -115,8 +115,8 @@ export function replyListApi(params) {
return request({ return request({
url: `/admin/wechat/keywords/reply/list`, url: `/admin/wechat/keywords/reply/list`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -127,8 +127,8 @@ export function replySaveApi(data) {
return request({ return request({
url: `/admin/wechat/keywords/reply/save`, url: `/admin/wechat/keywords/reply/save`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -139,8 +139,8 @@ export function replyStatusApi(params) {
return request({ return request({
url: `/admin/wechat/keywords/reply/status`, url: `/admin/wechat/keywords/reply/status`,
method: 'post', method: 'post',
params params,
}) });
} }
/** /**
* 关键字回复 编辑 * 关键字回复 编辑
@@ -151,8 +151,8 @@ export function replyUpdateApi(params, data) {
url: `/admin/wechat/keywords/reply/update`, url: `/admin/wechat/keywords/reply/update`,
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
@@ -163,8 +163,8 @@ export function replyInfoApi(params) {
return request({ return request({
url: `/admin/wechat/keywords/reply/info`, url: `/admin/wechat/keywords/reply/info`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -175,8 +175,8 @@ export function replyDeleteApi(params) {
return request({ return request({
url: `/admin/wechat/keywords/reply/delete`, url: `/admin/wechat/keywords/reply/delete`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -187,8 +187,8 @@ export function keywordsInfoApi(params) {
return request({ return request({
url: `/admin/wechat/keywords/reply/info/keywords`, url: `/admin/wechat/keywords/reply/info/keywords`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -199,8 +199,8 @@ export function wechatMenuApi(params) {
return request({ return request({
url: `/admin/wechat/menu/public/get`, url: `/admin/wechat/menu/public/get`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -211,8 +211,8 @@ export function wechatMenuAddApi(data) {
return request({ return request({
url: `/admin/wechat/menu/public/create`, url: `/admin/wechat/menu/public/create`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -222,8 +222,8 @@ export function publicTempListApi(params) {
return request({ return request({
url: `/admin/wechat/program/public/temp/list`, url: `/admin/wechat/program/public/temp/list`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -232,8 +232,8 @@ export function publicTempListApi(params) {
export function categoryApi() { export function categoryApi() {
return request({ return request({
url: `/admin/wechat/program/category`, url: `/admin/wechat/program/category`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -243,8 +243,8 @@ export function getWeChatKeywordsByTidApi(params) {
return request({ return request({
url: `/admin/wechat/program/getWeChatKeywordsByTid`, url: `/admin/wechat/program/getWeChatKeywordsByTid`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -254,8 +254,8 @@ export function publicTempInfoApi(params) {
return request({ return request({
url: `/admin/wechat/program/public/temp/info`, url: `/admin/wechat/program/public/temp/info`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -265,8 +265,8 @@ export function myTempListApi(params) {
return request({ return request({
url: `/admin/wechat/program/my/temp/list`, url: `/admin/wechat/program/my/temp/list`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -276,8 +276,8 @@ export function myTempInfoApi(params) {
return request({ return request({
url: `/admin/wechat/program/my/temp/info`, url: `/admin/wechat/program/my/temp/info`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -287,8 +287,8 @@ export function myTempSaveApi(data) {
return request({ return request({
url: `/admin/wechat/program/my/temp/save`, url: `/admin/wechat/program/my/temp/save`,
method: 'post', method: 'post',
data data,
}) });
} }
/** /**
@@ -299,8 +299,8 @@ export function myTempUpdateApi(params, data) {
url: `/admin/wechat/program/my/temp/update`, url: `/admin/wechat/program/my/temp/update`,
method: 'post', method: 'post',
params, params,
data data,
}) });
} }
/** /**
@@ -310,11 +310,10 @@ export function myTempStatusApi(params) {
return request({ return request({
url: `/admin/wechat/program/my/temp/update/status`, url: `/admin/wechat/program/my/temp/update/status`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
* 小程序 我的模板修改应用场景 * 小程序 我的模板修改应用场景
*/ */
@@ -322,8 +321,8 @@ export function myTempTypeApi(params) {
return request({ return request({
url: `/admin/wechat/program/my/temp/update/type`, url: `/admin/wechat/program/my/temp/update/type`,
method: 'get', method: 'get',
params params,
}) });
} }
/** /**
@@ -334,8 +333,8 @@ export function getWechatConfig() {
return request({ return request({
url: `/admin/wechat/config`, url: `/admin/wechat/config`,
method: 'get', method: 'get',
params:{ url: encodeURIComponent(location.href.split('#')[0]) } // for Test params: { url: encodeURIComponent(location.href.split('#')[0]) }, // for Test
}) });
} }
/** /**
@@ -346,8 +345,8 @@ export function wechatAuth(code) {
return request({ return request({
url: `/admin/authorize/login`, url: `/admin/authorize/login`,
method: 'get', method: 'get',
params: { code } params: { code },
}) });
} }
/** /**
@@ -356,8 +355,8 @@ export function wechatAuth(code) {
export function unbindApi() { export function unbindApi() {
return request({ return request({
url: `/admin/unbind`, url: `/admin/unbind`,
method: 'get' method: 'get',
}) });
} }
/** /**
@@ -366,36 +365,55 @@ export function unbindApi() {
export function tempAsyncApi() { export function tempAsyncApi() {
return request({ return request({
url: `/admin/wechat/program/my/temp/async`, url: `/admin/wechat/program/my/temp/async`,
method: 'get' method: 'get',
}) });
} }
/** /**
* 公众号模板消息同步 * 公众号模板消息同步
*/ */
export function wechatAsyncApi() { export function wechatAsyncApi() {
return request({ return request({
url: `/admin/wechat/template/whcbqhn/sync`, url: `/admin/wechat/template/whcbqhn/sync`,
method: 'post' method: 'post',
}) });
} }
/** /**
* 小程序模板消息同步 * 小程序模板消息同步
*/ */
export function routineAsyncApi() { export function routineAsyncApi() {
return request({ return request({
url: `/admin/wechat/template/routine/sync`, url: `/admin/wechat/template/routine/sync`,
method: 'post' method: 'post',
}) });
} }
/** /**
* 小程序源码下载 * 小程序源码下载
*/ */
export function wechatCodeDownload() { export function wechatCodeDownload() {
return request({ return request({
url: `/admin/wechat/code/download`, url: `/admin/wechat/code/download`,
method: 'get' method: 'get',
}) });
} }
/**
* 获取微信小程序发货开关
*/
export function wechatGetShippingSwitchApi() {
return request({
url: `/admin/wechat/menu/get/shipping/switch`,
method: 'get',
});
}
/**
* 更新微信小程序发货开关
*/
export function wechatUpdateShippingSwitchApi(data) {
return request({
url: `/admin/wechat/menu/update/shipping/switch`,
method: 'post',
data,
});
}

View File

Binary file not shown.

View File

Binary file not shown.

View File

File diff suppressed because one or more lines are too long

View File

Binary file not shown.

View File

Binary file not shown.

View File

@@ -0,0 +1,19 @@
@font-face {
font-family: 'dinProSemiBold';
src: url('./D-DIN-PRO-600-SemiBold.otf');
}
@font-face {
font-family: 'dinProRegular';
src: url('./D-DIN-PRO-400-Regular.otf');
}
.semiBold {
font-family: 'dinProSemiBold';
}
.regular {
font-family: 'dinProRegular';
}
.pingFang {
font-family: 'PingFang SC, PingFang SC';
font-weight: 500;
}

View File

File diff suppressed because one or more lines are too long

View File

File diff suppressed because it is too large Load Diff

View File

File diff suppressed because one or more lines are too long

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="52px" height="45px" viewBox="0 0 52 45" version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter x="-9.4%" y="-6.2%" width="118.8%" height="122.5%" filterUnits="objectBoundingBox" id="filter-1">
<feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="1" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
<feMerge>
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
<feMergeNode in="SourceGraphic"></feMergeNode>
</feMerge>
</filter>
<rect id="path-2" x="0" y="0" width="48" height="40" rx="4"></rect>
<filter x="-4.2%" y="-2.5%" width="108.3%" height="110.0%" filterUnits="objectBoundingBox" id="filter-4">
<feOffset dx="0" dy="1" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="0.5" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
</filter>
</defs>
<g id="配置面板" width="48" height="40" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="setting-copy-2" width="48" height="40" transform="translate(-1190.000000, -136.000000)">
<g id="Group-8" width="48" height="40" transform="translate(1167.000000, 0.000000)">
<g id="Group-5-Copy-5" filter="url(#filter-1)" transform="translate(25.000000, 137.000000)">
<mask id="mask-3" fill="white">
<use xlink:href="#path-2"></use>
</mask>
<g id="Rectangle-18">
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-2"></use>
<use fill="#F0F2F5" fill-rule="evenodd" xlink:href="#path-2"></use>
</g>
<rect id="Rectangle-11" fill="#FFFFFF" mask="url(#mask-3)" x="0" y="0" width="48" height="10"></rect>
<rect id="Rectangle-18" fill="#303648" mask="url(#mask-3)" x="0" y="0" width="16" height="40"></rect>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="48px" height="40px" viewBox="0 0 48 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>light</title>
<defs>
<rect id="path-1" x="0" y="0" width="48" height="40" rx="4"></rect>
<rect id="path-3" x="0" y="0" width="48" height="40" rx="4"></rect>
</defs>
<g id="后台" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="light">
<g id="Rectangle-18">
<g id="path-2-link" fill="#000000" fill-rule="nonzero">
<rect id="path-2" x="0" y="0" width="48" height="40" rx="4"></rect>
</g>
<g id="path-2-link" fill="#F0F2F5">
<rect id="path-2" x="0" y="0" width="48" height="40" rx="4"></rect>
</g>
</g>
<g id="Rectangle-11-Clipped">
<mask id="mask-2" fill="white">
<use xlink:href="#path-1"></use>
</mask>
<g id="path-2"></g>
<rect id="Rectangle-11" fill="#FFFFFF" fill-rule="nonzero" mask="url(#mask-2)" x="0" y="0" width="48" height="10"></rect>
</g>
<g id="Rectangle-18-Clipped">
<mask id="mask-4" fill="white">
<use xlink:href="#path-3"></use>
</mask>
<g id="path-2"></g>
<rect id="Rectangle-18" fill="#2B68C9" fill-rule="nonzero" mask="url(#mask-4)" x="0" y="0" width="16" height="40"></rect>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 711 B

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Some files were not shown because too many files have changed in this diff Show More