<template>
  <view class="changeSuccess">
    <view class="container">
      <image class="" src="@/static/image/code/success.png" />
      <view class="text">密码修改成功！！！</view>
      <view class="back" @click="goLogin">返回登陆</view>
    </view>
  </view>
</template>

<script>
export default {
  methods: {
    goLogin() {
      //  清除本地缓存所有的数据
      uni.clearStorageSync();
      //  跳转回登陆页面
      uni.redirectTo({
        url: "/pages/login/index",
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.changeSuccess {
  width: 100vw;
  min-height: 100vh;
  background-color: #ffffff;
  position: relative;
  .container {
    position: absolute;
    top: 200rpx;
    left: 50%;
    transform: translateX(-50%);
    @include flex(center, column, 52rpx);
    image {
      width: 280rpx;
      height: 280rpx;
      display: block;
    }
    .text {
      font-size: 28rpx;
      color: #666666;
    }
    .back {
      width: 226rpx;
      height: 88rpx;
      text-align: center;
      line-height: 88rpx;
      font-size: 28rpx;
      color: rgba(0, 0, 0, 0.9);
      border: 2rpx solid #e7e7e7;
      border-radius: 200rpx;
    }
  }
}
</style>
