From 7dc29ed74ebaa8a0e66f68264d9a13f95dc3af21 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 02 八月 2024 11:09:06 +0800
Subject: [PATCH] aa
---
wechat_staff/pages/detailDis/case.js | 30 ++++++++++++++++++++++++------
1 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/wechat_staff/pages/detailDis/case.js b/wechat_staff/pages/detailDis/case.js
index 99a8561..96d2389 100644
--- a/wechat_staff/pages/detailDis/case.js
+++ b/wechat_staff/pages/detailDis/case.js
@@ -30,13 +30,28 @@
wx.navigateTo({
url: '/pages/webView/index',
success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- res.eventChannel.emit('acceptDataFromOpenerPage', { link, title })
- }
+ // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
+ console.log(link+"--------------------")
+ res.eventChannel.emit('data',{link:link,title:title} );
+ }
})
},
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('鐐瑰嚮浜嗗垎浜�');
@@ -82,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)
})
}
},
@@ -100,6 +116,7 @@
this.setData({info})
wx.showToast({
title: actionType == 'collect' ? '鏀惰棌鎴愬姛' : '鍙栨秷鏀惰棌',
+ icon: 'none'
})
})
},
@@ -112,7 +129,8 @@
}})
wx.setNavigationBarTitle({
title: res.data.title
- })
+ })
+ wx.setStorageSync('conentCountTemp', this.data.info)
})
},
handleDesign() {
--
Gitblit v1.9.3