|
@@ -306,6 +306,7 @@ export default {
|
|
|
borderRadius: '24rpx',
|
|
borderRadius: '24rpx',
|
|
|
padding: '0rpx 20rpx'
|
|
padding: '0rpx 20rpx'
|
|
|
},
|
|
},
|
|
|
|
|
+ isUploading:false,
|
|
|
form: {
|
|
form: {
|
|
|
name: '',
|
|
name: '',
|
|
|
sex: '',
|
|
sex: '',
|
|
@@ -606,7 +607,12 @@ export default {
|
|
|
goodsId: this.goodsId,
|
|
goodsId: this.goodsId,
|
|
|
keyValue: JSON.stringify(arsty)
|
|
keyValue: JSON.stringify(arsty)
|
|
|
};
|
|
};
|
|
|
|
|
+ if(this.isUploading) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.isUploading = true;
|
|
|
this.$api.editbaseprofiletp(datas).then(res => {
|
|
this.$api.editbaseprofiletp(datas).then(res => {
|
|
|
|
|
+ this.isUploading = false;
|
|
|
if (res.data.code === 200) {
|
|
if (res.data.code === 200) {
|
|
|
this.$method.showToast('提交成功');
|
|
this.$method.showToast('提交成功');
|
|
|
uni.navigateBack();
|
|
uni.navigateBack();
|
|
@@ -633,7 +639,12 @@ export default {
|
|
|
profileTpId: this.goodsId,
|
|
profileTpId: this.goodsId,
|
|
|
keyValue: JSON.stringify(objs)
|
|
keyValue: JSON.stringify(objs)
|
|
|
};
|
|
};
|
|
|
|
|
+ if(this.isUploading) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ this.isUploading = true;
|
|
|
this.$api.addbaseprofiletp(datas).then(res => {
|
|
this.$api.addbaseprofiletp(datas).then(res => {
|
|
|
|
|
+ this.isUploading = false;
|
|
|
if (res.data.code === 200) {
|
|
if (res.data.code === 200) {
|
|
|
this.$method.showToast('提交成功');
|
|
this.$method.showToast('提交成功');
|
|
|
uni.navigateBack();
|
|
uni.navigateBack();
|