30 changed files with 394 additions and 10 deletions
@ -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) |
||||
|
} |
||||
|
} |
||||
|
}) |
@ -0,0 +1,4 @@ |
|||||
|
{ |
||||
|
"component": true, |
||||
|
"usingComponents": {} |
||||
|
} |
@ -0,0 +1,5 @@ |
|||||
|
<!--components/card/index.wxml--> |
||||
|
<view class="card tag-class" bindtap="onTap"> |
||||
|
<image class="card_logo" src="/images/temp_1.png"/> |
||||
|
<view class="card_title">橡胶谷园区</view> |
||||
|
</view> |
@ -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; |
||||
|
} |
After Width: | Height: | Size: 66 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 66 KiB |
After Width: | Height: | Size: 13 KiB |
@ -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 () { |
||||
|
|
||||
|
} |
||||
|
}) |
@ -0,0 +1,6 @@ |
|||||
|
{ |
||||
|
"navigationBarTitleText": "重点企业", |
||||
|
"usingComponents": { |
||||
|
"e-card": "/components/card/index" |
||||
|
} |
||||
|
} |
@ -0,0 +1,8 @@ |
|||||
|
<!--pages/billboards/firm/index.wxml--> |
||||
|
<view class="container"> |
||||
|
<block wx:for="{{[1,3,4]}}" wx:key="*this"> |
||||
|
<e-card cId="{{index}}" |
||||
|
tag-class="e_card" |
||||
|
bind:clickCardItem="clickCardItem"/> |
||||
|
</block> |
||||
|
</view> |
@ -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; |
||||
|
} |
@ -1,3 +1,4 @@ |
|||||
{ |
{ |
||||
|
"navigationBarTitleText": "宣传栏", |
||||
"usingComponents": {} |
"usingComponents": {} |
||||
} |
} |
@ -1,2 +1,6 @@ |
|||||
<!--pages/billboards/index.wxml--> |
<!--pages/billboards/index.wxml--> |
||||
<text>pages/billboards/index.wxml</text> |
<view class="container"> |
||||
|
<image bindtap="onClickItem" data-index="1" class="billboard_item" src="/images/billboard/1.png"></image> |
||||
|
<image bindtap="onClickItem" data-index="2" class="billboard_item" src="/images/billboard/2.png"></image> |
||||
|
<image bindtap="onClickItem" data-index="3" class="billboard_item" src="/images/billboard/3.png"></image> |
||||
|
</view> |
||||
|
@ -1 +1,13 @@ |
|||||
/* pages/billboards/index.wxss */ |
/* 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; |
||||
|
} |
@ -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 () { |
||||
|
|
||||
|
} |
||||
|
}) |
@ -0,0 +1,6 @@ |
|||||
|
{ |
||||
|
"navigationBarTitleText": "创业园区", |
||||
|
"usingComponents": { |
||||
|
"e-card": "/components/card/index" |
||||
|
} |
||||
|
} |
@ -0,0 +1,8 @@ |
|||||
|
<!--pages/billboards/park/index.wxml--> |
||||
|
<view class="container"> |
||||
|
<block wx:for="{{[1,3,4]}}" wx:key="*this"> |
||||
|
<e-card cId="{{index}}" |
||||
|
tag-class="e_card" |
||||
|
bind:clickCardItem="clickCardItem"/> |
||||
|
</block> |
||||
|
</view> |
@ -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; |
||||
|
} |
@ -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 () { |
||||
|
|
||||
|
} |
||||
|
}) |
@ -0,0 +1,4 @@ |
|||||
|
{ |
||||
|
"navigationBarTitleText": "人才政策", |
||||
|
"usingComponents": {} |
||||
|
} |
@ -0,0 +1,2 @@ |
|||||
|
<!--pages/billboards/policy/index.wxml--> |
||||
|
<text>pages/billboards/policy/index.wxml</text> |
@ -0,0 +1 @@ |
|||||
|
/* pages/billboards/policy/index.wxss */ |
Loading…
Reference in new issue