Browse Source

自定义运行/发布菜单

dmb
douzhuo 2 years ago
parent
commit
b381eaa0ef
7 changed files with 85 additions and 7 deletions
  1. +5
    -0
      env/cl.js
  2. +5
    -0
      env/dev.js
  3. +5
    -0
      env/prod_xjzs.js
  4. +5
    -0
      env/self.js
  5. +5
    -0
      env/sh.js
  6. +56
    -0
      package.json
  7. +4
    -7
      utils/domain.js

+ 5
- 0
env/cl.js View File

@@ -0,0 +1,5 @@
const ENV_PATH = {
baseUrl: 'http://192.168.31.161:9999', // 长龙
}

module.exports = ENV_PATH

+ 5
- 0
env/dev.js View File

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

module.exports = ENV_PATH

+ 5
- 0
env/prod_xjzs.js View File

@@ -0,0 +1,5 @@
const ENV_PATH = {
baseUrl: 'https://hxz.quhouse.com', // 销讲助手
}

module.exports = ENV_PATH

+ 5
- 0
env/self.js View File

@@ -0,0 +1,5 @@
const ENV_PATH = {
baseUrl: 'http://127.0.0.1:9999', // 本地
}

module.exports = ENV_PATH

+ 5
- 0
env/sh.js View File

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

module.exports = ENV_PATH

+ 56
- 0
package.json View File

@@ -0,0 +1,56 @@
{
"uni-app": {
"scripts": {
"weixin:self": {
"title": "本地ip",
"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": "测试服务器",
"env": {
"UNI_PLATFORM": "mp-weixin",
"ENV_PATH": "@/env/dev.js"
},
"define": {
"WXCS-PLATFORM": true
}
},
"weixin:ai": {
"title": "AI销讲助手 生产",
"env": {
"UNI_PLATFORM": "mp-weixin",
"ENV_PATH": "@/env/prod_xjzs.js"
},
"define": {
"WXSC-PLATFORM": true
}
},
}
}
}

+ 4
- 7
utils/domain.js View File

@@ -1,10 +1,7 @@
const base = 'http://81.70.55.170:9999'; // 测试站
// const base = 'http://127.0.0.1:9999'; // 本地
// const base = 'http://192.168.31.149:9999' ;// 胜浩
// const base = 'http://192.168.31.161:9999' // 长龙
// const base = 'https://zanyong.hfju.com';// 正式 AI销管// 弃用
// const base = 'https://hxz.quhouse.com';// 正式 AI销讲助手

/**
* env文件里配置自定义运行菜单每一个js代表一个域名
*/
const base = process.env.ENV_PATH == undefined ? require('../env/dev.js') : require(process.env.ENV_PATH)
// http.js使用
const baseUrl = `${base}/autoSR/api`;
// config 使用


Loading…
Cancel
Save