|
@@ -13,7 +13,9 @@ Page({
|
|
|
],
|
|
],
|
|
|
filterIndex1:-1,
|
|
filterIndex1:-1,
|
|
|
filterIndex2:-1,
|
|
filterIndex2:-1,
|
|
|
- filterObj:{} //筛选条件
|
|
|
|
|
|
|
+ filterObj:{}, //筛选条件
|
|
|
|
|
+ showAddCartModal:false,
|
|
|
|
|
+ currentProduct:null
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 监听筛选
|
|
// 监听筛选
|
|
@@ -51,6 +53,20 @@ Page({
|
|
|
};
|
|
};
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ // 显示商品属性模态框
|
|
|
|
|
+ showAddCartModal(e) {
|
|
|
|
|
+ const product = e.detail;
|
|
|
|
|
+ this.setData({
|
|
|
|
|
+ showAddCartModal: true,
|
|
|
|
|
+ currentProduct:product
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ // 关闭属性选择模态框
|
|
|
|
|
+ handleCloseAddCartModal(){
|
|
|
|
|
+ this.setData({
|
|
|
|
|
+ showAddCartModal:false
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
/**
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
*/
|