From eee82fc63bf8b0b48bda5d6c89a491974a20bc97 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 18 八月 2023 09:52:50 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 minipro_standard/store/index.js |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/minipro_standard/store/index.js b/minipro_standard/store/index.js
index f73661c..0d677c6 100644
--- a/minipro_standard/store/index.js
+++ b/minipro_standard/store/index.js
@@ -1,5 +1,6 @@
 import Vue from 'vue'
-import Vuex from 'vuex'
+import Vuex from 'vuex'
+import { pageCount } from '@/util/api/index.js'
 
 Vue.use(Vuex) // vue鐨勬彃浠舵満鍒�
 
@@ -19,7 +20,12 @@
 		token: token || null,
 		menuButtonWidth: menuButtonWidth || '0',
 		statusbarHeight: statusbarHeight || '0',
-		navHeight: navHeight || '0',
+		navHeight: navHeight || '0',
+		// 寰呭姙鏁伴噺
+		upcomingNum: {
+			d: 0,
+			y: 0
+		},
 	},
 	mutations: {
 		setHeight(state, val) {
@@ -37,6 +43,10 @@
 		SETUSERINFO(state, val) {
 			state.userInfo = val
 			uni.setStorageSync('userInfo', val);
+		},
+		SETNUM(state, val) {
+			state.upcomingNum.d = val.d
+			state.upcomingNum.y = val.y
 		}
 	},
 	actions: {
@@ -56,6 +66,12 @@
 				menuButtonWidth
 			})
 		},
+		async getUpcomingNum() {
+			let res = await pageCount({})
+			if (res.code === 200) {
+				content.commit('SETNUM', { d: res.data.startNum, y: res.data.endNum })
+			}
+		}
 	}
 })
 

--
Gitblit v1.9.3