diff --git a/pages/order/refund_order/refund_order.js b/pages/order/refund_order/refund_order.js index 4533643..49b0e8e 100644 --- a/pages/order/refund_order/refund_order.js +++ b/pages/order/refund_order/refund_order.js @@ -14,6 +14,7 @@ Page({ reasonSelect: 0, reasonList: [ "订单不能按预计时间送达", "操作有误(商品、地址等选错)", "重复下单/误下单", "其他渠道价格更低", "该商品降价了", "不想买了", "其他原因" ], refund_type:0, + isloading:0, }, onLoad: function(t) { var th=this; @@ -48,6 +49,8 @@ Page({ //------提交退款申请------- refundOrder: function(e) { + if(this.data.isloading) return false; + this.data.isloading=1; var th = this; //----获取订单的所有商品----- rq.get('/api/weshop/ordergoods/list',{ diff --git a/pages/user/return_goods/return_goods.js b/pages/user/return_goods/return_goods.js index 2397960..a941c79 100644 --- a/pages/user/return_goods/return_goods.js +++ b/pages/user/return_goods/return_goods.js @@ -23,6 +23,7 @@ Page({ popState: !0, description: "", refund_type:0, + isloading:0, }, onLoad: function(e) { var a = this; @@ -124,8 +125,11 @@ Page({ }); }, + /*-------------提交退款申请--------------*/ submiApply: function() { + if(this.data.isloading) return false; + this.data.isloading=1; var t = this,th=t; this.checkSubmit(function() { t.uploadPhotos(function() {