Browse Source

no message

feature/v1.1
xpz2018 5 years ago
parent
commit
b035e56185
5 changed files with 8 additions and 11 deletions
  1. 2
      components/image/index.wxss
  2. 2
      pages/home/customer-list/index.wxml
  3. 4
      pages/home/employee/index.wxml
  4. 2
      pages/home/index/index.wxml
  5. 9
      pages/home/index/index.wxss

2
components/image/index.wxss

@ -1 +1 @@
@import '../common/index.wxss';.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:50%}.van-image--round .van-image__img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;color:#969799;color:var(--image-placeholder-text-color,#969799);font-size:14px;font-size:var(--image-placeholder-font-size,14px);background-color:#f7f8fa;background-color:var(--image-placeholder-background-color,#f7f8fa)}
@import '../common/index.wxss';.van-image{position:relative}.van-image--round{overflow:hidden;border-radius:50%}.van-image--round .van-image__img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:-webkit-flex;display:flex;-webkit-flex-direction:column;flex-direction:column;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center;color:#969799;color:var(--image-placeholder-text-color,#969799);font-size:14px;font-size:var(--image-placeholder-font-size,14px);background-color:#f7f8fa;background-color:var(--image-placeholder-background-color,#f7f8fa)}

2
pages/home/customer-list/index.wxml

@ -17,7 +17,7 @@
</view>
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex">
<van-cell clickable wx:for="{{pageItem}}" wx:key="index">
<view slot="title" class="flex flex-justify" style="margin-bottom:-12rpx" data-id="{{item.id}}" bindtap="customerInfo">
<view slot="title" class="flex flex-justify" data-id="{{item.id}}" bindtap="customerInfo">
<van-image round width="80rpx" height="80rpx" src="{{ item.avatarUrl || '/assets/image/ygImg.png' }}" />
<view style="margin-left:18rpx;width:100%;flex:1">
<view class="text-sg text-bold">{{item.name || ''}}</view>

4
pages/home/employee/index.wxml

@ -17,7 +17,7 @@
<view class="bg-white" wx:for="{{ checkList }}" wx:key="index">
<view class="flex flex-justify item-content">
<view class="flex flex-center" style="height:90rpx">
<van-image use-loading-slot width="90rpx" height="90rpx" lazy-load round src="{{ item.avatarUrl || '/assets/image/ygImg.png' }}">
<van-image use-loading-slot width="90rpx" height="90rpx" round src="{{ item.avatarUrl || '/assets/image/ygImg.png' }}">
<image class="image-load" slot="loading" src="/assets/image/ygImg.png"></image>
</van-image>
<view class="flex flex-column" style="margin-left:18rpx">
@ -42,7 +42,7 @@
<view wx:if="{{memberList.length}}">
<van-index-anchor use-slot><text>所有员工</text></van-index-anchor>
<van-cell clickable wx:for="{{ memberList }}" wx:key="index" data-index="{{index}}" bindtap="lookItem">
<view slot="title" class="flex" style="margin-bottom:-12rpx">
<view slot="title" class="flex" style="margin-bottom:0rpx">
<van-image round width="90rpx" height="90rpx" src="{{ item.avatarUrl || '/assets/image/ygImg.png' }}" />
<view style="margin-left:18rpx;width:100%">
<view class="flex flex-justify">

2
pages/home/index/index.wxml

@ -7,7 +7,7 @@
<!-- 用户信息 -->
<van-cell center is-link clickable="{{false}}" border="{{false}}" wx:if="{{userInfo}}" bind:click="toUserInfo">
<view class="flex" slot="title" style="align-items: center">
<van-image use-loading-slot width="60" height="60" lazy-load round src="{{avatarUrl}}">
<van-image use-loading-slot width="120rpx" height="120rpx" lazy-load round src="{{avatarUrl}}">
<image class="image-load" slot="loading" src="/assets/image/ygImg.png"></image>
</van-image>
<!-- <image class="image-load" slot="loading" src="/assets/image/ygImg.png"></image> -->

9
pages/home/index/index.wxss

@ -1,9 +1,6 @@
/* pages/home/index.wxss */
.image-load {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 60rpx;
width: 120rpx;
height: 120rpx;
border-radius: 50%;
}
Loading…
Cancel
Save