merchant-web/src/views/common/home.vue

69 lines
1.5 KiB
Vue
Raw Normal View History

2024-08-05 08:26:35 +00:00
<!--
* @Author: ym
* @Date: 2021-09-28 10:53:53
* @LastEditTime: 2022-01-09 18:57:16
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \background-front-end\src\views\common\home.vue
-->
<template>
2024-12-20 10:17:10 +00:00
<div class="mod-home">
<el-dialog
title="提示:您的密码过于简单,请您修改密码"
:visible.sync="dialogVisible"
width="30%"
:show-close="false"
:destroy-on-close="true"
:close-on-click-modal="false"
>
<span>这是一段信息</span>
<span slot="footer" class="dialog-footer">
<!-- <el-button @click="dialogVisible = false"> </el-button> -->
<el-button type="primary" @click="dialogVisible = false"
>确定并重新登入</el-button
>
</span>
</el-dialog>
</div>
2024-08-05 08:26:35 +00:00
</template>
<script>
2024-12-20 10:17:10 +00:00
export default {
data() {
return {
dialogVisible: false,
};
},
created() {
if (
JSON.parse(sessionStorage.getItem("password")) == "123456" &&
JSON.parse(sessionStorage.getItem("role")) === "ROLE_BRAND_MANAGER"
) {
this.dialogVisible = true;
}
},
};
2024-08-05 08:26:35 +00:00
</script>
<style lang="scss" scoped>
.mod-home {
line-height: 1.5;
}
.el-carousel__item h3 {
2024-10-08 10:06:38 +00:00
color: #475669;
font-size: 18px;
opacity: 0.75;
line-height: 300px;
margin: 0;
color: #fff;
}
.el-carousel__item:nth-child(2n) {
background-color: #99a9bf;
}
.el-carousel__item:nth-child(2n + 1) {
background-color: #d3dce6;
}
2024-08-05 08:26:35 +00:00
</style>