Commit 72977ea6 by 杨北旺

修复bug

1 parent 22e6020e
...@@ -45,6 +45,9 @@ Page({ ...@@ -45,6 +45,9 @@ Page({
{ {
openId openId
} = await USERAPI.getWXUserInfo() } = await USERAPI.getWXUserInfo()
const {
merchantId
} = wx.p.storage.get('merchant_info')
let data = { let data = {
open_id: openId || null, open_id: openId || null,
create_time: this.firstEnter ? this.data.enter_time : new Date().format('yyyy-MM-dd hh:mm:ss'), // 离开时间 create_time: this.firstEnter ? this.data.enter_time : new Date().format('yyyy-MM-dd hh:mm:ss'), // 离开时间
...@@ -56,7 +59,7 @@ Page({ ...@@ -56,7 +59,7 @@ Page({
item_id: id, item_id: id,
business_type: 1, business_type: 1,
add_way: 104, add_way: 104,
merchant_id: wx.p.storage.get('srcm_shopmall_merchant_id'), merchant_id: merchantId,
guest_no: wx.p.$Track.getGuestNo(), //游客ID, guest_no: wx.p.$Track.getGuestNo(), //游客ID,
user_open_id:this.shareOpenId || '' user_open_id:this.shareOpenId || ''
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!