guest_form.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view>
  3. <view class="card" >
  4. <view class="form">
  5. <view class="flex">
  6. <view class="need" >*</view>
  7. <view>访问小区</view>
  8. </view>
  9. <view class="bg-gray padding-20 " >
  10. <input disabled type="text" value="阅海万家D区" />
  11. </view>
  12. </view>
  13. <view class="form">
  14. <view class="flex">
  15. <view class="need" >*</view>
  16. <view>访问日期</view>
  17. </view>
  18. <view class="bg-gray padding-20 " >
  19. <input disabled="" type="text" v-model="data.visitTime" />
  20. </view>
  21. </view>
  22. <view class="form">
  23. <view class="flex">
  24. <view class="need" >*</view>
  25. <view>接待人</view>
  26. </view>
  27. <view class="bg-gray padding-20 " >
  28. <input type="text" placeholder="请填写接待人" v-model="data.receiver" />
  29. </view>
  30. </view>
  31. <view class="form">
  32. <view class="flex">
  33. <view class="need" >*</view>
  34. <view>来访者姓名:</view>
  35. </view>
  36. <view class="bg-gray padding-20 " >
  37. <input type="text" placeholder="请填写您的姓名" v-model="data.visitName" />
  38. </view>
  39. </view>
  40. <view class="form ">
  41. <view class="flex">
  42. <view class="need" >*</view>
  43. <view>来访者联系方式</view>
  44. </view>
  45. <view class="bg-gray padding-20 " >
  46. <input maxlength="11" type="number" placeholder="请输入您的联系方式" v-model="data.phone" />
  47. </view>
  48. </view>
  49. </view>
  50. <view class="card ">
  51. <view class="form" style="height: 320rpx;">
  52. <view class="flex">
  53. <view class="need" >*</view>
  54. <view>来访原因</view>
  55. </view>
  56. <view class="bg-gray padding-10">
  57. <textarea @click="showMask" v-model="data.visitReason" maxlength="100" style="width: 100%;height: 270rpx;line-height: 50rpx;" placeholder="请填写来访原因"></textarea>
  58. <view class="text-right text-df text-gray padding-top-10">
  59. {{data.visitReason.length}} / 100
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="bg-white" style="height: 160rpx;"></view>
  65. <view style="z-index: 999;" class=" footer-fixed" @click="submit">
  66. <view class="cu-btn flex text-lg bg-red-btn" style="padding: 46rpx 0;">
  67. 确定提交
  68. </view>
  69. </view>
  70. <u-mask z-index="99999" :show="maskShow" @click="hideMask">
  71. <view style="margin: 20rpx;" @click.stop="">
  72. <textarea @keyboardheightchange="keyboardheightchange" v-model="data.visitReason" value="" style="background-color: #FFFFFF;width: 100%;padding: 20rpx;box-sizing: border-box;" placeholder="请填写来访原因" />
  73. <view class="bg-white text-right text-df text-gray padding-10">
  74. {{data.visitReason.length}} / 100
  75. </view>
  76. </view>
  77. </u-mask>
  78. </view>
  79. </template>
  80. <script>
  81. var app=getApp()
  82. var that;
  83. export default {
  84. components:{
  85. },
  86. data() {
  87. return {
  88. data:{
  89. //访客联系方式
  90. phone:'19124812874',
  91. //访客姓名
  92. visitName:'黄明潘',
  93. //访问时间
  94. visitTime:this.$u.timeFormat(new Date(),'yyyy-mm-dd hh:MM:ss'),
  95. //访问原因
  96. visitReason:'看看小婉君',
  97. //接单人
  98. receiver:'小婉君'
  99. }
  100. }
  101. },
  102. onLoad() {
  103. that=this
  104. },
  105. methods: {
  106. }
  107. }
  108. </script>
  109. <style lang="scss">
  110. .bg-gray{
  111. background-color: #f7f7f7;
  112. }
  113. .card{
  114. box-sizing: border-box;
  115. background-color: #FFFFFF;
  116. }
  117. .card .form{
  118. padding: 20rpx 40rpx;
  119. }
  120. .need{
  121. font-size: 38rpx;
  122. font-weight: 800;
  123. color: #ff0000;
  124. padding-right: 10rpx;
  125. }
  126. </style>