|
@@ -45,7 +45,7 @@ Page({
|
|
|
mouthNext() {
|
|
mouthNext() {
|
|
|
if (this.data.mouth < this.data.defaultmouth) {
|
|
if (this.data.mouth < this.data.defaultmouth) {
|
|
|
this.setData({
|
|
this.setData({
|
|
|
- mouth: new Date().getMonth() + 1,
|
|
|
|
|
|
|
+ mouth: this.data.defaultDate.getMonth() + 1,
|
|
|
mouthNext: `${imgServerUrl}/images/clock/clock-arrow-righr-disabled.png`,
|
|
mouthNext: `${imgServerUrl}/images/clock/clock-arrow-righr-disabled.png`,
|
|
|
mouthLast: `${imgServerUrl}/images/clock/clock-arrow-left.png`,
|
|
mouthLast: `${imgServerUrl}/images/clock/clock-arrow-left.png`,
|
|
|
}, _ => {
|
|
}, _ => {
|
|
@@ -55,7 +55,7 @@ Page({
|
|
|
},
|
|
},
|
|
|
mouthLast() {
|
|
mouthLast() {
|
|
|
if (this.data.mouth === this.data.defaultmouth) {
|
|
if (this.data.mouth === this.data.defaultmouth) {
|
|
|
- if (new Date().getMonth() - 1 < 0) {
|
|
|
|
|
|
|
+ if (this.data.defaultDate.getMonth() - 1 < 0) {
|
|
|
this.setData({
|
|
this.setData({
|
|
|
mouth: 12,
|
|
mouth: 12,
|
|
|
year: this.data.year - 1
|
|
year: this.data.year - 1
|
|
@@ -64,7 +64,7 @@ Page({
|
|
|
})
|
|
})
|
|
|
} else {
|
|
} else {
|
|
|
this.setData({
|
|
this.setData({
|
|
|
- mouth: new Date().getMonth()
|
|
|
|
|
|
|
+ mouth: this.data.defaultDate.getMonth()
|
|
|
}, _ => {
|
|
}, _ => {
|
|
|
this.getMouth(2)
|
|
this.getMouth(2)
|
|
|
})
|
|
})
|