From 45999097f0705704a2ba9a70b339e18c28fc03b3 Mon Sep 17 00:00:00 2001
From: jazz <jazzxhunter@163.com>
Date: 星期三, 27 十二月 2023 20:16:35 +0800
Subject: [PATCH] update_202312272015_单个治疗室多个客人的逻辑编写

---
 src/config/index.js |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/src/config/index.js b/src/config/index.js
index f7eb119..12bd2c8 100644
--- a/src/config/index.js
+++ b/src/config/index.js
@@ -8,15 +8,23 @@
 import appId from './appid.js'
 
 var ismock = 1// 铏氭嫙鏁版嵁 0涓嶄娇鐢� 1浣跨敤
-var istest = 0// 0绾夸笂 1鏈湴 2娴嬭瘯鐜
+var istest = 2// 0绾夸笂 1鏈湴 2娴嬭瘯鐜
 var isConsole = 1// 鏄惁灞忚斀console 0灞忚斀 1寮�鏀�
 var debug = isConsole
 var isWxLoginType = 0 // 寰俊鐧诲綍 0鏃� 1闈欓粯寰俊鐧诲綍snsapi_base 2鎵嬪姩寰俊鐧诲綍snsapi_userinfo
+var isTestView = 1
+var is_use_test_server = 1 // 鏄惁閮ㄧ讲鍦ㄦ祴璇曟湇鍔″櫒
+var localOnline = istest ? 0 : 1 // 鏈湴杩炵嚎涓�
 
 // 鎵撳寘鍚庣殑鐜
 if (process.env && process.env.NODE_ENV !== 'development') {
   istest = 0
   ismock = 0
+  isTestView = 0
+  localOnline = 0
+  if (is_use_test_server) {
+    isTestView = 1
+  }
 }
 
 const pdomain = '/' // 绾夸笂
@@ -41,8 +49,8 @@
   const search = location.search
   // 鍙傛暟鏁扮粍
   let querys = []
-  if (search && search.indexOf('?')>-1) {
-    querys = search.split('?')[1].split('&').filter((str)=>{
+  if (search && search.indexOf('?') > -1) {
+    querys = search.split('?')[1].split('&').filter((str) => {
       const key = str.split('=')[0]
       const value = str.split('=')[1]
       return (key != 'code' && key != 'state')
@@ -53,7 +61,7 @@
 
   // 琛ュ厖鍙傛暟
   if (querys.length) {
-    indexUrl += '?'+querys.join('&')
+    indexUrl += '?' + querys.join('&')
   }
 
   return long.replace('{{appid}}', appid).replace('{{scope}}', scope).replace('{{url}}', encodeURIComponent(indexUrl))
@@ -64,7 +72,7 @@
   console.log = () => {}
 }
 
-var domain;
+var domain
 
 if (istest == 0) domain = pdomain // 绾夸笂
 if (istest == 1) domain = tdomain // 鏈湴
@@ -74,6 +82,8 @@
 export default {
   ismock,
   istest,
+  isTestView,
+  localOnline,
   isWxLoginType,
   isConsole,
   debug,

--
Gitblit v1.8.0