receiveOrder.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <view class="container">
  3. <!-- 触发按钮(实际使用时可以去掉) -->
  4. <!-- 接单成功弹窗 -->
  5. <view class="popup">
  6. <view class="modal-content">
  7. <view class="modal-header">
  8. <text class="modal-title">接单成功</text>
  9. </view>
  10. <view class="modal-body">
  11. <text class="tip-text">特别提示:</text>
  12. <text class="tip-content" v-if="titleCheckType<20">请在接车时,车辆检测时,检测结束后分别拍照留存,完成服务时上传</text>
  13. <text class="tip-content" v-if="titleCheckType>20">1.请在到达现场后拍摄至少3张现场照片,照片中需明确包含救援车辆以及车牌照,并上传;</text>
  14. <text class="tip-content" v-if="titleCheckType>20">2.服务过程中拍摄服务照片(含救援车辆的现场照片一张,救援过程中含救援人员的服务照片一张,需送达指定地点时,到达送达地点时照片一张),完成服务时上传。</text>
  15. </view>
  16. <view class="modal-footer">
  17. <button class="confirm-btn" @click="confirm">确定</button>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. name: 'receive',
  26. props:{
  27. titleCheckType:{
  28. type:String,
  29. default:''
  30. }
  31. },
  32. data() {
  33. return {}
  34. },
  35. methods: {
  36. confirm() {
  37. // 这里可以添加确定后的逻辑
  38. this.$emit('cut')
  39. }
  40. },
  41. mounted() {
  42. console.log(this.titleCheckType)
  43. }
  44. }
  45. </script>
  46. <style lang="scss" scoped>
  47. /* 整体容器样式 */
  48. .container {
  49. padding: 20px;
  50. position: fixed;
  51. top: 0;
  52. left: 0;
  53. background: rgba(0, 0, 0, 0.7);
  54. width: 100%;
  55. height: 100%;
  56. display: flex;
  57. align-items: center;
  58. justify-content: center;
  59. z-index: 99;
  60. }
  61. /* 弹窗内容样式 */
  62. .modal-content {
  63. width: 80vw;
  64. background-color: #fff;
  65. border-radius: 12px;
  66. overflow: hidden;
  67. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  68. }
  69. /* 弹窗头部样式 */
  70. .modal-header {
  71. padding: 20px 15px 10px;
  72. text-align: center;
  73. border-bottom: 1px solid #f5f5f5;
  74. }
  75. .modal-title {
  76. font-size: 18px;
  77. font-weight: bold;
  78. color: #333;
  79. }
  80. /* 弹窗主体内容样式 */
  81. .modal-body {
  82. padding: 20px 15px;
  83. }
  84. .tip-text {
  85. font-size: 15px;
  86. font-weight: bold;
  87. display: block;
  88. margin-bottom: 8px;
  89. }
  90. .tip-content {
  91. font-size: 14px;
  92. color: #666;
  93. line-height: 1.5;
  94. }
  95. /* 弹窗底部样式 */
  96. .modal-footer {
  97. padding: 10px 15px 20px;
  98. display: flex;
  99. justify-content: center;
  100. }
  101. .confirm-btn {
  102. width: 522rpx;
  103. height: 68rpx;
  104. background: #449AFF;
  105. border-radius: 66rpx;
  106. color: #fff;
  107. font-size: 28rpx;
  108. border: none;
  109. }
  110. .confirm-btn:active {
  111. background-color: #3a8ee6;
  112. }
  113. </style>