123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <template>
- <div class="contact-we">
- <div class="btn" v-on:click='show()'>
- <i class="iconfont icon-kefu3"></i>
- <span>联<br>系<br>客<br>服</span>
- </div>
- <div class="content" v-show='isActive'>
- <div class="wechat">
- <img src="../assets/img/weichatKefu.png">
- </div>
- <div class="phone">
- <p>电话咨询</p>
- <i class="iconfont icon-dianhua"></i>
- <p>+8617354718363</p>
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- name: 'contactWe',
- data () {
- return {
- isActive: false
- }
- },
- methods:{
- show(){
- this.isActive=!this.isActive
- }
- }
- }
- </script>
- <!-- Add "scoped" attribute to limit CSS to this component only -->
- <style scoped>
- .contact-we{
- position: fixed;
- top: 28%;
- right: 0;
- z-index: 999;
- .btn{
- width: 36px;
- height: 120px;
- background: #20a0ff;
- position: absolute;
- margin-left: -36px;
- border-top-left-radius: 10px;
- border-bottom-left-radius: 10px;
- cursor: pointer;
- margin-top: 108px;
- text-align: center;
- i{
- font-size: 24px;
- color: white;
- }
- span{
- color: yellow;
- font-size: 14px;
- line-height: 1;
- }
- }
- .content{
- box-shadow: 0 3px 5px 2px rgba(26,0,0,.4);
- width: 150px;
- background: #20a0ff;
- border-top-left-radius: 10px;
- border-bottom-left-radius: 10px;
- padding-top: 10px;
- padding-bottom: 10px;
- .wechat{
- background: white;
- width: 130px;
- margin: 0 auto;
- border-radius: 10px;
- overflow: hidden;
- height: 140px;
- }
- .phone{
- height: 130px;
- width: 130px;
- margin: 0 auto;
- border-radius: 10px;
- padding: 10px 5px;
- margin-top: 10px;
- background: white;
- text-align: center;
- p:nth-child(1){
- border-bottom: 1px solid #e5e5e5;
- font-size: 14px;
- color: #333;
- font-weight: 700;
- line-height: 30px;
- text-align: left;
- margin-left: 10px;
- }
- i{
- font-size: 32px;
- color: #1eb8ff;
- }
- p:nth-child(3){
- color: #333;
- font-weight: 700;
- font-size: 13px;
- line-height: 30px;
- }
- }
- }
- }
- </style>
|