123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <template>
- <view class="app-page">
- <view class="handle-wrap">
- <view class="title">常用操作</view>
- <view class="tabs">
- <view class="tab-item">
- <image class="icon" src="/static/app/tab-1.png" mode="widthFix"></image>
- <view class="name">登记隐患</view>
- </view>
- <view class="tab-item">
- <image class="icon" src="/static/app/tab-2.png" mode="widthFix"></image>
- <view class="name">临时任务</view>
- </view>
- <view class="tab-item">
- <image class="icon" src="/static/app/tab-3.png" mode="widthFix"></image>
- <view class="name">检查记录</view>
- </view>
- <view class="tab-item">
- <image class="icon" src="/static/app/tab-4.png" mode="widthFix"></image>
- <view class="name">问题反馈</view>
- </view>
- </view>
- </view>
- <view class="app-category">
- <view class="title">应用分类</view>
- <view class="applist">
- <view class="app" v-for="(app,index) in apps" :key="index">
- <image class="icon" :src="app.href" mode="widthFix"></image>
- <view class="info">
- <view class="app-title">{{app.title}}</view>
- <view class="tag">{{app.tag}}</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- apps:[]
- }
- },
- onShow() {
- this.getData()
- },
- methods: {
- getData(){
- this.apps=[{
- href:"",
- title:"满意度评价",
- tag:"及时评价"
- },{
- href:"",
- title:"满意度评价",
- tag:"及时评价"
- },{
- href:"",
- title:"满意度评价",
- tag:"及时评价"
- },{
- href:"",
- title:"满意度评价",
- tag:"及时评价"
- }]
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .app-page{
- padding: 32rpx;
- background-color: rgba(243, 244, 247, 1);
- box-sizing: border-box;
- min-height: 100vh;
- .handle-wrap{
- background: linear-gradient(159.65deg, #FFF8E8 11.95%, #FFFFFF 20.49%, #FFFFFF 86.47%),
- linear-gradient(0deg, #FFFFFF, #FFFFFF);
- border-radius: 12rpx;
- padding: 32rpx 0;
- .title{
- color: #000;
- font-size: 32rpx;
- padding-left:24rpx;
- }
- .tabs{
- display: flex;
- justify-content: space-around;
- align-items: center;
- padding:0 32rpx;
- margin-top: 32rpx;
- .tab-item{
- width: 112rpx;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- .icon{
- width: 96rpx;
- }
- .name{
- width: 100%;
- padding-top: 12rpx;
- color: rgba(0, 0, 0, 0.9);
- font-size: 28rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- word-break: break-all;
- }
- }
- }
- }
- .app-category{
- .title{
- color: #000;
- font-size: 32rpx;
- line-height: 1;
- padding: 48rpx 24rpx 32rpx 24rpx;
- }
- .applist{
- display: flex;
- flex-wrap: wrap;
- .app{
- width: 330rpx;
- height: 160rpx;
- background-color: #fff;
- border-radius: 16rpx;
- margin-bottom: 20rpx;
- display: flex;
- padding: 32rpx 0 0 28rpx;
- box-sizing: border-box;
- &:nth-child(2n){
- margin-left: 18rpx;
- }
- .icon{
- width: 66rpx;
- height: 66rpx;
- border-radius: 50%;
- background-color:rgba(151, 179, 255, 1);
- }
- .info{
- padding-left: 20rpx;
- padding-top: 4rpx;
- .app-title{
- color: rgba(34, 34, 34, 1);
- font-size: 32rpx;
- }
- .tag{
- margin-top: 6rpx;
- color: rgba(255, 171, 8, 1);
- font-size:24rpx;
- background: rgba(255, 171, 8, 0.1);
- border-radius: 12rpx;
- padding: 4rpx 10rpx;
- }
- }
- }
- }
- }
- }
- </style>
|