Browse Source

h5 新增三院ip

1543246227@qq.com 1 week ago
parent
commit
58bbc5e1b2
3 changed files with 12 additions and 13 deletions
  1. 4 0
      config/servernet.config.js
  2. 1 1
      main.js
  3. 7 12
      pages/index/index.vue

+ 4 - 0
config/servernet.config.js

@@ -21,5 +21,9 @@ module.exports = [{
 	{
 		name: '附海',
 		ip: 'http://192.26.1.242:10066'
+	},
+	{
+		name: '三院',
+		ip: 'http://192.1.1.24:10066'
 	}
 ];

+ 1 - 1
main.js

@@ -1,7 +1,7 @@
 import App from './App'
 import mf from '@/static/js/mf.js';
 import api from 'api/index.js'
-import './static/js/sdk/ydool-jssdk.4.0.0.js'
+// import './static/js/sdk/ydool-jssdk.4.0.0.js'
 
 import {
 	md, //

+ 7 - 12
pages/index/index.vue

@@ -394,24 +394,19 @@
 						if (item.ip == globalData.configData.prodIp && item.name == '龙游') {
 							t.longyou();
 							return;
-						}
-						if (item.ip == globalData.configData.prodIp && item.name == '兰溪') {
+						}else if (item.ip == globalData.configData.prodIp && item.name == '兰溪') {
 							t.lanxi();
 							return;
-						}
-						if (item.ip == globalData.configData.prodIp && item.name == '附海') {
-							t.other();
-							return;
-						}
-						if (item.ip == globalData.configData.prodIp && item.name == '正式') {
+						}else if (item.ip == globalData.configData.prodIp && item.name == '正式') {
 							t.zhengshi();
 							return;
-						}
-						if (item.ip == globalData.configData.prodIp && item.name == '测试') {
+						}else if (item.ip == globalData.configData.prodIp && item.name == '测试') {
 							t.zhengshi();
 							return;
-						}
-						if (item.ip == globalData.configData.prodIp && item.name == '开发') {
+						}else if (item.ip == globalData.configData.prodIp && item.name == '附海') {
+							t.other();
+							return;
+						}else{
 							t.other();
 							return;
 						}