customermanage.wxml 1.4 KB

123456789101112131415161718192021222324
  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. <view class="check clearfix" data-item="{{item}}" bindtap="setDefault">
  14. <image class="fl-left" src="/static/img/{{item.isDefault ? 'icon_selected' : 'icon_unSelect'}}.png"></image>
  15. <text class="fl-left">设为默认</text>
  16. </view>
  17. <image class="bg-default" wx:if="{{item.isDefault}}" src="/static/img/bg_card@2x.png"></image>
  18. <view class="btn-unbind" data-item="{{item}}" bindtap="unbindDevice">解绑</view>
  19. </view>
  20. </scroll-view>
  21. </block>
  22. <button class="btn-big" bindtap="addCustomer">绑定户号</button>
  23. <popup id="popup" extClass="customer-popup" bind:cancelEvent="cancelEvent" bind:confirmEvent="confirmEvent"></popup>
  24. </view>