|
|
@@ -26,7 +26,7 @@
|
|
|
:key="'month-'+month"
|
|
|
class="month-button"
|
|
|
:class="{ active: birthdayMonth == month }"
|
|
|
- @click="birthdayMonth = month"
|
|
|
+ @click="setMonth(month)"
|
|
|
>{{ month }}</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -40,7 +40,7 @@
|
|
|
:key="date"
|
|
|
class="date-button"
|
|
|
:class="{ active: birthdayDate == date }"
|
|
|
- @click="birthdayDate = date"
|
|
|
+ @click="setDate(date)"
|
|
|
>{{ date }}</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -80,6 +80,14 @@ export default {
|
|
|
this.updateDateArray()
|
|
|
},
|
|
|
methods: {
|
|
|
+ setMonth(month){
|
|
|
+ this.$util.hitVoice()
|
|
|
+ this.birthdayMonth = month
|
|
|
+ },
|
|
|
+ setDate(date){
|
|
|
+ this.$util.hitVoice()
|
|
|
+ this.birthdayDate = date
|
|
|
+ },
|
|
|
showBirth(info){
|
|
|
this.birthdayMonth = info.birthdayMonth
|
|
|
this.birthdayDate = info.birthdayDate
|
|
|
@@ -92,10 +100,12 @@ export default {
|
|
|
},
|
|
|
// 取消编辑
|
|
|
cancelEdit() {
|
|
|
+ this.$util.hitVoice()
|
|
|
this.$emit('cancel')
|
|
|
},
|
|
|
// 保存生日信息
|
|
|
- saveBirthday() {
|
|
|
+ saveBirthday() {
|
|
|
+ this.$util.hitVoice()
|
|
|
const params = {
|
|
|
customId: this.customId,
|
|
|
lunar: this.lunar,
|