提交 fff0a4d7 authored 作者: matian's avatar matian

修改右侧弹窗

上级 4f523769
<template> <template>
<div class="right_bar"> <div class="right_bar">
<ul class="tab_btns"> <ul class="tab_btns" v-if="isShowBtn === true">
<a href="/my"> <a href="/my">
<li <li class="service">
class="service"
>
<p>{{ $t('aside.apply') }}</p> <p>{{ $t('aside.apply') }}</p>
</li> </li>
</a> </a>
<li <li :class="{ enroll: true, active: tabBtnActive && tabBtnTarget === 'enroll' }" @click="handleMsOver">
:class="{ enroll: true, active: tabBtnActive && tabBtnTarget === 'enroll' }"
@mouseenter="handleMsOver('enroll')"
@mouseleave="handleMsOut"
>
<p>{{ $t('aside.apply2') }}</p> <p>{{ $t('aside.apply2') }}</p>
</li> </li>
<li <!-- <li
:class="{ wx: true, active: tabBtnActive && tabBtnTarget === 'wx' }" :class="{ wx: true, active: tabBtnActive && tabBtnTarget === 'wx' }"
@mouseenter="handleMsOver('wx')" @mouseenter="handleMsOver('wx')"
@mouseleave="handleMsOut" @mouseleave="handleMsOut"
> >
<p>{{ $t('aside.follow') }}</p> <p>{{ $t('aside.follow') }}</p>
</li> </li> -->
</ul> </ul>
<transition <!-- <transition
name="custom-classes-transition" name="custom-classes-transition"
enter-active-class="animated tada" enter-active-class="animated tada"
leave-active-class="animated bounceOutRight" leave-active-class="animated bounceOutRight"
> > -->
<div <div id="show-enroll" v-show="tabBtnActive" class="tab_cont">
id="show-enroll" <div class="enroll_cont" id="show-enroll-content">
v-show="tabBtnActive" <i
class="tab_cont" class="el-icon-circle-close"
@mouseenter="handleMsOver('')" style="margin-top:10px;float:right;color:#ffffff;font-size:24px;cursor:pointer;z-index:10000; position:relative"
@mouseleave="handleMsOut" @click="handleClose"
> ></i>
<div class="enroll_cont" id="show-enroll-content" v-show="tabBtnTarget === 'enroll'">
<h5>{{ $t('aside.apply') }}</h5> <h5>{{ $t('aside.apply') }}</h5>
<p><el-input v-model="formInfo.name" :placeholder="$t('aside.name')" size="small"></el-input></p> <p><el-input v-model="formInfo.name" :placeholder="$t('aside.name')" size="small"></el-input></p>
<p><el-input v-model="formInfo.phone" :placeholder="$t('aside.phone')" size="small"></el-input></p> <p><el-input v-model="formInfo.phone" :placeholder="$t('aside.phone')" size="small"></el-input></p>
...@@ -56,18 +49,20 @@ ...@@ -56,18 +49,20 @@
</p> </p>
<p class="sendcode"> <p class="sendcode">
<el-input v-model="sendCode" :placeholder="$t('aside.code')" size="small"></el-input <el-input v-model="sendCode" :placeholder="$t('aside.code')" size="small"></el-input
><el-button class="btn" :disabled="isBtnDisabled" id="checkedCode" @click="getSendCode" ><el-button class="btn" :disabled="isBtnDisabled" id="checkedCode" @click="getSendCode">{{
>{{ $t('aside.codeBtn') }}</el-button $t('aside.codeBtn')
> }}</el-button>
</p>
<p>
<el-button style="width: 100%" @click="submitEnroll">{{ $t('aside.formBtn') }}</el-button>
</p> </p>
<p><el-button style="width: 100%" @click="submitEnroll">{{ $t('aside.formBtn') }}</el-button></p>
</div> </div>
<div class="wx_cont" v-show="tabBtnTarget === 'wx'"> <div class="wx_cont" v-show="tabBtnTarget === 'wx'">
<h5>{{ $t('aside.follow') }}</h5> <h5>{{ $t('aside.follow') }}</h5>
<img src="https://zws-imgs-pub.ezijing.com/static/public/d2d9945d598e81c3b58aff5ce927a78a.jpg" /> <img src="https://zws-imgs-pub.ezijing.com/static/public/d2d9945d598e81c3b58aff5ce927a78a.jpg" />
</div> </div>
</div> </div>
</transition> <!-- </transition> -->
</div> </div>
</template> </template>
<script> <script>
...@@ -76,7 +71,8 @@ const MOBILE_REG = /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35 ...@@ -76,7 +71,8 @@ const MOBILE_REG = /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35
export default { export default {
data() { data() {
return { return {
tabBtnActive: false, tabBtnActive: true,
isShowBtn: false,
tabBtnTarget: '', tabBtnTarget: '',
projectName: this.$t('aside.project4'), projectName: this.$t('aside.project4'),
sendCode: '', sendCode: '',
...@@ -97,14 +93,17 @@ export default { ...@@ -97,14 +93,17 @@ export default {
} }
}, },
methods: { methods: {
handleMsOver(type) { handleClose() {
this.tabBtnActive = true this.tabBtnActive = !this.tabBtnActive
if (type !== '') { this.isShowBtn = true
this.tabBtnTarget = type
}
}, },
handleMsOut(type) { handleMsOver() {
this.tabBtnActive = false this.tabBtnActive = !this.tabBtnActive
this.isShowBtn = false
// if (type !== '') {
// this.tabBtnTarget = type
// }
}, },
submitEnroll() { submitEnroll() {
let flag = true let flag = true
...@@ -264,21 +263,21 @@ export default { ...@@ -264,21 +263,21 @@ export default {
li.enroll.active { li.enroll.active {
background-image: url(https://webapp-pub.ezijing.com/project/kelley/kefu11.png); background-image: url(https://webapp-pub.ezijing.com/project/kelley/kefu11.png);
} }
li.service{ li.service {
background-image: url(https://zws-imgs-pub.ezijing.com/static/public/d434fa0ffd77892273e63e6d694cff0a.png); background-image: url(https://zws-imgs-pub.ezijing.com/static/public/d434fa0ffd77892273e63e6d694cff0a.png);
} }
li.service{ li.service {
border-bottom: 1px solid #b8bcbf; border-bottom: 1px solid #b8bcbf;
cursor: pointer; cursor: pointer;
&:hover{ &:hover {
background-color: #af1b40; background-color: #af1b40;
p{ p {
color: #fff; color: #fff;
} }
background-image: url(https://zws-imgs-pub.ezijing.com/static/public/4cbef518113d24b392be80148e921abd.png); background-image: url(https://zws-imgs-pub.ezijing.com/static/public/4cbef518113d24b392be80148e921abd.png);
} }
} }
li.service.acitve{ li.service.acitve {
background-image: url(https://zws-imgs-pub.ezijing.com/static/public/4cbef518113d24b392be80148e921abd.png); background-image: url(https://zws-imgs-pub.ezijing.com/static/public/4cbef518113d24b392be80148e921abd.png);
} }
li.wx { li.wx {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论