customermanage.wxml 2.0 KB

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