edit.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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" @click="handleSub">确认提交</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. handleSub() {
  63. // uni.navigateBack(1)
  64. uni.navigateTo({
  65. url: '/pagesRepairs/box/box'
  66. })
  67. },
  68. bindPickerChange(e) {
  69. console.log('picker发送选择改变,携带值为', e.detail.value)
  70. this.index = e.detail.value
  71. },
  72. bindPickerChange2(e) {
  73. console.log('picker发送选择改变,携带值为', e.detail.value)
  74. this.index2 = e.detail.value
  75. }
  76. }
  77. }
  78. </script>
  79. <style lang="scss" scoped>
  80. .container {
  81. box-sizing: border-box;
  82. padding: 0 30rpx;
  83. width: 100vw;
  84. height: 100vh;
  85. .title {
  86. display: flex;
  87. align-items: center;
  88. height: 112rpx;
  89. font-size: 36rpx;
  90. font-weight: bold;
  91. }
  92. .box {
  93. display: flex;
  94. align-items: center;
  95. margin-bottom: 30rpx;
  96. height: 94rpx;
  97. color: #808080;
  98. font-size: 32rpx;
  99. .box_input {
  100. display: flex;
  101. justify-content: space-between;
  102. align-items: center;
  103. box-sizing: border-box;
  104. margin-left: 33rpx;
  105. padding: 0 33rpx;
  106. width: 542rpx;
  107. height: 94rpx;
  108. color: #000000;
  109. border-radius: 10rpx;
  110. border: 1rpx solid #cccccc;
  111. input {
  112. width: 100%;
  113. height: 100%;
  114. }
  115. img {
  116. width: 54rpx;
  117. height: 54rpx;
  118. }
  119. }
  120. }
  121. .box_time {
  122. display: flex;
  123. align-items: center;
  124. height: 100rpx;
  125. font-size: 32rpx;
  126. font-weight: bold;
  127. .time {
  128. display: flex;
  129. justify-content: space-between;
  130. align-items: center;
  131. box-sizing: border-box;
  132. padding: 0 23rpx;
  133. margin-right: 25rpx;
  134. width: 237rpx;
  135. height: 68rpx;
  136. font-weight: 400;
  137. border-radius: 4rpx;
  138. border: 1rpx solid #a6a6a6;
  139. input {
  140. flex: 1;
  141. }
  142. img {
  143. width: 40rpx;
  144. height: 40rpx;
  145. }
  146. }
  147. }
  148. .btn {
  149. position: absolute;
  150. bottom: 66rpx;
  151. display: flex;
  152. justify-content: center;
  153. align-items: center;
  154. margin: auto;
  155. width: 690rpx;
  156. height: 100rpx;
  157. color: #fff;
  158. font-size: 32rpx;
  159. border-radius: 12rpx;
  160. background-color: #6fb6b8;
  161. }
  162. }
  163. </style>