fuwei 4 anos atrás
pai
commit
9f813d5d1b
1 arquivos alterados com 5 adições e 6 exclusões
  1. 5 6
      ghsPad/src/components/app-boardSet-flower.vue

+ 5 - 6
ghsPad/src/components/app-boardSet-flower.vue

@@ -78,7 +78,7 @@
             focus() {
             focus() {
                 this.$refs.input.focus()
                 this.$refs.input.focus()
             },
             },
-            focusSelect(){
+            focusSelect(event){
                 event.currentTarget.select();
                 event.currentTarget.select();
             },
             },
 			changeType(type){
 			changeType(type){
@@ -111,11 +111,10 @@
 
 
 			},
 			},
 			changeUnit(){
 			changeUnit(){
-
-
-								this.selectItem.unitType = this.selectItem.unitType === 0?1:0
-								this.selectItem.currentUnit = this.selectItem.unitType ===0?this.selectItem.bigUnit:this.selectItem.smallUnit
-								this.$emit('update:selectItem', this.selectItem)
+                this.selectItem.unitType = this.selectItem.unitType === 0?1:0
+                this.selectItem.currentUnit = this.selectItem.unitType ===0?this.selectItem.bigUnit:this.selectItem.smallUnit
+                this.selectItem.currentUnitPrice = this.selectItem.unitType ===0?this.selectItem.bigPrice:this.selectItem.smallPrice
+                this.$emit('update:selectItem', this.selectItem)
 
 
 
 
 			}
 			}