From dc19fdf86993b2ddeb6b92e2561cb01176ded889 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期三, 16 七月 2025 23:12:58 +0800
Subject: [PATCH] 量表优化(通过查询嵌套的关系进行判断)

---
 pages/home/home.js |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/pages/home/home.js b/pages/home/home.js
index bdc8161..2db5511 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -140,7 +140,6 @@
         list.push({
           value: item.icon,
           link: item.jsek_link,
-
         })
       }
       this.setData({
@@ -472,6 +471,19 @@
     const item = e.currentTarget.dataset.book
     // 缃戦〉绫诲瀷璺宠浆鍒扮綉鍧�澶嶅埗椤碉紝鍥犱负url浼犲弬涓嶈兘浼� 甯﹀弬鏁扮殑缃戠粶鍦板潃锛屾墍浠ユ澶勮鎶婄綉缁滃湴鍧�閲岀殑浼犲弬鎽樺嚭鏉ワ紝鏀惧埌url閲�
     let urlData = ''
+    if (!item.jsek_link) {
+      wx.showModal({
+        title: '鎻愮ず',
+        content: '鏆傛棤鍐呭',
+        showCancel: false,
+        success: (res) => {
+          if (res.confirm) {
+            console.log(res, '3232')
+          }
+        }
+      })
+      return false;
+    }
     const flags = item.jsek_link.indexOf("?")
     if (flags > -1) {
       urlData = item.jsek_link.slice(flags + 1, item.jsek_link.length)

--
Gitblit v1.9.1