index.vue 763 Bytes
<template>
  <div>
    <div class="btn">
      <div>
        <x-button class="default-btn" @click.native="next">{{btnText}}</x-button>
      </div>
    </div>
  </div>
</template>

<script>
import { XButton } from 'vux'
export default {
  components: { XButton },
  props: ['btnText'],
  methods: {
    next () {
      this.$emit('btnClick')
    }
  }
}
</script>

<style lang="less" scoped>
.btn {
  width: 100%;
  background: #fff;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  &>div {
    padding: 6px 10px;
    .default-btn {
      width: 100%;
      height: 38px;
      background: #89a9cf!important;
      color: #fff!important;
      font-size: 16px;
      &:after {
        border: 1px solid #89a9cf!important;
      }
    }
  }
}
</style>