diff --git a/.env b/.env index d8a15bb..d97467d 100644 --- a/.env +++ b/.env @@ -17,17 +17,17 @@ VITE_PWD_ENC_KEY='pigxpigxpigxpigx' VITE_OAUTH2_APP_CLIENT='mini:mini' # --------------------------- 开发环境 api地址 ---------------------------------- -VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/api # 域名线上 +# 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://192.168.101.174:9999 # 邓-本地 # 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://192.168.101.174:9999 # 邓-本地 + # VITE_IMAGE_DEV_PATH = http://127.0.0.1:9999 # VITE_IMAGE_DEV_PATH = http://123.157.250.162:8089/api # 测试线上 # --------------------------- 生产环境 api地址 ---------------------------------- diff --git a/src/pages/tabbar/canteenAnalyse.vue b/src/pages/tabbar/canteenAnalyse.vue index 37015c8..eceaae7 100644 --- a/src/pages/tabbar/canteenAnalyse.vue +++ b/src/pages/tabbar/canteenAnalyse.vue @@ -15,18 +15,75 @@ + + 个人菜品喜好排行 + + + 排名 + 菜品名称 + 分类 + 购买次数 + + + + + + {{ index + 1 }} + + {{ index + 1 }} + + + + {{ item.productName || "未知菜品" }} + + + + {{ item.classifyName || "未分类" }} + + + + + {{ item.payCount }}次 + + + + + + + 暂无菜品喜好数据 + + + diff --git a/src/sheep/api/total.ts b/src/sheep/api/total.ts index 35f8f4c..3ee388b 100644 --- a/src/sheep/api/total.ts +++ b/src/sheep/api/total.ts @@ -1,31 +1,31 @@ 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, - }), - /** - * 个人菜品喜好排行 - */ - productLikeTop: (data: any) => - request({ - url: `/hard/hard-canteen-total-log/app/product-like-top`, - method: "POST", - data, - }), -} \ No newline at end of file + /** + * 菜品销量按照分类查询 + */ + productByClassify: (data: any): any => + request({ + url: `/hard/hard-canteen-total-log/app/product-by-classify`, + method: "POST", + data, + }), + /** + * 近一周各个食堂菜品购买统计 + */ + productByCanteen: (data: any): any => + request({ + url: `/hard/hard-canteen-total-log/app/product-by-canteen`, + method: "POST", + data, + }), + /** + * 个人菜品喜好排行 + */ + productLikeTop: (data: any): any => + request({ + url: `/hard/hard-canteen-total-log/app/product-like-top`, + method: "POST", + data, + }), +}