//index.js
var app = getApp()
Page({
data: {
/**
* 页面配置
*/
winWidth: 0,
winHeight: 0,
// tab切换
currentTab: 0,
},
onLoad: function () {
var that = this;
/**
* 获取系统信息
*/
wx.getSystemInfo({
success: function (res) {
that.setData({
winWidth: res.windowWidth,
winHeight: res.windowHeight
});
}
});
},
/**
* 滑动切换tab
*/
bindChange: function (e) {
var that = this;
that.setData({ currentTab: e.detail.current });
},
/**
* 点击tab切换
*/
swichNav: function (e) {
var that = this;
if (this.data.currentTab === e.target.dataset.current) {
return false;
} else {
that.setData({
currentTab: e.target.dataset.current
})
}
},
/**
* 点击show diary
*/
showDiary: function () {
wx.showModal({
title: '提示',
content: '这是一个模态弹窗',
success: function (res) {
if (res.confirm) {
console.log('用户点击确定')
}
}
})
}
})
//获取应用实例
// var app = getApp()
// Page({
// data: {
// motto: 'Hello World',
// userInfo: {}
// },
// //事件处理函数
// bindViewTap: function() {
// wx.navigateTo({
// url: '../logs/logs'
// })
// },
// onLoad: function () {
// console.log('onLoad')
// var that = this
// //调用应用实例的方法获取全局数据
// app.getUserInfo(function(userInfo){
// //更新数据
// that.setData({
// userInfo:userInfo
// })
// })
// }
// })
没有合适的资源?快使用搜索试试~ 我知道了~
你的名字日记.zip小程序例子源码打包下载适合研究学习技术
共59个文件
png:42个
js:5个
wxss:4个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 80 浏览量
2022-03-13
06:08:52
上传
评论
收藏 497KB ZIP 举报
温馨提示
你的名字日记.zip小程序例子源码打包下载适合研究学习技术你的名字日记.zip小程序例子源码打包下载适合研究学习技术 1.适合学习做毕业设计参考模板。 2.适合程序员学习开发小程序研究用 3.适合小公司换皮做新项目参考使用用
资源推荐
资源详情
资源评论
收起资源包目录
你的名字日记.zip (59个子文件)
你的名字日记
weapp-mydiary-master
images
ic_settings_black_24dp.png 827B
ic_memo_dot_24dp.png 542B
ic_cancel_black_24dp.png 894B
ic_weather_sunny.png 2KB
ic_settings_white_36dp.png 1KB
ic_mood_unhappy.png 2KB
ic_photo_white_36dp.png 662B
ic_save_white_24dp.png 391B
ic_weather_cloud.png 1KB
ic_weather_windy.png 2KB
ic_topic_memo.png 185B
ic_weather_rainy.png 2KB
ic_weather_foggy.png 829B
ic_weather_snowy.png 2KB
ic_mode_edit_cancel_white_24dp.png 733B
ic_add_white_24dp.png 97B
ic_keyboard_arrow_down_black_24dp.png 257B
ic_mood_soso.png 844B
ic_keyboard_arrow_right_black_24dp.png 216B
ic_bookmark_border.png 361B
ic_contacts_image_default.png 8KB
ic_search_white_18dp.png 594B
ic_clear_white_24dp.png 347B
ic_delete_white_24dp.png 194B
ic_topic_contacts.png 574B
ic_menu_white_24dp.png 95B
ic_add_white_36dp.png 189B
ic_topic_diary.png 278B
ic_location_on_white_24dp.png 675B
ic_location_off_white_24dp.png 744B
ic_profile_image.png 3KB
ic_attach.png 2KB
ic_perm_device_information_white_36dp.png 408B
ic_add_a_photo_white_36dp.png 967B
ic_more_horiz_white_24dp.png 213B
ic_clear_white_36dp.png 454B
ic_mode_edit_white_24dp.png 302B
ic_mood_happy.png 2KB
ic_photo_camera_white_24dp.png 666B
app.json 288B
pages
index
index.js 2KB
index.json 2B
index.wxss 430B
index.wxml 3KB
editor
editor.wxss 929B
editor.json 2B
editor.js 862B
editor.wxml 1KB
calendar
calendar.wxml 676B
calendar.wxss 349B
calendar.json 2B
calendar.js 339B
.gitignore 16B
app.wxss 2KB
app.js 21B
utils
util.js 481B
QQ截图20170605115245.png 37KB
QQ截图20170605115253.png 202KB
QQ截图20170605115228.png 203KB
共 59 条
- 1
资源评论
yxkfw
- 粉丝: 77
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功