index.wxml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!--index.wxml-->
  2. <view class="container home">
  3. <view class="unbind-box" wx:if="{{!userInfo.userNumber && !onQuery}}">
  4. <image class="unbind-img" src="/static/img/img_no_customer.png"></image>
  5. <text>您还没绑定您的户号</text>
  6. <button class="open-button" data-param="customermanage" bindtap="gotopage">去绑定</button>
  7. </view>
  8. <view wx:else class="waterInfo">
  9. <block>
  10. <view class="dashboard-wrap">
  11. <dashboard params="{{userInfo}}"></dashboard>
  12. </view>
  13. <view class="info clearfix">
  14. <view class="left">
  15. <image src="/static/img/icon-code.png"></image>
  16. <text>{{userInfo.userNumber || '--'}}</text>
  17. </view>
  18. <view class="right">
  19. <image src="/static/img/icon-user.png"></image>
  20. <text>{{userInfo.username || '--'}}</text>
  21. </view>
  22. <view class="bottom">
  23. <image src="/static/img/icon-address.png"></image>
  24. <text>{{userInfo.address || '--'}}</text>
  25. </view>
  26. </view>
  27. </block>
  28. </view>
  29. <view class="entrance">
  30. <view>
  31. <view class="item" wx:for="{{items}}" wx:key="index" data-item="{{item}}" bindtap="gotopage">
  32. <image src="{{item.icon}}"></image>
  33. <text>{{item.label}}</text>
  34. </view>
  35. </view>
  36. </view>
  37. <popup id="popup" bind:cancelEvent="cancelEvent" bind:confirmEvent="confirmEvent"></popup>
  38. </view>