租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
3.2 KiB

3 months ago
  1. <template>
  2. <view class="se-p-30">
  3. <uv-form labelPosition="top" :labelWidth="200" :model="form" :rules="rules" ref="form">
  4. <uv-form-item label="姓名" prop="name" >
  5. <uv-input v-model="form.name" type="text" placeholder="请输入姓名" customStyle="border-radius: 30px;margin-top:5px;background-color: #ffffff;padding:5px 20px;" border="none"></uv-input>
  6. </uv-form-item>
  7. <uv-form-item label="身份证号码" prop="idcard">
  8. <uv-input v-model="form.idcard" type="text" placeholder="请输入身份证号码" customStyle="border-radius: 30px;margin-top:5px;background-color: #ffffff;padding:5px 20px;" border="none"></uv-input>
  9. </uv-form-item>
  10. <uv-form-item label="联系方式" prop="phone">
  11. <uv-input v-model="form.phone" type="number" placeholder="请输入联系方式" customStyle="border-radius: 30px;margin-top:5px;background-color: #ffffff;padding:5px 20px;" border="none"></uv-input>
  12. </uv-form-item>
  13. <uv-form-item>
  14. <view class="se-flex se-flex-v">
  15. <text class="se-c-black se-fw-6 se-fs-30">请上传身份证正反面照片</text>
  16. <text class="se-fs-26 se-mt-10 se-c-text">信息仅用身份核实上传后可增加曝光机会</text>
  17. </view>
  18. <view class="se-my-20 se-p-20 se-flex se-flex-h-sa se-br-10" style="background: #f9f1e9;">
  19. <image class="se-w-350 se-h-240" src="@/static/image/47719x.png" mode=""></image>
  20. <view class="se-br-10 se-py-10 se-px-20 se-c-white se-bgc-orange" style="background-color: #FF9F39;">
  21. 点击上传
  22. </view>
  23. </view>
  24. <view class="se-c-text-sub se-ta-c se-fs-24">
  25. (确保文字清晰可辨避免遮挡不全反光)
  26. </view>
  27. <view class="se-my-20 se-p-20 se-flex se-flex-h-sa se-br-10" style="background: #f9f1e9;">
  28. <image class="se-w-350 se-h-240" src="@/static/image/47719x.png" mode=""></image>
  29. <view class="se-br-10 se-py-10 se-px-20 se-c-white se-bgc-orange" style="background-color: #FF9F39;">
  30. 点击上传
  31. </view>
  32. </view>
  33. </uv-form-item>
  34. <uv-form-item>
  35. <uv-button type="primary" text="申请" customStyle="margin-top: 10px;border-color: #FF9F39;background-color: #FF9F39;border-radius: 30px;" @click="submit"></uv-button>
  36. </uv-form-item>
  37. </uv-form>
  38. </view>
  39. </template>
  40. <script>
  41. export default{
  42. data(){
  43. return{
  44. form:{
  45. name:"",
  46. idcard:"",
  47. phone:""
  48. },
  49. rules:{
  50. name:[
  51. {
  52. type: 'string',
  53. required: true,
  54. message: '请输入姓名',
  55. trigger: ['blur', 'change']
  56. }
  57. ],
  58. idcard:[
  59. {
  60. type: 'string',
  61. required: true,
  62. message: '请输入身份证号码',
  63. trigger: ['blur', 'change']
  64. }
  65. ],
  66. phone:[
  67. {
  68. type: 'string',
  69. required: true,
  70. message: '请输入联系方式',
  71. trigger: ['blur', 'change']
  72. }
  73. ]
  74. }
  75. }
  76. },
  77. methods:{
  78. submit() {
  79. uni.navigateTo({
  80. url:"/pages_subpack/successful/index"
  81. })
  82. this.$refs.form.validate().then(res => {
  83. uni.showToast({
  84. icon: 'none',
  85. title: '校验通过'
  86. })
  87. }).catch(errors => {
  88. uni.showToast({
  89. icon: 'none',
  90. title: '校验失败'
  91. })
  92. })
  93. }
  94. }
  95. }
  96. </script>
  97. <style>
  98. page{
  99. background-color: #f5f5f5;
  100. }
  101. </style>