From 8ea19a6bb34daab1410f6186992a4c1e90299c92 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Wed, 14 Sep 2022 08:54:44 +0800
Subject: [PATCH] 服务器配置

---
 store/state.js |   90 ++++++++++++++++++++++++++++----------------
 1 files changed, 57 insertions(+), 33 deletions(-)

diff --git a/store/state.js b/store/state.js
index 77b18bf..b278c91 100644
--- a/store/state.js
+++ b/store/state.js
@@ -1,49 +1,73 @@
+import websocket from "./websocket.js"
+import positions from "./positions.js"
+import apis from "./apiConfig.js"
+
+
+import myAudio from './lid/myAudio.js'
 const state = {
+	examDetail: {}, // 考试详情
+	questionList: [], // 考试考题列表
+	paperDetail: {},
+	billFlag: false,
+	queTypeArr: [0, 0, 0, 0, 0],
 	loging: false,
 	message: {
 		useName: '过客',
 	},
+	roleid: '', //角色id
+	Jurisdiction: '', //角色辖区
 	logPath: '',
-	piAPI: 'http://223.82.109.183:2082/api/',
-	//piAPI: 'http://192.168.0.110:83/',
+	piAPI: apis.api,
+	// piAPI: 'http://106.225.193.35:83/api/',
+	//piAPI: 'http://192.168.0.114:83/',
+	//piAPI: 'http://106.225.193.35:83/api/',
+	BaopiAPI: 'http://61.131.136.25:2080/api/',
+	//BaopiAPI: 'http://192.168.0.114:81',
+	firstlogin: null,
 	puserName: '',
 	puserID: '',
 	puserIphone: '',
 	avatar: "../../static/logo.png",
 	UserData: {},
 	tabbar: [{
-		pagePath: "/pages/home/home",
-		text: "首页",
-		iconPath: "/static/tabbar/index01.png",
-		selectedIconPath: "/static/tabbar/index02.png"
-	},
-	{
-		pagePath: "/pages/article/article",
-		text: "资讯",
-		iconPath: "/static/tabbar/article.png",
-		selectedIconPath: "/static/tabbar/articleH.png"
-	},
-	{
-		pagePath: "/pages/issue/issue",
-		iconPath: "/static/tabbar/addIcon.png",
-		selectedIconPath: "/static/tabbar/addSelectedIcon.png",
-		text: "发布",
-		midButton: true,
-	},
-	{
-		pagePath: "/pages/business/business",
-		text: "工作台",
-		iconPath: "/static/tabbar/workbench.png",
-		selectedIconPath: "/static/tabbar/workbenchH.png"
-	},
-	{
-		pagePath: "/pages/myself/myself",
-		text: "我的",
-		iconPath: "/static/tabbar/my.png",
-		selectedIconPath: "/static/tabbar/my-blue.png"
-	}
+			pagePath: "/pages/home/home",
+			text: "首页",
+			iconPath: "/static/tabbar/index01.png",
+			selectedIconPath: "/static/tabbar/index02.png"
+		},
+		{
+			pagePath: "/pages/article/article",
+			text: "资讯",
+			iconPath: "/static/tabbar/article.png",
+			selectedIconPath: "/static/tabbar/articleH.png"
+		},
+		// {
+		// 	pagePath: "/pages/issue/issue",
+		// 	iconPath: "/static/tabbar/addIcon.png",
+		// 	selectedIconPath: "/static/tabbar/addSelectedIcon.png",
+		// 	text: "发布",
+		// 	midButton: true,
+		// },
+		{
+			pagePath: "/pages/business/business",
+			text: "行业圈",
+			iconPath: "/static/tabbar/workbench.png",
+			selectedIconPath: "/static/tabbar/workbenchH.png"
+		},
+		{
+			pagePath: "/pages/myself/myself",
+			text: "我的",
+			iconPath: "/static/tabbar/my.png",
+			selectedIconPath: "/static/tabbar/my-blue.png"
+		}
 	],
-	gotuGrabOrders: false
+	gotuGrabOrders: false,
+	Audio: new myAudio({
+		uni: uni
+	}), //语音控制
+	...websocket.state,
+	...positions.state,
+	changeTaksState: true,
 }
 
 export default state

--
Gitblit v1.9.3