|
@ -81,6 +81,10 @@ Page({ |
|
|
} else { |
|
|
} else { |
|
|
images = tempFiles; |
|
|
images = tempFiles; |
|
|
} |
|
|
} |
|
|
|
|
|
wx.showLoading({ |
|
|
|
|
|
title: '上传中...', |
|
|
|
|
|
mask: true, |
|
|
|
|
|
}) |
|
|
wx.uploadFile({ |
|
|
wx.uploadFile({ |
|
|
url: 'https://mall.gylservice.com/gw?api=resources.file.uploadFiles', |
|
|
url: 'https://mall.gylservice.com/gw?api=resources.file.uploadFiles', |
|
|
filePath: images[that.data.imgIndex].tempFilePath, |
|
|
filePath: images[that.data.imgIndex].tempFilePath, |
|
@ -95,6 +99,7 @@ Page({ |
|
|
uploadType: 2, |
|
|
uploadType: 2, |
|
|
}, // HTTP 请求中其他额外的 form data
|
|
|
}, // HTTP 请求中其他额外的 form data
|
|
|
success: function (res) { |
|
|
success: function (res) { |
|
|
|
|
|
wx.hideLoading(); |
|
|
that.data.imgIndex++ |
|
|
that.data.imgIndex++ |
|
|
console.log(that.data.imgIndex) |
|
|
console.log(that.data.imgIndex) |
|
|
var data = JSON.parse(res.data) |
|
|
var data = JSON.parse(res.data) |
|
@ -134,7 +139,7 @@ Page({ |
|
|
}, |
|
|
}, |
|
|
confirmAct() { |
|
|
confirmAct() { |
|
|
var that = this |
|
|
var that = this |
|
|
if (!that.data.errordesc) { |
|
|
if (!that.data.remark) { |
|
|
wx.showToast({ |
|
|
wx.showToast({ |
|
|
title: '请输入退款说明', |
|
|
title: '请输入退款说明', |
|
|
icon: 'none', |
|
|
icon: 'none', |
|
|