index.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <template>
  2. <div class="reportRepair">
  3. <div class="reportBody">
  4. <div class="record">
  5. 报事记录 <img src="./image/rightIcon.png" class="recordImg">
  6. </div>
  7. <ul class="detailUl">
  8. <li class="detailLi">
  9. <span class="liName">当前企业</span>
  10. <span class="liInfo">无锡XXXXX有限公司</span>
  11. </li>
  12. <li class="detailLi">
  13. <span class="liName">
  14. <span style="color: red;margin-right: 10rpx;">*</span>
  15. 您是想
  16. </span>
  17. <span class="liInfo">
  18. <label class="radio" @click.stop="isCheck=true" >
  19. <radio value="报事" :checked="isCheck" color="#0365F9"/>报事
  20. </label>
  21. <label class="radio" @click.stop="isCheck=false" >
  22. <radio value="咨询" :checked="!isCheck" color="#0365F9"/>咨询
  23. </label>
  24. </span>
  25. </li>
  26. <li class="detailLi2">
  27. <span class="liName">
  28. 快捷选择
  29. </span>
  30. <div class="detailLi2Box">
  31. <div class="detailLi2BoxTop">
  32. <div class="checkItem" :class="item.isCheck?'checked':''" v-for="item in checkList" @click="clickCheck(item)">{{item.name}}</div>
  33. </div>
  34. <van-field
  35. :value="form.contant"
  36. autosize
  37. type="textarea"
  38. placeholder="请输入文字进行报事报修描述"
  39. class="myField"
  40. maxlength="800"
  41. show-word-limit
  42. />
  43. </div>
  44. </li>
  45. </ul>
  46. </div>
  47. </div>
  48. </template>
  49. <script>
  50. export default {
  51. data(){
  52. return{
  53. isCheck:false,
  54. form:{
  55. contant:''
  56. },
  57. checkList:[
  58. {name:'挂件安装',isCheck:true},
  59. {name:'我要投诉',isCheck:false},
  60. {name:'疏通管道',isCheck:false},
  61. {name:'维修线路',isCheck:false},
  62. {name:'更换灯泡',isCheck:false},
  63. {name:'网络维修',isCheck:false},
  64. {name:'保洁服务',isCheck:false},
  65. {name:'其他维修',isCheck:false},
  66. ]
  67. }
  68. },
  69. methods:{
  70. clickCheck(item){
  71. item.isCheck = !item.isCheck
  72. }
  73. }
  74. }
  75. </script>
  76. <style lang="scss">
  77. .reportRepair{
  78. .reportBody{
  79. margin-top: 24rpx;
  80. padding: 38rpx 36rpx;
  81. background: white;
  82. height: 1416rpx;
  83. box-sizing: border-box;
  84. .record {
  85. display: flex;
  86. align-items: center;
  87. justify-content: flex-end;
  88. color: #0365F9;
  89. font-size: 32rpx;
  90. .recordImg{
  91. width: 36rpx;
  92. height: 36rpx;
  93. padding: 5rpx 0 0 10rpx;
  94. }
  95. }
  96. .detailUl{
  97. margin-top: 20rpx;
  98. .liName{
  99. font-size: 32rpx;
  100. color: rgba(51, 51, 51, 1);
  101. white-space: nowrap;
  102. }
  103. .detailLi{
  104. display: flex;
  105. justify-content: space-between;
  106. align-items: center;
  107. padding: 32rpx 0;
  108. border-bottom: 2rpx solid #E6E6E6;
  109. .liInfo{
  110. display: inline-block;
  111. text-align: right;
  112. max-width: 428rpx;
  113. color: rgba(102, 102, 102, 1);
  114. font-size: 32rpx;
  115. line-height: 38rpx;
  116. .radio{
  117. margin-left: 64rpx;
  118. }
  119. }
  120. }
  121. .detailLi2{
  122. display: flex;
  123. flex-direction: column;
  124. padding: 32rpx 0;
  125. border-bottom: 2rpx solid #E6E6E6;
  126. .detailLi2BoxTop{
  127. display: flex;
  128. flex-wrap: wrap;
  129. justify-content: space-between;
  130. margin: 12rpx 0;
  131. .checkItem{
  132. width: 160rpx;
  133. height: 64rpx;
  134. font-size: 28rpx;
  135. color: #666666;
  136. display: flex;
  137. align-items: center;
  138. justify-content: center;
  139. background: #F5F7FA;
  140. border-radius: 8rpx;
  141. margin: 12rpx 0;
  142. }
  143. .checked{
  144. background: #0365F9;
  145. color: white;
  146. }
  147. }
  148. }
  149. }
  150. }
  151. .van-cell {
  152. background: #F5F7FA !important;
  153. border-radius: 8rpx;
  154. font-size: 28rpx;
  155. }
  156. }
  157. </style>