bottom1.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. <template>
  2. <view class="box">
  3. <image class="image"
  4. src="https://yossys06593.obs.cn-east-3.myhuaweicloud.com:443/202404111712812810046B1fbafed9.png"
  5. lazy-load="true" mode="aspectFill" />
  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. uni.showModal({
  48. title: '提交成功',
  49. content: '感谢您的支持,工作人员会第一时间跟您联系!',
  50. showCancel: false,
  51. confirmColor: '#C30D23',
  52. })
  53. }
  54. },
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. .box {
  59. position: relative;
  60. width: 100vw;
  61. height: 381px;
  62. .image {
  63. width: 100%;
  64. height: 100%;
  65. display: block;
  66. vertical-align: bottom;
  67. }
  68. .function {
  69. position: absolute;
  70. top: 0;
  71. left: 0;
  72. width: 100%;
  73. height: 100%;
  74. z-index: 1;
  75. .cn-title {
  76. width: 100%;
  77. text-align: center;
  78. line-height: 22px;
  79. font-family: PingFang SC, PingFang SC;
  80. font-weight: 500;
  81. font-size: 16px;
  82. color: #FFFFFF;
  83. margin-top: 30px;
  84. }
  85. .en-title {
  86. width: 100%;
  87. text-align: center;
  88. font-family: PingFang SC, PingFang SC;
  89. font-size: 10px;
  90. color: #FFFFFF;
  91. }
  92. .form {
  93. width: 260px;
  94. margin: 0 auto;
  95. margin-top: 20px;
  96. .text {
  97. position: relative;
  98. display: flex;
  99. align-items: center;
  100. width: 260px;
  101. height: 45px;
  102. border: 1px solid rgba(255, 255, 255, 0.4);
  103. border-radius: 2px;
  104. overflow: hidden;
  105. padding: 0 10px;
  106. box-sizing: border-box;
  107. margin-bottom: 10px;
  108. .input {
  109. color: #fff;
  110. flex: 1;
  111. }
  112. .textarea {
  113. color: #fff;
  114. flex: 1;
  115. height: 62px;
  116. }
  117. .iconfont {
  118. color: #fff;
  119. font-size: 20px;
  120. margin-right: 10px;
  121. }
  122. }
  123. .textarea-box {
  124. padding-top: 13px;
  125. height: 90px;
  126. align-items: flex-start;
  127. }
  128. .text::after {
  129. content: "";
  130. position: absolute;
  131. top: 0;
  132. left: 0;
  133. width: 100%;
  134. height: 100%;
  135. background: #fff;
  136. opacity: .2;
  137. }
  138. .but {
  139. display: flex;
  140. align-items: center;
  141. justify-content: center;
  142. width: 260px;
  143. height: 45px;
  144. background: #C30D23;
  145. border-radius: 2px;
  146. font-family: PingFang SC, PingFang SC;
  147. font-weight: 500;
  148. font-size: 14px;
  149. color: #FFFFFF;
  150. }
  151. }
  152. }
  153. }
  154. </style>