<template>
  <div>
    <div class="bulletin-box">
      <div class="bulletin-left">公告</div>
      <div
        v-swiper:mySwiper="swiperOption"
        class="swiperWrap"
        style="height: 32px"
      >
        <div class="swiper-wrapper">
          <div
            class="swiper-slide"
            v-for="(banner, index) in banners"
            :key="index"
          >
            {{ banner.content }}
          </div>
        </div>
      </div>
    </div>
    <div class="password-box">
      <div class="password-head">
        <span>修改密码</span>
      </div>

      <div>
        <el-form label-position="top" inline :model="formLabelAlign">
          <div class="form-Text">
            <el-form-item label="手机号码">
              <el-input
                v-model="formLabelAlign.phone"
                placeholder="138****3293"
              ></el-input>
            </el-form-item>
            <el-form-item label="获取验证码">
              <el-input
                v-model="formLabelAlign.code"
                placeholder="请输入获取到的验证码"
              >
                <span slot="suffix" class="right-font" @click="getCode"
                  >获取验证码</span
                >
              </el-input>
            </el-form-item>

            <el-form-item label="输入新密码">
              <el-input
                v-model="formLabelAlign.newPassword"
                placeholder="不少于十位数"
              ></el-input>
            </el-form-item>
            <el-form-item label="确认新密码">
              <el-input
                v-model="formLabelAlign.confirmPas"
                placeholder="再次输入新密码"
              ></el-input>
            </el-form-item>
          </div>

          <el-button class="primary-button" type="primary" @click="onSubmit"
            >确认修改</el-button
          >
        </el-form>
      </div>
    </div>
  </div>
</template>


<script>
export default {
  meta:{title:'修改密码'},
  data() {
    return {
      formLabelAlign: {
        phone: "",
        code: "",
        newPassword: "",
        confirmPas: "",
      },
      banners: [
        {
          content:
            "您目前还没完成实名认证，部分功能不可使用，请尽快进行实名认证1",
        },
        {
          content:
            "您目前还没完成实名认证，部分功能不可使用，请尽快进行实名认证2",
        },
        {
          content:
            "您目前还没完成实名认证，部分功能不可使用，请尽快进行实名认证3",
        },
        {
          content:
            "您目前还没完成实名认证，部分功能不可使用，请尽快进行实名认证4",
        },
      ],
      swiperOption: {
        direction: "vertical",
        autoplay: true,
        loop: true,
      },
    };
  },
  methods: {
    handleAvatarSuccess: function () {},
    beforeAvatarUpload: function () {},
    onSubmit: function () {},
    getCode: function () {
      console.log("获取验证码");
    },
  },
};
</script>

<style lang="scss" scoped>
.password-box {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
}
.password-head {
  height: 26px;
  font-size: 20px;
  color: #333333;
  display: flex;
  align-items: center;
  margin-bottom: 35px;
  span {
    height: 20px;
    line-height: 20px;
    padding-left: 20px;
    border-left: 4px solid #1890ff;
  }
}

.el-form--inline .el-form-item {
  width: 48%;
  color: #5f6279;
  font-size: 14px;
}

.primary-button {
  margin: 20px auto 0;
  width: 96px;
}

.right-font {
  color: #1890ff;
  font-size: 14px;
  cursor: pointer;
  padding-right: 10px;
}
</style>