footTemplate.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. <template>
  2. <div class="tel-sec" :style="`background-color:${bgc}`">
  3. <div class="fix">
  4. <!--<img src="../../static/previewModel/more.png" alt="" class="icon" :style="`${containFlag?'transform:rotateX(180deg)':''}`">-->
  5. <!--<span>了解更多项目信息</span>-->
  6. <ul :style="`color:${btnColor}`">
  7. <li class="dianhua" @click="containFlag=containFlag==1?0:1">
  8. <img src="https://dm.static.elab-plus.com/tfb_icon_foot/dianhua-2.png" alt="" v-show="containFlag!=1">
  9. <img src="https://dm.static.elab-plus.com/tfb_icon_foot/dianhua-2_sel.png" alt="" v-show="containFlag==1">
  10. <p :style="`color:${containFlag==1?'#fff':''}`">电话咨询/留电</p>
  11. </li>
  12. <li class="kefu">
  13. <div :style="`background-color:${btnColor}`" ></div>
  14. <p>在线咨询</p>
  15. </li>
  16. <li class="xiaochengxu">
  17. <img src="https://dm.static.elab-plus.com/tfb_icon_foot/xiaochengxu.png" alt="" v-show="containFlag!=2">
  18. <img src="https://dm.static.elab-plus.com/tfb_icon_foot/xiaochengxu_sel.png" alt="" v-show="containFlag==2">
  19. <p :style="`color:${containFlag==2?'#fff':''}`">进入小程序</p>
  20. </li>
  21. </ul>
  22. </div>
  23. <div class="contain" v-show="containFlag">
  24. <div v-show="containFlag==1">
  25. <ul :style="`color:#333`">
  26. <li class="saveTel"><i></i>留电</li>
  27. <li class="phone">
  28. <a :style="`color:#333`">
  29. <i></i>电话咨询
  30. </a>
  31. </li>
  32. </ul>
  33. <div class="saveTelContain">
  34. <div class="tel-sec1">
  35. <input type="tel" placeholder="您的手机号" maxlength="11"/>
  36. <div class="btn text-center">获取验证码</div>
  37. </div>
  38. <div class="tel-sec1 verify">
  39. <input type="tel" placeholder="填写验证码" maxlength="6"/>
  40. <div class="btn text-center">提交</div>
  41. </div>
  42. </div>
  43. <div class="tel-bot">
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </template>
  49. <script>
  50. export default {
  51. props:{
  52. bgc:{//背景色
  53. type:String,
  54. default:'#B1C096'
  55. },
  56. btnColor:{//IM按钮底色和‘留点/电话咨询/查看二维码’文字颜色
  57. type:String,
  58. default:'#5f8a61'
  59. }
  60. },
  61. data(){
  62. return{
  63. containFlag:0,
  64. }
  65. }
  66. }
  67. </script>
  68. <style lang="scss" scoped>
  69. *{
  70. margin: 0;
  71. padding: 0;
  72. border: none;
  73. box-sizing:border-box;
  74. -webkit-box-sizing:border-box;
  75. }
  76. .tel-sec{
  77. width: 100%;
  78. position: absolute;
  79. z-index: 999;
  80. bottom: 2px;
  81. .contain{
  82. padding:0 60px 20px 60px;
  83. border-top: 1px solid #000;
  84. }
  85. box-sizing:border-box;
  86. -webkit-box-sizing:border-box;
  87. .topTitle{
  88. font-family: PingFangSC-Regular;
  89. font-size: 28px;
  90. color: #216857;
  91. text-align: center;
  92. line-height: 30px;
  93. padding-bottom: 30px;
  94. }
  95. .tel-btn{
  96. margin: 0 auto;
  97. line-height: 90px;
  98. border-radius: 45px;
  99. font-size: 36px;
  100. color: #fff;
  101. display: flex;
  102. justify-content: space-between;
  103. p{
  104. font-size:30px;
  105. font-family: PingFangSC-Medium;
  106. color: #FFFFFF;
  107. text-align: left;
  108. line-height: 100px;
  109. width: calc(50% - 3px);
  110. }
  111. p:nth-child(1){
  112. padding-left: 110px;
  113. background: url("http://skyforest.static.elab-plus.com/temp/chat.png") no-repeat 45px center/42px 41px;
  114. border-radius: 100px 0 0 100px;
  115. }
  116. p:nth-child(2){
  117. padding-left: 90px;
  118. background: url("https://dm.static.elab-plus.com/wuXiW3/%E4%BA%8C%E7%BB%B4%E7%A0%81.png") no-repeat 35px center/42px 41px;
  119. border-radius: 0px 100px 100px 0;
  120. }
  121. }
  122. .line{
  123. opacity: 0.32;
  124. border: 1px solid #1C1C1C;
  125. height: 1px;
  126. margin-top: 38px;
  127. }
  128. .contain ul{
  129. display: flex;
  130. margin-top: 30px;
  131. margin-bottom: 10px;
  132. align-items: center;
  133. justify-content: center;
  134. margin-top: 50px;
  135. li{
  136. font-family: PingFangSC-Regular;
  137. font-size: 24px;
  138. text-align: center;
  139. line-height: 30px;
  140. margin: 0 30px;
  141. a{
  142. text-decoration: none;
  143. display: flex;
  144. align-items: center;
  145. }
  146. display: flex;
  147. align-items: center;
  148. }
  149. li i{
  150. display: block;
  151. margin: 0 auto;
  152. width: 70px;
  153. height: 70px;
  154. margin-right: 20px;
  155. }
  156. .saveTel i{
  157. background: url("http://skyforest.static.elab-plus.com/temp/liudian2.png") no-repeat top center/70px 70px;
  158. }
  159. .phone i{
  160. background: url("http://skyforest.static.elab-plus.com/temp/tel.png") no-repeat top center/70px 70px;
  161. }
  162. .qrcode i{
  163. background: url("http://skyforest.static.elab-plus.com/temp/code.png") no-repeat top center/70px 70px;
  164. }
  165. }
  166. .saveTelContain{
  167. padding: 33px 20px 20px 20px;
  168. width: 630px;
  169. height: 230px;
  170. background: url("http://skyforest.static.elab-plus.com/temp/input box.png") no-repeat center center/100% 100%;
  171. .tel-sec1{
  172. display: flex;
  173. input{
  174. width: 420px;
  175. height: 80px;
  176. line-height: 80px;
  177. border-radius: 8px;
  178. font-family: PingFangSC-Medium;
  179. font-size: 30px;
  180. /*color: #FFFFFF;*/
  181. text-align: justify;
  182. background: transparent;
  183. padding-left: 30px;
  184. }
  185. input::placeholder{
  186. width: 420px;
  187. height: 80px;
  188. line-height: 80px;
  189. border-radius: 8px;
  190. font-family: PingFangSC-Medium;
  191. font-size: 30px;
  192. color: #FFFFFF;
  193. text-align: justify;
  194. }
  195. div{
  196. width: 165px;
  197. height: 80px;
  198. font-family: PingFangSC-Semibold;
  199. font-size: 28px;
  200. color: #fff;
  201. text-align: center;
  202. line-height: 80px;
  203. }
  204. }
  205. .verify{
  206. margin-top: 15px;
  207. }
  208. }
  209. .tel-bot{
  210. margin-top: 35px;
  211. p{
  212. font-family: PingFangSC-Regular;
  213. font-size: 24px;
  214. color: #666666;
  215. text-align: center;
  216. }
  217. }
  218. }
  219. .fix{
  220. /*overflow: hidden;*/
  221. width: 100%;
  222. height: 100px;
  223. font-family: PingFangSC-Regular;
  224. font-size: 20px;
  225. color: #FFFFFF;
  226. text-align: center;
  227. /*.icon{*/
  228. /*display: block;*/
  229. /*width: .24rem;*/
  230. /*height: 0.24rem;*/
  231. /*margin: 0.07rem auto;*/
  232. /*}*/
  233. ul{
  234. display: flex;
  235. justify-content: space-around;
  236. margin: 0;
  237. li{
  238. /*display: flex;*/
  239. /*flex-direction: column;*/
  240. /*justify-content: space-around;*/
  241. margin: 0;
  242. height: 100px;
  243. p{
  244. font-family: PingFangSC-Regular;
  245. font-size: 20px;
  246. text-align: center;
  247. line-height: 1.5;
  248. }
  249. }
  250. .dianhua{
  251. padding-top: 10px;
  252. img{
  253. width: 40px;
  254. }
  255. }
  256. .kefu{
  257. transform: translateY(-48px);
  258. div{
  259. width: 100px;
  260. height: 100px;
  261. border-radius: 100%;
  262. background:#0f2d52 url("https://dm.static.elab-plus.com/tfb_icon_foot/kefu.png")no-repeat center center /56px 44px;
  263. }
  264. }
  265. .xiaochengxu{
  266. padding-top: 10px;
  267. img{
  268. width: 36px;
  269. }
  270. }
  271. }
  272. }
  273. </style>