stayCheck.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <template>
  2. <view class="page" :style="{'height':(h-th)+'px','padding-top':mt+'px'}">
  3. <c-nav-bar title="新增订单" :showIcon="false"></c-nav-bar>
  4. <view class="box">
  5. <u-form :model="form" ref="form">
  6. <u-form-item label="姓名" label-width="172rpx" border-bottom>
  7. <u-input border="false" v-model="form.guestName" placeholder="请输入姓名"/>
  8. </u-form-item>
  9. <u-form-item label="手机号码" label-width="172rpx" border-bottom>
  10. <u-input border="false" v-model="form.guestPhone" placeholder="请输入手机号"/>
  11. </u-form-item>
  12. <u-form-item label="证件类型" label-width="172rpx" border-bottom>
  13. <view class="personInfo">
  14. <text style="font-size: 30rpx;">身份证</text>
  15. <!-- <text style="margin-left: 90%;">></text> -->
  16. <u-icon name="arrow-right"></u-icon>
  17. </view>
  18. </u-form-item>
  19. <u-form-item label="证件号" label-width="172rpx" border-bottom>
  20. <u-input border="false" v-model="form.idNumber" placeholder="请输入证件号"/>
  21. </u-form-item>
  22. <u-form-item class="delete" >
  23. <view class="delete">
  24. <u-icon name="trash"></u-icon>
  25. <text style="font-size: 30rpx;">删除</text>
  26. </view>
  27. </u-form-item>
  28. </u-form>
  29. </view>
  30. <!-- 添加入住人 -->
  31. <view class="addPerson">
  32. <u-icon name="plus" color="#2979ff"></u-icon>添加入住人
  33. </view>
  34. <!-- 按钮 -->
  35. <!-- 按钮 -->
  36. <view class="yes">
  37. 确定
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default{
  43. data(){
  44. return {
  45. form:{
  46. guestPhone:'',
  47. idNumber:'',
  48. guestName:'',
  49. },
  50. show: false,
  51. selected: 0,
  52. columns: ['Option 1', 'Option 2', 'Option 3'] // 用来展示在选择器中的数据
  53. }
  54. },
  55. methods:{
  56. del(){
  57. this.dataForm.guestName=''
  58. this.dataForm.idNumber=''
  59. this.dataForm.guestPhone=''
  60. }
  61. },
  62. togglePicker(){
  63. this.show = !this.show;
  64. }
  65. }
  66. </script>
  67. <style lang="scss">
  68. .page {
  69. background: #F3F4F4;
  70. padding-bottom: 260rpx;
  71. box-sizing: border-box;
  72. overflow-y: auto;
  73. overflow-x: auto;
  74. }
  75. .box{
  76. background-color: #fff;
  77. margin: 0 auto 20rpx;
  78. border-radius: 10rpx;
  79. width: 92%;
  80. padding: 0 30rpx;
  81. margin-top: 20rpx;
  82. }
  83. .tit {
  84. font-size: 32rpx;
  85. font-weight: bold;
  86. color: #333;
  87. }
  88. .del{
  89. display: flex;
  90. justify-content: center;
  91. align-items: center;
  92. width: 100%;
  93. height: 102rpx;
  94. background-color: #fff;
  95. font-size: 30rpx
  96. }
  97. .addPerson{
  98. // margin: 0 auto ;
  99. width: 92%;
  100. height: 100rpx;
  101. margin-left: 30rpx;
  102. // margin-top: 20rpx;
  103. background-color: #fff;
  104. border-radius: 10rpx;
  105. display: flex;
  106. justify-content: center;
  107. align-items: center;
  108. font-size: 30rpx;
  109. color: #1372FF;
  110. }
  111. .yes{
  112. display: flex;
  113. justify-content: center;
  114. align-items: center;
  115. width: 690rpx;
  116. height: 96rpx;
  117. background-color: #1372FF;
  118. border-radius: 48rpx;
  119. position: fixed;
  120. bottom: 10%;
  121. margin-left: 30rpx;
  122. color: #fff;
  123. font-size: 34rpx;
  124. // line-height: 96rpx;
  125. // margin-top: 200rpx;
  126. }
  127. .delete{
  128. display: flex;
  129. justify-content: center;
  130. align-items: center;
  131. }
  132. .personInfo{
  133. padding-left: 15rpx;
  134. display: flex;
  135. align-items: center;
  136. justify-content: space-between;
  137. }
  138. </style>