登录,设置密码,修改密码,我的,首页,会议列表(接口逻辑已写,差加密文件的完善,代联调)
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
// pages/home/home.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
selectArr: [
|
||||
{ path: '../../assets/images/laikuan.png', text: '来款项目' },
|
||||
{ path: '../../assets/images/gongzuozu.png', text: '工作组' },
|
||||
{ path: '../../assets/images/fenbiaowei.png', text: '分标委' },
|
||||
{ path: '../../assets/images/huiyi.png', text: '会议活动' },
|
||||
{ path: '../../assets/images/ziliao.png', text: '资料网员' },
|
||||
]
|
||||
},
|
||||
// 点击首页的五个选项跳转页面
|
||||
clickSelect(e){
|
||||
let index = e.currentTarget.dataset.index
|
||||
let url = ''
|
||||
if(index === 0) { // 来款项目
|
||||
url = '../project/project'
|
||||
} else if(index === 1) { // 工作组
|
||||
url = '../work/work'
|
||||
} else if(index === 2) { // 分标委
|
||||
url = '../committee/committee'
|
||||
} else if(index === 3) { // 会议活动
|
||||
url = '../meeting/meeting'
|
||||
} else{ // 资料网员
|
||||
url = '../data/data'
|
||||
}
|
||||
wx.navigateTo({
|
||||
url,
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<view>
|
||||
<view class="home-bg">
|
||||
<!-- 顶部背景图 mode="scaleToFill" 按照宽高填充,忽略图片原比例-->
|
||||
<image mode="scaleToFill" src="../../assets/images/home-bg.png"></image>
|
||||
<!-- 顶部选项栏 -->
|
||||
<view class="select-box">
|
||||
<view class="select">
|
||||
<view class="select-item" wx:for="{{selectArr}}" wx:for-item="item" wx:key="path" bindtap="clickSelect" data-item="{{item}}" data-index="{{index}}">
|
||||
<view class="image-box">
|
||||
<image mode="scaleToFill" src="{{item.path}}"></image>
|
||||
</view>
|
||||
<text>{{item.text}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1,35 @@
|
||||
page{
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
.home-bg{
|
||||
height: 200pt;
|
||||
}
|
||||
.select-box{
|
||||
transform: translateY(-40pt);
|
||||
padding: 0 15pt;
|
||||
}
|
||||
.select-box .select{
|
||||
height: 115pt;
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
}
|
||||
.select-item{
|
||||
flex: 1;
|
||||
font-size: 10pt;
|
||||
color: #666666;
|
||||
flex-direction: column;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
.image-box{
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.image-box image{
|
||||
max-height: 100%;
|
||||
}
|
||||
Reference in New Issue
Block a user