app
MrShi
2026-04-27 e56792f78e4df0df2f12552d1a61dd8ca1db5c67
app/pages/guide-page/guide-page.vue
@@ -3,7 +3,7 @@
      <swiper class="guide-page__swiper" :current="current" circular @change="handleSwiperChange">
         <swiper-item v-for="(item, index) in guideList" :key="index">
            <view class="guide-page__slide">
               <image class="guide-page__image" :src="item.imgurlFull" mode="heightFix"></image>
               <image class="guide-page__image" :src="item.imgurlFull" mode="widthFix"></image>
            </view>
         </swiper-item>
      </swiper>
@@ -26,7 +26,11 @@
</template>
<script>
   import { mapState } from 'vuex'
   export default {
      computed: {
         ...mapState(['token'])
      },
      data() {
         return {
            current: 0,
@@ -51,8 +55,22 @@
            });
         },
         jump() {
            uni.navigateTo({
               url: '/pages/login/login'
            if (!this.token) {
               uni.navigateTo({
                  url: '/pages/login/login'
               })
               return
            }
            this.$u.api.checkToken({ token: this.token }).then(res => {
               if (res.data) {
                  uni.switchTab({
                     url: '/pages/index/index'
                  })
               } else {
                  uni.navigateTo({
                     url: '/pages/login/login'
                  })
               }
            })
         }
      }