edit.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view class="container">
  3. <view class="title">成员基本信息</view>
  4. <view class="box">
  5. 手机
  6. <view class="box_input">
  7. <input type="text" v-model="phone" />
  8. </view>
  9. </view>
  10. <view class="box">
  11. 状态
  12. <picker @change="bindPickerChange" :value="index" :range="array">
  13. <view class="box_input">
  14. {{ array[index] }}
  15. <img src="../../static/images/repairsImg/bottom.png" />
  16. </view>
  17. </picker>
  18. </view>
  19. <view class="box">
  20. 工种
  21. <picker @change="bindPickerChange2" :value="index2" :range="array2">
  22. <view class="box_input">
  23. {{ array2[index2] }}
  24. <img src="../../static/images/repairsImg/bottom.png" />
  25. </view>
  26. </picker>
  27. </view>
  28. <view class="title">接单考核时间</view>
  29. <view class="box_time">
  30. <view class="time">
  31. <input type="text" v-model="time" />
  32. <img src="../../static/images/repairsImg/clock.png" />
  33. </view>
  34. 分钟
  35. </view>
  36. <view class="title">维修考核时间</view>
  37. <view class="box_time">
  38. <view class="time">
  39. <input type="text" v-model="time2" />
  40. <img src="../../static/images/repairsImg/clock.png" />
  41. </view>
  42. 分钟
  43. </view>
  44. <!-- 提交按钮区域 -->
  45. <view class="btn">确认提交</view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. phone: '13659864589',
  53. time: 10,
  54. time2: 15,
  55. array: ['接单中', '停止接单', '订单饱和'],
  56. index: 0,
  57. array2: ['电工', '水工', '泥工', '空调'],
  58. index2: 0
  59. }
  60. },
  61. methods: {
  62. bindPickerChange(e) {
  63. console.log('picker发送选择改变,携带值为', e.detail.value)
  64. this.index = e.detail.value
  65. },
  66. bindPickerChange2(e) {
  67. console.log('picker发送选择改变,携带值为', e.detail.value)
  68. this.index2 = e.detail.value
  69. }
  70. }
  71. }
  72. </script>
  73. <style lang="scss" scoped>
  74. .container {
  75. box-sizing: border-box;
  76. padding: 0 30rpx;
  77. width: 100vw;
  78. height: 100vh;
  79. .title {
  80. display: flex;
  81. align-items: center;
  82. height: 112rpx;
  83. font-size: 36rpx;
  84. font-weight: bold;
  85. }
  86. .box {
  87. display: flex;
  88. align-items: center;
  89. margin-bottom: 30rpx;
  90. height: 94rpx;
  91. color: #808080;
  92. font-size: 32rpx;
  93. .box_input {
  94. display: flex;
  95. justify-content: space-between;
  96. align-items: center;
  97. box-sizing: border-box;
  98. margin-left: 33rpx;
  99. padding: 0 33rpx;
  100. width: 542rpx;
  101. height: 94rpx;
  102. color: #000000;
  103. border-radius: 10rpx;
  104. border: 1rpx solid #cccccc;
  105. input {
  106. width: 100%;
  107. height: 100%;
  108. }
  109. img {
  110. width: 54rpx;
  111. height: 54rpx;
  112. }
  113. }
  114. }
  115. .box_time {
  116. display: flex;
  117. align-items: center;
  118. height: 100rpx;
  119. font-size: 32rpx;
  120. font-weight: bold;
  121. .time {
  122. display: flex;
  123. justify-content: space-between;
  124. align-items: center;
  125. box-sizing: border-box;
  126. padding: 0 23rpx;
  127. margin-right: 25rpx;
  128. width: 237rpx;
  129. height: 68rpx;
  130. font-weight: 400;
  131. border-radius: 4rpx;
  132. border: 1rpx solid #a6a6a6;
  133. input {
  134. flex: 1;
  135. }
  136. img {
  137. width: 40rpx;
  138. height: 40rpx;
  139. }
  140. }
  141. }
  142. .btn {
  143. position: absolute;
  144. bottom: 66rpx;
  145. display: flex;
  146. justify-content: center;
  147. align-items: center;
  148. margin: auto;
  149. width: 690rpx;
  150. height: 100rpx;
  151. color: #fff;
  152. font-size: 32rpx;
  153. border-radius: 12rpx;
  154. background-color: #6fb6b8;
  155. }
  156. }
  157. </style>