|
|
@ -768,6 +768,9 @@ Page({ |
|
|
console.log('===== 显示讲价弹窗开始 ====='); |
|
|
console.log('===== 显示讲价弹窗开始 ====='); |
|
|
console.log('当前 goodsDetail:', this.data.goodsDetail); |
|
|
console.log('当前 goodsDetail:', this.data.goodsDetail); |
|
|
|
|
|
|
|
|
|
|
|
// 记录用户操作历史
|
|
|
|
|
|
API.addUserHistory('还价'); |
|
|
|
|
|
|
|
|
const weightQuantityData = this.data.goodsDetail.weightQuantityData || []; |
|
|
const weightQuantityData = this.data.goodsDetail.weightQuantityData || []; |
|
|
console.log('weightQuantityData:', weightQuantityData); |
|
|
console.log('weightQuantityData:', weightQuantityData); |
|
|
|
|
|
|
|
|
@ -1458,6 +1461,9 @@ Page({ |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 记录用户操作历史
|
|
|
|
|
|
API.addUserHistory('运费估算'); |
|
|
|
|
|
|
|
|
// 构建要传递的商品信息
|
|
|
// 构建要传递的商品信息
|
|
|
const selectedGoods = { |
|
|
const selectedGoods = { |
|
|
id: goodsDetail.id || goodsDetail.productId, |
|
|
id: goodsDetail.id || goodsDetail.productId, |
|
|
@ -3788,6 +3794,9 @@ Page({ |
|
|
onCompareClick: function () { |
|
|
onCompareClick: function () { |
|
|
console.log('用户点击了对比价格按钮,准备显示对比价格弹窗'); |
|
|
console.log('用户点击了对比价格按钮,准备显示对比价格弹窗'); |
|
|
|
|
|
|
|
|
|
|
|
// 记录用户操作历史
|
|
|
|
|
|
API.addUserHistory('对比价格'); |
|
|
|
|
|
|
|
|
// 检查用户登录状态
|
|
|
// 检查用户登录状态
|
|
|
const openid = wx.getStorageSync('openid'); |
|
|
const openid = wx.getStorageSync('openid'); |
|
|
const userId = wx.getStorageSync('userId'); |
|
|
const userId = wx.getStorageSync('userId'); |
|
|
|