|
|
@@ -14,7 +14,7 @@ Page({
|
|
|
isAll:false,
|
|
|
photoFiles: [], //凭证图片列表
|
|
|
buyerDesc: '', //备注说明
|
|
|
-
|
|
|
+ loading:false,
|
|
|
goodList:[],
|
|
|
reasonList:[
|
|
|
{name:'暂不需要商品(买错/多买/漏买)'},
|
|
|
@@ -140,6 +140,7 @@ Page({
|
|
|
*/
|
|
|
apply(){
|
|
|
console.log(this.data.refundItem.orderItemDtos,this.data.refundItem.orderItemDtos.some(i=>i.checked));
|
|
|
+ let that = this
|
|
|
// 检查数据完整性
|
|
|
if (this.data.buyerReason === '') {
|
|
|
return wx.showToast({
|
|
|
@@ -151,7 +152,11 @@ Page({
|
|
|
icon: 'none',
|
|
|
title: '请选择退款商品',
|
|
|
})
|
|
|
+ }else if(this.loading){
|
|
|
+ return
|
|
|
}
|
|
|
+
|
|
|
+ this.loading = true
|
|
|
wx.showLoading();
|
|
|
var pics = '';
|
|
|
this.data.photoFiles.forEach(function (item) {
|
|
|
@@ -206,6 +211,7 @@ Page({
|
|
|
method: "POST",
|
|
|
data,
|
|
|
callBack: (res) => {
|
|
|
+ that.loading = false
|
|
|
wx.hideLoading();
|
|
|
if(res.code == 500){
|
|
|
return wx.showToast({
|