Commit 4cee9a6e0c00d374f7366d3a6284322d4a3a2d78

Authored by yvan.ni
1 parent fdccae65

避免按钮重复点击的优化

packageA/pages/details_serviceCard/details_serviceCard.js
@@ -49,7 +49,8 @@ Page({ @@ -49,7 +49,8 @@ Page({
49 * 生命周期函数--监听页面显示 49 * 生命周期函数--监听页面显示
50 */ 50 */
51 onShow: function() { 51 onShow: function() {
52 - this.data.is_summit_ing=0; 52 +
  53 + this.setData({ is_summit_ing: 0 });
53 54
54 var th=this; 55 var th=this;
55 //判断是不是第一次进入 56 //判断是不是第一次进入
pages/user/order_list/order_list.js
@@ -153,7 +153,7 @@ Page({ @@ -153,7 +153,7 @@ Page({
153 153
154 ut.fy_back('', 0) 154 ut.fy_back('', 0)
155 th.setData({paying: 0}); 155 th.setData({paying: 0});
156 - th.data.ser_paying = 0; 156 + th.setData({ ser_paying: 0 });
157 157
158 t_pay.set_fir(); 158 t_pay.set_fir();
159 t.set_fir(); 159 t.set_fir();
@@ -3270,7 +3270,7 @@ Page({ @@ -3270,7 +3270,7 @@ Page({
3270 }) 3270 })
3271 if(idx0<0){ 3271 if(idx0<0){
3272 getApp().confirmBox(it.service_name + "秒杀活动的门店不可售"); 3272 getApp().confirmBox(it.service_name + "秒杀活动的门店不可售");
3273 - th.setData({ paying: 0 }); 3273 + th.setData({ ser_paying: 0 });
3274 flag = false; 3274 flag = false;
3275 return false; 3275 return false;
3276 } 3276 }