|
@@ -59,6 +59,7 @@ export default {
|
|
|
// text: '上传文件'
|
|
|
// }
|
|
|
],
|
|
|
+ isUploading:false,
|
|
|
itemStyle: {
|
|
|
marginTop: '20px',
|
|
|
backgroundColor: '#fff',
|
|
@@ -231,14 +232,24 @@ export default {
|
|
|
};
|
|
|
if (self.remarkStatus) {
|
|
|
datas.id = self.id;
|
|
|
+ if(this.isUploading) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.isUploading = true;
|
|
|
self.$api.editbaseprofileStamp(datas).then(res => {
|
|
|
+ this.isUploading = false;
|
|
|
if (res.data.code === 200) {
|
|
|
self.$method.showToast('提交成功');
|
|
|
uni.navigateBack();
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
+ if(this.isUploading) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.isUploading = true;
|
|
|
self.$api.addbaseprofileStamp(datas).then(res => {
|
|
|
+ this.isUploading = false;
|
|
|
if (res.data.code === 200) {
|
|
|
self.$method.showToast('提交成功');
|
|
|
uni.navigateBack();
|