Commit 27a8b75e by 高淑倩

add: test

parent d80e7a35
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
"pages": [ "pages": [
"pages/subPage/subPage", "pages/subPage/subPage",
"pages/h5/h5page", "pages/h5/h5page",
"pages/pointGoodsList/pointGoodsList" "pages/pointGoodsList/pointGoodsList",
"pages/test/test"
] ]
} }
], ],
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": 15, "current": 17,
"list": [ "list": [
{ {
"id": -1, "id": -1,
...@@ -146,6 +146,13 @@ ...@@ -146,6 +146,13 @@
"pathName": "subPackage/page/pages/pointGoodsList/pointGoodsList", "pathName": "subPackage/page/pages/pointGoodsList/pointGoodsList",
"query": "activityId=610768005617553408", "query": "activityId=610768005617553408",
"scene": null "scene": null
},
{
"id": -1,
"name": "test",
"pathName": "subPackage/page/pages/test/test",
"query": "",
"scene": null
} }
] ]
} }
......
// subPackage/page/pages/test/test.js
Page({
/**
* 页面的初始数据
*/
data: {
num: 5
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
<!--subPackage/page/pages/test/test.wxml-->
<view class="section">
<view class="{{num >=7 ? '' : 'text-section'}}">
<block wx:for="{{num}}" wx:key="{{index}}">
<view class="text-item" style="width: {{100 / 8}}%;">{{index}}</view>
</block>
</view>
</view>
/* subPackage/page/pages/test/test.wxss */
/* .text-item {
float: left;
height: 100px;
background: red;
margin:0 10rpx 10rpx 0;
box-sizing: content-box;
} */
.text-section {
text-align: center;
display: flex;
justify-content: center;
}
.text-item {
float: left;
height: 100px;
line-height: 100px;
background: red;
margin:0 10rpx 10rpx 0;
box-sizing: content-box;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment