|
@@ -3,7 +3,8 @@ const comFooter = {
|
|
|
data() {
|
|
|
return {
|
|
|
phone: '0755-3365-6365',
|
|
|
- centerDialogVisible: false
|
|
|
+ centerDialogVisible: false,
|
|
|
+ telPhoneDialog: false
|
|
|
}
|
|
|
},
|
|
|
template:
|
|
@@ -14,6 +15,9 @@ const comFooter = {
|
|
|
<div class="phone" @click="centerDialogVisible = true">
|
|
|
{{ phone }}
|
|
|
</div>
|
|
|
+ <div class="phonePC" @click="telPhoneDialog = true">
|
|
|
+ {{ phone }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<el-dialog
|
|
|
:visible.sync="centerDialogVisible"
|
|
@@ -25,12 +29,25 @@ const comFooter = {
|
|
|
<el-button class="confirm" @click="telPhone">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="telPhoneDialog"
|
|
|
+ width="18%"
|
|
|
+ center>
|
|
|
+ <span>请使用手机进行拨打</span>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button class="confirm" @click="telPhonePC">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
`,
|
|
|
methods: {
|
|
|
telPhone() {
|
|
|
this.centerDialogVisible = false;
|
|
|
window.location.href = `tel:${this.phone}`;
|
|
|
+ },
|
|
|
+ telPhonePC() {
|
|
|
+ this.telPhoneDialog = false
|
|
|
}
|
|
|
}
|
|
|
}
|