SOURCE

console 命令行工具 X clear

                    
>
console
data() {
  return {
    checked: false,
    text: '获取验证码',
    disabled: false,
    docmHeight: document.documentElement.clientHeight || document.body.clientHeight,
    showHeight: document.documentElement.clientHeight || document.body.clientHeight,
    hideshow: true //显示或者隐藏footer
  }
},
watch: {
  //监听显示高度
  showHeight: function() {
    if (this.docmHeight > this.showHeight) {
      //隐藏
      this.hideshow = false
    } else {
      //显示
      this.hideshow = true
    }
  }
},
mounted() {
  //监听事件
  window.onresize = () => {
    return (() => {
      this.showHeight = document.documentElement.clientHeight || document.body.clientHeight;
    })()
  }

},
<div class="m-pos_bot" v-show="hideshow">
  <div class="m-btn">
    立即登录
  </div>
  <div class="m-read1">
    <label class="lab" :class="checked ? 'checked' : ''">
      <input type="checkbox" id="checkbox" v-model="checked" />
      勾选同意和
      <a href="">
        《用户协议》
      </a><a href="">
        《隐私协议》
      </a>
    </label>
  </div>
</div>