<template>
  <view class="">
    <button class="new_btn" @click="navTo('/subpkg/newArchives/newArchives')">信息登记</button>
    <button class="new_btn" @click="navTo('/subpkg/updateArchives/updateArchives')">信息更新(测试中)</button>
  </view>
</template>

<script>
  export default {
    data() {
      return {

      }
    },
    onLoad() {},
    onShow() {},
    methods: {
      navTo(url) {
        url ?
          uni.navigateTo({
            url: url,
          }) : Toast('暂未开放')
      },
    },
    onPullDownRefresh() {
      uni.stopPullDownRefresh()
    }
  }
</script>

<style lang="scss">
  .new_btn {
    margin: 0 auto;
    margin-top: 32rpx;
    // margin-bottom: 40rpx;
    width: 694rpx;
    height: 84rpx;
    background: $theme-oa-color;
    border-radius: 42rpx 42rpx 42rpx 42rpx;
    color: #fff;
    line-height: 80rpx;
    text-align: center;
  }
</style>