Browse Source

居民信息不完整页面增加居民信息头像 ,居民信息详情(党员,群众,志愿者)完成

data-paga-xiaowang
是小王呀\24601 1 year ago
parent
commit
7d4977eb30
  1. 5
      pages/work2/work2.js
  2. 4
      pages/work2/work2.wxml
  3. 19
      subpages/resnoinformation/pages/resnoinformation/resnoinformation.wxml
  4. 81
      subpages/resnoinformation/pages/resnoinformation/resnoinformation.wxss

5
pages/work2/work2.js

@ -111,6 +111,11 @@ Page({
wx.navigateTo({
url: '../../subpages/communitySelfInsp/pages/followUpList/followUpList',
})
},
onData(){
wx.switchTab({
url:'../../pages/statistics/statistics'
})
}
// onAddHouse(){
// wx.navigateTo({

4
pages/work2/work2.wxml

@ -63,11 +63,11 @@
<view class="text-wrapper_7-0">
<text lines="1" class="text_2-0">数据</text>
</view>
<view class="content_1">
<view class="content_1" bind:tap="onData">
<view>
<image src="/images/work2/data.png" class="image_15">
</image>
<text lines="1" class="text_13">数据</text>
<text lines="1" class="text_13" >数据</text>
</view>
</view>

19
subpages/resnoinformation/pages/resnoinformation/resnoinformation.wxml

@ -22,19 +22,28 @@
<!-- 根据您的需求添加其他内容 -->
<view class="line">
<view class="information">
<view style="display: flex;">
<image style="width: 40rpx;height: 40rpx;margin-right: 16rpx;" wx:if="{{item.gender=='1'&&item.age>18 &&item.age<60}}" src="https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/internal/20240402/1e21790833b04e9abe61e2a8f40446cb.png" mode="" />
<image style="width: 40rpx;height: 40rpx;margin-right: 16rpx;" wx:if="{{item.gender=='1'&& item.age<18 }}" src="https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/internal/20240402/62c2b6a1ce834f8dae081b562b2579b9.png" mode="" />
<image style="width: 40rpx;height: 40rpx;margin-right: 16rpx;" wx:if="{{item.gender=='1'&&item.age>=60}}" src="https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/internal/20240402/bd586a4e7d0f4b3aa68c79067dfe1428.png" mode="" />
<image style="width: 40rpx;height: 40rpx;margin-right: 16rpx;" wx:if="{{item.gender=='2'&&item.age>18 &&item.age<60}}" src="https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/internal/20240402/3b44e3495dcd4d96a3c07baad1bd7c5e.png" mode="" />
<image style="width: 40rpx;height: 40rpx;margin-right: 16rpx;" wx:if="{{item.gender=='2'&&item.age<18 }}" src="https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/internal/20240402/0c38251bba644a6b8e4a925aea74c9a7.png" mode="" />
<image style="width: 40rpx;height: 40rpx;margin-right: 16rpx;" wx:if="{{item.gender=='2'&&item.age>=60}}" src="https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/internal/20240402/2465ff7633a94413bf4ed2aa778c2765.png" mode="" />
<image style="width: 40rpx;height: 40rpx;margin-right: 16rpx;" wx:if="{{item.gender == '0'}}" src="https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/internal/20240402/1e21790833b04e9abe61e2a8f40446cb.png" mode="" />
<text lines="1" class="text_16"> {{item.name}}</text>
</view>
<view class="name">
<text lines="1" class="text_1">{{item.resiName}}</text>
</view>
<view class="hd_lable">
<view class="lable" wx:for="{{item.resiCategories}}" wx:for-item="itemNR" wx:for-index="index" wx:key="index" bind:tap="toResiDetail">
<text class="text_2" >{{itemNR.categoryName}}</text>
</view>
<view wx:for="{{item.resiCategories}}" wx:for-item="itemC" wx:for-index="index" wx:key="index" bind:tap="toResiDetail" class=" lable {{itemC.categoryName === '党员' ? 'hong' : itemC.categoryName === '群众' ? 'lan' : itemC.categoryName === '共青团员' ? 'ju' : itemC.categoryName === '残疾人员' ? 'qing' : itemC.categoryName === '慢病' ? 'zi' : itemC.categoryName === '死亡' ? '灰' : itemC.categoryName === '老年人' ? 'lan' : itemC.categoryName === '低保人员' ? 'lv' : itemC.categoryName === '退役军人' ? 'hong' : itemC.categoryName === '保障房人员' ? 'huang' : itemC.categoryName === '育龄妇女' ? 'fen' : itemC.categoryName === '特扶人员' ? 'zi' : itemC.categoryName === '安置帮教' ? 'zi' : itemC.categoryName === '吸毒人员' ? 'hong' : itemC.categoryName === '社区矫正' ? 'qing' : itemC.categoryName === '不良青少年' ? 'huang' : itemC.categoryName === '肇事肇祸精神病' ? 'zi' : itemC.categoryName === '邪教人员' ? 'ju' : itemC.categoryName === '统战人员' ? 'lv' : itemC.categoryName === '信访人员' ? 'hong' : itemC.categoryName === '志愿者' ? 'hong' : itemC.categoryName === '楼长' ? 'lan' : itemC.categoryName === '单元长' ? 'qing' : itemC.categoryName === '公益岗' ? 'fen' : itemC.categoryName === '大病' ? 'hong' : 'lan'}}">
<text class="text_2">{{itemC.categoryName}}</text>
</view>
</view>
</view>
<view class="information_1">
<text lines="1" class="text_3">信息完整度:</text>
<text lines="1" class="text_4">{{item.synthesizeScore}}</text>
<text lines="1" class="text_4">{{item.synthesizeScore}}%</text>
</view>
</view>
<view class="phone">

81
subpages/resnoinformation/pages/resnoinformation/resnoinformation.wxss

@ -123,6 +123,7 @@ page{
.information{
display: flex;
flex-direction: row;
width: 400rpx;
}
.name{
@ -141,17 +142,32 @@ text-align: center;
display: block;
width:auto;
height: 40rpx;
background: #f6f6f6;
/* background: #f6f6f6; */
margin-left: 20rpx;
/* color:red; */
}
.red-style{
display: block;
width:auto;
height: 40rpx;
background: #FFE3E3;
margin-left: 20rpx;
color:red;
}
.yellow-style{
display: block;
width:auto;
height: 40rpx;
background: yellow;
margin-left: 20rpx;
color:yellow;
}
.text_2{
display: table;
width: 45rpx;
height: 30rpx;
overflow-wrap: break-word;
color: rgba(153,153,153,1);
font-size: 24rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
@ -159,7 +175,7 @@ text-align: center;
white-space: nowrap;
line-height: 42rpx;
margin-right: 20rpx;
margin-left: 10rpx;
}
.text_1 {
@ -180,24 +196,10 @@ text-align: center;
width: 300rpx;
height:50rpx;
overflow-x: scroll;
}
.text_2{
width: 45rpx;
height: 23rpx;
overflow-wrap: break-word;
color: rgba(153,153,153,1);
font-size: 24rpx;
font-family: PingFang-SC-Medium;
font-weight: 500;
text-align: center;
white-space: nowrap;
line-height: 42rpx;
margin-left: 10rpx;
}
.information_1 {
width: 145rpx;
display: flex;
width: 90rpx;
height: 28rpx;
overflow-wrap: break-word;
font-size: 0rpx;
@ -503,4 +505,39 @@ text-align: center;
white-space: nowrap;
line-height: 40rpx;
}
.hong{
color:#ff3c3c;
background-color:#ffe3e3 ;
}
.lan{
color:#4f94ff;
background-color:#e6f0ff ;
}
.ju{
color:#fe840d;
background-color:#ffeedd ;
}
.qing{
color: #04b8ad;
background-color:#dcf5f3 ;
}
.zi{
color: #b462e8;
background-color:#f4e9fc ;
}
.hui{
color: #959495;
background-color:#f1f1f1 ;
}
.lv{
color: #52ba74;
background-color:#e7f5ec ;
}
.fen{
color: #ff688f;
background-color:#ffeaef ;
}
.huang{
color: #fcac00;
background-color: #fff3db;
}
Loading…
Cancel
Save