From ebc6e7ee67f13e7aa311e737dfcb4c5caed112ee Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 15 八月 2024 18:23:57 +0800
Subject: [PATCH] ll
---
wechat_jiaxuan/pages/detailDis/realpic.js | 21 ++++++++++++---------
1 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/wechat_jiaxuan/pages/detailDis/realpic.js b/wechat_jiaxuan/pages/detailDis/realpic.js
index ec70eba..1921e9f 100644
--- a/wechat_jiaxuan/pages/detailDis/realpic.js
+++ b/wechat_jiaxuan/pages/detailDis/realpic.js
@@ -23,6 +23,9 @@
id: options.id
})
},
+ onShow(){
+ this.setData({ member: wx.getStorageSync('member') })
+ },
onUnload() {
console.log('璇︽儏杩涜浜嗛攢姣�');
setTimeout(() => {
@@ -122,6 +125,7 @@
handleDesign() {
const { member } = this.data
if (!member.phone) {
+ wx.setStorageSync('tempPath', '/pages/design/design')
return wx.navigateTo({
url: '/pages/auth/auth',
})
@@ -145,13 +149,6 @@
// this.setData({showShare: false})
// })
},
- // onShareAppMessage: function () {
- // // let { productDetail, userInfo } = this.data
- // return {
- // title: productDetail.title,
- // path: '/pages/index/index?id=' + productDetail.id + '&shareuserid=' + userInfo.id + '&type=0'
- // }
- // },
onClose() {
this.setData({
showShare: false
@@ -210,8 +207,14 @@
info
} = this.data
console.log('鐐瑰嚮浜嗗垎浜�')
- return {
- path: '/pages/detailDis/realpic?id=' + info.id + '&userId=' + info.users.id
+ if(info.users && info.users.id){
+ return {
+ path: '/pages/detailDis/realpic?id=' + info.id + '&userId=' + info.users.id
+ }
+ }else{
+ return {
+ path: '/pages/detailDis/realpic?id=' + info.id
+ }
}
},
})
\ No newline at end of file
--
Gitblit v1.9.3