index.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <cu-custom bgColor="bg-gradual-blue" isBack>
  2. <view slot="backText">返回</view>
  3. <view slot="content">附件</view>
  4. </cu-custom>
  5. <view class="section">
  6. <view wx:for="{{value}}" wx:key="index" class="item margin-bottom-lg">
  7. <view class="cu-bar bg-white solid-bottom">
  8. <view class='action'>
  9. <text class='cuIcon-titles text-orange '></text> {{item.name}}
  10. </view>
  11. </view>
  12. <!-- 图片列 -->
  13. <view bindtap="seeFunc" data-url="{{it.value}}" wx:for="{{item.value}}" wx:for-item="it" wx:for-index="ind"
  14. wx:key="ind" class="bg-img bg-mask padding-tb-xl {{ind==0 ?'' : 'margin-top'}}"
  15. style="background-image: url({{it.value}});background-size: auto 414rpx;height: 414rpx;">
  16. <view class="padding-xl text-white">
  17. <view wx:if="{{it.name}}" class="padding-xs text-xl">
  18. {{it.name}}
  19. </view>
  20. <view wx:if="{{it.meg}}" class="padding-xs">
  21. {{it.meg}}
  22. </view>
  23. <view class="btns text-right">
  24. <button data-item="{{it}}" catchtap="updateFunc" class="cu-btn rount bg-blue">{{it.novalue ? '上传' :
  25. "修改"}}</button>
  26. </view>
  27. </view>
  28. </view>
  29. <!-- 添加 -->
  30. <view bindtap="addFunc" data-index="{{index}}" wx:if="{{ !item.maxlen}}" class="margin-top bg-white text-center"
  31. style="height: 414rpx;">
  32. <image style="width: 100px;height: 414rpx;" mode="aspectFit" src="{{uploadImg}}" />
  33. </view>
  34. </view>
  35. </view>