index.wxml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. <!-- <text wx:if="{{ showTips }}" data-param="customermanage">您尚未注册,请到平台端开通账号后重试</text> -->
  7. <button class="open-button" wx:if="{{ !weixinLogin }}"open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">点击授权</button>
  8. </view>
  9. <view wx:else class="waterInfo">
  10. <block>
  11. <view class="dashboard-wrap">
  12. <dashboard params="{{userInfo}}"></dashboard>
  13. </view>
  14. <view class="info clearfix">
  15. <view class="left">
  16. <image src="/static/img/icon-code.png"></image>
  17. <text>{{userInfo.userNumber || '--'}}</text>
  18. </view>
  19. <view class="right">
  20. <image src="/static/img/icon-user.png"></image>
  21. <text>{{userInfo.username || '--'}}</text>
  22. </view>
  23. <view class="bottom">
  24. <image src="/static/img/icon-address.png"></image>
  25. <text>{{userInfo.address || '--'}}</text>
  26. </view>
  27. </view>
  28. </block>
  29. </view>
  30. <view class="entrance">
  31. <view>
  32. <view class="item" wx:for="{{items}}" wx:key="index" data-item="{{item}}" bindtap="gotopage">
  33. <image src="{{item.icon}}"></image>
  34. <text>{{item.label}}</text>
  35. </view>
  36. </view>
  37. </view>
  38. <popup id="popup" bind:cancelEvent="cancelEvent" bind:confirmEvent="confirmEvent"></popup>
  39. </view>