Commit c7447119 by 高淑倩

去掉test

parent 828de6db
......@@ -23,7 +23,6 @@
"pages/subPage/subPage",
"pages/h5/h5page",
"pages/pointGoodsList/pointGoodsList",
"pages/test/test",
"pages/goToHome/goToHome"
]
}
......
// 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