// 商品详情页跳转函数
detailInto: function (e) {
// console.log()
var change = e.currentTarget.dataset.id;
wx.navigateTo({
url: ‘../detail/detail?id=‘ + change
})
},
//接收的页面
onLoad: function (opt) {
var selectnum= this.data.selectnum;
selectnum.sq = opt.key;
this.setData({
selectnum: selectnum,
shoplist: this.data.shops
});
时间: 2024-11-05 21:56:40