**给input添加@blur失去焦点事件**
<view class="label iconfont iconlock">
<input type="text" placeholder="真实姓名" placeholder-class="place" v-model="formData.realName" @blur.prevent="inputLoseFocus"/>
</view>
**解决方法函数**
inputLoseFocus() {
let currentPosition, timer;
let speed = 1;
timer = setInterval(function() {
currentPosition = document.documentElement.scrollTop || document.body.scrollTop;
currentPosition -= speed;
window.scrollTo(0, currentPosition);
currentPosition += speed;
window.scrollTo(0, currentPosition);
clearInterval(timer);
}, 1);
},