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