feat: 合并兼容
This commit is contained in:
21
pages.json
21
pages.json
@@ -58,6 +58,13 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/complete-info/skill-search",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "技能查询",
|
||||||
|
"navigationBarTitleTextSize": "30rpx"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/nearby/nearby",
|
"path": "pages/nearby/nearby",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -158,6 +165,20 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/service/serviceDetail",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "服务",
|
||||||
|
"navigationBarTitleTextSize": "30rpx"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/service/serviceTraceability",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "服务追溯",
|
||||||
|
"navigationBarTitleTextSize": "30rpx"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/mine/company-mine",
|
"path": "pages/mine/company-mine",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
@@ -8,22 +8,24 @@
|
|||||||
import config from '@/config.js'
|
import config from '@/config.js'
|
||||||
|
|
||||||
let exports = {
|
let exports = {
|
||||||
|
// ========== baseUrl 配置方式选择 ==========
|
||||||
|
// 方式1:硬编码baseUrl(main分支使用,合并到main时不会影响现有功能)
|
||||||
|
baseUrl: 'http://222.80.110.161:11111/sdrc-api', // 正式环境在济南人才上部署(不要轻易连接)
|
||||||
|
|
||||||
// 引用根目录config.js的baseUrl,避免重复配置
|
// 方式2:引用根目录config.js的baseUrl(CareerMap分支可选方式,如需使用请注释掉方式1,取消注释此方式)
|
||||||
baseUrl: config.baseUrl,
|
// baseUrl: config.baseUrl, // 引用根目录config.js的baseUrl,避免重复配置
|
||||||
|
|
||||||
// baseUrl: 'http://127.0.0.1:8903', // 本地开发
|
|
||||||
|
|
||||||
|
// ========== 其他baseUrl配置(备用) ==========
|
||||||
|
// baseUrl: 'http://172.20.0.177:8903', // 正式环境在济南人才上部署(不要轻易连接)
|
||||||
|
// baseUrl: 'http://127.0.0.1:8903', // 本地开发
|
||||||
// baseUrl: 'http://172.20.0.104:8903', // xubaiqi 地址
|
// baseUrl: 'http://172.20.0.104:8903', // xubaiqi 地址
|
||||||
|
// baseUrl: 'http://172.20.1.76:8903', // 演示环境内网
|
||||||
// baseUrl: 'http://172.20.1.76:8903', // 演示环境内网
|
// baseUrl: 'http://36.140.162.216:8904/prod-api', // 演示环境外网
|
||||||
|
// baseUrl: 'http://10.160.0.5:8903', // 演示环境外网
|
||||||
// baseUrl: 'http://36.140.162.216:8904/prod-api', // 演示环境外网
|
|
||||||
|
|
||||||
// baseUrl: 'http://10.160.0.5:8903', // 演示环境外网
|
|
||||||
|
|
||||||
// baseUrl: 'http://111.34.80.140:8081/prod-api', // 正式环境(不要轻易连接)
|
// baseUrl: 'http://111.34.80.140:8081/prod-api', // 正式环境(不要轻易连接)
|
||||||
// baseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 已从根目录config.js引用,不再重复配置
|
// baseUrl: 'http://ks.zhaopinzao8dian.com/api/ks', // 已从根目录config.js引用,不再重复配置
|
||||||
|
|
||||||
|
// ========== 职业图谱专用baseUrl ==========
|
||||||
zytpBaseUrl: 'http://ks.zhaopinzao8dian.com/api/ks_zytp/admin-api/zytp',
|
zytpBaseUrl: 'http://ks.zhaopinzao8dian.com/api/ks_zytp/admin-api/zytp',
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -36,24 +36,24 @@ const request = config => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 如果是 getJobPathById 接口,打印完整 URL
|
// 如果是 getJobPathById 接口,打印完整 URL(调试用,生产环境可注释)
|
||||||
if (config.url && config.url.includes('getJobPathById')) {
|
// if (config.url && config.url.includes('getJobPathById')) {
|
||||||
console.log('[请求URL] getJobPathById 完整请求URL:', requestUrl);
|
// console.log('[请求URL] getJobPathById 完整请求URL:', requestUrl);
|
||||||
console.log('[请求URL] baseUrl:', requestBaseUrl);
|
// console.log('[请求URL] baseUrl:', requestBaseUrl);
|
||||||
console.log('[请求URL] 接口路径:', config.url);
|
// console.log('[请求URL] 接口路径:', config.url);
|
||||||
console.log('[请求URL] 请求参数:', config.params);
|
// console.log('[请求URL] 请求参数:', config.params);
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 如果是 recommendJob 接口,打印详细信息
|
// 如果是 recommendJob 接口,打印详细信息(调试用,生产环境可注释)
|
||||||
if (config.url && config.url.includes('recommendJob')) {
|
// if (config.url && config.url.includes('recommendJob')) {
|
||||||
console.log('[请求URL] recommendJob 完整请求URL:', requestUrl);
|
// console.log('[请求URL] recommendJob 完整请求URL:', requestUrl);
|
||||||
console.log('[请求URL] baseUrl:', requestBaseUrl);
|
// console.log('[请求URL] baseUrl:', requestBaseUrl);
|
||||||
console.log('[请求URL] 接口路径:', config.url);
|
// console.log('[请求URL] 接口路径:', config.url);
|
||||||
console.log('[请求URL] 请求方法:', config.method);
|
// console.log('[请求URL] 请求方法:', config.method);
|
||||||
console.log('[请求URL] 请求参数 (params):', config.params);
|
// console.log('[请求URL] 请求参数 (params):', config.params);
|
||||||
console.log('[请求URL] 请求数据 (data):', config.data);
|
// console.log('[请求URL] 请求数据 (data):', config.data);
|
||||||
console.log('[请求URL] Content-Type:', config.header?.['content-type']);
|
// console.log('[请求URL] Content-Type:', config.header?.['content-type']);
|
||||||
}
|
// }
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
uni.request({
|
uni.request({
|
||||||
@@ -75,7 +75,7 @@ const request = config => {
|
|||||||
}
|
}
|
||||||
// 处理 code,0 和 200 都表示成功
|
// 处理 code,0 和 200 都表示成功
|
||||||
const code = res.code !== undefined && res.code !== null ? res.code : 200
|
const code = res.code !== undefined && res.code !== null ? res.code : 200
|
||||||
console.log(code, 'const code = res.code || 200')
|
// console.log(code, 'const code = res.code || 200') // 调试用,生产环境可注释
|
||||||
const msg = errorCode[code] || res.msg || errorCode['default']
|
const msg = errorCode[code] || res.msg || errorCode['default']
|
||||||
const isShowModel = getApp().globalData.isShowModel
|
const isShowModel = getApp().globalData.isShowModel
|
||||||
if (code === 200 || code === 0) {
|
if (code === 200 || code === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user