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 |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/wechat_jiaxuan/pages/detailDis/product.js b/wechat_jiaxuan/pages/detailDis/product.js
index ba7ac8f..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({
   /**
@@ -25,6 +26,11 @@
       actionType: 'view',
       id: options.id
     })
+    getMemberInfo().then(res => {
+      this.setData({
+        member: res.data
+      })
+    })
   },
   onLoad(options) {
     var app = getApp().globalData
@@ -34,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) {
@@ -66,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