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

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{
+2 -1
View File
@@ -1,7 +1,8 @@
<template>
<view>
<!-- <web-view src="https://api.fcrm.hnxinyouhe.com/index/userAgreement" style="width: 100%; height: 100%;"></web-view> -->
<web-view src="https://crm-server.smt.hnxinyouhe.com/index/userAgreement" style="width: 100%; height: 100%;"></web-view>
<!-- <web-view src="https://crm-server.smt.hnxinyouhe.com/index/userAgreement" style="width: 100%; height: 100%;"></web-view> -->
<web-view src="http://219.157.255.213:9006/index/userAgreement" style="width: 100%; height: 100%;"></web-view>
</view>
</template>
+2 -1
View File
@@ -1,7 +1,8 @@
<template>
<view>
<!-- <web-view src="https://api.fcrm.hnxinyouhe.com/index/privacyAgreement" style="width: 100%; height: 100%;"></web-view> -->
<web-view src="https://crm-server.smt.hnxinyouhe.com/index/privacyAgreement" style="width: 100%; height: 100%;"></web-view>
<!-- <web-view src="https://crm-server.smt.hnxinyouhe.com/index/privacyAgreement" style="width: 100%; height: 100%;"></web-view> -->
<web-view src="http://219.157.255.213:9006/index/privacyAgreement" style="width: 100%; height: 100%;"></web-view>
</view>
</template>
+1 -1
View File
@@ -20,7 +20,7 @@
</view>
<view class="footer">
<text class="copyright">{{$t('mine.copyright')}}</text>
<text class="copyright">© 2024 powered by 河南新友合科技有限公司</text>
</view>
</view>
</template>
+2 -1
View File
@@ -231,7 +231,8 @@
var that = this;
uni.uploadFile({
// 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')},