index.wxml 1.1 KB

123456789101112131415161718192021222324252627
  1. <view class='top'>
  2. <view class='top-bg'>
  3. <image src='../../images/bg.png'></image>
  4. </view>
  5. <view class='heardimg'>
  6. <image wx:if="{{photo}}" bindtap="updateimage" class='heard-img' src='{{photo}}'></image>
  7. <image wx:else catchtap='goLogin' class='heard-img' src='/images/no_login.png'></image>
  8. </view>
  9. <!-- 未登陆状态下同样显示未实名(领导说) - -! -->
  10. <view class='nickName'>{{viewName||'未授权'}}</view>
  11. <view class='top-nav'>
  12. <view wx:for="{{topList}}" catchtap='navigate_auth_native' data-url='{{item.url}}'>
  13. <image src='../../images/{{item.icon}}.png'></image>
  14. <text>{{item.title}}</text>
  15. </view>
  16. </view>
  17. </view>
  18. <!-- <list template="nav" templateList="{{list}}"></list> -->
  19. <block wx:for='{{list}}' wx:for-key='{{index}}'>
  20. <view class='nav' catchtap='navigate_auth' data-url='{{roleType==10001?item.teacherurl:item.studenturl}}'>
  21. <image class='nav-icon' src='/images/{{item.icon}}.png' mode="widthFix" />
  22. <view class='nav-content'>
  23. <text>{{item.title}}</text>
  24. <image src='/images/jiantou.png'></image>
  25. </view>
  26. </view>
  27. </block>