<p class="line">
<p>{{ lists.nick }}</p>
<p class="light_color">
<input @focus="focus" @blur="blur" v-model="nick"><!--paremeter.nick--><!---->
<i @click="clear" class="iconfont icon-iconziti56"></i>
</p>
</p>
<p class="line">
<p>{{ lists.valid_mobile }}</p>
<p class="light_color" v-if="paremeter.valided_mobile == 0">
<input @focus="focus" @blur="blur" v-model="paremeter.valid_mobile">
<i @click="clear" class="iconfont icon-iconziti56"></i>
</p>
<p v-else class="light_color">
{{ paremeter.valid_mobile }}
</p>
</p>
<p id="app">
i, css appears after clicking input
i appears after the input data is changed
1.@focus="focus" The front is to get the focus, and the back is the events to be processed after getting the focus written by yourself. You can give different names and trigger different events, and the problem you mentioned will not occur.![](http://img.php.cn/upload/image/000/000/000/eacdfba175672d1f56324248032a0ddb-0.png)
Your code is the same event
2. If you want to show or hide an element, you can use v-show / v-if
Since you are using vue, it is best not to use the native method