|
@@ -75,7 +75,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- lunar: 0, // 0公历 1农历
|
|
|
|
|
|
|
+ lunar: 2, // 0公历 1农历
|
|
|
birthdayMonth: '', // 选择的月份
|
|
birthdayMonth: '', // 选择的月份
|
|
|
birthdayDate: '', // 选择的日期
|
|
birthdayDate: '', // 选择的日期
|
|
|
dateArray: Array.from({length: 31}, (_, i) => i + 1), // 1-31的数组
|
|
dateArray: Array.from({length: 31}, (_, i) => i + 1), // 1-31的数组
|
|
@@ -108,17 +108,23 @@ export default {
|
|
|
lunar: this.lunar,
|
|
lunar: this.lunar,
|
|
|
birthdayMonth: this.birthdayMonth,
|
|
birthdayMonth: this.birthdayMonth,
|
|
|
birthdayDate: this.birthdayDate
|
|
birthdayDate: this.birthdayDate
|
|
|
- };
|
|
|
|
|
- this.$util.confirmModal({content:'确认提交?提交后将不能再修改'},() => {
|
|
|
|
|
- modifyBirthday(params).then(res=>{
|
|
|
|
|
- if(res.code == 1){
|
|
|
|
|
- this.$msg('已修改')
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- uni.navigateBack()
|
|
|
|
|
- }, 900);
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ if(this.lunar == 2){
|
|
|
|
|
+ this.$msg('请选公历或农历')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ let birthHint = this.lunar == 1?'农历':''
|
|
|
|
|
+ birthHint = birthHint+this.birthdayMonth+'月'+this.birthdayDate+'日'
|
|
|
|
|
+ this.$util.confirmModal({content:'确认'+birthHint+'生日?提交后不能再修改'},() => {
|
|
|
|
|
+ modifyBirthday(params).then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ this.$msg('已修改')
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ uni.navigateBack()
|
|
|
|
|
+ }, 900)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|