help.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <template>
  2. <view class="container">
  3. <view class="title" v-if="type === '1'">申请人</view>
  4. <view class="box" v-if="type === '1'">
  5. <img src="../../static/images/repairsImg/people.png" />
  6. <view class="box_info">张三</view>
  7. </view>
  8. <view class="title">协作对象</view>
  9. <view class="box" @click="handleHelpPeople">
  10. <img src="../../static/images/repairsImg/peoples.png" />
  11. <view class="box_info">张三、李四、王麻子</view>
  12. <img class="img" src="../../static/images/repairsImg/right.png" />
  13. </view>
  14. <view class="title">转单语音说明</view>
  15. <!-- 录音区域 -->
  16. <view class="voice">
  17. <view class="voice_box">
  18. <img src="../../static/images/repairsImg/voice.png" />
  19. </view>
  20. 点击录音
  21. </view>
  22. <view class="title">备注</view>
  23. <view class="textarea">
  24. <textarea placeholder-style="color:#CCCCCC" placeholder="请输入协作说明"></textarea>
  25. </view>
  26. <view class="btn2" v-if="type === '1'">
  27. <view class="btn_box type">拒绝</view>
  28. <view class="btn_box type2">派单</view>
  29. </view>
  30. <view class="btn" v-else>确认</view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data() {
  36. return {
  37. type: null
  38. }
  39. },
  40. onLoad(options) {
  41. console.log(options)
  42. if (options.type) {
  43. this.type = options.type
  44. }
  45. },
  46. methods: {
  47. handleHelpPeople() {
  48. uni.navigateTo({
  49. url: '/pagesRepairs/helpPeople/helpPeople'
  50. })
  51. }
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. .container {
  57. box-sizing: border-box;
  58. padding: 0 30rpx;
  59. overflow-y: auto;
  60. .title {
  61. display: flex;
  62. align-items: center;
  63. height: 107rpx;
  64. font-size: 36rpx;
  65. font-weight: bold;
  66. }
  67. .box {
  68. display: flex;
  69. align-items: center;
  70. height: 94rpx;
  71. font-size: 32rpx;
  72. border-radius: 10rpx;
  73. border: 1rpx solid #cccccc;
  74. .box_info {
  75. flex: 1;
  76. }
  77. img {
  78. margin: 0 14rpx 0 30rpx;
  79. width: 48rpx;
  80. height: 48rpx;
  81. }
  82. .img {
  83. width: 40rpx;
  84. height: 40rpx;
  85. }
  86. }
  87. .voice {
  88. display: flex;
  89. align-items: center;
  90. height: 94rpx;
  91. font-size: 32rpx;
  92. color: #cccccc;
  93. border-radius: 10rpx;
  94. border: 1rpx solid #cccccc;
  95. .voice_box {
  96. display: flex;
  97. justify-content: center;
  98. align-items: center;
  99. margin: 0 38rpx 0 33rpx;
  100. width: 101rpx;
  101. height: 47rpx;
  102. border-radius: 33rpx;
  103. box-shadow: 0px 0px 4rpx rgba(0, 0, 0, 0.25);
  104. img {
  105. width: 33rpx;
  106. height: 33rpx;
  107. }
  108. }
  109. }
  110. .textarea {
  111. height: 310rpx;
  112. border-radius: 10rpx;
  113. border: 1rpx solid #cccccc;
  114. textarea {
  115. box-sizing: border-box;
  116. padding: 25rpx 35rpx;
  117. width: 100%;
  118. font-size: 32rpx;
  119. }
  120. }
  121. .btn {
  122. position: absolute;
  123. bottom: 66rpx;
  124. display: flex;
  125. justify-content: center;
  126. align-items: center;
  127. margin: auto;
  128. width: 690rpx;
  129. height: 100rpx;
  130. color: #fff;
  131. font-size: 32rpx;
  132. border-radius: 12rpx;
  133. background-color: #6fb6b8;
  134. }
  135. .btn2 {
  136. display: flex;
  137. justify-content: space-between;
  138. align-items: center;
  139. margin: 200rpx auto 70rpx;
  140. width: 690rpx;
  141. height: 100rpx;
  142. font-size: 32rpx;
  143. .btn_box {
  144. display: flex;
  145. justify-content: center;
  146. align-items: center;
  147. width: 300rpx;
  148. height: 100rpx;
  149. border-radius: 12rpx;
  150. }
  151. .type {
  152. color: #fff;
  153. background-color: #6fb6b8;
  154. }
  155. .type2 {
  156. color: #6fb6b8;
  157. border: 1rpx solid #6fb6b8;
  158. }
  159. }
  160. }
  161. </style>