From 1a6905045d38bb50b0c6554c3440bdfd339c8d23 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 30 七月 2024 19:13:46 +0800
Subject: [PATCH] ‘’
---
wechat_jiaxuan/pages/detailDis/case.js | 42 +++++++++++++++++++-----------------------
1 files changed, 19 insertions(+), 23 deletions(-)
diff --git a/wechat_jiaxuan/pages/detailDis/case.js b/wechat_jiaxuan/pages/detailDis/case.js
index b3c66d1..b8facd2 100644
--- a/wechat_jiaxuan/pages/detailDis/case.js
+++ b/wechat_jiaxuan/pages/detailDis/case.js
@@ -6,22 +6,25 @@
*/
data: {
bottomLift: 0,
+ origin: '',
showShare: false
},
-
- /**
- * 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
- */
- onLoad(options) {
- var app = getApp().globalData
- this.setData({
- bottomLift: app.bottomLift
- })
+ onLoadLogin(options){
this.getDetail(options.id, options.userId || '')
actionDo({
actionType: 'view',
id: options.id
})
+ },
+ onLoad(options) {
+ var app = getApp().globalData
+ this.setData({
+ bottomLift: app.bottomLift
+ })
+
+ if(options.origin && options.origin == 'b'){
+ this.setData({ origin: 'b' })
+ }
const member = wx.getStorageSync('member')
this.setData({id: options.id, member})
},
@@ -42,13 +45,13 @@
console.log('鐐瑰嚮浜嗗垎浜�');
actionDo({ actionType: 'share', id: this.data.info.id })
},
- // onShareAppMessage: function () {
- // // let { productDetail, userInfo } = this.data
- // return {
- // title: productDetail.title,
- // path: '/pages/index/index?id=' + productDetail.id + '&shareuserid=' + userInfo.id + '&type=0'
- // }
- // },
+ onShareAppMessage: function () {
+ let { info } = this.data
+ console.log('鐐瑰嚮浜嗗垎浜�')
+ return {
+ path: '/pages/detailDis/case?id=' + info.id + '&userId=' + info.users.id
+ }
+ },
handleAction(e){
const actionType = e.currentTarget.dataset.code
const { info } = this.data
@@ -139,11 +142,4 @@
onReachBottom() {
},
-
- /**
- * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜�
- */
- onShareAppMessage() {
-
- }
})
\ No newline at end of file
--
Gitblit v1.9.3