index.wxml 1.5 KB

123456789101112131415161718192021222324252627282930
  1. <view class="grey_rectangle" style="padding: 14rpx 30rpx;">
  2. <view class="grey_rectangle_box">
  3. <!-- 图片 -->
  4. <view class="grey_rectangle_image" wx:if="{{attinfos.length<=1}}" style="height: {{imgSize}}; width:{{imgSize}}; border-radius: {{radius}};">
  5. <image wx:if="{{attinfos[0].fobsurl}}" src="{{attinfos[0].fobsurl}}" mode="aspectFill" data-index="0" catchtap="viewImg"></image>
  6. <image wx:else src="https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/userCenter/userImg.png" mode="aspectFit"></image>
  7. </view>
  8. <swiper wx:else class="grey_rectangle_image" autoplay circular style="height: {{imgSize}}; width:{{imgSize}}; border-radius: {{radius}};">
  9. <swiper-item wx:for="{{attinfos}}">
  10. <image src="{{item.fobsurl}}" data-index='{{index}}' catchtap="viewImg" mode="aspectFill"></image>
  11. </swiper-item>
  12. </swiper>
  13. <!-- 文本信息 -->
  14. <view class="grey_rectangle_text">
  15. <view class="grey_rectangle_text_title u-line-1">
  16. {{title}}
  17. </view>
  18. <view class="grey_rectangle_text_row u-line-1">
  19. {{twoRow}}
  20. </view>
  21. <view class="grey_rectangle_text_row u-line-1">
  22. {{threeRow}}
  23. </view>
  24. </view>
  25. <!-- 图标 -->
  26. <view class="grey_rectangle_icon">
  27. <image wx:if="{{fisadministrator}}" src="/static/changeImg.png" mode="aspectFit" bindtap="changeMessage"></image>
  28. </view>
  29. </view>
  30. </view>