bottom1.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <template>
  2. <view class="box">
  3. <image style="width: 100%;"
  4. src="https://yossys06593.obs.cn-east-3.myhuaweicloud.com:443/202404111712812810046B1fbafed9.png" mode="widthFix"
  5. lazy-load="true" />
  6. <view class="function">
  7. <view class="cn-title">预约免费设计</view>
  8. <view class="en-title">Appointment Free Design</view>
  9. <view class="form">
  10. <view class="text">
  11. <view class="bg" />
  12. <view class="iconfont icon-renyuan-hui" />
  13. <input class="input" type="text" v-model="name" placeholder="请输入您的姓名">
  14. </view>
  15. <view class="text">
  16. <view class="bg" />
  17. <view class="iconfont icon-dianhua-hui" />
  18. <input class="input" type="number" v-model="phoneNumber" placeholder="请输入您的电话号码">
  19. </view>
  20. <view class="text textarea-box">
  21. <view class="bg" />
  22. <view class="iconfont icon-dizhi-hui1" />
  23. <textarea class="textarea" v-model="address" placeholder="请输入您的具体地址(省、市、区/县)" />
  24. </view>
  25. <view class="but" hover-class="navigator-hover" @click="submit">
  26. 立即免费预约 >
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. name: "bottom1",
  35. data() {
  36. return {
  37. name: "",
  38. phoneNumber: "",
  39. address: ""
  40. }
  41. },
  42. methods: {
  43. submit(){
  44. console.log(this.name)
  45. console.log(this.phoneNumber)
  46. console.log(this.address)
  47. }
  48. },
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. .box {
  53. position: relative;
  54. width: 100vw;
  55. .function {
  56. position: absolute;
  57. top: 0;
  58. left: 0;
  59. width: 100%;
  60. height: 100%;
  61. z-index: 1;
  62. .cn-title {
  63. width: 100%;
  64. text-align: center;
  65. line-height: 22px;
  66. font-family: PingFang SC, PingFang SC;
  67. font-weight: 500;
  68. font-size: 16px;
  69. color: #FFFFFF;
  70. margin-top: 30px;
  71. }
  72. .en-title {
  73. width: 100%;
  74. text-align: center;
  75. font-family: PingFang SC, PingFang SC;
  76. font-size: 10px;
  77. color: #FFFFFF;
  78. }
  79. .form {
  80. width: 260px;
  81. margin: 0 auto;
  82. margin-top: 20px;
  83. .text {
  84. position: relative;
  85. display: flex;
  86. align-items: center;
  87. width: 260px;
  88. height: 45px;
  89. border: 1px solid rgba(255, 255, 255, 0.4);
  90. border-radius: 2px;
  91. overflow: hidden;
  92. padding: 0 10px;
  93. box-sizing: border-box;
  94. margin-bottom: 10px;
  95. .input {
  96. color: #fff;
  97. flex: 1;
  98. }
  99. .textarea {
  100. color: #fff;
  101. flex: 1;
  102. height: 62px;
  103. }
  104. .iconfont {
  105. color: #fff;
  106. font-size: 20px;
  107. margin-right: 10px;
  108. }
  109. }
  110. .textarea-box {
  111. padding-top: 13px;
  112. height: 90px;
  113. align-items: flex-start;
  114. }
  115. .text::after {
  116. content: "";
  117. position: absolute;
  118. top: 0;
  119. left: 0;
  120. width: 100%;
  121. height: 100%;
  122. background: #fff;
  123. opacity: .2;
  124. }
  125. .but {
  126. display: flex;
  127. align-items: center;
  128. justify-content: center;
  129. width: 260px;
  130. height: 45px;
  131. background: #C30D23;
  132. border-radius: 2px;
  133. font-family: PingFang SC, PingFang SC;
  134. font-weight: 500;
  135. font-size: 14px;
  136. color: #FFFFFF;
  137. }
  138. }
  139. }
  140. }
  141. </style>