榆山数据端小程序
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.

69 lines
2.9 KiB

<view class="user-analysis">
<view class="count-detail">
<view class="content">
<image class="user-bg" src="../../images/user-vg-3.png" />
<view class="over-bg">
<view class="yh-all">用户总数</view>
<view class="yh-number">{{allSituation.userTotal}}</view>
<view class="box">
<view class="item item-border">
<text class="text-1">党员</text>
<text class="text-2">{{allSituation.partyNumber}}</text>
<text class="text-3">{{allSituation.partyNumberRatio}}%</text>
</view>
<view class="item item-border">
<text class="text-1">居民</text>
<text class="text-2">{{allSituation.userNumber}}</text>
<text class="text-3">{{allSituation.userNumberRatio}}%</text>
</view>
<view class="item">
<text class="text-1">企业代表</text>
<text class="text-2">{{allSituation.companyRepresentTotal}}</text>
<text class="text-3">{{allSituation.companyRepresentTotalRatio}}%</text>
</view>
</view>
</view>
</view>
</view>
<view class="search-bar">
<view class="condition" bindtap="showCondition">
<view class="select-condition">{{choosedCondition.title}}</view>
<view class="trigger {{ conditionVisible ? 'reverse' : ''}}"></view>
<cover-view class="option-list" style="height: {{conditionVisible ? '240rpx': '0'}}">
<cover-view bindtap="onChnageCondition" data-id="{{item.id}}" class="list-item" wx:for="{{conditionList}}" wx:key="index" wx:for-index="index">
<cover-view class="title">{{item.title}}</cover-view>
<cover-view class="title" wx:if="{{item.select}}">√</cover-view>
</cover-view>
</cover-view>
</view>
<view class="order">
<view class="front {{orderType === 'asc' ? 'select' : ''}}" data-type="asc" bindtap="changeOrder">
<text>正序</text>
<image src="../../images/change.png" />
</view>
<view class="back {{orderType === 'desc' ? 'select' : ''}}" data-type="desc" bindtap="changeOrder">
<image src="../../images/change.png" />
<text>倒序</text>
</view>
</view>
</view>
<view class="user-list">
<block wx:if="{{preloadVisible && userAnalysisList.length === 0}}">
<view class="list-item" wx:key="index" wx:for-index="index" wx:for="{{[1,2,3]}}">
<preload-item></preload-item>
</view>
</block>
<block wx:elif="{{!preloadVisible && userAnalysisList.length > 0}}">
<view class="list-item" wx:for="{{userAnalysisList}}" wx:for-index="index" wx:key="index">
<list-item contentObj="{{item}}" bind:navigateToDetail="navigateToDetail" order="{{index + 1}}">
</list-item>
</view>
</block>
<view class="no-data" wx:else>
<no-data isShow="{{true}}"></no-data>
</view>
</view>
<load-more loadType="{{loadType}}" loadVisible="{{loadVisible}}">
</load-more>
</view>