Commit 205e7da0 by Lin

feat: 添加触发交互

1 parent 5713ad25
......@@ -99,6 +99,8 @@ Component({
* 点击了上一月,选择月份数字减一
*/
lastMonth: function (e) {
// 触发短震动反馈
wx.vibrateShort()
var selectMonth = this.data.selectMonth - 1
var timeBean = this.getMonthData(selectMonth)
......@@ -127,6 +129,8 @@ Component({
* 点击了下一月,选择月份数字加一
*/
nextMonth: function (e) {
// 触发短震动反馈
wx.vibrateShort()
var selectMonth = this.data.selectMonth + 1
// 检查是否超出范围:只能选择当前月的上一月或更早的月份(selectMonth <= -1)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!