myData.wxml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <view>
  2. <view>
  3. <view style='background-color:#fff;margin-top:20rpx;'>
  4. <view class='upload'>
  5. <view class='upload-title'>
  6. 上传资料
  7. </view>
  8. <view class='upload-img'>
  9. <image bindtap='uploadFile' src='../../../images/upload.png'></image>
  10. </view>
  11. </view>
  12. </view>
  13. <view style='background-color:#fff;margin-top:20rpx;padding-bottom:60rpx;'>
  14. <view style='width:690rpx;margin:0 auto;'>
  15. <view class='content'>
  16. <view class='upload-title'>
  17. <text class='content-title-text'>我的材料</text>
  18. <text class='content-title-number'>(共{{image.length}}项)</text>
  19. </view>
  20. <view class='edit' bindtap='edit'>
  21. <text wx:if="{{edit}}">完成</text>
  22. <text wx:else>编辑</text>
  23. </view>
  24. </view>
  25. <view class='img' wx:for='{{image}}' wx:key='{{item.id}}'>
  26. <view class='img_title'>
  27. <text>{{item.materialName}}</text>
  28. <!-- <image src='../../../images/wode_guanzhu.png'></image> -->
  29. </view>
  30. <view class='img-content'>
  31. <view class='bdimg' wx:for='{{item.materialUrl}}' wx:for-item='i' wx:for-index='ind' wx:key='{{ind}}'>
  32. <image catchtap='preview' data-url='{{url}}{{i.url}}' data-urlArr='{{item.materialUrl}}' data-http='{{url}}' mode="aspectFill" src='{{url}}{{i.url}}'></image>
  33. <image class='delete-img' wx:if='{{edit}}' catchtap='deleteImg' data-id='{{i.id}}' style='width:50rpx;height:50rpx;' src='../../../images/delete_img.png'></image>
  34. </view>
  35. <!-- <view class='image'>
  36. <image catchtap='mask' data-index='0' src='../../../images/upload.png'></image>
  37. // catchtap='image'
  38. </view> -->
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. <!-- 遮罩层 -->
  45. <view class='mask' wx:if='{{mask}}'>
  46. <view>
  47. <view class='mask_content'>
  48. <text>请输入材料名称</text>
  49. <view class='mask-input'>
  50. <input bindblur='dataName' adjust-position='true'></input>
  51. </view>
  52. <view class='mask-btn'>
  53. <view class='mask-clear' catchtap='clear'>取消</view>
  54. <view class='mask-true' catchtap='maskSubmit'>确认</view>
  55. </view>
  56. </view>
  57. <!-- <view class='clear'>
  58. <image catchtap='clear' src='../../../images/clear.png'></image>
  59. </view> -->
  60. </view>
  61. </view>
  62. </view>