From 2c08a98f7e85ec7c9376f27a7933e75e44d672f7 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 27 八月 2024 15:52:59 +0800
Subject: [PATCH] ll

---
 wechat_staff/pages/detailDis/case.js |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/wechat_staff/pages/detailDis/case.js b/wechat_staff/pages/detailDis/case.js
index 92ab8dd..96d2389 100644
--- a/wechat_staff/pages/detailDis/case.js
+++ b/wechat_staff/pages/detailDis/case.js
@@ -39,6 +39,20 @@
   openShare() {
     this.setData({showShare: true})
   },
+  priviewLayout() {
+    wx.previewImage({
+      urls: [this.data.info.layoutUlr]
+    })
+  },
+  priviewSpace(e) {
+    const url = e.currentTarget.dataset.url
+    const index = e.currentTarget.dataset.index
+    const { info } = this.data
+    wx.previewImage({
+      urls: info.apiSpaceCaseVos[index].imgList,
+      current: url
+    })
+  },
   handleShare() {
     console.log('鐐瑰嚮浜嗗垎浜�');
     actionDo({ actionType: 'share', id: this.data.info.id })
@@ -83,10 +97,11 @@
         actionType: flag ? 'collect' : 'collect_cancel'
       }).then(res => {
         info.isCollection = flag
-        wx.showToast({title: flag ? '鏀惰棌鎴愬姛' : '鍙栨秷鏀惰棌'})
+        wx.showToast({title: flag ? '鏀惰棌鎴愬姛' : '鍙栨秷鏀惰棌',icon: 'none'})
         this.setData({
           info
-        })
+        }) 
+        wx.setStorageSync('conentCountTemp', this.data.info)
       })
     }
   },
@@ -101,6 +116,7 @@
       this.setData({info})
       wx.showToast({
         title: actionType == 'collect' ? '鏀惰棌鎴愬姛' : '鍙栨秷鏀惰棌',
+        icon: 'none'
       })
     })
   },
@@ -113,7 +129,8 @@
       }})
       wx.setNavigationBarTitle({
         title: res.data.title
-     })
+     }) 
+     wx.setStorageSync('conentCountTemp', this.data.info)   
     })
   },
   handleDesign() {

--
Gitblit v1.9.3