<template >
  <view class="examIndex">
    <view class="item">
      <text class="text"
            @click="navTo('/pages/template/exam/examSelect/examQuestion')">开始考试</text>
    </view>
    <view class="item">
      <text class="text"
            @click="navTo('/pages/template/exam/examSelect/examList')">考试记录</text>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  created() {
    this.getExamList();
  },
  methods: {
    navTo(url) {
      uni.navigateTo({
        url,
      });
    },
  },
};
</script>

<style lang="less" scoped>
.examIndex {
  height: 100vh;
  background-color: #eff9fe;
  overflow: hidden;
  .item {
    text-align: center;
    height: 42vh;
    line-height: 42vh;

    .text {
      // display: inline-block;
      border-radius: 95rpx;
      border: 0rpx solid #e6f7ff;
      color: #e6f7ff;
      background: linear-gradient(160deg, #51b5fd, #1687f1);
      padding: 45rpx 80rpx;
      font-weight: 700;
      font-size: 63rpx;
      font-family: "宋体";
      box-shadow: 0 0 40rpx 40rpx #e3eff5;
    }
  }
}
</style>