From d63007803c4c6f16a9a1587b59ce406de2e71b0d Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Wed, 25 Jun 2025 10:57:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E6=94=B94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/mine/index.js | 2 +- config.js | 4 ++-- pages/mine/me/faceUpload.vue | 14 +++++++------- pages/work/index.vue | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/api/mine/index.js b/api/mine/index.js index 2095876..8053f66 100644 --- a/api/mine/index.js +++ b/api/mine/index.js @@ -86,7 +86,7 @@ export function queryFacePhotoApi(data) { */ export function uploadPhotoGenCodeForAppApi(data) { return request({ - url: '/system/user/edit', + url: '/smart-canteen/userFace/uploadUserFace', method: 'post', data }) diff --git a/config.js b/config.js index 7730e30..7d3c335 100644 --- a/config.js +++ b/config.js @@ -4,9 +4,9 @@ module.exports = { // baseUrl: 'http://192.168.0.39:21995', // #ifdef H5 // baseUrl: '/canteen/dev-api', - // baseUrl: '/dev-api', + baseUrl: '/dev-api', // baseUrl: 'http://192.168.0.244:38380',//测试 - baseUrl: 'http://192.168.0.244:48380',//测试 + // baseUrl: 'http://192.168.0.244:48380',//测试 // baseUrl: 'http://192.168.0.244:58580',//测试 // baseUrl: 'http://192.168.2.82:58080',//张天强 // baseUrl: 'http://192.168.2.69:58080',//董高文 diff --git a/pages/mine/me/faceUpload.vue b/pages/mine/me/faceUpload.vue index 10eabea..6b918de 100644 --- a/pages/mine/me/faceUpload.vue +++ b/pages/mine/me/faceUpload.vue @@ -128,13 +128,13 @@ uni.showLoading({ title: '上传中...' }) - this.userInfo.photoUrl = this.faceData.fileNameUrl - console.log(this.userInfo) - // let param = { - // "userId": uni.getStorageSync('userId'), - // "photoUrl": this.faceData.fileNameUrl - // } - uploadPhotoGenCodeForAppApi(this.userInfo).then(res => { + // this.userInfo.photoUrl = this.faceData.fileNameUrl + // console.log(this.userInfo) + let param = { + "userId": uni.getStorageSync('userId'), + "photoUrl": this.faceData.fileNameUrl + } + uploadPhotoGenCodeForAppApi(param).then(res => { console.log(res) if(res.code==200){ uni.showToast({ diff --git a/pages/work/index.vue b/pages/work/index.vue index 6d56497..f1f3670 100644 --- a/pages/work/index.vue +++ b/pages/work/index.vue @@ -491,7 +491,7 @@ export default { icon: 'none' }) setTimeout(()=>{ - this.getOrderDetail() + this.getList() },500) }else{ uni.showToast({