Skip to content

Commit

Permalink
Merge pull request #295 from jia-forest/master
Browse files Browse the repository at this point in the history
#2 #52 第2次实验代码
  • Loading branch information
zengsn authored Nov 9, 2017
2 parents 816cf00 + 97f7795 commit d470bb5
Show file tree
Hide file tree
Showing 12 changed files with 305 additions and 2 deletions.
95 changes: 95 additions & 0 deletions 1514080901220/JIA/jia/jia.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
Page({

/**
* 页面的初始数据
*/
data: {

},

/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {

},

/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {

},

/**
* 生命周期函数--监听页面显示
*/
onShow: function () {

},

/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {

},

/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {

},

/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {

},

/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {

},

/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {

}
})
App({

/**
* 当小程序初始化完成时,会触发 onLaunch(全局只触发一次)
*/
onLaunch: function () {

},

/**
* 当小程序启动,或从后台进入前台显示,会触发 onShow
*/
onShow: function (options) {

},

/**
* 当小程序从前台进入后台,会触发 onHide
*/
onHide: function () {

},

/**
* 当小程序发生脚本错误,或者 api 调用失败时,会触发 onError 并带上错误信息
*/
onError: function (msg) {

}
})
Empty file added 1514080901220/JIA/jia/jia.wxml
Empty file.
95 changes: 95 additions & 0 deletions 1514080901220/LIN/lin/lin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
Page({

/**
* 页面的初始数据
*/
data: {

},

/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {

},

/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {

},

/**
* 生命周期函数--监听页面显示
*/
onShow: function () {

},

/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {

},

/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {

},

/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {

},

/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {

},

/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {

}
})
App({

/**
* 当小程序初始化完成时,会触发 onLaunch(全局只触发一次)
*/
onLaunch: function () {

},

/**
* 当小程序启动,或从后台进入前台显示,会触发 onShow
*/
onShow: function (options) {

},

/**
* 当小程序从前台进入后台,会触发 onHide
*/
onHide: function () {

},

/**
* 当小程序发生脚本错误,或者 api 调用失败时,会触发 onError 并带上错误信息
*/
onError: function (msg) {

}
})
Empty file added 1514080901220/LIN/lin/lin.wxml
Empty file.
28 changes: 26 additions & 2 deletions 1514080901220/app.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,36 @@
{
"pages":[
"pages/index/index",
"pages/logs/logs"
"pages/logs/logs",
"LIN/lin/lin",
"JIA/jia/jia",
"pages/images/images"

],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "WeChat",
"navigationBarTitleText": "摘抄本",
"navigationBarTextStyle":"black"
},
"tabBar": {
"color": "#000000",
"selectedColor": "#1992F5",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页"
},
{
"pagePath": "LIN/lin/lin",
"text": "内容"
},
{
"pagePath": "JIA/jia/jia",
"text": "我的"
}
]
}
}
1 change: 1 addition & 0 deletions 1514080901220/app.wxss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/**app.wxss**/
@import "weui.wxss"
.container {
height: 100%;
display: flex;
Expand Down
66 changes: 66 additions & 0 deletions 1514080901220/pages/images/images.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// pages/images/images.js
Page({

/**
* 页面的初始数据
*/
data: {

},

/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {

},

/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {

},

/**
* 生命周期函数--监听页面显示
*/
onShow: function () {

},

/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {

},

/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {

},

/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {

},

/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {

},

/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {

}
})
1 change: 1 addition & 0 deletions 1514080901220/pages/images/images.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
2 changes: 2 additions & 0 deletions 1514080901220/pages/images/images.wxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!--pages/images/images.wxml-->
<text>{{page}}.wxml</text>
1 change: 1 addition & 0 deletions 1514080901220/pages/images/images.wxss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/* pages/images/images.wxss */
Binary file added 1514080901220/pages/images/timg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions 1514080901220/pages/index/index.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@
color: #aaa;
}

.usermotto {
margin-top: 200px;
}
/*背景*/
page{
background-image:url("http://897922157.editorservice.open.weixin.qq.com/files/pages/images/timg.jpg");
background-repeat:no-repeat;

background-size: 450px 500px;
opacity: 1;
}
.weui-footer{
margin-bottom: 50px;
}
.weui-footer_fixed-bottom{
margin-bottom: 0;
}

.usermotto {
margin-top: 200px;
}

0 comments on commit d470bb5

Please sign in to comment.