Browse Source

自定义运行/发布菜单

newyun
douzhuo 2 years ago
parent
commit
39be7b5858
9 changed files with 116 additions and 27 deletions
  1. +5
    -0
      env/cl.js
  2. +5
    -0
      env/dev.js
  3. +5
    -0
      env/prod_pq.js
  4. +5
    -0
      env/prod_sz.js
  5. +5
    -0
      env/prod_zk.js
  6. +5
    -0
      env/self.js
  7. +5
    -0
      env/sh.js
  8. +76
    -0
      package.json
  9. +5
    -27
      utils/domain.js

+ 5
- 0
env/cl.js View File

@@ -0,0 +1,5 @@
const ENV_PATH = {
baseUrl: 'http://192.168.31.231:8080/autoSR/api', // 长龙
}

module.exports = ENV_PATH

+ 5
- 0
env/dev.js View File

@@ -0,0 +1,5 @@
const ENV_PATH = {
baseUrl: 'http://81.70.55.170:9090/autoSR/api', // 微信的测试环境
}

module.exports = ENV_PATH

+ 5
- 0
env/prod_pq.js View File

@@ -0,0 +1,5 @@
const ENV_PATH = {
baseUrl: 'https://xitong.pachira.cn/api', // 普强正式
}

module.exports = ENV_PATH

+ 5
- 0
env/prod_sz.js View File

@@ -0,0 +1,5 @@
const ENV_PATH = {
baseUrl: 'https://hfju.com/api', // 数智正式
}

module.exports = ENV_PATH

+ 5
- 0
env/prod_zk.js View File

@@ -0,0 +1,5 @@
const ENV_PATH = {
baseUrl: 'https://zkgj.quhouse.com/api', // 智控正式
}

module.exports = ENV_PATH

+ 5
- 0
env/self.js View File

@@ -0,0 +1,5 @@
const ENV_PATH = {
baseUrl: 'http://127.0.0.1:8080/api', // 微信的测试环境
}

module.exports = ENV_PATH

+ 5
- 0
env/sh.js View File

@@ -0,0 +1,5 @@
const ENV_PATH = {
baseUrl: 'http://192.168.31.149:8080/api', // 胜浩
}

module.exports = ENV_PATH

+ 76
- 0
package.json View File

@@ -0,0 +1,76 @@
{
"uni-app": {
"scripts": {
"weixin:self": {
"title": "本地ip 没有autoSR 根据自身情况加",
"env": {
"UNI_PLATFORM": "mp-weixin",
"ENV_PATH": "@/env/self.js"
},
"define": {
"WXCS-PLATFORM": true
}
},
"weixin:cl": {
"title": "长龙ip",
"env": {
"UNI_PLATFORM": "mp-weixin",
"ENV_PATH": "@/env/cl.js"
},
"define": {
"WXCS-PLATFORM": true
}
},
"weixin:sh": {
"title": "胜浩ip",
"env": {
"UNI_PLATFORM": "mp-weixin",
"ENV_PATH": "@/env/sh.js"
},
"define": {
"WXCS-PLATFORM": true
}
},
"weixin:test": {
"title": "81.70.55.170:9090 90服务器",
"env": {
"UNI_PLATFORM": "mp-weixin",
"ENV_PATH": "@/env/dev.js"
},
"define": {
"WXCS-PLATFORM": true
}
},
"weixin:zk": {
"title": "智控 生产",
"env": {
"UNI_PLATFORM": "mp-weixin",
"ENV_PATH": "@/env/prod_zk.js"
},
"define": {
"WXSC-PLATFORM": true
}
},
"weixin:sz": {
"title": "数智 生产",
"env": {
"UNI_PLATFORM": "mp-weixin",
"ENV_PATH": "@/env/prod_sz.js"
},
"define": {
"WXSC-PLATFORM": true
}
},
"weixin:pq": {
"title": "普强 生产",
"env": {
"UNI_PLATFORM": "mp-weixin",
"ENV_PATH": "@/env/prod_pq.js"
},
"define": {
"WXSC-PLATFORM": true
}
}
}
}
}

+ 5
- 27
utils/domain.js View File

@@ -1,32 +1,10 @@
// http.js使用域名
const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 测试服务器1
// const baseUrl = 'http://81.70.55.170:7070/api';// 测试服务器2 (优化)
// const baseUrl = 'http://81.70.55.170:8080/autoSR/api';// 测试服务器3 (zk - 0719)
/**
* env文件里配置自定义运行菜单每一个js代表一个域名
*/
const path = process.env.ENV_PATH == undefined ? require('../env/dev.js') : require(process.env.ENV_PATH)


// const baseUrl = 'http://127.0.0.1:8080/autoSR/api'; // 本地


// const baseUrl = 'http://192.168.31.231:8080/autoSR/api'; // 长龙
// const baseUrl = 'http://192.168.31.149:8080/api'; // 盛浩


// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式
// const baseUrl = 'https://hfju.com/api'; // 数智正式
// const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用


// config使用域名
/**192.168.31.167
* 小程序配置文件
*/
// 此处主机域名修改成腾讯云解决方案分配的域名
// const host = 'http://192.168.31.57:8080/autoSR/api';// 本地
const baseUrl = path.baseUrl
const host = baseUrl; // 测试站
// const host = 'http://192.168.31.167:8080/autoSR/api'; // 长龙
// const host = 'http://10.2.1.104:8081/autoSR/api'; // 刘敏
// const host = 'https://zkgj.quhouse.com/api'; // 质控正式
// const host = 'https://hfju.com/api'; // 数智正式


const iMServiceHost = 'https://im.quhouse.com/'; //IM的后端地址正式


||||||
x
 
000:0
Loading…
Cancel
Save