搜索
This commit is contained in:
@@ -4,5 +4,8 @@ Page({
|
||||
},
|
||||
onLoad(){
|
||||
|
||||
},
|
||||
searchs(){
|
||||
console.log(10)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<view class="box">
|
||||
<search></search>
|
||||
<search bind:tap="searchs"></search>
|
||||
<list></list>
|
||||
</view>
|
||||
66
pages/search/search.js
Normal file
66
pages/search/search.js
Normal file
@@ -0,0 +1,66 @@
|
||||
// pages/search/search.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
6
pages/search/search.json
Normal file
6
pages/search/search.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"search":"../components/index/search/index",
|
||||
"hot":"../components/search/hot/index"
|
||||
}
|
||||
}
|
||||
7
pages/search/search.scss
Normal file
7
pages/search/search.scss
Normal file
@@ -0,0 +1,7 @@
|
||||
.box {
|
||||
border-top: #eaeaea solid 1rpx;
|
||||
width: 750rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
4
pages/search/search.wxml
Normal file
4
pages/search/search.wxml
Normal file
@@ -0,0 +1,4 @@
|
||||
<view class="box">
|
||||
<search></search>
|
||||
<hot></hot>
|
||||
</view>
|
||||
1
pages/search/search.wxss
Normal file
1
pages/search/search.wxss
Normal file
@@ -0,0 +1 @@
|
||||
.box{border-top:#eaeaea solid 1rpx;width:750rpx;display:flex;align-items:center;flex-direction:column}
|
||||
Reference in New Issue
Block a user