From 6df96b3e7a7da1985ee875e84711e9f15c5fbff0 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期二, 24 十二月 2024 18:25:02 +0800
Subject: [PATCH] Merge refs/remotes/origin/master into refs/heads/master

---
 pages/digitalCourses/index.js |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/pages/digitalCourses/index.js b/pages/digitalCourses/index.js
index e7d403b..36d80f4 100644
--- a/pages/digitalCourses/index.js
+++ b/pages/digitalCourses/index.js
@@ -21,6 +21,7 @@
     activeItem: null,
     loading: false,
     contentLoading: false,
+    noData: false,
     shoppingCartGetId: [],
     sorter: {
       value: "*",
@@ -132,7 +133,7 @@
   },
   getCourseTypeListList() {
     this.setData({
-      loading: true
+      loading: true,
     })
     const data = {
       path: '*',
@@ -174,6 +175,9 @@
   },
 
   getCourseList(item) {
+    this.setData({
+      noData: false,
+    })
     let searchObj = {}
     let sort = {}
     // // 鎼滅储妗�
@@ -230,6 +234,12 @@
       }
     }
     app.MG.store.getProductList(obj).then((res) => {
+      if (!res.datas.length) {
+        return this.setData({
+          noData: true,
+          contentLoading: false
+        })
+      }
       res.datas.forEach(item => {
         item.price = item.price.toFixed(2)
         item.productLinkInfo = JSON.parse(item.productLinkInfo)
@@ -299,7 +309,7 @@
           )
         ) {
           wx.showToast({
-            title: "璇ヤ功宸插湪璐墿杞︼紝璇峰嬁閲嶅娣诲姞绌�",
+            title: "璇ヨ绋嬪凡鍦ㄨ喘鐗╄溅锛岃鍕块噸澶嶆坊鍔�",
             icon: 'none',
             duration: 1000
           })

--
Gitblit v1.9.1