修改接口地址为本地正式环境,加图片上传动画
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://api.crm.hnxinyouhe.com/"; //这里放置url域名32044
|
||||||
// const baseUrl = "http://192.168.50.9:8787/"; //这里放置url域名32044
|
// const baseUrl = "http://192.168.50.9:8787/"; //这里放置url域名32044
|
||||||
// const baseUrl = "https://api.fcrm.hnxinyouhe.com/"; //这里放置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
|
// const baseUrl = "/api/"; //这里放置url域名32044
|
||||||
export function request(options){//封装的requset
|
export function request(options){//封装的requset
|
||||||
let { url,data,method } = options;
|
let { url,data,method } = options;
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ export default {
|
|||||||
Confirmpassword:'Confirm password',
|
Confirmpassword:'Confirm password',
|
||||||
Confirmbtn:'Confirm modification',
|
Confirmbtn:'Confirm modification',
|
||||||
edtbtn:'edit',
|
edtbtn:'edit',
|
||||||
zh:'Chinese',
|
zh:'中文',
|
||||||
en:'English',
|
en:'English',
|
||||||
ru:'Russian',
|
ru:'Russian',
|
||||||
subsuccess:'Successful',
|
subsuccess:'Successful',
|
||||||
@@ -200,6 +200,7 @@ export default {
|
|||||||
versionmsg:'It is already the latest version!',
|
versionmsg:'It is already the latest version!',
|
||||||
receiveOrder:'Collect Order',
|
receiveOrder:'Collect Order',
|
||||||
loading:'loading',
|
loading:'loading',
|
||||||
|
imgloading:'Image uploading in progress!',
|
||||||
downmp:'Download business card',
|
downmp:'Download business card',
|
||||||
downmpmsg:'Are you sure to download the current business card image?',
|
downmpmsg:'Are you sure to download the current business card image?',
|
||||||
callmsg:'Are you sure you want to make the call?',
|
callmsg:'Are you sure you want to make the call?',
|
||||||
|
|||||||
@@ -159,9 +159,9 @@ export default {
|
|||||||
Confirmpassword: "Подтвердите пароль",
|
Confirmpassword: "Подтвердите пароль",
|
||||||
Confirmbtn: "Подтвердить изменение",
|
Confirmbtn: "Подтвердить изменение",
|
||||||
edtbtn: "Редактировать данные",
|
edtbtn: "Редактировать данные",
|
||||||
zh: "Китайский",
|
zh:'中文',
|
||||||
en: "Английский",
|
en:'English',
|
||||||
ru: "Русский",
|
ru:'Russian',
|
||||||
subsuccess: "Успешно отправлено",
|
subsuccess: "Успешно отправлено",
|
||||||
onedaygj: "Через 1 день",
|
onedaygj: "Через 1 день",
|
||||||
threedaygj: "Через 3 дня",
|
threedaygj: "Через 3 дня",
|
||||||
@@ -199,6 +199,7 @@ export default {
|
|||||||
versionmsg: "Уже последняя версия!",
|
versionmsg: "Уже последняя версия!",
|
||||||
receiveOrder: "Принять заказ",
|
receiveOrder: "Принять заказ",
|
||||||
loading: "Загрузка",
|
loading: "Загрузка",
|
||||||
|
imgloading:'Идёт загрузка изображения!',
|
||||||
downmp:'Скачать визитку',
|
downmp:'Скачать визитку',
|
||||||
downmpmsg:'Вы уверены в загрузке текущей карты?',
|
downmpmsg:'Вы уверены в загрузке текущей карты?',
|
||||||
callmsg:'Вы уверены, что хотите совершить звонок?',
|
callmsg:'Вы уверены, что хотите совершить звонок?',
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export default {
|
|||||||
Versionup:'版本更新',
|
Versionup:'版本更新',
|
||||||
Privacy:'隐私政策',
|
Privacy:'隐私政策',
|
||||||
UserAgreement:'用户协议',
|
UserAgreement:'用户协议',
|
||||||
copyright:'© 2024 powered by 河南晋海科技环保有限公司',
|
copyright:'© 2024 powered by 河南新友合科技有限公司',
|
||||||
logoff:'账户注销',
|
logoff:'账户注销',
|
||||||
logoffmsg:'以下信息将被清空无法找回',
|
logoffmsg:'以下信息将被清空无法找回',
|
||||||
logoffts1:'身份、账号信息',
|
logoffts1:'身份、账号信息',
|
||||||
@@ -160,8 +160,8 @@ export default {
|
|||||||
Confirmbtn:'确认修改',
|
Confirmbtn:'确认修改',
|
||||||
edtbtn:'编辑资料',
|
edtbtn:'编辑资料',
|
||||||
zh:'中文',
|
zh:'中文',
|
||||||
en:'英语',
|
en:'English',
|
||||||
ru:'俄语',
|
ru:'Russian',
|
||||||
subsuccess:'提交成功',
|
subsuccess:'提交成功',
|
||||||
onedaygj:'1天后',
|
onedaygj:'1天后',
|
||||||
threedaygj:'3天后',
|
threedaygj:'3天后',
|
||||||
@@ -199,6 +199,7 @@ export default {
|
|||||||
versionmsg:'已是最新版本!',
|
versionmsg:'已是最新版本!',
|
||||||
receiveOrder:'领单',
|
receiveOrder:'领单',
|
||||||
loading:'加载中',
|
loading:'加载中',
|
||||||
|
imgloading:'图片上传中!',
|
||||||
downmp:'下载名片',
|
downmp:'下载名片',
|
||||||
downmpmsg:'确定下载当前名片图吗?',
|
downmpmsg:'确定下载当前名片图吗?',
|
||||||
callmsg:'确定拨打电话吗?',
|
callmsg:'确定拨打电话吗?',
|
||||||
|
|||||||
@@ -442,15 +442,20 @@
|
|||||||
},
|
},
|
||||||
uploadfn(imgUrl,name){
|
uploadfn(imgUrl,name){
|
||||||
var that = this;
|
var that = this;
|
||||||
|
uni.showLoading({
|
||||||
|
title:this.$t('imgloading')
|
||||||
|
});
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
// url: 'http://api.crm.hnxinyouhe.com/upload',
|
// url: 'http://api.crm.hnxinyouhe.com/upload',
|
||||||
// url: 'https://api.fcrm.hnxinyouhe.com/upload/uploadImage',
|
// 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,
|
filePath: imgUrl,
|
||||||
name: 'files',
|
name: 'files',
|
||||||
header:{'Authorization': 'Bearer ' + uni.getStorageSync('token')},
|
header:{'Authorization': 'Bearer ' + uni.getStorageSync('token')},
|
||||||
success: (uploadFileRes) => {
|
success: (uploadFileRes) => {
|
||||||
const path=JSON.parse(uploadFileRes.data)
|
const path=JSON.parse(uploadFileRes.data)
|
||||||
|
uni.hideLoading();
|
||||||
if(path.code==0){
|
if(path.code==0){
|
||||||
that.form[name] = path.data.path
|
that.form[name] = path.data.path
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<!-- <web-view src="https://api.fcrm.hnxinyouhe.com/index/userAgreement" style="width: 100%; height: 100%;"></web-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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<!-- <web-view src="https://api.fcrm.hnxinyouhe.com/index/privacyAgreement" style="width: 100%; height: 100%;"></web-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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="footer">
|
<view class="footer">
|
||||||
<text class="copyright">{{$t('mine.copyright')}}</text>
|
<text class="copyright">© 2024 powered by 河南新友合科技有限公司</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -231,7 +231,8 @@
|
|||||||
var that = this;
|
var that = this;
|
||||||
uni.uploadFile({
|
uni.uploadFile({
|
||||||
// url: 'https://api.fcrm.hnxinyouhe.com/upload/uploadImage',
|
// 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,
|
filePath: imgUrl,
|
||||||
name: 'files',
|
name: 'files',
|
||||||
header:{'Authorization': 'Bearer ' + uni.getStorageSync('token')},
|
header:{'Authorization': 'Bearer ' + uni.getStorageSync('token')},
|
||||||
|
|||||||
Reference in New Issue
Block a user