diff --git a/.env.development b/.env.development
index a6cd427..69ee68c 100644
--- a/.env.development
+++ b/.env.development
@@ -3,4 +3,4 @@ ENV = development
# 本地环境接口地址
# VITE_API_URL = 'http://admintestapi.sxczgkj.cn/admin/'
-VITE_API_URL = 'http://admintestapi.sxczgkj.cn/admin/'
\ No newline at end of file
+VITE_API_URL = 'https://openpm.sxczgkj.cn/'
\ No newline at end of file
diff --git a/.env.production b/.env.production
index 97128dd..9a5c0c1 100644
--- a/.env.production
+++ b/.env.production
@@ -2,4 +2,4 @@
ENV = production
# 线上环境接口地址
-VITE_API_URL = 'http://admintestapi.sxczgkj.cn/admin/'
\ No newline at end of file
+VITE_API_URL = 'https://openpm.sxczgkj.cn/'
\ No newline at end of file
diff --git a/package.json b/package.json
index d82c367..864c915 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "vue-admin",
"private": true,
- "version": "1.3.3",
+ "version": "1.3.20",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/src/api/home.js b/src/api/home.js
index 784cc41..55c2a20 100644
--- a/src/api/home.js
+++ b/src/api/home.js
@@ -7,32 +7,28 @@ import { dayjs } from 'element-plus';
export function getIndexData() {
return request({
method: "POST",
- url: "/user/getIndexData"
+ url: "/agent/index"
});
}
-
+/**
/**
* 获取首页图表数据
* @returns
*/
-export function getChartData(type, reqUserId) {
- const m = {
- 1: '/user/getDayOrder', // 获取近七日收单额
- 2: '/user/getDayProfit', // 获取近七日收益
- 3: '/user/getMonthOrder', // 获取近一年的收单额
- 4: '/user/getMonthProfit' // 获取近一年的收益数据
- }
- const params = {
- year: dayjs().format('YYYY'),
- reqUserId: reqUserId
- }
+export function getChartData() {//收益
return request({
- method: "GET",
- url: m[type],
- params
+ method: "POST",
+ url: '/agent/profit',
+ // params
+ });
+}
+export function agentamount() {//流水
+ return request({
+ method: "POST",
+ url: '/agent/amount',
+ // params
});
}
-
/**
* 上传OSS
* @param {*} params
diff --git a/src/api/organization.js b/src/api/organization.js
index b5a9ded..e626cab 100644
--- a/src/api/organization.js
+++ b/src/api/organization.js
@@ -41,11 +41,11 @@ export function modifyFee(params) {
* 获取收益信息
* @returns
*/
-export function queryProfit(params) {
+export function queryProfit(data) {
return request({
- method: "get",
- url: "/agency/queryProfit",
- params
+ method: "post",
+ url: "/agent/accumulateprofit",
+ data
});
}
@@ -76,22 +76,32 @@ export function getUserBalance() {
* 提现
* @returns
*/
-export function withdrawalProfit(params) {
+export function withdrawalProfit(data) {
return request({
- method: "get",
- url: "/user/withdrawalProfit",
- params
+ method: "post",
+ url: "/agent/withdrowsub",
+ data
+ });
+}
+/**
+ * 绑定支付宝
+ * @returns
+ */
+export function agentalipay(data) {
+ return request({
+ method: "post",
+ url: "/agent/alipay",
+ data
});
}
-
/**
* 获取提现流水
* @returns
*/
-export function getUserOutFlow(params) {
+export function getUserOutFlow(data) {
return request({
- method: "get",
- url: "/user/getUserOutFlow",
- params
+ method: "post",
+ url: "/agent/withdrawerlist",
+ data
});
}
\ No newline at end of file
diff --git a/src/api/password.js b/src/api/password.js
new file mode 100644
index 0000000..f3d7aee
--- /dev/null
+++ b/src/api/password.js
@@ -0,0 +1,24 @@
+import request from "@/utils/request.js";
+import { dayjs } from 'element-plus';
+/**
+ * 获取验证码
+ * @returns
+ */
+export function agentsendsms(data) {
+ return request({
+ method: "post",
+ url: "/agent/sendsms",
+ data
+ });
+}
+/**
+ * 重置密码
+ * @returns
+ */
+export function agentresetpwd(data) {
+ return request({
+ method: "post",
+ url: "/agent/resetpwd",
+ data
+ });
+}
\ No newline at end of file
diff --git a/src/api/shop.js b/src/api/shop.js
index 39ee74a..fe71244 100644
--- a/src/api/shop.js
+++ b/src/api/shop.js
@@ -4,11 +4,11 @@ import request from "@/utils/request.js";
* 获取商户列表
* @returns
*/
-export function queryCustormerFlow(params) {
+export function queryCustormerFlow(data) {
return request({
- method: "get",
- url: "/agency/queryCustormerFlow",
- params
+ method: "post",
+ url: "/agent/storelist",
+ data
});
}
diff --git a/src/api/withdraw.js b/src/api/withdraw.js
index d7cd577..1b31e5d 100644
--- a/src/api/withdraw.js
+++ b/src/api/withdraw.js
@@ -4,11 +4,11 @@ import request from "@/utils/request.js";
* 提现申请查询
* @returns
*/
-export function getOutFlow(params) {
+export function getOutFlow(data) {
return request({
- method: "get",
- url: "/user/getOutFlow",
- params
+ method: "post",
+ url: "/agent/withdrawerlist",
+ data
});
}
@@ -16,10 +16,10 @@ export function getOutFlow(params) {
* 提现审核
* @returns
*/
-export function modifyOutFlow(params) {
+export function modifyOutFlow(data) {
return request({
- method: "get",
- url: "/user/modifyOutFlow",
- params
+ method: "post",
+ url: "/agent/withdrawalreview",
+ data
});
}
\ No newline at end of file
diff --git a/src/components/chartCard.vue b/src/components/chartCard.vue
index 665eca2..94b2844 100644
--- a/src/components/chartCard.vue
+++ b/src/components/chartCard.vue
@@ -16,7 +16,7 @@
diff --git a/src/views/password/password.vue b/src/views/password/password.vue
new file mode 100644
index 0000000..a6581ea
--- /dev/null
+++ b/src/views/password/password.vue
@@ -0,0 +1,221 @@
+
+