daofu-applet/pages/index/index.wxml

69 lines
2.6 KiB
Plaintext
Raw Normal View History

2024-01-29 17:42:38 +08:00
<!--index.wxml-->
<view class="h-div v-center top">
<image class="img" src="/images/home/icon_top-bg.png" mode="aspectFill" />
2024-01-30 17:39:39 +08:00
<image class="avatar" catchtap="toSkip" data-url="/pages/account/info/index" src="/images/home/avatar.png" mode="aspectFit" />
2024-01-29 17:42:38 +08:00
<view class="v-div" catchtap="toSkip" data-url="/pages/account/info/index">
<text class="name">{{userInfo.chinaName}}</text>
<text class="point">{{userInfo.postName}}</text>
</view>
</view>
<!-- 消息 -->
<swiper class="item-bg swiper-msg" autoplay indicator-dots indicator-active-color='#ffffff'>
<swiper-item class="item" wx:for="{{notice}}" wx:key="{{item}}">
2024-03-20 17:09:58 +08:00
<image catchtap="toMsgDetail" data-item="{{item}}" class="img" src="{{baseImgUrl+item.coverImg}}" mode="widthFix"></image>
2024-02-29 17:31:11 +08:00
<text class="title ellipsis">{{item.title}}</text>
2024-01-29 17:42:38 +08:00
</swiper-item>
</swiper>
<!-- 数据统计 -->
<view class="item-bg">
<view class="h-div v-center title">
<image class="icon" src="/images/home/icon_work.png" />
<text class="txt">数据统计</text>
</view>
<view class="item-wrapper">
<view class="item-row v-div v-center" wx:for="{{tab1}}" wx:key="index" catchtap="toSkip" data-item="{{item}}">
<image src="{{'/images/home/'+item.icon+'.png'}}" />
<text>{{item.name}}</text>
</view>
</view>
</view>
<!-- 工作台 -->
<view class="item-bg">
<view class="h-div v-center title">
<image class="icon" src="/images/home/icon_work.png" />
<text class="txt">工作台</text>
</view>
<view class="item-wrapper">
<view class="item-row v-div v-center" wx:for="{{tab2}}" wx:key="index" catchtap="toSkip" data-item="{{item}}">
<image src="{{'/images/home/'+item.icon+'.png'}}" />
<text>{{item.name}}</text>
</view>
</view>
</view>
<!-- 应急指挥 -->
<view class="item-bg">
<view class="h-div v-center title">
<image class="icon" src="/images/home/icon_work.png" />
<text class="txt">应急指挥</text>
</view>
<view class="item-wrapper">
<view class="item-row v-div v-center" wx:for="{{tab3}}" wx:key="index" catchtap="toSkip" data-item="{{item}}">
<image src="{{'/images/home/'+item.icon+'.png'}}" />
<text>{{item.name}}</text>
</view>
</view>
</view>
<view class="space"></view>
<!-- 消息详情 -->
<view class="cu-modal {{showPop?'show':''}}">
<view class="cu-dialog pop">
<view class="cu-bar justify-end pop-header">
<view class="content text-black" style="font-weight: bold;">消息</view>
<view class="action" bindtap="handldePop">
<text class="cuIcon-close text-black"></text>
</view>
</view>
<textarea disabled class="pop-content" value="{{msgData.content}}" />
</view>
</view>