测试问题修改4
This commit is contained in:
parent
652e4da57a
commit
d63007803c
|
|
@ -86,7 +86,7 @@ export function queryFacePhotoApi(data) {
|
||||||
*/
|
*/
|
||||||
export function uploadPhotoGenCodeForAppApi(data) {
|
export function uploadPhotoGenCodeForAppApi(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/user/edit',
|
url: '/smart-canteen/userFace/uploadUserFace',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ module.exports = {
|
||||||
// baseUrl: 'http://192.168.0.39:21995',
|
// baseUrl: 'http://192.168.0.39:21995',
|
||||||
// #ifdef H5
|
// #ifdef H5
|
||||||
// baseUrl: '/canteen/dev-api',
|
// baseUrl: '/canteen/dev-api',
|
||||||
// baseUrl: '/dev-api',
|
baseUrl: '/dev-api',
|
||||||
// baseUrl: 'http://192.168.0.244:38380',//测试
|
// 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.0.244:58580',//测试
|
||||||
// baseUrl: 'http://192.168.2.82:58080',//张天强
|
// baseUrl: 'http://192.168.2.82:58080',//张天强
|
||||||
// baseUrl: 'http://192.168.2.69:58080',//董高文
|
// baseUrl: 'http://192.168.2.69:58080',//董高文
|
||||||
|
|
|
||||||
|
|
@ -128,13 +128,13 @@
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '上传中...'
|
title: '上传中...'
|
||||||
})
|
})
|
||||||
this.userInfo.photoUrl = this.faceData.fileNameUrl
|
// this.userInfo.photoUrl = this.faceData.fileNameUrl
|
||||||
console.log(this.userInfo)
|
// console.log(this.userInfo)
|
||||||
// let param = {
|
let param = {
|
||||||
// "userId": uni.getStorageSync('userId'),
|
"userId": uni.getStorageSync('userId'),
|
||||||
// "photoUrl": this.faceData.fileNameUrl
|
"photoUrl": this.faceData.fileNameUrl
|
||||||
// }
|
}
|
||||||
uploadPhotoGenCodeForAppApi(this.userInfo).then(res => {
|
uploadPhotoGenCodeForAppApi(param).then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if(res.code==200){
|
if(res.code==200){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
|
||||||
|
|
@ -491,7 +491,7 @@ export default {
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
this.getOrderDetail()
|
this.getList()
|
||||||
},500)
|
},500)
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue