index.wxml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!--index.wxml wx:if="{{ !weixinLogin }}"-->
  2. <view class="container home">
  3. <view class="unbind-box" wx:if="{{onQuery||!weixinLogin}}">
  4. <image class="unbind-img" src="/static/img/img_no_customer.png"></image>
  5. <button class="open-button" wx:if="{{weixinLogin==false&&!unAuth}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">点击授权</button>
  6. </view>
  7. <view wx:else class="waterInfo waterheight">
  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 class="boxall">
  30. <view class="boxrow">
  31. <view class="item" wx:for="{{items}}" wx:key="index" data-item="{{item}}" bindtap="gotopage">
  32. <image src="{{item.icon}}"></image>
  33. <view class="sonlabel">
  34. <text>{{item.label}}</text>
  35. <text >{{item.sonlabel}}</text>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="boxrow">
  40. <view class="item" wx:for="{{itemsrow}}" wx:key="index" data-item="{{item}}" bindtap="gotopage">
  41. <image src="{{item.icon}}"></image>
  42. <view class="sonlabel">
  43. <text>{{item.label}}</text>
  44. <text >{{item.sonlabel}}</text>
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. <popup id="popup" bind:cancelEvent="cancelEvent" bind:confirmEvent="confirmEvent"></popup>
  51. </view>