From 41193d186d157937ba052e73dd04c12018e9ecab Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期四, 07 八月 2025 10:38:42 +0800
Subject: [PATCH] 新增

---
 pages/tabBar/count/productDetail.js |   76 +++++++++++++++++++-------------------
 1 files changed, 38 insertions(+), 38 deletions(-)

diff --git a/pages/tabBar/count/productDetail.js b/pages/tabBar/count/productDetail.js
index 0750f2b..0f474c9 100644
--- a/pages/tabBar/count/productDetail.js
+++ b/pages/tabBar/count/productDetail.js
@@ -36,53 +36,53 @@
 
   getList() {
     // cloudApi
-    const userId = wx.getStorageSync('user').id
-    wx.cloud.callFunction({
-      name: 'getProductFlowByPage',
-      data: {...this.data.examParams,userId: userId}
-    }).then(res=>{
-      if(res.result && Array.isArray(res.result.list) && res.result.list.length>0){
-        let list = cloudApi.changeKey(res.result.list)
-        if (this.data.examParams.pageNum != 1) {
-          this.setData({
-            examList: this.data.examList.concat(list),
-            totalPage: Math.ceil(res.result.total / res.result.pageSize)
-          });
-        } else {
-          this.setData({
-            examList: list,
-            totalPage: Math.ceil(res.result.total / res.result.pageSize)
-          });
-        }
-      }else{
-        this.setData({
-          examList: [],
-          totalPage: 0
-        });
-      }
-    })
-
-    // api请求
-    // api.getProductFlowByUser(this.data.examParams).then(res => {
-    //   if(res.code == 200) {
-    //     let list = res.data.list ? res.data.list : [];
+    // const userId = wx.getStorageSync('user').id
+    // wx.cloud.callFunction({
+    //   name: 'getProductFlowByPage',
+    //   data: {...this.data.examParams,userId: userId}
+    // }).then(res=>{
+    //   if(res.result && Array.isArray(res.result.list) && res.result.list.length>0){
+    //     let list = cloudApi.changeKey(res.result.list)
     //     if (this.data.examParams.pageNum != 1) {
     //       this.setData({
-    //         examList: this.data.examList.concat(list)
+    //         examList: this.data.examList.concat(list),
+    //         totalPage: Math.ceil(res.result.total / res.result.pageSize)
     //       });
     //     } else {
     //       this.setData({
-    //         examList: res.data.list,
-    //         totalPage: res.data.totalPage
+    //         examList: list,
+    //         totalPage: Math.ceil(res.result.total / res.result.pageSize)
     //       });
     //     }
-    //   } else {
-    //     wx.showToast({
-    //       title: res.message,
-    //       icon: 'none'
+    //   }else{
+    //     this.setData({
+    //       examList: [],
+    //       totalPage: 0
     //     });
     //   }
-    // });
+    // })
+
+    // api请求
+    api.getProductFlowByUser(this.data.examParams).then(res => {
+      if(res.code == 200) {
+        let list = res.data.list ? res.data.list : [];
+        if (this.data.examParams.pageNum != 1) {
+          this.setData({
+            examList: this.data.examList.concat(list)
+          });
+        } else {
+          this.setData({
+            examList: res.data.list,
+            totalPage: res.data.totalPage
+          });
+        }
+      } else {
+        wx.showToast({
+          title: res.message,
+          icon: 'none'
+        });
+      }
+    });
   },
 
   upper(e) {

--
Gitblit v1.9.2