Created
February 19, 2020 13:54
-
-
Save phuclh/2ca2a7e729db4784b55a1418c99d1ddc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<select id="payment_method" class="w-full form-control form-select" | |
v-model="payment_method"> | |
<option value="Credit Card">Credit Card</option> | |
<option value="COD">COD</option> | |
</select> | |
data() { | |
return { | |
payment_method: 'Credit Card' | |
} | |
}, | |
watch: { | |
payment_method: function (val) { | |
this.$store.commit('order/setPaymentMethod', { | |
attribute: 'payment_method', | |
value: val | |
}); | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment