Commit f82b5e89 by zhangxw

样式修改

1 parent fbf8c6c5
...@@ -17,6 +17,7 @@ Page({ ...@@ -17,6 +17,7 @@ Page({
currentPage: 1, currentPage: 1,
allServiceIds: [], allServiceIds: [],
nothing: false, nothing: false,
scrollTop: 0
}, },
/** /**
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<glsx-image src="index/apply.png" class="icon" /> <glsx-image src="index/apply.png" class="icon" />
<text>创建新员工</text> <text>创建新员工</text>
</view> </view>
<view class="content-box" wx:if="{{staffList.length}}"> <view class="content-box">
<view class="title-box"> <view class="title-box">
<view class="title">员工数量:<text class="number">{{total}}</text></view> <view class="title">员工数量:<text class="number">{{total}}</text></view>
<view class="select-btn"> <view class="select-btn">
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
</view> </view>
</view> </view>
</view> </view>
<block wx:if="{{staffList.length}}">
<scroll-view scroll-y <scroll-view scroll-y
enable-back-to-top enable-back-to-top
refresher-enabled="{{true}}" refresher-enabled="{{true}}"
...@@ -23,12 +24,13 @@ ...@@ -23,12 +24,13 @@
class="list" class="list"
style="height:calc(100vh - 148rpx - 110rpx);" style="height:calc(100vh - 148rpx - 110rpx);"
refresher-threshold="104" refresher-threshold="104"
scroll-top="{{scrollTop}}"
refresher-triggered="{{triggered}}"> refresher-triggered="{{triggered}}">
<view class="item-box" wx:for="{{staffList}}" wx:key="index" bindtap="jump" data-info="{{item}}"> <view class="item-box" wx:for="{{staffList}}" wx:key="index" bindtap="jump" data-info="{{item}}">
<view class="top"> <view class="top">
<view class="message"> <view class="message">
<glsx-image wx:if="{{!item.avatarUrl}}" src="personal/staff_defalut_avatar.png" class="avatar"/> <glsx-image wx:if="{{!item.weChatAvatarUrl}}" src="personal/staff_defalut_avatar.png" class="avatar"/>
<image wx:else src="{{item.avatarUrl}}" class="avatar"></image> <image wx:else src="{{item.weChatAvatarUrl}}" class="avatar"></image>
<view class="message-text"> <view class="message-text">
<view class="name">{{item.staffName}}</view> <view class="name">{{item.staffName}}</view>
<view class="mobile">{{format.formatMobile(item.staffPhone)}}</view> <view class="mobile">{{format.formatMobile(item.staffPhone)}}</view>
...@@ -45,10 +47,10 @@ ...@@ -45,10 +47,10 @@
</view> </view>
<view class="bottomTips" wx:if="{{nothing}}">到底啦!</view> <view class="bottomTips" wx:if="{{nothing}}">到底啦!</view>
</scroll-view> </scroll-view>
</block>
</view> <block wx:else>
<view wx:else>
<nothing-tips tips="暂无员工~" bgColor="{{'#F2F3F7'}}" bg="{{bgUrl}}" /> <nothing-tips tips="暂无员工~" bgColor="{{'#F2F3F7'}}" bg="{{bgUrl}}" />
</block>
</view> </view>
</view> </view>
<select-service-popup wx:if="{{popupShow}}" bind:hidePopup="filterTypeFn" bind:getStaffList="getStaffList" selectInfo="{{selectInfo}}" popShow="{{popupShow}}" serviceRange="{{serviceList}}" /> <select-service-popup wx:if="{{popupShow}}" bind:hidePopup="filterTypeFn" bind:getStaffList="getStaffList" selectInfo="{{selectInfo}}" popShow="{{popupShow}}" serviceRange="{{serviceList}}" />
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!