customermanage.wxml 1.5 KB

1234567891011121314151617181920212223242526
  1. <!--pages/customermanage/customermanage.wxml-->
  2. <view class="container customer-manage">
  3. <block wx:if="{{!loading && !pagesList.length}}">
  4. <image class="nocustomer-tip" src="/static/img/img_no_customer.png"></image>
  5. </block>
  6. <block wx:else>
  7. <scroll-view class="customer-list" scroll-y="true" scroll-with-animation="true" lower-threshold="1"
  8. bindscrolltolower="scrollBottom">
  9. <view class="item {{item.isDefault ? 'default' : ''}}" wx:for="{{pagesList}}" wx:key="id" data-id="{{item.id}}">
  10. <text>户名:{{item.username || '--'}}</text>
  11. <text>户号:{{item.userNumber || '--'}}</text>
  12. <text>地址:{{item.address || '--'}}</text>
  13. <text>手机:{{item.mobilePhone || '--'}}</text>
  14. <text>标签:{{item.label || '--'}}</text>
  15. <view class="check clearfix" data-item="{{item}}" bindtap="setDefault">
  16. <image class="fl-left" src="/static/img/{{item.isDefault ? 'icon_selected' : 'icon_unSelect'}}.png"></image>
  17. <text class="fl-left">设为默认</text>
  18. </view>
  19. <image class="bg-default" wx:if="{{item.isDefault}}" src="/static/img/bg_card@2x.png"></image>
  20. <!-- <view class="btn-unbind" data-item="{{item}}" bindtap="unbindDevice">解绑</view> -->
  21. </view>
  22. </scroll-view>
  23. </block>
  24. <!-- <button class="btn-big" bindtap="addCustomer">绑定户号</button> -->
  25. <popup id="popup" extClass="customer-popup" bind:cancelEvent="cancelEvent" bind:confirmEvent="confirmEvent"></popup>
  26. </view>