index.wxml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <image src="../../../static/function-bar/xiaosha-details-bg.png"></image>
  2. <view class="page">
  3. <view class="header">
  4. <view wx:if="{{!userInfo}}" class="prompt">当前为匿名状态上报,若要实名上报,请先返回登录</view>
  5. <view class="cu-form-group bgc" wx:if="{{userInfo}}">
  6. <view class="title">上报状态:</view>
  7. <van-radio-group value="{{ anonymityFlag }}" bind:change="onChange" direction="horizontal">
  8. <van-radio icon-class="radio-icon" label-class="radio-color" name="{{true}}">匿名</van-radio>
  9. <van-radio label-class="radio-color" name="{{false}}">实名</van-radio>
  10. </van-radio-group>
  11. </view>
  12. </view>
  13. <view class="content">
  14. <view class="cu-form-group">
  15. <view class="title"><text class="{{desc?'text-green':'text-red'}}">*</text>问题详情:</view>
  16. <input placeholder="请描述上报问题的详细情况" placeholder-css="input-placeholder" bindinput="descFun"></input>
  17. </view>
  18. <view class="cu-form-group">
  19. <view class="action">
  20. 图片({{pictureVOList.length}}/4):
  21. </view>
  22. <view class="grid grid-square flex-sub">
  23. <view class="bg-box" wx:for="{{pictureVOList}}" wx:key="index" bindtap="ViewImage"
  24. data-url="{{item.url}}">
  25. <image class="default-bg" src='{{item.url}}' mode='aspectFill'></image>
  26. <view wx:if="{{pictureVOList.length>0}}" class="cu-tag bg-red" catchtap="DelImg"
  27. data-index="{{index}}">
  28. <text class="cuIcon-close"></text>
  29. </view>
  30. </view>
  31. <image wx:if="{{pictureVOList.length<4}}" bindtap="ChooseImage" class="default-bg"
  32. src="../../../static/function-bar/default-img.png"></image>
  33. </view>
  34. </view>
  35. <view class="cu-form-group">
  36. <view class="action">
  37. 视频({{video.url?'1':'0'}}/1):
  38. </view>
  39. <view class="grid grid-square flex-sub box1">
  40. <view class="video-box" wx:if="{{video.url}}">
  41. <video id="myVideo" show-fullscreen-btn="{{false}}" class="videoSize" src='{{video.url}}'></video>
  42. <view class="cu-tag bg-red" catchtap="DelVideo">
  43. <text class="cuIcon-close"></text>
  44. </view>
  45. </view>
  46. <image bindtap="ChooseVideo" wx:if="{{!video.url}}" class="default-bg"
  47. src="../../../static/function-bar/default-video.png"></image>
  48. </view>
  49. </view>
  50. <view class="report" bindtap="report">上报</view>
  51. </view>
  52. </view>