From 8d48f2f55453635bf60e5e00d1e4746288e9da67 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 22 七月 2024 15:36:18 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
wechat_jiaxuan/pages/detailDis/case.js | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/wechat_jiaxuan/pages/detailDis/case.js b/wechat_jiaxuan/pages/detailDis/case.js
index 285aca7..09050e9 100644
--- a/wechat_jiaxuan/pages/detailDis/case.js
+++ b/wechat_jiaxuan/pages/detailDis/case.js
@@ -18,10 +18,10 @@
bottomLift: app.bottomLift
})
this.getDetail(options.id)
- // actionDo({
- // actionType: 'view',
- // id: options.id
- // })
+ actionDo({
+ actionType: 'view',
+ id: options.id
+ })
const member = wx.getStorageSync('member')
this.setData({id: options.id, member})
},
@@ -40,7 +40,7 @@
},
handleShare() {
console.log('鐐瑰嚮浜嗗垎浜�');
- shareContent(this.data.info.id)
+ actionDo({ actionType: 'share', id: this.data.info.id })
},
// onShareAppMessage: function () {
// // let { productDetail, userInfo } = this.data
@@ -56,8 +56,11 @@
actionType,
id: this.data.info.id
}).then(res => {
- info.isCollection = !info.isCollection
+ info.collection = !info.collection
this.setData({info})
+ wx.showToast({
+ title: actionType == 'collect' ? '鏀惰棌鎴愬姛' : '鍙栨秷鏀惰棌',
+ })
})
},
getDetail(id) {
--
Gitblit v1.9.3