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. 23
      subpages/resnoinformation/pages/resnoinformation/resnoinformation.wxml
  4. 83
      subpages/resnoinformation/pages/resnoinformation/resnoinformation.wxss

5
pages/work2/work2.js

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

4
pages/work2/work2.wxml

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

23
subpages/resnoinformation/pages/resnoinformation/resnoinformation.wxml

@ -22,19 +22,28 @@
<!-- 根据您的需求添加其他内容 --> <!-- 根据您的需求添加其他内容 -->
<view class="line"> <view class="line">
<view class="information"> <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"> <view class="name">
<text lines="1" class="text_1">{{item.resiName}}</text> <text lines="1" class="text_1">{{item.resiName}}</text>
</view> </view>
<view class="hd_lable"> <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"> <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" >{{itemNR.categoryName}}</text> <text class="text_2">{{itemC.categoryName}}</text>
</view> </view>
</view> </view>
</view> </view>
<view class="information_1"> <view class="information_1">
<text lines="1" class="text_3">信息完整度:</text> <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> </view>
<view class="phone"> <view class="phone">

83
subpages/resnoinformation/pages/resnoinformation/resnoinformation.wxss

@ -123,6 +123,7 @@ page{
.information{ .information{
display: flex; display: flex;
flex-direction: row; flex-direction: row;
width: 400rpx;
} }
.name{ .name{
@ -141,17 +142,32 @@ text-align: center;
display: block; display: block;
width:auto; width:auto;
height: 40rpx; height: 40rpx;
background: #f6f6f6; /* background: #f6f6f6; */
margin-left: 20rpx; 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{ .text_2{
display: table; display: table;
width: 45rpx; width: 45rpx;
height: 30rpx; height: 30rpx;
overflow-wrap: break-word; overflow-wrap: break-word;
color: rgba(153,153,153,1);
font-size: 24rpx; font-size: 24rpx;
font-family: PingFang-SC-Medium; font-family: PingFang-SC-Medium;
font-weight: 500; font-weight: 500;
@ -159,7 +175,7 @@ text-align: center;
white-space: nowrap; white-space: nowrap;
line-height: 42rpx; line-height: 42rpx;
margin-right: 20rpx; margin-right: 20rpx;
margin-left: 10rpx;
} }
.text_1 { .text_1 {
@ -173,31 +189,17 @@ text-align: center;
text-align: left; text-align: left;
white-space: nowrap; white-space: nowrap;
line-height: 41rpx; line-height: 41rpx;
margin-top: 2rpx; margin-top: 2rpx;
} }
.hd_lable{ .hd_lable{
display: flex; display: flex;
width: 300rpx; width: 300rpx;
height:50rpx; height:50rpx;
overflow-x: scroll; 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 { .information_1 {
width: 145rpx; display: flex;
width: 90rpx;
height: 28rpx; height: 28rpx;
overflow-wrap: break-word; overflow-wrap: break-word;
font-size: 0rpx; font-size: 0rpx;
@ -503,4 +505,39 @@ text-align: center;
white-space: nowrap; white-space: nowrap;
line-height: 40rpx; 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