diff --git a/.env b/.env index a0ff767..8e4e783 100644 --- a/.env +++ b/.env @@ -20,15 +20,15 @@ VITE_OAUTH2_APP_CLIENT='mini:mini' # VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/api # 域名线上 #VITE_APP_DEV_SERVICE = http://59.202.170.152:81/api # 信创线上 # VITE_APP_DEV_SERVICE = http://192.168.101.150:9999 # 邓-本地 -# VITE_APP_DEV_SERVICE = http://127.0.0.1:9999 # 邓-本地 -VITE_APP_DEV_SERVICE = http://123.157.250.162:8089/api # 测试线上 + VITE_APP_DEV_SERVICE = http://127.0.0.1:9999 # 邓-本地 +# VITE_APP_DEV_SERVICE = http://123.157.250.162:8089/api # 测试线上 # --------------------------- 开发环境 图片访问基础地址 --------------------------- # VITE_IMAGE_DEV_PATH = https://stgl.pj.gov.cn/api # 域名线上 #VITE_IMAGE_DEV_PATH = http://59.202.170.152:81/api # 信创线上 # VITE_IMAGE_DEV_PATH = http://192.168.101.150:9999 # 邓-43本地 - # VITE_IMAGE_DEV_PATH = http://127.0.0.1:9999 -VITE_IMAGE_DEV_PATH = http://123.157.250.162:8089/api # 测试线上 + VITE_IMAGE_DEV_PATH = http://127.0.0.1:9999 +# VITE_IMAGE_DEV_PATH = http://123.157.250.162:8089/api # 测试线上 # --------------------------- 生产环境 api地址 ---------------------------------- VITE_APP_PROD_SERVICE = https://stgl.pj.gov.cn/api # 域名线上 diff --git a/src/sheep/api/index.ts b/src/sheep/api/index.ts index a661577..fd63da5 100644 --- a/src/sheep/api/index.ts +++ b/src/sheep/api/index.ts @@ -37,3 +37,5 @@ export { default as hardApi } from "./hard" export { default as noticeApi } from "./notice" export { default as invitationApi } from "./invitation" + +export { default as totalApi } from "./total" diff --git a/src/sheep/api/total.ts b/src/sheep/api/total.ts new file mode 100644 index 0000000..f887354 --- /dev/null +++ b/src/sheep/api/total.ts @@ -0,0 +1,22 @@ +import request from "@/sheep/utils/request" + +export default { + /** + * 菜品销量按照分类查询 + */ + productByClassify: (data: any) => + request({ + url: `/hard/hard-canteen-total-log/app/product-by-classify`, + method: "POST", + data, + }), + /** + * 近一周各个食堂菜品购买统计 + */ + productByCanteen: (data: any) => + request({ + url: `/hard/hard-canteen-total-log/app/product-by-canteen`, + method: "POST", + data, + }), +} \ No newline at end of file