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/product.js |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/wechat_jiaxuan/pages/detailDis/product.js b/wechat_jiaxuan/pages/detailDis/product.js
index 5226359..c65744e 100644
--- a/wechat_jiaxuan/pages/detailDis/product.js
+++ b/wechat_jiaxuan/pages/detailDis/product.js
@@ -1,6 +1,7 @@
 import {
   getProductInfo,
-  actionDo
+  actionDo,
+  getMemberInfo
 } from '../../api/index'
 Page({
   /**
@@ -11,15 +12,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 +40,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 +70,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