diff --git a/src/api/base/mobile.js b/src/api/base/mobile.js index 0a0935f0..6e4dda51 100644 --- a/src/api/base/mobile.js +++ b/src/api/base/mobile.js @@ -101,7 +101,7 @@ import request from '@/utils/request' // 投诉建议列表 export function getPlaintByPageApi(data) { return request({ - url: '/smart-canteen/alloc_canteen_suggestion/list', + url: '/smart-canteen/basic_canteen_suggestion/list', method: 'get', headers: { "merchant-id":"378915229716713472", @@ -112,7 +112,7 @@ export function getPlaintByPageApi(data) { // 回复-投诉建议 export function replyComplaintApi(data) { return request({ - url: '/smart-canteen/alloc_canteen_suggestion/reply', + url: '/smart-canteen/basic_canteen_suggestion/reply', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -126,22 +126,18 @@ export function replyComplaintApi(data) { // 订单评价列表 export function getOrderEvaluatePageApi(data) { return request({ - url: '/smart-canteen/api/v1/applet/menuevaluaorder/page/evaluate/order', - method: 'post', + url: '/smart-canteen/cook_evalua_order/list', + method: 'get', headers: { "merchant-id":"378915229716713472", }, - data: data, - params:{ - pageNum:data.pageNum, - pageSize:data.pageSize - } + params: data }) } // 订单评价-回复 export function orderEvaluateReplyApi(data) { return request({ - url: '/smart-canteen/api/v1/applet/menuevaluaorder/add/evalua/reply', + url: '/smart-canteen/cook_evalua_order/reply', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -157,41 +153,16 @@ export function orderEvaluateReplyApi(data) { // 食堂评价列表 export function getCanteenEvaluatePageApi(data) { return request({ - url: '/smart-canteen/alloc_canteen_evaluate/list', + url: '/smart-canteen/basic_canteen_evaluate/list', method: 'get', headers: { "merchant-id":"378915229716713472", }, params: data }) -} -// 食堂评价-详情 -export function getCanteenEvaluateDetailApi(data) { - return request({ - url: '/smart-canteen/api/v1/canteen/evaluate/get-evaluate-detail', - method: 'post', - headers: { - "merchant-id":"378915229716713472", - }, - data: data - }) -} +} -// 评价统计列表 -export function getEvaluateCountPageApi(data) { - return request({ - url: '/smart-canteen/api/v1/canteen/evaluate/page-evaluate-count', - method: 'post', - headers: { - "merchant-id":"378915229716713472", - }, - data: data, - params:{ - pageNum:data.pageNum, - pageSize:data.pageSize - } - }) - } + diff --git a/src/api/dish/dish.js b/src/api/dish/dish.js index a1a58874..792cb7be 100644 --- a/src/api/dish/dish.js +++ b/src/api/dish/dish.js @@ -1,42 +1,22 @@ import request from '@/utils/request' - -// 查询菜品灶类列表 key -// dishes_cook 菜品灶类 -// dishes_label 菜品标签 -// dishes_taste 菜品口味 -// dishes_effec 菜品功效 -// dishes_style 菜品菜系 -// dishes_suitId 适宜人群 -// dishes_meal 餐次 -// dishes_season 事宜季节 -export function getDishesTypeListApi(data) { - return request({ - url: '/smart-canteen/menu_dishes/getDishesType', - method: 'post', - headers: { - "merchant-id":"378915229716713472", - }, - data: data - }) -} - + // 菜品种类-全量数据 export function menuDishesTypeAllListApi(data) { return request({ - url: '/smart-canteen/menu_material/getAllMenuDishesTypeList', - method: 'post', + url: '/smart-canteen/cook_dishes_type/list', + method: 'get', headers: { "merchant-id":"378915229716713472", }, - data: data + params: data }) } // 菜品种类-新增 areaId typeName export function addMenuDishesTypeApi(data) { return request({ - url: '/smart-canteen/menu_material/addMenuDishesType', + url: '/smart-canteen/cook_dishes_type/add', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -47,7 +27,7 @@ export function addMenuDishesTypeApi(data) { // 菜品种类-修改 areaId typeId typeName export function editMenuDishesTypeApi(data) { return request({ - url: '/smart-canteen/menu_material/updateMenuDishesType', + url: '/smart-canteen/cook_dishes_type/edit', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -58,12 +38,11 @@ export function editMenuDishesTypeApi(data) { // 菜品种类-删除 typeId export function removeMenuDishesTypeApi(data) { return request({ - url: '/smart-canteen/menu_material/delMenuDishesType', + url: '/smart-canteen/cook_dishes_type/del/'+data.dishesTypeId, method: 'post', headers: { "merchant-id":"378915229716713472", - }, - data: data + } }) } @@ -72,22 +51,18 @@ export function removeMenuDishesTypeApi(data) { // 菜品列表-分页 export function getMenuDishesListApi(data) { return request({ - url: '/smart-canteen/menu_dishes/list', - method: 'post', + url: '/smart-canteen/cook_dishes/list', + method: 'get', headers: { "merchant-id":"378915229716713472", }, - data: data, - params:{ - pageNum:data.pageNum, - pageSize:data.pageSize - } + params: data }) } // 菜品列表-新增 export function addMenuDishesApi(data) { return request({ - url: '/smart-canteen/menu_dishes/addMenuDishes', + url: '/smart-canteen/cook_dishes/add', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -98,7 +73,7 @@ export function addMenuDishesApi(data) { // 菜品列表-修改 export function editMenuDishesApi(data) { return request({ - url: '/smart-canteen/menu_dishes/deitMenuDishes', + url: '/smart-canteen/cook_dishes/edit', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -109,24 +84,22 @@ export function editMenuDishesApi(data) { // 菜品列表-详情 export function menuDishesDetailApi(data) { return request({ - url: '/smart-canteen/menu_dishes/check', - method: 'post', + url: '/smart-canteen/cook_dishes/getInfo/'+data.dishesId, + method: 'get', headers: { "merchant-id":"378915229716713472", - }, - data: data + } }) } // 菜品列表-删除 export function removeMenuDishesApi(data) { return request({ - url: '/smart-canteen/menu_dishes/del', + url: '/smart-canteen/cook_dishes/del/'+data.dishesId, method: 'post', headers: { "merchant-id":"378915229716713472", - }, - data: data + } }) } diff --git a/src/views/base/mobile/complaint/index.vue b/src/views/base/mobile/complaint/index.vue index da579445..d75b7658 100644 --- a/src/views/base/mobile/complaint/index.vue +++ b/src/views/base/mobile/complaint/index.vue @@ -42,7 +42,7 @@ - + @@ -84,8 +84,8 @@ - - + +