<template>
  <div class="page">
    <div class="page-header">
      <span @click="$router.go(-1)">&lt;</span>
      安全中心
    </div>
    <nuxt-link
      v-for="item in list"
      :key="item.key"
      class="page-item"
      :to="`securityCenter/${item.path}`"
    >
      <div>{{ item.title }}</div>
      <div>></div>
    </nuxt-link>
  </div>
</template>

<script>
export default {
  name: "SecurityCenterPage",
  data() {
    return {
      list: [
        { title: "修改登陆密码", path: "modifyLoginPassword" },
        { title: "重设登陆密码", path: "resetLoginPassword" },
        { title: "修改资金密码", path: "modifyFundPassword" },
        { title: "重设资金密码", path: "resetFundPassword" },
      ],
    };
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.page {
  background: url("@/assets/images/index/bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  padding-bottom: 50px;

  &-header {
    color: white;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    font-family: PingFang SC, Arial;
    height: 50px;
    line-height: 50px;
    span {
      position: absolute;
      left: 20px;
      font-weight: normal;
    }
  }

  &-item {
    background: #068ef6;
    width: 100%;
    color: white;
    font-family: PingFang SC, Arial;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    padding: 30px 20px;
    border-bottom: 1px solid white;
    &:last-child {
      border-bottom: none;
    }
  }
}
</style>
