addTask.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <template>
  2. <view class="jpmain " >
  3. <u-navbar title="故障上报" title-color="#101010"></u-navbar>
  4. <u-picker mode="selector"
  5. v-model="isswitchshow"
  6. :range="columns" range-key="label"
  7. :default-selector="columnsindex"
  8. @confirm="switchBtn" ></u-picker>
  9. <view class="list" >
  10. <view class="item" >
  11. <view class="name">
  12. <span>*</span>选择地锁
  13. </view>
  14. <view class="value" @click="isswitchshowBtn">
  15. <view :style="taskInfo.parkingIdN?'':'color:#BBB'"
  16. >{{taskInfo.parkingIdN?taskInfo.parkingIdN:'请选择所属停车场'}}</view>
  17. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  18. </view>
  19. </view>
  20. <view class="item">
  21. <view class="name">
  22. 地锁编号
  23. </view>
  24. <view class="value">
  25. 123123123
  26. </view>
  27. </view>
  28. <view class="item">
  29. <view class="name">
  30. 负责人
  31. </view>
  32. <view class="value">
  33. 11111111
  34. </view>
  35. </view>
  36. <view class="item">
  37. <view class="name">
  38. 联系电话
  39. </view>
  40. <view class="value" style=" color:#1677FF;">
  41. 123123123
  42. </view>
  43. </view>
  44. </view>
  45. <view class="list" >
  46. <view class="item" >
  47. <view class="name">
  48. <span>*</span>选择地锁
  49. </view>
  50. <view class="value" @click="isswitchshowBtn">
  51. <view :style="taskInfo.parkingIdN?'':'color:#BBB'"
  52. >{{taskInfo.parkingIdN?taskInfo.parkingIdN:'请选择所属停车场'}}</view>
  53. <u-icon name="arrow-right" size="24" color="#BBBBBB"></u-icon>
  54. </view>
  55. </view>
  56. <view class="item item-plus" >
  57. <view class="name">
  58. 问题描述
  59. </view>
  60. <view class="value" >
  61. <textarea placeholder="请简单描述处理内容" class="textarea"></textarea>
  62. </view>
  63. </view>
  64. <view class="item item-plus" >
  65. <view class="name">
  66. 上传图片
  67. </view>
  68. <view class="value" >
  69. <u-upload></u-upload>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="floating-button">
  74. <view class="button" @click="submit" >
  75. 提交
  76. </view>
  77. </view>
  78. </view>
  79. </template>
  80. <script>
  81. export default {
  82. data() {
  83. return {
  84. taskInfo:{}
  85. };
  86. }
  87. }
  88. </script>
  89. <style lang="scss">
  90. .jpmain{padding-bottom: 120rpx;}
  91. .list{
  92. background-color: rgba(255,255,255,1);
  93. margin: 20rpx 0;
  94. .item:not(:last-child) {
  95. border-bottom:1px solid rgba(232,232,232,1);
  96. }
  97. .item{
  98. padding: 32rpx;
  99. display: flex;
  100. justify-content: space-between;
  101. .name{
  102. width: 40%;
  103. font-size: 32rpx;
  104. color: #777777;
  105. span{
  106. color:red
  107. }
  108. white-space: pre;
  109. }
  110. .value{
  111. font-size: 32rpx;
  112. width: 60%;
  113. display: flex;
  114. justify-content: space-between;
  115. input::placeholder{
  116. color:#AAAAAA;
  117. }
  118. .img{
  119. width: 40rpx;
  120. height: 40rpx;
  121. }
  122. .textarea{
  123. background-color: rgba(241,242,245,1);
  124. width: 100%;
  125. border-radius: 4px;
  126. }
  127. }
  128. }
  129. .item-plus{
  130. flex-direction: column;
  131. .value,.name{
  132. width: 100%;
  133. }
  134. .name{
  135. padding-bottom: 32rpx;
  136. }
  137. }
  138. }
  139. .floating-button {
  140. position: fixed;
  141. bottom: 0; /* 距离底部 20px */
  142. width: 100%;
  143. display: flex;
  144. height: 120rpx;
  145. justify-content: center;
  146. background-color: rgba(255,255,255,1);
  147. .button{
  148. margin-top: 24rpx;
  149. border-radius: 50px;
  150. height: 80rpx;
  151. width: 80%;
  152. display: flex;
  153. align-items: center;
  154. justify-content: center;
  155. padding:12rpx;
  156. background-color: rgba(22,119,255,1);
  157. color: rgba(255,255,255,1);
  158. font-size: 36rpx;
  159. }
  160. }
  161. </style>