manualAdd.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <!-- 弹窗主体 -->
  3. <view class="popup-box">
  4. <!-- 表单区域 -->
  5. <view class="form-item">
  6. <text class="label">姓名:</text>
  7. <input v-model="form.name" class="input" placeholder="请填写承包方姓名" type="text" />
  8. </view>
  9. <view class="form-item">
  10. <text class="label">身份证号码:</text>
  11. <input v-model="form.idCard" class="input" placeholder="请填写承包方身份证号码" type="number" maxlength="18" />
  12. </view>
  13. <!-- 按钮区域 -->
  14. <view class="btn-group">
  15. <button class="cancel-btn" @click="handleCancel">取消</button>
  16. <button class="confirm-btn" @click="handleConfirm">确定</button>
  17. </view>
  18. </view>
  19. </template>
  20. <script setup>
  21. import {
  22. ref
  23. } from 'vue';
  24. // 表单数据
  25. const form = ref({
  26. name: '',
  27. idCard: ''
  28. });
  29. // 点击确定按钮(校验+传参)
  30. const handleConfirm = () => {
  31. };
  32. </script>
  33. <style scoped>
  34. /* 弹窗主体 */
  35. .popup-box {
  36. background: #fff;
  37. border-radius: 12rpx;
  38. z-index: 9999;
  39. overflow: hidden;
  40. }
  41. /* 表单项 */
  42. .form-item {
  43. padding: 20rpx 24rpx;
  44. display: flex;
  45. flex-direction: column;
  46. gap: 8rpx;
  47. }
  48. .label {
  49. font-size: 28rpx;
  50. color: #333;
  51. }
  52. .input {
  53. width: 100%;
  54. height: 60rpx;
  55. padding: 0 16rpx;
  56. border: 1rpx solid #ddd;
  57. border-radius: 8rpx;
  58. font-size: 28rpx;
  59. box-sizing: border-box;
  60. }
  61. /* 按钮组 */
  62. .btn-group {
  63. display: flex;
  64. border-top: 1rpx solid #eee;
  65. }
  66. .cancel-btn,
  67. .confirm-btn {
  68. flex: 1;
  69. height: 80rpx;
  70. line-height: 80rpx;
  71. text-align: center;
  72. font-size: 32rpx;
  73. border: none;
  74. background: none;
  75. }
  76. .cancel-btn {
  77. color: #666;
  78. border-right: 1rpx solid #eee;
  79. }
  80. .confirm-btn {
  81. color: #fff;
  82. background-color: #1677ff;
  83. /* 截图中的蓝色按钮 */
  84. }
  85. </style>