lex-xin 5 月之前
父节点
当前提交
627675e3ab
共有 2 个文件被更改,包括 7 次插入4 次删除
  1. 4 2
      miniprogram/pages/index/index.ts
  2. 3 2
      miniprogram/pages/index/index.wxml

+ 4 - 2
miniprogram/pages/index/index.ts

@@ -153,7 +153,7 @@ Page({
     showClass: false,
     showClassAfterLeave: false, // 离开后
     buyerLoading: false,
-    currentIndex: 1,
+    currentIndex: 0,
   },
 
   /**
@@ -389,6 +389,7 @@ Page({
   onClose() {
     this.setData({
       popupShow: false,
+      currentIndex: 1,
       userBeneficiaryId: '',
       userBeneficiaryInfo: {
         name: '',
@@ -451,7 +452,8 @@ Page({
         url: `../orders/order-detail?orderInfo=${info}&userBeneficiaryId=${that.data.userBeneficiaryId}`,
         success: () => {
           that.setData({
-            popupShow: false
+            popupShow: false,
+            currentIndex: 1,
           })
         }
       })

+ 3 - 2
miniprogram/pages/index/index.wxml

@@ -1,5 +1,6 @@
-<swiper indicator-dots="{{false}}" vertical="true" class="firstConainer">
-  <swiper-item>
+<swiper current="{{ currentIndex }}" indicator-dots="{{false}}" vertical="true" class="firstConainer">
+<!--  || !showBuyer || !showGender || showArea || showSchool || showGradeClass || showClass -->
+  <swiper-item wx:if="{{ !popupShow }}">
     <view class="pageContainer firstPageContainer">
       <navigation-bar title="器乐数字AI工具" back="{{false}}"></navigation-bar>
       <swiper indicator-dots="{{false}}" class="fistSwiperSection" previous-margin="78rpx" next-margin="78rpx" bindchange="onFirstChange">