添加客户标签搜索等 及登录注册传参 及添加转移功能

This commit is contained in:
浅念
2025-07-24 17:31:25 +08:00
parent e6851b4c5c
commit e89ca3dd33
11 changed files with 357 additions and 62 deletions
+12 -4
View File
@@ -1,7 +1,7 @@
const baseUrl = "http://219.157.255.213:9006/"; //这里放置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 = "http://219.157.255.213:25329/"; //这里放置url域名32044
// const baseUrl = "https://api.fcrm.hnxinyouhe.com/"; //这里放置url域名32044
// const baseUrl = "https://crm-server.smt.hnxinyouhe.com/"; //这里放置url域名32044
// const baseUrl = "/api/"; //这里放置url域名32044
@@ -11,12 +11,20 @@ export function request(options){//封装的requset
uni.showLoading({
title: ''
});
var lang = uni.getStorageSync('i18locale')?uni.getStorageSync('i18locale'):uni.getLocale()
if(lang=='zh-Hans'){
lang='zh_CN'
}
console.log(lang)
return new Promise((resolve,rejext)=>{
uni.request({//这里是uniapp网络请求的api
url: baseUrl + url, //仅为示例,并非真实接口地址。
data,
header:{'content-type': 'application/x-www-form-urlencoded','Authorization': 'Bearer ' + uni.getStorageSync('token')},
header:{
'content-type': 'application/x-www-form-urlencoded',
'Authorization': 'Bearer ' + uni.getStorageSync('token'),
'fdesk-language':lang
},
method:method||"GET",//默认请求方式是get
success: (res) => {
if(res.data.code==401){