index.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <import src="../../public/pages/public-view.wxml"/>
  2. <view style="width:100%;height:600rpx;background-color:#3296FB;position:fixed;"></view>
  3. <scroll-view scroll-y="{{scroll}}" class="bg-scroll-view">
  4. <view style="width:100%;height:400rpx;background-color:#FFF;"></view>
  5. <view style="width:100%;height:500rpx;background-color:#F5F5F5;"></view>
  6. <image class="banner" src="../../icon/public/banner.png"></image>
  7. <view>
  8. <view>
  9. <open-data type="userAvatarUrl"></open-data>
  10. </view>
  11. <open-data type="userNickName"></open-data>
  12. <view wx:if="{{isLogin}}" bindtap="changeAccountAction">
  13. <image src="../../icon/mine/change_account.png"></image>
  14. <text>切换账号</text>
  15. </view>
  16. </view>
  17. <view class="tab-view">
  18. <view wx:for="{{ui.tab}}" id="{{index}}" bindtap="tabAction" wx:key="">
  19. <image src="../../icon/mine/{{item[0]}}.png" mode="aspectFit"></image>
  20. <text>{{item[1]}}</text>
  21. </view>
  22. </view>
  23. <view class="red-dot">
  24. <view wx:for="{{redDot}}" wx:key="" id="{{index}}" bindtap="tabAction">
  25. <view wx:if="{{item != '0'}}">
  26. <text>{{item}}</text>
  27. </view>
  28. </view>
  29. </view>
  30. <view class="broadcast" wx:if="{{broadcast.s}}" bindtap="broadcastAction">
  31. <view>
  32. <view style="width:{{broadcast.w}}px;"><!-- iOS9系统需要手动设置,不然撑不开文字会重叠 -->
  33. <view style="{{broadcast.fa}}">
  34. <text class="broadcast-text-{{broadcast.fc}}" id="broadcastText">{{broadcast.b}}</text>
  35. </view>
  36. <view style="{{broadcast.sa}}">
  37. <text class="broadcast-text-{{broadcast.sc}}">{{broadcast.b}}</text>
  38. </view>
  39. <view style="{{broadcast.ta}}">
  40. <text class="broadcast-text-{{broadcast.tc}}">{{broadcast.b}}</text>
  41. </view>
  42. </view>
  43. </view>
  44. <image src="../../icon/information/info_broadcast_delete.png" bindtap="deleteBroadcast"></image>
  45. </view>
  46. <view class="row" wx:for="{{ui.row}}" id="{{index}}" bindtap="rowAction" wx:key="">
  47. <view class="{{index % 2 == 0 ? 'row-top' : ''}}">
  48. <image src="../../icon/mine/{{item[0]}}.png" mode="aspectFit"></image>
  49. <text>{{item[1]}}</text>
  50. <text>{{rowTips[index]}}</text>
  51. <image src="../../icon/public/arrow_right.png"></image>
  52. </view>
  53. <view wx:if="{{index % 2 == 0}}" class="row-line">
  54. <view></view>
  55. </view>
  56. </view>
  57. <!-- <view style="width:100%;height:600rpx;margin-top:-0.7px;background-color:#f5f5f5;padding-bottom: env(safe-area-inset-bottom);"></view> -->
  58. </scroll-view>
  59. <view class="tab-shadow-view"></view>
  60. <contact show="{{showContact}}" bindhiddenContact="hiddenContactListener"></contact>