123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- <template>
- <view class="headers">
- <view class="headers_list" v-for="(item,index) in infos" :key="index">
- <view class="headers_title">
- <text class="headers_title_h1">
- {{item.title}}
- </text>
- <!-- <text class="headers_title_h2">
- {{item.titles}}
- </text> -->
- </view>
- <view class="headers_ul" >
- <view class="headers_li" v-for="(items,index) in item.lists" :key="index">
- <view class="headers_li_img">
- <image :src="items.imgs" mode=""></image>
- </view>
- <view class="headers_li_text">
- {{items.texts}}
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- infos:[
- {title:"我的常用",
- titles:"(长按图标可添加删除)",
- lists:[
- {imgs:"/../static/img/tongzhi.png",texts:"通知公告"},
- {imgs:"/../static/img/daiban.png",texts:"待办工作"},
- {imgs:"/../static/img/zhiban.png",texts:"值班信息"},
- {imgs:"/../static/img/banzu.png",texts:"班组信息"},
- ]},
- {title:"我的常用",
- titles:"(长按图标可添加删除)",
- lists:[
- {imgs:"/../static/img/tongzhi.png",texts:"通知公告"},
- {imgs:"/../static/img/daiban.png",texts:"待办工作"},
- {imgs:"/../static/img/zhiban.png",texts:"值班信息"},
- {imgs:"/../static/img/banzu.png",texts:"班组信息"},
- ]},
- {title:"我的常用",
- titles:"(长按图标可添加删除)",
- lists:[
- {imgs:"/../static/img/tongzhi.png",texts:"通知公告"},
- {imgs:"/../static/img/daiban.png",texts:"待办工作"},
- {imgs:"/../static/img/zhiban.png",texts:"值班信息"},
- {imgs:"/../static/img/banzu.png",texts:"班组信息"},
- ]},
- ]
- };
- }
- }
- </script>
- <style >
- .headers{
- width: 95%;
- margin: 15rpx auto;
- /* background-color: #fff; */
- /* border-radius: 40rpx; */
- }
- .headers_ul{
- display: flex;
- flex-direction: row;
- justify-content: space-around;
- margin-top: 10rpx;
- }
- .headers_title{
- margin-left: 40rpx;
- padding-top: 10rpx;
- padding-bottom: 5rpx;
- }
- .headers_li{
- text-align: center;
- margin-bottom: 10rpx;
- }
- .headers_li_img>image{
- width: 100rpx;
- height: 100rpx;
- }
- .headers_li_text{
- font-size: 14px;
- }
- .headers_title_h2{
- font-size: 12rpx;
- color: #8F939C;
- }
- .headers_list{
- background-color: #FFFFFF;
- margin-bottom: 20rpx;
- margin-top: 20rpx;
- border-radius: 40rpx;
- }
- </style>
|