epmet 工作端 小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

177 lines
5.1 KiB

<view class="resident-container">
<view class="card">
<view class="title">居民档案</view>
<view class="user-info">
<image src="../../images/woman.png" wx:if="{{userInfo.gender == 2}}" class="img" mode="widthFix" />
<image src="../../images/man.png" wx:else class="img" mode="widthFix" />
<view class="name">
{{userInfo.name}} {{userInfo.mobile}}
</view>
</view>
<view class="user-infos">
<view class="label">
居住地址:
</view>
<view class="value">
{{userInfo.fullName || '--'}}
</view>
</view>
<view class="user-infos">
<view class="label">
所属网格:
</view>
<view class="value">
{{userInfo.gridName || '--'}}
</view>
</view>
<view class="user-infos">
<view class="label">
入户状况:
</view>
<view class="value">
{{userInfo.householdSituation || '--'}}
</view>
</view>
<view class="user-infos">
<view class="label">
居住类型:
</view>
<view class="value">
{{userInfo.resideSituation?userInfo.resideSituation:'--'}}
</view>
</view>
<view class="user-infos">
<view class="label">
家庭预警:
</view>
<view class="value">
{{userInfo.riskyFlag === '1' ? '满意度风险家庭' : '--'}}
</view>
</view>
</view>
<view class="card">
<view class="title">家庭关系</view>
<view wx:for="{{userList}}" wx:key="index" wx:if="{{index == 0}}">
<view class="user-info">
<image src="../../images/man.png" class="img" mode="widthFix" />
<view class="name">
{{item.name}} (户主)
</view>
</view>
<view class="user-infos">
<view class="label">
入户状况:
</view>
<view class="value">
{{item.householdSituation || '--'}}
</view>
</view>
<view class="user-infos">
<view class="label">
居民分类:
</view>
<view class="value">
{{item.classificationOfInhabitantsList || '--'}}
</view>
</view>
</view>
<view class="user-list">
<view class="user-item" wx:for="{{userList}}" wx:key="index" wx:if="{{index>0}}">
<view class="user-name">
{{item.name}}<text wx:if="{{item.houseHolderRel}}">({{item.houseHolderRel}})</text>
</view>
<view>
入户状况:{{item.householdSituation || '--'}}
</view>
<view>
居民分类:{{item.classificationOfInhabitantsList || '--'}}
</view>
</view>
</view>
</view>
<view class="card">
<view class="title">各项业务记录</view>
<Tabs tabList="{{tabList}}" bind:tabChange="tabChange" noBg />
<view class="business-log">
<view class="header">
<view>事件描述</view>
<view>操作</view>
</view>
<block wx:if="{{businessIndex == 0}}">
<view class="content" wx:for="{{eventList}}" wx:key="index">
<view class="tit">{{item.eventcontent}}</view>
<view class="operation" bind:tap="eventView" data-id="{{item.id}}">
<text>查看</text>
<image src="../../images/right2.png" mode="widthFix" />
</view>
</view>
<view wx:if="{{eventList.length <= 0}}" class="no-data">暂无数据</view>
</block>
<block wx:if="{{businessIndex == 1}}">
<view class="content" wx:for="{{provincialList}}" wx:key="index">
<view class="tit">{{item.problemDesc}}</view>
<view class="operation" bind:tap="provincialView" data-id="{{item}}">
<text>查看</text>
<image src="../../images/right2.png" mode="widthFix" />
</view>
</view>
<view wx:if="{{provincialList.length <= 0}}" class="no-data">暂无数据</view>
</block>
<block wx:if="{{businessIndex == 2}}">
<view class="content" wx:for="{{communityList}}" wx:if="{{communityList.length > 0}}" wx:key="index">
<view class="tit">{{item.problemDesc}}</view>
<view class="operation" bind:tap="communityView" data-id="{{item}}">
<text>查看</text>
<image src="../../images/right2.png" mode="widthFix" />
</view>
</view>
<view wx:if="{{communityList.length <= 0}}" class="no-data">暂无数据</view>
</block>
</view>
</view>
<view class="card">
<view class="title">享受服务次数统计</view>
<view class="enjoyService">
<ec-canvas
id="enjoyService"
forceUseOldCanvas="{{false}}"
canvas-id="enjoyService"
ec="{{ ec }}"
/>
</view>
</view>
<view class="card">
<view class="title">积分记录</view>
<view class="integral-log">
<view class="integral-item" wx:for="{{recorHistoryList}}" wx:key="index">
<view class="num">
+{{item.classificationNum}}
</view>
<view>
<view class="tit">{{item.classification}}</view>
<view class="time">{{item.recordTime}}</view>
</view>
</view>
</view>
</view>
</view>