From d4431a98cae7808f1478b30e7fda19aa11d58cff Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Mon, 21 Apr 2025 11:12:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E8=84=B8=EF=BC=8C=E8=8F=9C=E5=93=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dish/dish.js | 4 +- src/store/modules/user.js | 5 + src/views/dish/dish/index.vue | 167 ++++++++++++++++---------------- src/views/system/user/index.vue | 155 +++++++++++++++++++++++++++-- 4 files changed, 241 insertions(+), 90 deletions(-) diff --git a/src/api/dish/dish.js b/src/api/dish/dish.js index 39ca1547..13e29c1f 100644 --- a/src/api/dish/dish.js +++ b/src/api/dish/dish.js @@ -94,7 +94,7 @@ export function addMenuDishesApi(data) { // 菜品列表-修改 export function editMenuDishesApi(data) { return request({ - url: '/smart-canteen/menu_dishes/edit', + url: '/smart-canteen/menu_dishes/deitMenuDishes', method: 'post', headers: { "merchant-id":"378915229716713472", @@ -105,7 +105,7 @@ export function editMenuDishesApi(data) { // 菜品列表-详情 export function menuDishesDetailApi(data) { return request({ - url: '/smart-canteen/api/v2/menudishes/detail/'+data.dishesId, + url: '/smart-canteen/menu_dishes/check', method: 'post', headers: { "merchant-id":"378915229716713472", diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 5b2b5d4c..5d83b5a2 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -39,6 +39,7 @@ const user = { id: '', name: '', avatar: '', + face: '', roles: [], permissions: [] }, @@ -62,6 +63,9 @@ const user = { SET_AVATAR(state, avatar) { state.avatar = avatar }, + SET_FACE(state, face) { + state.face = face + }, SET_ROLES(state, roles) { state.roles = roles }, @@ -129,6 +133,7 @@ const user = { commit('SET_PHONE', user.phonenumber) commit('SET_NAME', user.userName) commit('SET_AVATAR', avatar) + commit('SET_FACE', user.photoUrl) return res }) .catch(error => Promise.reject(error)) diff --git a/src/views/dish/dish/index.vue b/src/views/dish/dish/index.vue index 6e30cf02..dc17ad0b 100644 --- a/src/views/dish/dish/index.vue +++ b/src/views/dish/dish/index.vue @@ -160,8 +160,8 @@ - - + + - +