【开发】 注册
This commit is contained in:
@@ -0,0 +1,108 @@
|
||||
// pages/standardRouter/standardRouter.js
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
pageRputers: [
|
||||
{
|
||||
path: "",
|
||||
imgPath:'../../assets/images/basic-info.png',
|
||||
val: "1",
|
||||
name: "基本信息"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=", // type 是会议类型
|
||||
imgPath:'../../assets/images/notice.png',
|
||||
val: "2",
|
||||
name: "标准宣贯"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=",
|
||||
imgPath:'../../assets/images/train.png',
|
||||
val: "3",
|
||||
name: "培训会"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=",
|
||||
imgPath:'../../assets/images/info.png',
|
||||
val: "4",
|
||||
name: "信息交流会"
|
||||
},
|
||||
{
|
||||
path: "../meeting/meeting?type=", // 这里应该是一个新的页面 或者用分标委的页面
|
||||
imgPath:'../../assets/images/lishi.png',
|
||||
val: "5",
|
||||
name: "理事会"
|
||||
},
|
||||
]
|
||||
},
|
||||
/**
|
||||
* @description 跳转
|
||||
* @param {*} e
|
||||
*/
|
||||
clickSelect(e){
|
||||
let item = e.currentTarget.dataset.item
|
||||
wx.navigateTo({
|
||||
url: item.path,
|
||||
})
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
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,17 @@
|
||||
<!--pages/standardRouter/standardRouter.wxml-->
|
||||
<view class="select-box">
|
||||
<view class="select">
|
||||
<view class="select-item" wx:for="{{pageRputers}}" wx:for-item="item" wx:key="path" bindtap="clickSelect"
|
||||
data-item="{{item}}" data-index="{{index}}">
|
||||
<view class="image-box">
|
||||
<view class="img-mask"></view>
|
||||
<image src="{{item.imgPath}}" class="img"></image>
|
||||
</view>
|
||||
<text>{{item.name}}</text>
|
||||
</view>
|
||||
<text class="select-item"></text>
|
||||
<text class="select-item"></text>
|
||||
<text class="select-item"></text>
|
||||
<text class="select-item"></text>
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1,41 @@
|
||||
/* pages/standardRouter/standardRouter.wxss */
|
||||
.select-box {
|
||||
transform: translateY(40rpx);
|
||||
}
|
||||
.select {
|
||||
padding: 20rpx;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.select-item {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
width: 25%;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.image-box {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.image-box .img{
|
||||
width: 15pt;
|
||||
height: 15pt;
|
||||
}
|
||||
.img-mask {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
width: 40pt;
|
||||
height: 40pt;
|
||||
border-radius: 50%;
|
||||
background-color: #069f99;
|
||||
opacity: .2;
|
||||
}
|
||||
Reference in New Issue
Block a user