修改接口地址为本地正式环境,加图片上传动画

This commit is contained in:
浅念
2025-07-10 16:55:09 +08:00
parent d15692aad7
commit 81927e44ab
9 changed files with 25 additions and 14 deletions
+6 -1
View File
@@ -442,15 +442,20 @@
},
uploadfn(imgUrl,name){
var that = this;
uni.showLoading({
title:this.$t('imgloading')
});
uni.uploadFile({
// url: 'http://api.crm.hnxinyouhe.com/upload',
// url: 'https://api.fcrm.hnxinyouhe.com/upload/uploadImage',
url: 'https://crm-server.smt.hnxinyouhe.com/upload/uploadImage',
// url: 'https://crm-server.smt.hnxinyouhe.com/upload/uploadImage',
url: 'http://219.157.255.213:9006/upload/uploadImage',
filePath: imgUrl,
name: 'files',
header:{'Authorization': 'Bearer ' + uni.getStorageSync('token')},
success: (uploadFileRes) => {
const path=JSON.parse(uploadFileRes.data)
uni.hideLoading();
if(path.code==0){
that.form[name] = path.data.path
}else{