|
@@ -42,7 +42,7 @@
|
|
|
type: String,
|
|
type: String,
|
|
|
default: ''
|
|
default: ''
|
|
|
},
|
|
},
|
|
|
- Label:{
|
|
|
|
|
|
|
+ Label: {
|
|
|
type: String,
|
|
type: String,
|
|
|
default: ''
|
|
default: ''
|
|
|
}
|
|
}
|
|
@@ -69,8 +69,14 @@
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
verifyCurrent: null,
|
|
verifyCurrent: null,
|
|
|
- refundLabel: [],
|
|
|
|
|
- refundConfirm: [],
|
|
|
|
|
|
|
+ refundLabel: {
|
|
|
|
|
+ name: '随时退',
|
|
|
|
|
+ refundLabel: 1
|
|
|
|
|
+ },
|
|
|
|
|
+ refundConfirm: {
|
|
|
|
|
+ name: '需要确认',
|
|
|
|
|
+ refundConfirm: 1
|
|
|
|
|
+ },
|
|
|
|
|
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -79,12 +85,13 @@
|
|
|
this.$emit('close');
|
|
this.$emit('close');
|
|
|
},
|
|
},
|
|
|
confirm() {
|
|
confirm() {
|
|
|
- if (this.refundLabel.length == 0 || this.refundConfirm.length == 0) {
|
|
|
|
|
|
|
+ if (!this.refundLabel && !this.refundConfirm) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: '请选择退款规则',
|
|
title: '请选择退款规则',
|
|
|
icon: 'none'
|
|
icon: 'none'
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ console.log(this.refundLabel, this.refundConfirm);
|
|
|
this.$emit('confirm', {
|
|
this.$emit('confirm', {
|
|
|
refundLabel: this.refundLabel,
|
|
refundLabel: this.refundLabel,
|
|
|
refundConfirm: this.refundConfirm
|
|
refundConfirm: this.refundConfirm
|
|
@@ -103,12 +110,12 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- setTimeout(()=>{
|
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
this.tagCurrent = this.Label
|
|
this.tagCurrent = this.Label
|
|
|
- this.verifyCurrent = this.Confirm
|
|
|
|
|
- this.$forceUpdate()
|
|
|
|
|
- },100)
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.verifyCurrent = this.Confirm
|
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
|
+ }, 100)
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|