首页样式修改

This commit is contained in:
dengxin
2024-02-05 16:05:54 +08:00
parent 502e26526b
commit 534fcf9d2e
4 changed files with 126 additions and 110 deletions

View File

@@ -3,18 +3,23 @@
<!-- <cmanage-title @change="changeActive"></cmanage-title> -->
<div class="login-weaper animated bounceInDown">
<div style="height: 50px;"></div>
<div class="login-content">
<!-- <div class="login-left">
<img class="img" src="/manage/img/logobg.png" alt />
</div> -->
<div class="login-border">
<user-login v-if="activeName==='login'" @change="changeActive" />
<forget-pwd v-else-if="activeName==='pwd'" @change="changeActive" />
<user-register v-else-if="activeName==='register'" @change="changeActive" />
<work-station-login v-else-if="activeName==='workstation'" @change="changeActive"></work-station-login>
<div class="login-wrapper-small">
<div class="login-content">
<div class="login-left">
<img class="img" src="/img/bg/back_zj.png" alt />
</div>
<div class="login-border">
<user-login v-if="activeName === 'login'" @change="changeActive" />
<forget-pwd v-else-if="activeName === 'pwd'" @change="changeActive" />
<user-register v-else-if="activeName === 'register'" @change="changeActive" />
<work-station-login v-else-if="activeName === 'workstation'" @change="changeActive"></work-station-login>
</div>
</div>
</div>
<div data-v-3c692830="" style="text-align: center; margin-top: 20px; padding-bottom: 30px;"><div data-v-3c692830="" style="font-size: 12px; color: #40a9ff;">Copyright @ 德阳市智慧就业服务中心</div></div>
<div data-v-3c692830="" style="text-align: center; margin-top: 20px; padding-bottom: 30px;">
<div data-v-3c692830="" style="font-size: 12px; color: #40a9ff;">Copyright @ 德阳市智慧就业服务中心</div>
</div>
</div>
</div>
</template>
@@ -45,7 +50,7 @@ export default {
activeName: "login",
fixed: 0,
homeList: [],
fixedShow:false,
fixedShow: false,
maxFixed: 2000
};
},
@@ -53,15 +58,15 @@ export default {
created() {
},
mounted() {
this.$refs.login.addEventListener('scroll',this.scroll)
this.$refs.login.addEventListener('scroll', this.scroll)
this.maxFixed = this.$refs.login.scrollHeight
},
computed: {},
props: [],
methods: {
introduce (item) {
const arr = {"企业招聘":0,"一键录用":1,"电子合同":2,"职业伤害":3,"工资结算":4,"信用评价":5}
introduce(item) {
const arr = { "企业招聘": 0, "一键录用": 1, "电子合同": 2, "职业伤害": 3, "工资结算": 4, "信用评价": 5 }
this.$refs.intro[arr[item]].scrollIntoView()
},
changeActive(name) {
@@ -74,7 +79,7 @@ export default {
window.location.href = "http://crm.jobslink.cn/crm";
}
},
scroll(){
scroll() {
const tab = this.$refs.tab.$el
const login = this.$refs.login
this.fixedShow =
@@ -84,7 +89,7 @@ export default {
const number = login.scrollTop - tab.offsetTop
const index = Math.floor(number / 410)
const tabData = this.$refs.tab._data
if(tabData.active === 4 && tabData.activeStatus)return
if (tabData.active === 4 && tabData.activeStatus) return
this.$refs.tab.tabNum(index)
}
}