diff --git a/pages/index/index.vue b/pages/index/index.vue
index a7bc6c0..68881e8 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,84 +1,86 @@
-
+
\ No newline at end of file
+ // 进入检查
+ this.fnCheckShowStarted();
+ }).catch((err) => {
+ uni.switchTab({
+ url: homePagePath
+ });
+ })
+ },
+ methods: {
+ fnCheckShowStarted() {
+ if (!this.configs.appConfig.startConfig.enabled) {
+ uni.switchTab({
+ url: homePagePath
+ });
+ return;
+ }
+
+ // 是否每次都显示启动页
+ if (this.configs.appConfig.startConfig.alwaysShow) {
+ uni.removeStorageSync('APP_HAS_STARTED')
+ uni.redirectTo({
+ url: startPagePath
+ });
+ return;
+ }
+
+ // 只显示一次启动页
+ if (uni.getStorageSync('APP_HAS_STARTED')) {
+ uni.switchTab({
+ url: homePagePath
+ });
+ } else {
+ uni.redirectTo({
+ url: startPagePath
+ });
+ }
+ },
+ async getPostIdByQRCode(key) {
+ const response = await this.$httpApi.v2.getQRCodeInfo(key);
+ if (response) {
+ if (response && response.postId) {
+ return response.postId;
+ }
+ }
+ return null;
+ }
+ }
+};
+