zpj 2 лет назад
Родитель
Сommit
59d6a5a0ee
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 2
      pages/index/index.vue
  2. 1 0
      service/router.js

+ 2 - 2
pages/index/index.vue

@@ -194,7 +194,7 @@
 				</view>
 				</view>
 			</swiper-item>
 			</swiper-item>
 			<!-- 参与预约 -->
 			<!-- 参与预约 -->
-			<swiper-item>
+			<swiper-item v-if="isEnroll">
 				<view class="swiper-item" v-if="index == 5">
 				<view class="swiper-item" v-if="index == 5">
 					<view class="index-2">
 					<view class="index-2">
 						<image class="text-img-2 wow animate__animated animate__bounceInUp"
 						<image class="text-img-2 wow animate__animated animate__bounceInUp"
@@ -240,7 +240,7 @@
 			</swiper-item>
 			</swiper-item>
 			<!-- 提示 -->
 			<!-- 提示 -->
 			<swiper-item>
 			<swiper-item>
-				<view class="swiper-item" v-if="index == 6">
+				<view class="swiper-item" v-if="isEnroll?index == 6:index == 5">
 					<view class="index-2">
 					<view class="index-2">
 						<image class="text-img-3 wow animate__animated animate__bounceInUp"
 						<image class="text-img-3 wow animate__animated animate__bounceInUp"
 							src="@/static/img/wxts-text.png" mode="scaleToFill"></image>
 							src="@/static/img/wxts-text.png" mode="scaleToFill"></image>

+ 1 - 0
service/router.js

@@ -19,6 +19,7 @@ const router = createRouter({
 //全局路由前置守卫
 //全局路由前置守卫
 
 
 router.beforeEach( async (to, from, next) => {
 router.beforeEach( async (to, from, next) => {
+	
 	if(to.query.shopCode){
 	if(to.query.shopCode){
 		uni.setStorageSync("invite_code", to.query.shopCode);
 		uni.setStorageSync("invite_code", to.query.shopCode);
 	}
 	}