diff --git a/app.json b/app.json index 82c0fc1..c9f2183 100644 --- a/app.json +++ b/app.json @@ -3,12 +3,15 @@ "pages/home/index", "pages/user/index", "pages/billboards/index", - "pages/topics/index" + "pages/topics/index", + "pages/billboards/firm/index", + "pages/billboards/park/index", + "pages/billboards/policy/index" ], "window": { "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#fff", - "navigationBarTitleText": "凤栖市北", + "navigationBarTitleText": "市北人才", "navigationBarTextStyle": "black" }, "tabBar": { diff --git a/components/card/index.js b/components/card/index.js new file mode 100644 index 0000000..172e4a6 --- /dev/null +++ b/components/card/index.js @@ -0,0 +1,28 @@ +// components/card/index.js +Component({ + externalClasses:['tag-class'], + /** + * 组件的属性列表 + */ + properties: { + cId: String, + image: String, + title: String + }, + + /** + * 组件的初始数据 + */ + data: { + + }, + + /** + * 组件的方法列表 + */ + methods: { + onTap () { + this.triggerEvent('clickCardItem', this.properties.cId) + } + } +}) diff --git a/components/card/index.json b/components/card/index.json new file mode 100644 index 0000000..e8cfaaf --- /dev/null +++ b/components/card/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/components/card/index.wxml b/components/card/index.wxml new file mode 100644 index 0000000..34d6ecc --- /dev/null +++ b/components/card/index.wxml @@ -0,0 +1,5 @@ + + + + 橡胶谷园区 + diff --git a/components/card/index.wxss b/components/card/index.wxss new file mode 100644 index 0000000..484e504 --- /dev/null +++ b/components/card/index.wxss @@ -0,0 +1,18 @@ +/* components/card/index.wxss */ +.card { + border: 1px solid #e7e7e7; + box-shadow: 1px 1px 1px #eee; +} +.card_logo { + width: 100%; + height: 106px; +} +.card_title { + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + height: 41px; + color: #373737; + font-size: 12px; +} \ No newline at end of file diff --git a/components/cell/index.js b/components/cell/index.js index 13d2aff..a950e65 100644 --- a/components/cell/index.js +++ b/components/cell/index.js @@ -4,6 +4,7 @@ Component({ * 组件的属性列表 */ properties: { + cId: String, title: String, time: String, showTop: { @@ -23,6 +24,8 @@ Component({ * 组件的方法列表 */ methods: { - + onTap () { + this.triggerEvent('clickListItem', { id: this.properties.cId}) + } } }) diff --git a/components/cell/index.wxml b/components/cell/index.wxml index 1f31a74..05eadba 100644 --- a/components/cell/index.wxml +++ b/components/cell/index.wxml @@ -1,5 +1,5 @@ - + {{title}} {{time}} diff --git a/images/billboard/1.png b/images/billboard/1.png new file mode 100644 index 0000000..e14fcee Binary files /dev/null and b/images/billboard/1.png differ diff --git a/images/billboard/2.png b/images/billboard/2.png new file mode 100644 index 0000000..1eb77cb Binary files /dev/null and b/images/billboard/2.png differ diff --git a/images/billboard/3.png b/images/billboard/3.png new file mode 100644 index 0000000..bdb832a Binary files /dev/null and b/images/billboard/3.png differ diff --git a/images/temp_1.png b/images/temp_1.png new file mode 100644 index 0000000..742aa5e Binary files /dev/null and b/images/temp_1.png differ diff --git a/pages/billboards/firm/index.js b/pages/billboards/firm/index.js new file mode 100644 index 0000000..74b0fb4 --- /dev/null +++ b/pages/billboards/firm/index.js @@ -0,0 +1,68 @@ +// pages/billboards/firm/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + clickCardItem(e) { + console.log(e.detail) + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/billboards/firm/index.json b/pages/billboards/firm/index.json new file mode 100644 index 0000000..0b75386 --- /dev/null +++ b/pages/billboards/firm/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "重点企业", + "usingComponents": { + "e-card": "/components/card/index" + } +} \ No newline at end of file diff --git a/pages/billboards/firm/index.wxml b/pages/billboards/firm/index.wxml new file mode 100644 index 0000000..c4c548a --- /dev/null +++ b/pages/billboards/firm/index.wxml @@ -0,0 +1,8 @@ + + + + + + diff --git a/pages/billboards/firm/index.wxss b/pages/billboards/firm/index.wxss new file mode 100644 index 0000000..6e378b5 --- /dev/null +++ b/pages/billboards/firm/index.wxss @@ -0,0 +1,12 @@ +/* pages/billboards/firm/index.wxss */ +.container { + padding: 0 3vw; + display: flex; + flex-direction: row; + justify-content: space-between; + flex-wrap: wrap; +} +.e_card { + width: 45vw; + margin-bottom: 13px; +} \ No newline at end of file diff --git a/pages/billboards/index.js b/pages/billboards/index.js index 3704d83..cc992b1 100644 --- a/pages/billboards/index.js +++ b/pages/billboards/index.js @@ -14,7 +14,23 @@ Page({ onLoad: function (options) { }, - + onClickItem (e) { + const {index} = e.currentTarget.dataset + console.log(index) + if (index == 1) { + wx.navigateTo({ + url: '/pages/billboards/policy/index', + }) + } else if (index == 2) { + wx.navigateTo({ + url: '/pages/billboards/park/index', + }) + } else { + wx.navigateTo({ + url: '/pages/billboards/firm/index', + }) + } + }, /** * 生命周期函数--监听页面初次渲染完成 */ diff --git a/pages/billboards/index.json b/pages/billboards/index.json index 8835af0..7e4b8f2 100644 --- a/pages/billboards/index.json +++ b/pages/billboards/index.json @@ -1,3 +1,4 @@ { + "navigationBarTitleText": "宣传栏", "usingComponents": {} } \ No newline at end of file diff --git a/pages/billboards/index.wxml b/pages/billboards/index.wxml index cecdd04..a7d7756 100644 --- a/pages/billboards/index.wxml +++ b/pages/billboards/index.wxml @@ -1,2 +1,6 @@ -pages/billboards/index.wxml + + + + + diff --git a/pages/billboards/index.wxss b/pages/billboards/index.wxss index f3b514b..9f814cb 100644 --- a/pages/billboards/index.wxss +++ b/pages/billboards/index.wxss @@ -1 +1,13 @@ -/* pages/billboards/index.wxss */ \ No newline at end of file +/* pages/billboards/index.wxss */ +.container { + height: 100vh; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} +.billboard_item { + margin-top: 25px; + width: 90%; + height: 120px; +} \ No newline at end of file diff --git a/pages/billboards/park/index.js b/pages/billboards/park/index.js new file mode 100644 index 0000000..a943efc --- /dev/null +++ b/pages/billboards/park/index.js @@ -0,0 +1,68 @@ +// pages/billboards/park/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + clickCardItem (e) { + console.log(e.detail) + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/billboards/park/index.json b/pages/billboards/park/index.json new file mode 100644 index 0000000..bc5718d --- /dev/null +++ b/pages/billboards/park/index.json @@ -0,0 +1,6 @@ +{ + "navigationBarTitleText": "创业园区", + "usingComponents": { + "e-card": "/components/card/index" + } +} \ No newline at end of file diff --git a/pages/billboards/park/index.wxml b/pages/billboards/park/index.wxml new file mode 100644 index 0000000..739d871 --- /dev/null +++ b/pages/billboards/park/index.wxml @@ -0,0 +1,8 @@ + + + + + + diff --git a/pages/billboards/park/index.wxss b/pages/billboards/park/index.wxss new file mode 100644 index 0000000..b79b98c --- /dev/null +++ b/pages/billboards/park/index.wxss @@ -0,0 +1,12 @@ +/* pages/billboards/park/index.wxss */ +.container { + padding: 0 3vw; + display: flex; + flex-direction: row; + justify-content: space-between; + flex-wrap: wrap; +} +.e_card { + width: 45vw; + margin-bottom: 13px; +} \ No newline at end of file diff --git a/pages/billboards/policy/index.js b/pages/billboards/policy/index.js new file mode 100644 index 0000000..aae7c44 --- /dev/null +++ b/pages/billboards/policy/index.js @@ -0,0 +1,66 @@ +// pages/billboards/policy/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 diff --git a/pages/billboards/policy/index.json b/pages/billboards/policy/index.json new file mode 100644 index 0000000..82f42ff --- /dev/null +++ b/pages/billboards/policy/index.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "人才政策", + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/billboards/policy/index.wxml b/pages/billboards/policy/index.wxml new file mode 100644 index 0000000..7bdbea4 --- /dev/null +++ b/pages/billboards/policy/index.wxml @@ -0,0 +1,2 @@ + +pages/billboards/policy/index.wxml diff --git a/pages/billboards/policy/index.wxss b/pages/billboards/policy/index.wxss new file mode 100644 index 0000000..778b62f --- /dev/null +++ b/pages/billboards/policy/index.wxss @@ -0,0 +1 @@ +/* pages/billboards/policy/index.wxss */ \ No newline at end of file diff --git a/pages/home/index.js b/pages/home/index.js index ce7cac4..6f4ec3d 100644 --- a/pages/home/index.js +++ b/pages/home/index.js @@ -6,16 +6,19 @@ Page({ data: { list: [ { + id: '1', title: '啦啦啦量阿拉蕾阿拉啦', showTop: true, time: '刚刚' }, { + id: '2', title: '一条大河,向东流', showTop: false, time: '1分钟前' }, { + id: '3', title: '啦啦啦量阿拉蕾阿拉啦', showTop: false, time: '1小时前' @@ -30,5 +33,8 @@ Page({ }, tapFocusItem (e) { console.log(e.detail) + }, + clickListItem (e) { + console.log(e.detail) } }) diff --git a/pages/home/index.wxml b/pages/home/index.wxml index 2b3ab87..741c2ab 100644 --- a/pages/home/index.wxml +++ b/pages/home/index.wxml @@ -3,6 +3,11 @@ - + diff --git a/project.config.json b/project.config.json index a370751..a83b1df 100644 --- a/project.config.json +++ b/project.config.json @@ -41,13 +41,31 @@ "current": -1, "list": [] }, + "plugin": { + "current": -1, + "list": [] + }, "game": { "currentL": -1, "list": [] }, "miniprogram": { - "current": -1, - "list": [] + "current": 1, + "list": [ + { + "id": -1, + "name": "Boillboard", + "pathName": "pages/billboards/index", + "query": "", + "scene": null + }, + { + "id": -1, + "name": "Park", + "pathName": "pages/billboards/park/index", + "scene": null + } + ] } } } \ No newline at end of file