修改接口地址为本地正式环境,加图片上传动画
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
||||
|
||||
// const baseUrl = "http://219.157.255.213:9007/"; //这里放置url域名32044
|
||||
const baseUrl = "http://219.157.255.213:9006/"; //这里放置url域名32044
|
||||
// const baseUrl = "http://api.crm.hnxinyouhe.com/"; //这里放置url域名32044
|
||||
// const baseUrl = "http://192.168.50.9:8787/"; //这里放置url域名32044
|
||||
// const baseUrl = "https://api.fcrm.hnxinyouhe.com/"; //这里放置url域名32044
|
||||
const baseUrl = "https://crm-server.smt.hnxinyouhe.com/"; //这里放置url域名32044
|
||||
// const baseUrl = "https://crm-server.smt.hnxinyouhe.com/"; //这里放置url域名32044
|
||||
// const baseUrl = "/api/"; //这里放置url域名32044
|
||||
export function request(options){//封装的requset
|
||||
let { url,data,method } = options;
|
||||
|
||||
@@ -160,7 +160,7 @@ export default {
|
||||
Confirmpassword:'Confirm password',
|
||||
Confirmbtn:'Confirm modification',
|
||||
edtbtn:'edit',
|
||||
zh:'Chinese',
|
||||
zh:'中文',
|
||||
en:'English',
|
||||
ru:'Russian',
|
||||
subsuccess:'Successful',
|
||||
@@ -200,6 +200,7 @@ export default {
|
||||
versionmsg:'It is already the latest version!',
|
||||
receiveOrder:'Collect Order',
|
||||
loading:'loading',
|
||||
imgloading:'Image uploading in progress!',
|
||||
downmp:'Download business card',
|
||||
downmpmsg:'Are you sure to download the current business card image?',
|
||||
callmsg:'Are you sure you want to make the call?',
|
||||
|
||||
@@ -159,9 +159,9 @@ export default {
|
||||
Confirmpassword: "Подтвердите пароль",
|
||||
Confirmbtn: "Подтвердить изменение",
|
||||
edtbtn: "Редактировать данные",
|
||||
zh: "Китайский",
|
||||
en: "Английский",
|
||||
ru: "Русский",
|
||||
zh:'中文',
|
||||
en:'English',
|
||||
ru:'Russian',
|
||||
subsuccess: "Успешно отправлено",
|
||||
onedaygj: "Через 1 день",
|
||||
threedaygj: "Через 3 дня",
|
||||
@@ -199,6 +199,7 @@ export default {
|
||||
versionmsg: "Уже последняя версия!",
|
||||
receiveOrder: "Принять заказ",
|
||||
loading: "Загрузка",
|
||||
imgloading:'Идёт загрузка изображения!',
|
||||
downmp:'Скачать визитку',
|
||||
downmpmsg:'Вы уверены в загрузке текущей карты?',
|
||||
callmsg:'Вы уверены, что хотите совершить звонок?',
|
||||
|
||||
@@ -87,7 +87,7 @@ export default {
|
||||
Versionup:'版本更新',
|
||||
Privacy:'隐私政策',
|
||||
UserAgreement:'用户协议',
|
||||
copyright:'© 2024 powered by 河南晋海科技环保有限公司',
|
||||
copyright:'© 2024 powered by 河南新友合科技有限公司',
|
||||
logoff:'账户注销',
|
||||
logoffmsg:'以下信息将被清空无法找回',
|
||||
logoffts1:'身份、账号信息',
|
||||
@@ -160,8 +160,8 @@ export default {
|
||||
Confirmbtn:'确认修改',
|
||||
edtbtn:'编辑资料',
|
||||
zh:'中文',
|
||||
en:'英语',
|
||||
ru:'俄语',
|
||||
en:'English',
|
||||
ru:'Russian',
|
||||
subsuccess:'提交成功',
|
||||
onedaygj:'1天后',
|
||||
threedaygj:'3天后',
|
||||
@@ -199,6 +199,7 @@ export default {
|
||||
versionmsg:'已是最新版本!',
|
||||
receiveOrder:'领单',
|
||||
loading:'加载中',
|
||||
imgloading:'图片上传中!',
|
||||
downmp:'下载名片',
|
||||
downmpmsg:'确定下载当前名片图吗?',
|
||||
callmsg:'确定拨打电话吗?',
|
||||
|
||||
@@ -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