From 918bbf3afade9011ca666ba0680e3f79039a0ce7 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 30 七月 2024 13:57:16 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
wechat_jiaxuan/pages/detailDis/product.js | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/wechat_jiaxuan/pages/detailDis/product.js b/wechat_jiaxuan/pages/detailDis/product.js
index ba7ac8f..16e0b4c 100644
--- a/wechat_jiaxuan/pages/detailDis/product.js
+++ b/wechat_jiaxuan/pages/detailDis/product.js
@@ -25,6 +25,11 @@
actionType: 'view',
id: options.id
})
+ getMemberInfo().then(res => {
+ this.setData({
+ member: res.data
+ })
+ })
},
onLoad(options) {
var app = getApp().globalData
@@ -34,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) {
@@ -66,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