Commit 8250f117 by wuwx

服务中心首页样式改版

1 parent 9498e7cb
<template> <template>
<div class="qr-code-components"> <div class="qr-code-components">
<div :class="[{topclass:top}]" :style="[{ bottom: bottom + 'px' }]" @mousedown="move" @mouseup="moveEnd" ref="callCenter" @mouseenter="show = true" @mouseleave="show = false" class="right_btn flex_ccc"> <div :class="[{topclass:top}]" :style="[{ bottom: bottom + 'px' }]" @mousedown="move" @mouseup="moveEnd" ref="callCenter" @mouseenter="show = true" @mouseleave="show = false" class="right_btn flex_ccc">
<div class="valuation" v-if="valuation" @click="valuations">
<img src="https://img01.glsx.com.cn/weapp/resource/saas/scrm/introduct/valuation.png" class="valuation_icon" />
</div>
<img v-if="icon" :src="icon" /> <img v-if="icon" :src="icon" />
<img v-else src="../../assets/contact_icon.png" /> <img v-else src="../../assets/contact_icon.png" />
<div class="contact_text">联系我们</div> <div class="contact_text">联系我们</div>
...@@ -41,7 +45,15 @@ export default { ...@@ -41,7 +45,15 @@ export default {
phoneTitle:{ phoneTitle:{
type:String, type:String,
default:'服务热线' default:'服务热线'
} },
valuation: {
type: Boolean,
default: false
},
isValuation: {
type: Boolean,
default: false
},
}, },
data() { data() {
return { return {
...@@ -89,6 +101,10 @@ export default { ...@@ -89,6 +101,10 @@ export default {
} else { } else {
// console.log('执行了拖拽事件') // console.log('执行了拖拽事件')
} }
},
valuations() {
this.isValuation = !this.isValuation
this.$emit('valuations', this.isValuation)
} }
} }
} }
...@@ -140,4 +156,13 @@ export default { ...@@ -140,4 +156,13 @@ export default {
.topclass{ .topclass{
top: 154px; top: 154px;
} }
.valuation_icon {
width: 80px;
height: 80px;
}
.valuation {
position: absolute;
top: -88px;
cursor: pointer;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!