From ca51b8836f1578f81012cbe7ff63bf6061229823 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 29 七月 2020 20:46:23 +0800 Subject: [PATCH] 2020-07-29 --- src/views/home/index.vue | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 061845d..c9f9b5c 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -15,6 +15,10 @@ <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2529499151&site=qq&menu=yes"> <img class="img" src="@/img/QQ.png" alt /> </a> + <a class="tel" href="tel:400-189-1819"> + <!-- <a class="tel" href="javascript:;" v-on:click="tel"> --> + <img class="img" src="@/img/tel1.png" alt /> + </a> </div> </div> <el-backtop :bottom="40" > @@ -31,7 +35,16 @@ } }, methods: { - + tel () { + this.$confirm('纭鎷ㄦ墦鐢佃瘽 400-189-1819 鍚�?', '', { + confirmButtonText: '纭畾', + cancelButtonText: '鍙栨秷' + }).then(() => { + window.location.href = 'tel://400-189-1819' + }).catch(() => { + + }) + } }, watch:{ //鐩戝惉璺敱 $route(to, from) { @@ -63,6 +76,9 @@ margin-top: 0.05rem; border: 1px solid #00A5E3; } + .tel { + display: none; + } } .el-backtop { z-index: 1005; @@ -82,7 +98,7 @@ .information { width: 0.6rem; height: 0.6rem; - bottom: 2.2rem; + bottom: 2.8rem; z-index: 100; .img { @@ -90,6 +106,9 @@ height: 0.6rem; margin-top: 0.05rem; } + .tel { + display: inline-block; + } } } </style> -- Gitblit v1.8.0