wx.request({
url: url,
data: ,
header: {
'content-type': 'application/json'
},
success: function(res){
let yhqPrice= res.data.shouldPrice; //计算后的钱
console.log(yhqPrice)
Totalprice =Totalprice-yhqPrice;
that.setData({
Totalprice:Totalprice
})
}
})
请问图片这种每次点击都会在wx.request里面去重新计算价钱,再点击就取消这种怎么做?