From 8aeddcf766df9f7e3061d4d098b57afdf53db896 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期四, 19 十二月 2024 15:28:07 +0800
Subject: [PATCH] 骨架屏及选择选中后自动跳转

---
 packageBookService/pages/psychologyAnswer/psychologyAnswer.js |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/packageBookService/pages/psychologyAnswer/psychologyAnswer.js b/packageBookService/pages/psychologyAnswer/psychologyAnswer.js
index bde6646..dc16d9a 100644
--- a/packageBookService/pages/psychologyAnswer/psychologyAnswer.js
+++ b/packageBookService/pages/psychologyAnswer/psychologyAnswer.js
@@ -289,6 +289,7 @@
       showId: lastItem.id
     });
   },
+
   // 鎴戠殑閿欓锛屾敹钘忔煡鐪嬭В鏋愭寜閽�
   viewParsing() {
     if (
@@ -387,6 +388,12 @@
         radioChange(citem)
       }
     }
+    const listLength = this.data.questionDataList.length - 1
+    if (this.data.currentIndex < listLength) {
+      this.setData({
+        currentIndex: this.data.currentIndex + 1
+      })
+    }
   },
   // 杈撳叆妗嗚Е鍙�
   onChangeInput(e) {
@@ -484,9 +491,6 @@
     });
     this.setData({
       loading: false,
-      showDialog: false,
-    });
-    this.setData({
       isShowDialog: true,
       submitStatus: true,
     });
@@ -494,7 +498,7 @@
   // 鍒濆鍖栧嚱鏁�
   async init(isReset) {
     this.setData({
-      showDialog: true,
+      isShowDialog: false,
       loading: true,
     });
     const questuionName = this.data.questuionName
@@ -652,6 +656,7 @@
   },
   async restart() {
     this.setData({
+      isShowDialog: false,
       currentIndex: 0,
       submitStatus: false,
     });

--
Gitblit v1.9.1