Commit 970c6e76 by 施宇

321

parent 314e96ea
......@@ -4,7 +4,8 @@
"pages/tab/price/price",
"pages/tab/message/message",
"pages/tab/good/good",
"pages/tab/me/me"
"pages/tab/me/me",
"pages/search/index/index"
],
"window": {
"backgroundTextStyle": "light",
......
// pages/search/index/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
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
<!--pages/search/index/index.wxml-->
<text>pages/search/index/index.wxml</text>
/* pages/search/index/index.wxss */
\ No newline at end of file
......@@ -128,5 +128,10 @@ Page({
*/
onShareAppMessage: function () {
},
toSearch:function(){
wx.navigateTo({
url: '/pages/search/index/index',
})
}
})
\ No newline at end of file
......@@ -2,7 +2,7 @@
<view class="home-view">
<view class="search-section">
<cover-image class="search-icon" src="/res/images/icons/search-icon.png"></cover-image>
<input placeholder='请输入芯片型号' placeholder-class="placeholderClass"></input>
<input placeholder='请输入芯片型号' placeholder-class="placeholderClass" bindtap="toSearch"></input>
</view>
<view class="home-content">
<view class="home-function bothSide row">
......
......@@ -14,8 +14,8 @@
},
"compileType": "miniprogram",
"libVersion": "2.7.0",
"appid": "wx69781f444d83d9ff",
"projectname": "ichunt",
"appid": "wxe0cce2b5d4868840",
"projectname": "icsales",
"debugOptions": {
"hidedInDevtools": []
},
......
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 sign in to comment