修改接口地址为本地正式环境,加图片上传动画
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user