helpPeople.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <template>
  2. <view class="container">
  3. <!-- 输入框区域 -->
  4. <view class="search">
  5. <img src="../../static/images/repairsImg/search.png" />
  6. <input type="text" placeholder="请输入搜索内容" />
  7. </view>
  8. <!-- 协作人区域 -->
  9. <view class="body">
  10. <!-- 每一个协作人区域 -->
  11. <view class="body_item" v-for="item in list" :key="item.id" @click="change(item)">
  12. <radio color="#6FB6B8" :checked="item.checked" />
  13. <img src="../../static/images/repairsImg/photo.png" />
  14. <view class="item_info">
  15. <view class="info_msg">
  16. {{ item.name }}
  17. <view class="msg_work">{{ item.work }}</view>
  18. </view>
  19. <view class="info_phone">{{ item.phone }}</view>
  20. </view>
  21. <view class="item_type color_type" v-if="item.type === 1">接单中</view>
  22. <view class="item_type color_type2" v-if="item.type === 2">订单饱和</view>
  23. <view class="item_type color_type3" v-if="item.type === 3">停止接单</view>
  24. </view>
  25. </view>
  26. <view class="btn" v-if="checkList.length">确认派单</view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. list: [
  34. {
  35. id: 1,
  36. name: '张三',
  37. phone: '13659856958',
  38. work: '电工',
  39. type: 1,
  40. checked: false
  41. },
  42. {
  43. id: 2,
  44. name: '李四',
  45. phone: '13659856958',
  46. work: '电工',
  47. type: 2,
  48. checked: false
  49. },
  50. {
  51. id: 3,
  52. name: '张三',
  53. phone: '13659856958',
  54. work: '电工',
  55. type: 3,
  56. checked: false
  57. },
  58. {
  59. id: 4,
  60. name: '张三',
  61. phone: '13659856958',
  62. work: '电工',
  63. type: 1,
  64. checked: false
  65. },
  66. {
  67. id: 5,
  68. name: '李四',
  69. phone: '13659856958',
  70. work: '电工',
  71. type: 2,
  72. checked: false
  73. },
  74. {
  75. id: 6,
  76. name: '张三',
  77. phone: '13659856958',
  78. work: '电工',
  79. type: 3,
  80. checked: false
  81. }
  82. ],
  83. checkList: []
  84. }
  85. },
  86. methods: {
  87. change(item) {
  88. item.checked = !item.checked
  89. let temList = []
  90. this.list.forEach((item) => {
  91. if (item.checked) {
  92. temList.push(item.id)
  93. }
  94. })
  95. // console.log(temList)
  96. this.checkList = temList
  97. }
  98. }
  99. }
  100. </script>
  101. <style lang="scss" scoped>
  102. .container {
  103. .search {
  104. display: flex;
  105. align-items: center;
  106. margin: 30rpx auto 30rpx;
  107. width: 690rpx;
  108. height: 80rpx;
  109. border-radius: 4rpx;
  110. background-color: #f2f2f2;
  111. img {
  112. margin: 0 20rpx;
  113. width: 40rpx;
  114. height: 40rpx;
  115. }
  116. input {
  117. flex: 1;
  118. padding: 10rpx;
  119. }
  120. }
  121. .body {
  122. height: 810rpx;
  123. border-top: 1rpx solid #e5e5e5;
  124. overflow-y: auto;
  125. .body_item {
  126. display: flex;
  127. align-items: center;
  128. padding: 0 30rpx;
  129. height: 162rpx;
  130. border-bottom: 1rpx solid #e5e5e5;
  131. img {
  132. margin: 0 24rpx 0 27rpx;
  133. width: 82rpx;
  134. height: 82rpx;
  135. border-radius: 50%;
  136. }
  137. .item_info {
  138. display: flex;
  139. flex-direction: column;
  140. .info_msg {
  141. display: flex;
  142. align-items: center;
  143. font-size: 32rpx;
  144. font-weight: bold;
  145. .msg_work {
  146. display: flex;
  147. justify-content: center;
  148. align-items: center;
  149. margin-left: 13rpx;
  150. padding: 0 10rpx;
  151. height: 32rpx;
  152. color: #6fb6b8;
  153. font-size: 24rpx;
  154. font-weight: 400;
  155. border-radius: 7rpx;
  156. border: 1rpx solid #6fb6b8;
  157. }
  158. }
  159. .info_phone {
  160. margin-top: 10rpx;
  161. color: #808080;
  162. font-size: 28rpx;
  163. }
  164. }
  165. .item_type {
  166. margin-left: auto;
  167. font-size: 24rpx;
  168. }
  169. .color_type {
  170. color: #6fb6b8;
  171. }
  172. .color_type2 {
  173. color: #1e7dfb;
  174. }
  175. .color_type3 {
  176. color: #ff5733;
  177. }
  178. }
  179. }
  180. .btn {
  181. position: absolute;
  182. bottom: 66rpx;
  183. display: flex;
  184. justify-content: center;
  185. align-items: center;
  186. margin: 0 30rpx;
  187. width: 690rpx;
  188. height: 100rpx;
  189. color: #fff;
  190. font-size: 32rpx;
  191. border-radius: 12rpx;
  192. background-color: #6fb6b8;
  193. }
  194. }
  195. </style>