<script setup>
function handleClickLeft() {
  uni.reLaunch({
    url: '/pages/index',
  })
}
</script>

<template>
  <!--  -->
  <view class="h-screen bg-[#EBF1FD]">
    <view class="login-layout min-h-full">
      <wd-navbar
        title="用户登录"
        left-arrow
        safe-area-inset-top
        custom-style="background-color: transparent !important;"
        @click-left="handleClickLeft"
      />
      <slot />
    </view>
  </view>
</template>

<style scoped>
  .login-layout{
    background: url("@/static/image/login_bg.png") no-repeat;
    background-position: center;
    background-size: cover;
  }
</style>
