bottom1.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <template>
  2. <view class="box">
  3. <image style="width: 100%;height: 100%;"
  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. .function {
  63. position: absolute;
  64. top: 0;
  65. left: 0;
  66. width: 100%;
  67. height: 100%;
  68. z-index: 1;
  69. .cn-title {
  70. width: 100%;
  71. text-align: center;
  72. line-height: 22px;
  73. font-family: PingFang SC, PingFang SC;
  74. font-weight: 500;
  75. font-size: 16px;
  76. color: #FFFFFF;
  77. margin-top: 30px;
  78. }
  79. .en-title {
  80. width: 100%;
  81. text-align: center;
  82. font-family: PingFang SC, PingFang SC;
  83. font-size: 10px;
  84. color: #FFFFFF;
  85. }
  86. .form {
  87. width: 260px;
  88. margin: 0 auto;
  89. margin-top: 20px;
  90. .text {
  91. position: relative;
  92. display: flex;
  93. align-items: center;
  94. width: 260px;
  95. height: 45px;
  96. border: 1px solid rgba(255, 255, 255, 0.4);
  97. border-radius: 2px;
  98. overflow: hidden;
  99. padding: 0 10px;
  100. box-sizing: border-box;
  101. margin-bottom: 10px;
  102. .input {
  103. color: #fff;
  104. flex: 1;
  105. }
  106. .textarea {
  107. color: #fff;
  108. flex: 1;
  109. height: 62px;
  110. }
  111. .iconfont {
  112. color: #fff;
  113. font-size: 20px;
  114. margin-right: 10px;
  115. }
  116. }
  117. .textarea-box {
  118. padding-top: 13px;
  119. height: 90px;
  120. align-items: flex-start;
  121. }
  122. .text::after {
  123. content: "";
  124. position: absolute;
  125. top: 0;
  126. left: 0;
  127. width: 100%;
  128. height: 100%;
  129. background: #fff;
  130. opacity: .2;
  131. }
  132. .but {
  133. display: flex;
  134. align-items: center;
  135. justify-content: center;
  136. width: 260px;
  137. height: 45px;
  138. background: #C30D23;
  139. border-radius: 2px;
  140. font-family: PingFang SC, PingFang SC;
  141. font-weight: 500;
  142. font-size: 14px;
  143. color: #FFFFFF;
  144. }
  145. }
  146. }
  147. }
  148. </style>