transferOrder.vue 2.8 KB

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