diff --git a/app.json b/app.json index 3d7616f..a83f194 100644 --- a/app.json +++ b/app.json @@ -1,14 +1,39 @@ { - "pages":[ + "pages": [ "pages/index/index", - "pages/logs/logs" + "pages/logs/logs", + "pages/commemorate/commemorate", + "pages/recommend/recommend" ], - "window":{ - "backgroundTextStyle":"light", - "navigationBarBackgroundColor": "#fff", - "navigationBarTitleText": "Weixin", - "navigationBarTextStyle":"black" + "window": { + "backgroundTextStyle": "light", + "navigationBarBackgroundColor": "#ddd", + "navigationBarTitleText": "银幕之旅", + "navigationBarTextStyle": "black" + }, + "tabBar": { + "selectedColor": "#CD5C5C", + "list": [ + { + "pagePath": "pages/index/index", + "text": "首页", + "iconPath": "static/tabbar/home.png", + "selectedIconPath": "static/tabbar/home_selected.png" + }, + { + "pagePath": "pages/recommend/recommend", + "text": "推荐", + "iconPath": "static/tabbar/recommend.png", + "selectedIconPath": "static/tabbar/recommend_selected.png" + }, + { + "pagePath": "pages/commemorate/commemorate", + "text": "纪念", + "iconPath": "static/tabbar/commemorate.png", + "selectedIconPath": "static/tabbar/commemorate_selected.png" + } + ] }, "style": "v2", "sitemapLocation": "sitemap.json" -} +} \ No newline at end of file diff --git a/pages/commemorate/commemorate.js b/pages/commemorate/commemorate.js new file mode 100644 index 0000000..0bc814c --- /dev/null +++ b/pages/commemorate/commemorate.js @@ -0,0 +1,66 @@ +// pages/commemorate/commemorate.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/commemorate/commemorate.json b/pages/commemorate/commemorate.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/pages/commemorate/commemorate.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/commemorate/commemorate.wxml b/pages/commemorate/commemorate.wxml new file mode 100644 index 0000000..dfc92bb --- /dev/null +++ b/pages/commemorate/commemorate.wxml @@ -0,0 +1 @@ +纪念哦 diff --git a/pages/commemorate/commemorate.wxss b/pages/commemorate/commemorate.wxss new file mode 100644 index 0000000..e79c65b --- /dev/null +++ b/pages/commemorate/commemorate.wxss @@ -0,0 +1 @@ +/* pages/commemorate/commemorate.wxss */ \ No newline at end of file diff --git a/pages/index/index.js b/pages/index/index.js index 0bc1771..d8bb8be 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -1,48 +1,66 @@ // index.js -// 获取应用实例 -const app = getApp() - Page({ + + /** + * 页面的初始数据 + */ data: { - motto: 'Hello World', - userInfo: {}, - hasUserInfo: false, - canIUse: wx.canIUse('button.open-type.getUserInfo'), - canIUseGetUserProfile: false, - canIUseOpenData: wx.canIUse('open-data.type.userAvatarUrl') && wx.canIUse('open-data.type.userNickName') // 如需尝试获取用户信息可改为false - }, - // 事件处理函数 - bindViewTap() { - wx.navigateTo({ - url: '../logs/logs' - }) - }, - onLoad() { - if (wx.getUserProfile) { - this.setData({ - canIUseGetUserProfile: true - }) - } - }, - getUserProfile(e) { - // 推荐使用wx.getUserProfile获取用户信息,开发者每次通过该接口获取用户个人信息均需用户确认,开发者妥善保管用户快速填写的头像昵称,避免重复弹窗 - wx.getUserProfile({ - desc: '展示用户信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写 - success: (res) => { - console.log(res) - this.setData({ - userInfo: res.userInfo, - hasUserInfo: true - }) - } - }) - }, - getUserInfo(e) { - // 不推荐使用getUserInfo获取用户信息,预计自2021年4月13日起,getUserInfo将不再弹出弹窗,并直接返回匿名的用户个人信息 - console.log(e) - this.setData({ - userInfo: e.detail.userInfo, - hasUserInfo: true - }) + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + } -}) +}) \ No newline at end of file diff --git a/pages/index/index.wxml b/pages/index/index.wxml index f00d294..27d39f7 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -1,23 +1,40 @@ - - - - - - - - - - - - 请使用1.4.4及以上版本基础库 - - - - {{userInfo.nickName}} - - - - {{motto}} - - +当季热映🔥 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + \ No newline at end of file diff --git a/pages/index/index.wxss b/pages/index/index.wxss index eb64203..b739c86 100644 --- a/pages/index/index.wxss +++ b/pages/index/index.wxss @@ -1,19 +1,25 @@ /**index.wxss**/ -.userinfo { - display: flex; + image{ + width: 100rpx; + height: 100rpx; + border-radius: 50rpx; +} +/**容器**/ + .menu{ + height: 2000rpx; + border: 1rpx solid #ddd; +/**flex布局**/ + display:flex; +/**主轴方向布局,行排列row或者列排列column**/ flex-direction: column; +/**控制孩子布局,flex-start,center,space-around,space-between**/ + justify-content: space-around; +/**副轴方向布局**/ align-items: center; - color: #aaa; -} - -.userinfo-avatar { - overflow: hidden; - width: 128rpx; - height: 128rpx; - margin: 20rpx; - border-radius: 50%; } - -.usermotto { - margin-top: 200px; + .menu .item{ + display:flex; + flex-direction: column; +/**控制了文本的**/ + align-items: center; } \ No newline at end of file diff --git a/pages/recommend/recommend.js b/pages/recommend/recommend.js new file mode 100644 index 0000000..768b074 --- /dev/null +++ b/pages/recommend/recommend.js @@ -0,0 +1,66 @@ +// pages/recommend/recommend.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/pages/recommend/recommend.json b/pages/recommend/recommend.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/pages/recommend/recommend.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/recommend/recommend.wxml b/pages/recommend/recommend.wxml new file mode 100644 index 0000000..b00e0bc --- /dev/null +++ b/pages/recommend/recommend.wxml @@ -0,0 +1,39 @@ +可能喜欢(๑•̀ㅂ•́)و✧ + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + + + 阿斌 + + diff --git a/pages/recommend/recommend.wxss b/pages/recommend/recommend.wxss new file mode 100644 index 0000000..5ff64c0 --- /dev/null +++ b/pages/recommend/recommend.wxss @@ -0,0 +1 @@ +/* pages/recommend/recommend.wxss */ \ No newline at end of file diff --git a/project.config.json b/project.config.json index ae51ef2..5a0f86f 100644 --- a/project.config.json +++ b/project.config.json @@ -37,7 +37,8 @@ "ignore": [], "disablePlugins": [], "outputPath": "" - } + }, + "condition": false }, "compileType": "miniprogram", "libVersion": "2.19.4", diff --git a/project.private.config.json b/project.private.config.json index cdacde9..bc4582a 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -1,6 +1,6 @@ { "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", - "projectname": "%E8%BD%AF%E5%B7%A5", + "projectname": "%E9%93%B6%E5%B9%95%E4%B9%8B%E6%97%85", "setting": { "compileHotReLoad": true } diff --git a/static/tabbar/commemorate.png b/static/tabbar/commemorate.png new file mode 100644 index 0000000..cdc8d56 Binary files /dev/null and b/static/tabbar/commemorate.png differ diff --git a/static/tabbar/commemorate_selected.png b/static/tabbar/commemorate_selected.png new file mode 100644 index 0000000..5d23b1e Binary files /dev/null and b/static/tabbar/commemorate_selected.png differ diff --git a/static/tabbar/home.png b/static/tabbar/home.png new file mode 100644 index 0000000..bf5b370 Binary files /dev/null and b/static/tabbar/home.png differ diff --git a/static/tabbar/home_selected.png b/static/tabbar/home_selected.png new file mode 100644 index 0000000..f2df2dd Binary files /dev/null and b/static/tabbar/home_selected.png differ diff --git a/static/tabbar/movie.png b/static/tabbar/movie.png new file mode 100644 index 0000000..99f7985 Binary files /dev/null and b/static/tabbar/movie.png differ diff --git a/static/tabbar/recommend.png b/static/tabbar/recommend.png new file mode 100644 index 0000000..c9e3e5a Binary files /dev/null and b/static/tabbar/recommend.png differ diff --git a/static/tabbar/recommend_selected.png b/static/tabbar/recommend_selected.png new file mode 100644 index 0000000..0ff76fc Binary files /dev/null and b/static/tabbar/recommend_selected.png differ