index.wxml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. <button class="open-button" wx:if="{{ !weixinLogin }}"open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">点击授权</button>
  6. </view>
  7. <view wx:else class="waterInfo">
  8. <block>
  9. <view class="dashboard-wrap">
  10. <dashboard params="{{userInfo}}"></dashboard>
  11. </view>
  12. <view class="info clearfix">
  13. <view class="left">
  14. <image src="/static/img/icon-code.png"></image>
  15. <text>{{userInfo.userNumber || '--'}}</text>
  16. </view>
  17. <view class="right">
  18. <image src="/static/img/icon-user.png"></image>
  19. <text>{{userInfo.username || '--'}}</text>
  20. </view>
  21. <view class="bottom">
  22. <image src="/static/img/icon-address.png"></image>
  23. <text>{{userInfo.address || '--'}}</text>
  24. </view>
  25. </view>
  26. </block>
  27. </view>
  28. <view class="entrance">
  29. <view>
  30. <view class="item" wx:for="{{items}}" wx:key="index" data-item="{{item}}" bindtap="gotopage">
  31. <image src="{{item.icon}}"></image>
  32. <text>{{item.label}}</text>
  33. </view>
  34. </view>
  35. </view>
  36. <popup id="popup" bind:cancelEvent="cancelEvent" bind:confirmEvent="confirmEvent"></popup>
  37. </view>