errorcorrection.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view>
  3. <view class="Regular header-title">我是公司名称我是公司名称</view>
  4. <view class='content'>
  5. <view class='matter'>
  6. <view class="title Regular">纠错事项<text style='color:#FB1E1E;'>*</text></view>
  7. <view style='position:relative;'>
  8. <textarea class='textarea Regular' maxlength="150" v-model='status' placeholder="请输入举报事项" placeholder-style="color:#AFB3BF;" />
  9. <view class='Regular words'>{{status.length}}/150个字</view>
  10. </view>
  11. </view>
  12. <view class="uploading">
  13. <view class="title Regular">上传图片</view>
  14. <u-upload width='140' height='140' :file-list="fileList" :custom-btn="true" :show-upload-list="showUploadList" ref="uUpload" :max-size="5 * 1024 * 1024" max-count="6" :action="$uploadUrl">
  15. <view slot="addBtn" class="slot-btn" hover-class="slot-btn__hover" hover-stay-time="150">
  16. <image style='width:23px;height:23px;margin-top:10px;' src="../../static/img/liangmai/xiangji-2.png" mode=""></image>
  17. <view style='color:#AFB3BF;font-size:10px;' class='Medium'>上传图片</view>
  18. </view>
  19. </u-upload>
  20. </view>
  21. </view>
  22. <view class="commitwrap">
  23. <view class='commit' @click='commit'>提交</view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. components: {
  30. },
  31. data() {
  32. return {
  33. status:'',
  34. fileList:[]
  35. }
  36. },
  37. onReady() {
  38. // 得到整个组件对象,内部图片列表变量为"lists"
  39. this.fileList = this.$refs.uUpload.lists;
  40. },
  41. onLoad(){
  42. },
  43. methods: {
  44. commit(){
  45. console.log(this.fileList)
  46. }
  47. }
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. page{
  52. background:#F5F6FA;
  53. }
  54. .header-title{
  55. margin:9.5px;
  56. padding:16.5px 12.5px;
  57. background:#fff;
  58. border-radius:10px;
  59. height:51px;
  60. }
  61. .content{
  62. padding:12.5px;margin:9px;
  63. background:#fff;
  64. border-radius:10px;
  65. }
  66. .matter .title{
  67. font-size:14px;
  68. margin-bottom:15px;
  69. }
  70. .uploading .title{
  71. font-size:14px;margin-top:13px;margin-bottom:13px;
  72. }
  73. .textarea{
  74. background:#F9F9FA;
  75. font-size:12px;
  76. padding:6.5px;
  77. width:326.5px;height:70px;
  78. border-radius:5px;
  79. }
  80. .words{
  81. font-size:10px;color:#AFB3BF;position: absolute;right:5px;
  82. bottom:8px;
  83. }
  84. .slot-btn{
  85. width: 70px;
  86. height: 70px;
  87. border-radius: 4px;
  88. border: 2px dashed #AFB3BF;
  89. text-align:center;
  90. }
  91. .commitwrap{
  92. position:fixed;bottom:0;left:0;
  93. width:100%;
  94. }
  95. .commit{
  96. background:#22C572;
  97. margin:10px 24px;
  98. text-align:center;
  99. height:46px;line-height:46px;
  100. color:#fff;
  101. font-size:17px;
  102. border-radius:20px;
  103. }
  104. /deep/.u-delete-icon{
  105. top:0;
  106. right:0;
  107. border-radius:0 0 0 15px;
  108. background:rgba(17, 26, 52, 0.5) !important;
  109. }
  110. </style>