customermanage.wxml 1.8 KB

12345678910111213141516171819202122232425262728
  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 bindtap="call" data-index="{{item.mobilePhone}}">手机:{{item.mobilePhone || '--'}}</text>
  14. <text>紧急联系人:{{item.emergencyContact || '--'}}</text>
  15. <text bindtap="call" data-index="{{item.emergencyContactPhoneNumber}}">紧急联系人手机号:{{item.emergencyContactPhoneNumber || '--'}}</text>
  16. <text>标签:{{item.label || '--'}}</text>
  17. <view class="check clearfix" data-item="{{item}}" bindtap="setDefault">
  18. <image class="fl-left" src="/static/img/{{item.isDefault ? 'icon_selected' : 'icon_unSelect'}}.png"></image>
  19. <text class="fl-left">设为默认</text>
  20. </view>
  21. <image class="bg-default" wx:if="{{item.isDefault}}" src="/static/img/bg_card@2x.png"></image>
  22. <!-- <view class="btn-unbind" data-item="{{item}}" bindtap="unbindDevice">解绑</view> -->
  23. </view>
  24. </scroll-view>
  25. </block>
  26. <!-- <button class="btn-big" bindtap="addCustomer">绑定户号</button> -->
  27. <popup id="popup" extClass="customer-popup" bind:cancelEvent="cancelEvent" bind:confirmEvent="confirmEvent"></popup>
  28. </view>