diff --git a/components/userCard.vue b/components/userCard.vue index 2c1b0d4..2c4b93d 100644 --- a/components/userCard.vue +++ b/components/userCard.vue @@ -72,12 +72,17 @@ export default { obj.type = this.type obj.bed_desc = '' if(this.type == 1) obj.bed_desc = this.value - this.$emit('clickEvent', obj) }, setType(typeval) { this.value = typeval }, + setTypeValue(typeval) { + setTimeout(function(){ + this.type = typeval + }.bind(this)) + // this.type = typeval + }, getData() { var obj = new Object() obj.value = this.value diff --git a/components/visitorAccount.vue b/components/visitorAccount.vue index c513c48..7d46329 100644 --- a/components/visitorAccount.vue +++ b/components/visitorAccount.vue @@ -1,5 +1,5 @@