1234567891011121314151617181920212223242526272829303132333435363738 |
- const app = getApp();
- const util = require("../../util/util.js")
- Page({
- data: {
- StatusBar: app.globalData.StatusBar,
- CustomBar: app.globalData.CustomBar,
- nd:{
- year:"2021年",
- count:1,
- fee:100
- },
- index: 0,
- year:0,
- month:0,
- picker: {},
- },
- DateChange: function( e ){
- console.log( e)
- },
- gotoLog(e){
- let {month, year} = e.currentTarget.dataset;
- let monthStr = month <10?(year+'-0'+month):(year+'-'+month);
- wx.navigateTo({
- url: `/pages/log/log?month=${monthStr}`,
- })
- },
- onLoad: function (options) {
- var date = new Date();
- let year=date.getFullYear();
- let month=date.getMonth()+1;
- let picker ={};
- for( let i=1;i<= month;i++){
- picker[year+'-'+month+'01'] = year+'年'+i+'月';
- }
- this.setData({submit:false,picker,year, month})
- }
- })
|