From 716097ebdc72ac8ec028df7a5a3a676f5fc3ad82 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 30 七月 2024 09:11:01 +0800
Subject: [PATCH] ''

---
 wechat_jiaxuan/pages/detailDis/product.js |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/wechat_jiaxuan/pages/detailDis/product.js b/wechat_jiaxuan/pages/detailDis/product.js
index 5226359..16e0b4c 100644
--- a/wechat_jiaxuan/pages/detailDis/product.js
+++ b/wechat_jiaxuan/pages/detailDis/product.js
@@ -11,15 +11,24 @@
     current: 0,
     id: '',
     origin: '',
+    isFold: false,
     info: {},
     member: {},
     showShare: false
+  },
+  changeFold() {
+    this.setData({ isFold: !this.data.isFold })
   },
   onLoadLogin(options) {
     this.getDetail(options.id, options.userId || '')
     actionDo({
       actionType: 'view',
       id: options.id
+    })
+    getMemberInfo().then(res => {
+      this.setData({
+        member: res.data
+      })
     })
   },
   onLoad(options) {
@@ -30,10 +39,8 @@
     if (options.origin && options.origin == 'b') {
       this.setData({ origin: 'b' })
     }
-    const member = wx.getStorageSync('member')
     this.setData({
-      id: options.id,
-      member
+      id: options.id
     })
   },
   bindchange(e) {
@@ -62,9 +69,8 @@
   handleAction(e) {
     const actionType = e.currentTarget.dataset.code
     const {
-      info
+      info, member
     } = this.data
-    const member = wx.getStorageSync('member')
     if (member.authStatus == '0') {
       return wx.navigateTo({
         url: '/pages/auth/auth',

--
Gitblit v1.9.3