2024年物联网嵌入式最新微信小程序 日历 课表 源码_课表小程序源码,分享一些行业经验

img
img

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,涵盖了95%以上物联网嵌入式知识点,真正体系化!

由于文件比较多,这里只是将部分目录截图出来,全套包含大厂面经、学习笔记、源码讲义、实战项目、大纲路线、电子书籍、讲解视频,并且后续会持续更新

如果你需要这些资料,可以戳这里获取

  var courselist=[
    {
      id:1,
      img:'../../../resource/images/icon/delet01.png',
      time:'19:00-20:00',
      title:'法国红酒快乐',
    },{
      id: 2,
      img: '../../../resource/images/icon/delet02.jpg',
      time: '19:00-20:00',
      title: '法国红酒快乐',

    },{
      id: 3,
      img: '../../../resource/images/icon/delet01.png',
      time: '19:00-20:00',
      title: '法国红酒快乐',
    },{
      id: 4,
      img: '../../../resource/images/icon/delet02.jpg',
      time: '19:00-20:00',
      title: '法国红酒快乐',
    },{
      id: 5,
      img: '../../../resource/images/icon/delet02.jpg',
      time: '19:00-20:00',
      title: '法国红酒快乐',
    }
  ]
  that.setData({
    courselist: courselist,
  });
  console.log(courselist);

  //底部导航
  this.setData({
        tabBarList: app.globalData.tabbar4
  });
  var a = this;
  app.util.request({
      url: "entry/wxapp/url",
      cachetime: "0",
      success: function(t) {
          wx.setStorageSync("url", t.data), a.setData({
              url: t.data
          });
      }
  }),
  wx.setNavigationBarColor({
      frontColor: wx.getStorageSync("fontcolor"),
      backgroundColor: wx.getStorageSync("color"),
      animation: {
          duration: 0,
          timingFunc: "easeIn"
      }
  });
},

// 点击日期事件
selDate: function (e) {
var that = this
console.log(‘点击日期:’,e.currentTarget.dataset.date);
var index = e.currentTarget.dataset.index; //获取下标
that.setData({
sts:index,
});
console.log(‘当前点击日期的下标:’,index);
console.log(‘当月数组:’,this.data.days); //当月数组
},

//用户点击增加月份
plusMouth: function () {
console.log(“点击增加月份”);
var that = this;
var date = new Date();
var sysmouth = date.getMonth() + 1; //系统当前月份
console.log(“系统当前月份:”,sysmouth);
var mouth;
var year;
mouth = this.data.mouth + 1
console.log(“点击后的月份:”, mouth);
year = this.data.year
that.setData({
flag: mouth - sysmouth
})
if (mouth > 12) {
mouth = 1
year++
}
this.updateDays(year, mouth)
},

//用户点击减少月份
minusMouth: function () {
console.log(“点击减少月份”);
var date = new Date();
var sysmouth = date.getMonth() + 1;
console.log(“系统当前月份:”, sysmouth);
var that = this;
var mouth;
var year;
mouth = this.data.mouth - 1
console.log(“点击后的月份:”, mouth);
year = this.data.year
console.log(mouth)

//当用户已点击到当前月的下一个月才能点击返回当月,此时点击显示 》,隐藏《 
that.setData({
  flag: mouth - sysmouth
})
if (mouth < 1) {
  mouth = 12
  year--
}
;
this.updateDays(year, mouth)

},

dateData: function () {
var date = new Date();
var days = [];
var year = date.getFullYear();
var mouth = date.getMonth() + 1;
this.updateDays(year, mouth)
},

updateDays: function (year, mouth) {
var days = [];
var dateDay, dateWeek;

// 根据日期获取每个月有多少天
var getDateDay = function (year, mouth) {
  return new Date(year, mouth, 0).getDate();
}

//根据日期获取这天是周几
var getDateWeek = function (year, mouth) {
  return new Date(year, mouth - 1, 1).getDay();
}

dateDay = getDateDay(year, mouth)
dateWeek = getDateWeek(year, mouth)

console.log('当前月份总天数:',dateDay);
// console.log('当前月份总周数:',dateWeek);

//向数组中添加天 
for (var index = 1; index <= dateDay; index++) {
  days.push(index)
}
//向数组中添加,一号之前应该空出的空格
for (var index = 1; index <= dateWeek; index++) {
  days.unshift(0)
}
this.setData({
  days: days,
  year: year,
  mouth: mouth,
  yue:mouth,
})
console.log('当前月份日期:',days);

},

});


wxss



page {
background: #313751;
}
.date {
display: flex;
flex-direction: row;
justify-content: center;
line-height: 4em;
align-items: center;
}

.direction {
width: 40rpx;
margin: 15rpx;
height: 40rpx;
}

.header {
display: flex;
flex-direction: row;
color: #fff
}

.weeks-item-text {
width: 100%;
font-size: 34rpx;
text-align: center;
}

.body-days {
display: flex;
flex-direction: row;
flex-wrap: wrap;
text-align: center;
}

.days-item {
width: 14.285%;
display: flex;
justify-content: center;
align-content: center;
}

.days-item-text {
width: 20rpx;
padding-top: 10rpx;
padding-bottom:10rpx;
margin-top: 15rpx;
padding-left:20rpx;
padding-right:30rpx;
margin-left: 15rpx;
border-radius: 5rpx;

收集整理了一份《2024年最新物联网嵌入式全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升的朋友。
img
img

如果你需要这些资料,可以戳这里获取

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人

都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

-4oKZvEcO-1715664349989)]
[外链图片转存中…(img-9hu0q6T1-1715664349990)]

如果你需要这些资料,可以戳这里获取

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人

都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

  • 27
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值