|
@@ -96,7 +96,7 @@ Page({
|
|
|
'content-type': 'application/x-www-form-urlencoded'
|
|
|
},
|
|
|
data:{
|
|
|
- userId: app.globalData.user_id //'oovpNwjlsY6xx8ceCebFa1dOLd9E' //app.globalData.user_id,
|
|
|
+ userId: app.globalData.user_id //app.globalData.user_id //'oovpNwjlsY6xx8ceCebFa1dOLd9E' //app.globalData.user_id,
|
|
|
},
|
|
|
success:function(res){
|
|
|
console.log('购物车列表数据',res)
|
|
@@ -151,5 +151,19 @@ Page({
|
|
|
checkAll: checkAll,
|
|
|
checkStatic: checkStatic
|
|
|
})
|
|
|
+ },
|
|
|
+ previewImage(e){ // 点击图片放大
|
|
|
+ let urls = [],that = this;
|
|
|
+ console.log(e)
|
|
|
+ e.target.dataset.srcarray.forEach(el=>{
|
|
|
+ urls.push(that.data.host + el)
|
|
|
+ })
|
|
|
+ wx.previewImage({
|
|
|
+ urls: urls,
|
|
|
+ current:'e.target.dataset.src',
|
|
|
+ success(res){
|
|
|
+ console.log(res,"放大成功")
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
})
|