You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bocai_supplyChain_pc/src/views/main.vue

1129 lines
35 KiB
Vue

4 years ago
<template>
<div class="index-container" @click="isspecialboxshow = false">
<!-- title部分 -->
2 years ago
<div class="pagetitle" v-if="isLogin && routertitleindex != 0">
2 years ago
<div class="w fsa">
<div class="fss">
2 years ago
<router-link to="/main">
<svg class="svg_icon f64" aria-hidden="true">
<use xlink:href="#icon-daotian2" />
</svg>
</router-link>
2 years ago
</div>
<span class="login fsa">
<div class="f14 pr16 mr16" style="line-height:1;border-right:1px solid #979797;cursor:pointer">
<!-- <i class="iconfont icon-qiehuan cf4 f12 mr4"></i>切换到公开版 -->
</div>
2 years ago
<div>
<ul class="fsa titleTag">
<li>
<router-link to="/" :class="routertitleindex == 0 ? 'titleactive' : ''" rel="opener">首页</router-link>
</li>
<li>
<router-link to="/list" @click.native="toList" :class="routertitleindex == 1 ? 'titleactive' : ''" rel="opener">稻田职位</router-link>
</li>
<li>
<router-link to="/mybill" :class="routertitleindex == 5 ? 'titleactive' : ''" rel="opener">我的报名</router-link>
</li>
<li>
<router-link to="/mytownsman" :class="routertitleindex == 4 ? 'titleactive' : ''">我的老乡</router-link>
</li>
<!-- <li>
2 years ago
<router-link to="/dataStatistics" :class="routertitleindex == 6 ? 'titleactive' : ''">团队数据</router-link>
2 years ago
</li>-->
<!-- <li>
4 years ago
<router-link to="/serviceoutlets"
><a
href="javascript:;"
4 years ago
:class="routertitleindex === 2 ? 'titleactive' : ''"
4 years ago
>服务网点</a
4 years ago
>
</router-link>
</li>
<li>
<router-link to="/aboutus">
<a
href="javascript:;"
4 years ago
:class="routertitleindex === 3 ? 'titleactive' : ''"
4 years ago
>关于我们</a
>
</router-link>
2 years ago
</li>-->
</ul>
</div>
2 years ago
<span v-if="isLogin" class="logined fsa">
<div class v-if="loginValue.agencyName == '郑州一才工作'">
2 years ago
<a-dropdown overlayClassName="logindropdown" placement="bottomRight">
<div class="mr20 user-box">
<i class="iconfont icon-xiaoxi"></i>
<!-- <svg class="svg_icon f16 user-box" aria-hidden="true">
2 years ago
<use xlink:href="#icon-xiaoxi" />
</svg> -->
2 years ago
</div>
<div class="loginbox" slot="overlay">
<router-link to="/systemMsg">
<div>
<span>
<i class="iconfont icon-xitongtongzhi"></i>系统通知
</span>
<i class="iconfont icon-youjiantou"></i>
</div>
</router-link>
<router-link to="/teamMsg">
<div style="border-bottom: none;">
2 years ago
<span>
<i class="iconfont icon-tuanduitongzhi"></i>团队通知
</span>
<i class="iconfont icon-youjiantou"></i>
</div>
</router-link>
</div>
</a-dropdown>
</div>
2 years ago
<a-dropdown overlayClassName="logindropdown" placement="bottomRight">
4 years ago
<!-- <img :src="loginValue.imgSrc" alt="" v-if="loginValue.imgSrc !== ''" style="border-radius: 50%" />
3 years ago
<span v-else><i class="iconfont icon-morentouxiang" style="color:#ff4400"></i></span>-->
2 years ago
<span class="fsa">
2 years ago
<span class="iconfont icon-morentouxiang mr4 f32" v-if="!userbaseInfo.imgSrc"></span>
<img :src="userbaseInfo.imgSrc" class="mr4" style="border-radius:50%;width:32px;height:32px;" alt v-else />
<div class="ml4 f16 c6 user-box">{{ userbaseInfo.userName || '-' }}</div>
2 years ago
</span>
4 years ago
<div class="loginbox" slot="overlay">
2 years ago
<!-- <div>
3 years ago
<img :src="loginValue.imgSrc" alt v-if="loginValue.imgSrc !== ''" style="border-radius: 50%" />
2 years ago
<span v-else class="iconfont icon-morentouxiang avatar f32"></span>
<span class="username">{{loginValue.userName || loginValue.nickName || loginValue.tel}}</span>
2 years ago
</div>-->
4 years ago
<router-link to="/accountsetting">
4 years ago
<div>
3 years ago
<span>
<i class="iconfont icon-gerenzhongxin"></i>个人中心
</span>
<i class="iconfont icon-youjiantou"></i>
4 years ago
</div>
</router-link>
2 years ago
<router-link to="/merchantBack" v-if="loginValue.agencyName == '郑州一才工作' ">
2 years ago
<div>
<span>
<i class="iconfont icon-shangjiahoutai"></i>商家后台and1.0
</span>
<i class="iconfont icon-youjiantou"></i>
</div>
2 years ago
</router-link>
2 years ago
<!-- 2023-11-29 注释该条件 && (loginValue.agencyRole == 2 || loginValue.agencyRole == 1 ) -->
<router-link to="###" v-if="loginValue.agencyName == '郑州一才工作'">
<div @click="goAdmin">
3 years ago
<span>
2 years ago
<i class="iconfont icon-shangjiahoutai"></i>商家后台
3 years ago
</span>
<i class="iconfont icon-youjiantou"></i>
4 years ago
</div>
</router-link>
4 years ago
<!-- <router-link to="/accountsetting"
4 years ago
><div>
<span
><i class="iconfont icon-zhanghaoshezhi"></i
>账号设置</span
><i class="iconfont icon-youjiantou"></i>
</div>
3 years ago
</router-link>-->
4 years ago
<button @click="logout">退</button>
</div>
</a-dropdown>
</span>
4 years ago
<span class="loginbtn" v-else>
4 years ago
<!-- <router-link to="/register">注册</router-link>/ -->
3 years ago
<router-link to="/login">
<button style="cursor: pointer">登录</button>
</router-link>
4 years ago
</span>
4 years ago
</span>
<!-- <span class="navigationright">
4 years ago
<ul>
<li>
<router-link
to="/mytownsman"
:class="routertitleindex === 4 ? 'titleactiveafter' : ''"
>我的老乡
</router-link>
</li>
<li>
<router-link
to="/mybill"
:class="routertitleindex === 5 ? 'titleactiveafter' : ''"
>我的报名
</router-link>
</li>
</ul>
3 years ago
</span>-->
4 years ago
</div>
</div>
2 years ago
<div class="fsa titleSlogan w" v-if="routertitleindex == 0 ">
<!-- <div> -->
<svg class="svg_icon" aria-hidden="true">
<use xlink:href="#icon-daotian-logo" />
</svg>
<!-- </div> -->
<div v-if="!isLogin">
2 years ago
<router-link to="/list" style="display: inline-block; width: 100%">注册/登录</router-link>
2 years ago
</div>
2 years ago
<div v-else>
<router-link to="/list" style="display: inline-block; width: 100%">进入稻田</router-link>
</div>
<!-- <span class="logined">
2 years ago
<a-dropdown overlayClassName="logindropdown" placement="bottomRight">
<span class="fsa f14 cf shadow">
2 years ago
<span class="iconfont icon-morentouxiang mr4 f32" v-if="!userbaseInfo.imgSrc"></span>
<img :src="userbaseInfo.imgSrc" class="mr4" style="border-radius:50%;width:32px;height:32px;" alt v-else />
2 years ago
<span class="ml4">{{ userbaseInfo.userName }}</span>
2 years ago
</span>
<div class="loginbox" slot="overlay">
<router-link to="/accountsetting">
<div>
<span>
<i class="iconfont icon-gerenzhongxin"></i>个人中心
</span>
<i class="iconfont icon-youjiantou"></i>
</div>
</router-link>
2 years ago
<router-link to="/merchantBack" v-if="loginValue.agencyName == '郑州一才工作' && (loginValue.agencyRole == 2 || loginValue.agencyRole == 1 )">
2 years ago
<div>
<span>
2 years ago
<i class="iconfont icon-shangjiahoutai"></i>商家后台
2 years ago
</span>
<i class="iconfont icon-youjiantou"></i>
</div>
</router-link>
<button @click="logout">退</button>
</div>
</a-dropdown>
2 years ago
</span>-->
2 years ago
</div>
4 years ago
<!-- 搜索栏 -->
3 years ago
<router-view :isspecialboxshow.sync="isspecialboxshow" :formvalue="formvalue" :jobMainList="jobMainList" :isspinning="isspinning"></router-view>
4 years ago
<!-- 老乡广告 -->
4 years ago
<!-- <div class="fellowtownsman" v-if="laoxiangshow">
4 years ago
<div class="w">
<div class="title">
<h1><span></span>老乡们都想去</h1>
</div>
<div class="main">
<div
class="jobinfobox"
v-for="(item, index) in fellowList"
:key="index"
>
4 years ago
<router-link :to="'/detail/' + item.id">
<a href="javascript:;" @click="resetpage">
<div class="imgbox">
<img v-if="item.logo" :src="item.logo" alt="" />
<img v-else src="../../../assets/nopicture.png" alt="" />
<span>服务费<i>1.3</i>/小时</span>
</div>
<div class="jobname">{{ item.aliasName }}</div>
</a>
</router-link>
4 years ago
<div class="jobinfo">
4 years ago
<span>{{ item.district }}</span>
<span>{{ item.gender }}</span>
<span>{{ item.age }}</span>
4 years ago
</div>
<div class="jobtag">
<span>返费</span>
4 years ago
<span
v-for="(item1, index) in item.jobSpecialLabelNames"
:key="index"
>{{ item1 }}</span
>
</div>
<div class="jobprice">
<template v-if="item.hourlyPay"
><span>{{ item.hourlyPayTemp / 100 }}</span
>/小时</template
>
<template v-else-if="item.dayPay"
><span>{{ item.hourlyPayTemp / 100 }}</span
>/</template
>
4 years ago
</div>
</div>
</div>
</div>
3 years ago
</div>-->
4 years ago
<!-- banner广告栏 -->
3 years ago
<!-- <div class="banner" v-if="isbannershow">
4 years ago
<div class="w">
<i class="iconfont icon-yigezhuanmenfuwudailidepingtai"></i>
</div>
3 years ago
</div>-->
4 years ago
<!-- footer部分 -->
2 years ago
<footer v-if="isfootershow" :class="loginPage ? 'footer_abs':''">
4 years ago
<div class="w">
4 years ago
<!-- <ul>
4 years ago
<li @click="totop"><router-link to="/list">一手职位</router-link></li>
4 years ago
<li></li>
4 years ago
<li @click="totop">
<router-link to="/serviceoutlets">服务网点</router-link>
</li>
4 years ago
<li></li>
4 years ago
<li @click="totop">
<router-link to="/aboutus">关于我们</router-link>
</li>
3 years ago
</ul>-->
4 years ago
<div>
2 years ago
<span>
2 years ago
Powered by
2 years ago
<svg class="svg_icon ml4" style="font-size:46px;margin-top:-2px" aria-hidden="true">
<use xlink:href="#icon-bocai2" />
</svg>Copyright © 2015-2023 Bocai. All Rights Reserved.
</span>
3 years ago
<a target="_blank" href="https://beian.miit.gov.cn/#/Integrated/index">豫ICP备2023001993号</a>
4 years ago
</div>
4 years ago
</div>
</footer>
</div>
</template>
<script>
// import joblist from "../components/firstjob/joblist.vue";
3 years ago
import Cookies from 'js-cookie'
4 years ago
import {
JobListApi,
// getCityApi,
3 years ago
} from '../api/job'
4 years ago
3 years ago
import { logoutApi } from '../api/login'
import { disposeJobListData } from '../utils/commonUtil'
4 years ago
4 years ago
export default {
3 years ago
inject: ['reload'],
4 years ago
provide() {
return {
getJobList: this.getJobList,
2 years ago
logout: this.logout,
3 years ago
}
4 years ago
},
4 years ago
// 组件名称
3 years ago
name: '',
4 years ago
// 局部注册的组件
components: {
// joblist,
},
// 组件参数 接收来自父组件的数据
props: {},
// 组件状态值
data() {
return {
4 years ago
fellowList: [],
isspinning: false,
4 years ago
isspecialboxshow: false,
4 years ago
isfootershow: true,
4 years ago
laoxiangshow: false,
4 years ago
isbannershow: true,
4 years ago
isLogin: false,
loginValue: {},
jobMainList: [],
formvalue: {
// 筛选的上传参数
district: [], // 城镇数据
monthlyPayStr: [], // 每月工资
3 years ago
ageStr: '', // 年龄数据
4 years ago
jobSpecialLabelIds: [], // 特色标签索引
3 years ago
aliasName: '',
4 years ago
sex: [],
4 years ago
pageNum: 1,
pageSize: 8,
total: null, //分页配置
},
2 years ago
userbaseInfo: JSON.parse(localStorage.getItem('LOGIN_DATA')),
loginPage: false,
routertitleindex: 0,
3 years ago
}
4 years ago
},
// 计算属性
computed: {
// routertitleindex: {
// set() {},
// get() {
// const path = this.$route.fullPath
// if (path.indexOf('serviceoutlets') > -1) {
// return 2
// } else if (path.indexOf('list') > -1 || path.indexOf('detail') > -1) {
// return 1
// } else if (path.indexOf('aboutus') > -1) {
// return 3
// } else if (path.indexOf('main') > -1) {
// return 0
// } else if (path.indexOf('mytownsman') > -1) {
// return 4
// } else if (path.indexOf('mybill') > -1) {
// return 5
// } else if (path.indexOf('dataStatistics') > -1) {
// return 6
// } else {
// return 7
// }
// },
// },
4 years ago
// isLogin() {
// return localStorage.getItem("LOGIN_DATA") !== null ? true : false;
// },
// loginValue() {
// return localStorage.getItem("LOGIN_DATA") !== null
// ? JSON.parse(localStorage.getItem("LOGIN_DATA"))
// : { tel: "" };
// return JSON.parse(data)
// },
4 years ago
},
// 侦听器
watch: {
routertitleindex() {
// const path = this.$route.fullPath
// if (path.indexOf('serviceoutlets') > -1) {
// this.laoxiangshow = true
// } else if (path.indexOf('list') > -1 || path.indexOf('detail') > -1) {
// this.laoxiangshow = true
// } else if (path.indexOf('aboutus') > -1) {
// this.laoxiangshow = false
// } else {
// this.laoxiangshow = true
// }
3 years ago
this.showfooter()
4 years ago
},
4 years ago
$route: {
4 years ago
handler(to) {
2 years ago
console.log()
4 years ago
// console.log("ischange");
// console.log(to);
// console.log(from);
// console.dir(this.navigationBarLocation);
3 years ago
window.addEventListener('scroll', this.navigationBarLocation)
window.addEventListener('scroll', this.windowScroll) //监听页面滚动
if (to.fullPath.indexOf('serviceoutlets') > -1) {
this.routertitleindex = 2
} else if (to.fullPath.indexOf('list') > -1 || to.fullPath.indexOf('detail') > -1) {
this.routertitleindex = 1
} else if (to.fullPath.indexOf('aboutus') > -1) {
this.routertitleindex = 3
} else if (to.fullPath.indexOf('main') > -1) {
this.routertitleindex = 0
} else if (to.fullPath.indexOf('mytownsman') > -1) {
this.routertitleindex = 4
} else if (to.fullPath.indexOf('mybill') > -1) {
this.routertitleindex = 5
} else if (to.fullPath.indexOf('dataStatistics') > -1) {
this.routertitleindex = 6
} else {
this.routertitleindex = 7
}
2 years ago
if (to.fullPath == '/login') {
this.loginPage = true
this.isLogin = false
2 years ago
} else {
this.loginPage = false
}
3 years ago
if (to.fullPath == '/list') {
window.removeEventListener('scroll', this.navigationBarLocation)
return
} else if (to.fullPath == '/main') {
window.removeEventListener('scroll', this.windowScroll)
return
4 years ago
}
3 years ago
window.removeEventListener('scroll', this.navigationBarLocation)
window.removeEventListener('scroll', this.windowScroll)
4 years ago
},
deep: true,
immediate: true,
4 years ago
},
4 years ago
// isLogin() {
// this.isLogin = JSON.parse(localStorage.getItem("LOGIN_DATA"));
// console.log(this.isLogin);
// },
4 years ago
},
// 生命周期钩子 注:没用到的钩子请自行删除
/**
* 组件实例创建完成属性已绑定但DOM还未生成$ el属性还不存在
*/
created() {
2 years ago
console.log(this.$route)
if (this.$route.fullPath != '/login') {
this.loginPage = false
}
3 years ago
if (localStorage.getItem('LOGIN_DATA')) {
this.isLogin = true
}
3 years ago
this.getJobList()
this.isLaoxiangshow()
this.getRecommendJob()
this.showfooter()
4 years ago
},
/**
* el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子
* 如果 root 实例挂载了一个文档内元素 mounted 被调用时 vm.el 也在文档内
*/
mounted() {
3 years ago
this.loginValue = localStorage.getItem('LOGIN_DATA') !== null ? JSON.parse(localStorage.getItem('LOGIN_DATA')) : { tel: '' }
2 years ago
console.log(this.loginValue)
4 years ago
// console.log(document.querySelector(".ant-pagination-options-quick-jumper"));
},
// 组件方法
methods: {
4 years ago
/**
* 处理后台返回的职位列表
*/
4 years ago
// windowScroll() {
// // console.log(e);
// let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;
// // console.log(scrollTop); // 获取到页面滚动的值,
// let navigation = document.getElementById("navigation");
// let content = document.getElementById("maincontent");
// // let filterbox = document.querySelector(".w");
// // console.log(filterbox);
// // console.log(content);
// // let left = ("100vw" - "1200px") / 2;
// // console.log(navigator.userAgent);
// if (this.$route.fullPath == "/list") {
// if (scrollTop >= 81) {
// navigation.style.position = "fixed";
// navigation.style.top = "0px";
// navigation.style.boxShadow = "2px 2px 4px 0px rgba(0,0,0,0.05)";
// content.style.marginTop = "64px";
// if (navigator.userAgent.indexOf("Mac OS X") == -1) {
// navigation.style.paddingLeft = "35px";
// }
// } else {
// navigation.style.position = "relative";
// navigation.style.right = "0";
// content.style.marginTop = "16px";
// navigation.style.boxShadow = "none";
// if (navigator.userAgent.indexOf("Mac OS X") == -1) {
// navigation.style.paddingLeft = "0px";
// }
// }
// }
// },
navigationBarLocation() {
3 years ago
let navigationBar = document.getElementById('navigationBar')
let aboutBill = document.getElementById('aboutBill')
// console.log(navigationBar.getBoundingClientRect().top);
4 years ago
// console.log(aboutBill);
// console.log(aboutBill.getBoundingClientRect().top);
3 years ago
if (this.$route.fullPath == '/main') {
if (navigationBar.getBoundingClientRect().top <= 0 && aboutBill.getBoundingClientRect().top < 84) {
navigationBar.style.position = 'fixed'
navigationBar.style.top = '0px'
navigationBar.style.boxShadow = '0 0 10px 0 #eee'
navigationBar.style.width = '1920px'
} else if (navigationBar.getBoundingClientRect().top == 0 && aboutBill.getBoundingClientRect().top >= 84) {
// console.log('isbig');
3 years ago
navigationBar.style.position = 'absolute'
navigationBar.style.top = 'unset'
navigationBar.style.bottom = '0px'
navigationBar.style.boxShadow = 'none'
navigationBar.style.width = '1200px'
}
}
},
4 years ago
// 获取工作列表
4 years ago
async getJobList(newdata) {
3 years ago
this.isspinning = true
console.log(this.formvalue)
4 years ago
try {
4 years ago
newdata = {
3 years ago
district: '',
monthlyPayStr: '',
ageStr: '',
jobSpecialLabelIds: '',
aliasName: '',
4 years ago
pageNum: 1,
pageSize: 8,
total: null, //分页配置
3 years ago
}
4 years ago
for (var k in this.formvalue) {
4 years ago
// console.log(this.formvalue[k]);
4 years ago
if (Array.isArray(this.formvalue[k])) {
3 years ago
newdata[k] = this.formvalue[k].length > 0 ? this.formvalue[k].join() : ''
4 years ago
} else {
3 years ago
newdata[k] = this.formvalue[k]
4 years ago
}
}
4 years ago
// console.log(newdata);
4 years ago
// debugger;
4 years ago
// console.log(this.isLogin);
4 years ago
if (this.isLogin) {
3 years ago
const { data } = await JobListApi(newdata)
4 years ago
// console.log(data);
4 years ago
if (data.status === 200) {
3 years ago
this.jobMainList = disposeJobListData(data.data.recordList)
this.formvalue.total = data.data.recordCount
console.log(this.jobMainList)
4 years ago
} else {
3 years ago
this.$message.info('数据获取失败')
4 years ago
}
4 years ago
}
3 years ago
this.totop()
4 years ago
// = data.data.recordList;
4 years ago
// console.log(this.formvalue);
4 years ago
} catch (error) {
3 years ago
console.log(error)
4 years ago
}
3 years ago
this.isspinning = false
4 years ago
},
4 years ago
totop() {
// console.log(window);
3 years ago
document.body.scrollTop = 0
document.documentElement.scrollTop = 0
4 years ago
// window.body.scrollY = 0;
},
isLaoxiangshow() {
3 years ago
const path = this.$route.fullPath
if (path.indexOf('serviceoutlets') > -1) {
this.laoxiangshow = true
} else if (path.indexOf('list') > -1 || path.indexOf('detail') > -1) {
this.laoxiangshow = true
} else if (path.indexOf('aboutus') > -1) {
this.laoxiangshow = false
4 years ago
} else {
3 years ago
this.laoxiangshow = true
4 years ago
}
},
4 years ago
async getRecommendJob() {
3 years ago
this.isspinning = true
4 years ago
try {
4 years ago
if (this.isLogin) {
const { data } = await JobListApi({
pageNum: 1,
pageSize: 4,
jobCategory: 608,
3 years ago
})
4 years ago
// console.log(data);
3 years ago
this.fellowList = disposeJobListData(data.data.recordList)
4 years ago
// console.log(this.fellowList);
4 years ago
}
4 years ago
// this.$emit("update:relationList", this.relationList);
} catch (error) {
3 years ago
console.log(error)
4 years ago
}
3 years ago
this.isspinning = false
4 years ago
},
async logout() {
// logoutApi().then((result) => {
// console.log(result);
// });
try {
3 years ago
const data = await logoutApi()
console.log(data)
4 years ago
if (data.status === 200) {
3 years ago
localStorage.removeItem('LOGIN_DATA')
this.reload()
this.$router.push('/main')
4 years ago
} else {
3 years ago
console.log(1)
4 years ago
}
// this.fellowList = disposeJobListData(data.data.recordList);
// this.isspinning = false;
// console.log(this.fellowList);
// this.$emit("update:relationList", this.relationList);
} catch (error) {
3 years ago
console.log(error)
this.$message.warning(error.message)
4 years ago
}
// console.log(data);
// if (data.status === 200) {
// localStorage.removeItem("LOGIN_DATA");
// }
},
resetpage() {
3 years ago
console.log(1)
4 years ago
setTimeout(() => {
3 years ago
this.reload()
document.body.scrollTop = 0
document.documentElement.scrollTop = 0
}, 1000)
4 years ago
},
showfooter() {
3 years ago
const path = this.$route.fullPath
4 years ago
3 years ago
if (path.indexOf('main') > -1) {
this.isbannershow = false
this.isfootershow = false
4 years ago
} else {
3 years ago
this.isbannershow = true
4 years ago
3 years ago
this.isfootershow = true
4 years ago
}
3 years ago
if (path.indexOf('login') > -1 && path.indexOf('loginpsw') == -1) {
this.isbannershow = false
4 years ago
}
4 years ago
},
4 years ago
toList() {
3 years ago
console.log(this.$router)
4 years ago
// this.$router.go(0);
4 years ago
// window.location.reload();
3 years ago
this.reload()
4 years ago
},
goAdmin() {
let obj = JSON.parse(localStorage.getItem('LOGIN_DATA'))
if (window.location.hostname == 'localhost') {
// 测试环境通过URL获取token
2 years ago
window.location.href = 'http://localhost:3000/merchantManagement/homePage?token=' + obj.token + '&username=' + (obj.user.userName ? obj.user.userName : obj.user.nickName) + '&avatar=' + obj.imgSrc + '&roleid=' + obj.user.agencyRoleId;
} else {
// 正式环境,通过缓存获取
localStorage.setItem('daotian_to_admin_token', obj.token)
localStorage.setItem('daotian_to_admin_avatar', obj.imgSrc)
2 years ago
localStorage.setItem('daotian_to_admin_username', obj.user.userName ? obj.user.userName : obj.user.nickName)
2 years ago
localStorage.setItem('daotian_to_admin_roleid', obj.user.agencyRoleId)
window.location.href = 'http://idaotian.com/dist2.0.0/#/merchantManagement/homePage'
}
},
4 years ago
},
3 years ago
}
4 years ago
</script>
<style scoped lang="less">
4 years ago
.index-container {
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
3 years ago
& > div:nth-child(2) {
flex: 1;
}
2 years ago
.titleSlogan {
position: absolute;
left: 50%;
2 years ago
top: -6px;
2 years ago
// padding-top: 32px;
transform: translateX(-50%);
z-index: 9;
svg {
font-size: 120px;
}
div {
2 years ago
// width: 68px;
height: 32px;
padding: 0 16px;
2 years ago
font-size: 14px;
2 years ago
line-height: 30px;
2 years ago
text-align: center;
border-radius: 999px;
cursor: pointer;
color: #fff;
border: 1px solid #fff;
text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
background-color: rgba(255, 255, 255, 0);
transition: all 0.3s;
&:hover {
// background-color: rgba(255, 255, 255, 0.3);
background-color: #ff4400;
border-color: transparent;
}
}
}
4 years ago
/deep/ .pagetitle {
4 years ago
background-color: #f0f0f0;
padding: 0;
2 years ago
height: 64px;
2 years ago
display: flex;
align-items: center;
4 years ago
// height: 32px;
4 years ago
// width: 100vw;
4 years ago
// font-size: 16px;
4 years ago
.titleactive {
4 years ago
// font-size: 18px;
2 years ago
font-weight: bold;
// font-weight: normal;
4 years ago
color: #ff4400;
4 years ago
}
4 years ago
.w {
overflow: hidden;
// display: flex;
// justify-content: space-between;
// line-height: 36px;
4 years ago
2 years ago
.titleTag {
2 years ago
font-size: 16px;
2 years ago
display: flex;
margin-left: 150px;
li {
2 years ago
font-weight: normal;
color: #666;
margin-right: 32px;
line-height: 64px;
2 years ago
// text-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.05);
4 years ago
2 years ago
a {
transition: none;
&:hover {
color: #ff4400;
4 years ago
}
4 years ago
}
}
2 years ago
}
4 years ago
.navigationright {
float: right;
margin-right: 24px;
font-size: 16px;
ul {
display: flex;
text-align: center;
line-height: 52px;
4 years ago
4 years ago
li {
cursor: pointer;
a.titleactiveafter {
font-size: 16px;
font-weight: bold;
4 years ago
color: #ff4400;
4 years ago
}
a:hover {
4 years ago
color: #ff4400;
4 years ago
}
&:first-child {
margin-right: 24px;
}
}
}
}
4 years ago
4 years ago
.login {
4 years ago
float: right;
4 years ago
// width: 36px;
4 years ago
line-height: 24px;
4 years ago
.loginbtn {
width: 70px;
}
4 years ago
.loginbtn {
margin-top: 02px;
button {
width: 70px;
height: 24px;
font-size: 12px;
3 years ago
margin-top: 5px;
4 years ago
background-color: #fff;
border: 1px solid #ff4400;
line-height: 22px;
4 years ago
border-radius: 999px;
4 years ago
color: #ff4400;
4 years ago
text-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.05);
4 years ago
&:hover {
4 years ago
border-color: rgba(255, 68, 0, 0.8);
color: rgba(255, 68, 0, 0.8);
4 years ago
}
}
}
4 years ago
.logined {
// border-radius: 999px;
overflow: hidden;
border: 1px solid #eee;
3 years ago
line-height: 38px;
/*margin-top: 4px;*/
2 years ago
font-size: 14px;
4 years ago
cursor: default;
&:hover {
color: #ff4400;
}
// width: 24px;
// height: 24px;
img {
width: 24px;
height: 24px;
}
// span {
// width: 36px;
// height: 36px;
// margin-top: 4px;
// // margin-left: 33px;
// border-radius: 999px;
// // background-color: #ff4400;
// margin-right: -3px;
// text-align: center;
// }
// i {
// font-size: 32px;
// line-height: 30px;
// color: #ff4400;
// cursor: pointer;
// &:hover {
// color: #ff4400;
// }
// }
4 years ago
}
4 years ago
}
4 years ago
}
}
4 years ago
.fellowtownsman {
// height: 641px;
background: #ffffff;
.w {
padding: 30px 0;
.title {
font-size: 24px;
text-align: left;
color: #4d575e;
line-height: 56px;
h1 {
4 years ago
span {
4 years ago
display: inline-block;
vertical-align: middle;
margin-top: -4px;
width: 4px;
height: 25px;
margin-right: 8px;
4 years ago
background: #ff4400;
4 years ago
}
}
4 years ago
}
.main {
display: flex;
justify-content: start;
margin-top: 30px;
.jobinfobox {
width: 288px;
// height: 385px;
margin-bottom: 16px;
margin-right: 20px;
background: #ffffff;
border: 1px solid rgba(77, 87, 94, 0.1);
border-radius: 4px;
padding: 20px;
.imgbox {
position: relative;
width: 248px;
height: 186px;
img {
width: 100%;
height: 100%;
}
span {
position: absolute;
padding: 0 10px;
// width: 149px;
height: 28px;
left: 0;
bottom: 0;
4 years ago
background: #ff4400;
4 years ago
border-radius: 16px 16px 16px 0px;
font-size: 16px;
text-align: center;
color: #ffffff;
line-height: 28px;
}
4 years ago
}
4 years ago
.jobname {
height: 52px;
// margin: 12px 0;
font-size: 20px;
4 years ago
font-weight: normal;
4 years ago
text-align: left;
color: #4d575e;
line-height: 52px;
border-bottom: 1px solid #f2f0ec;
4 years ago
}
4 years ago
.jobinfo {
margin-top: 11px;
opacity: 0.5;
font-size: 18px;
text-align: left;
color: #4d575e;
line-height: 22px;
}
.jobtag {
margin-top: 12px;
text-align: left;
span:first-child {
4 years ago
color: #ff4400;
4 years ago
background: rgba(254, 97, 0, 0.1);
}
span {
margin-right: 8px;
font-size: 16px;
padding: 3px 8px;
background: rgba(51, 51, 51, 0.06);
border-radius: 4px;
}
}
.jobprice {
margin-top: 12px;
font-size: 18px;
4 years ago
font-weight: normal;
4 years ago
text-align: left;
4 years ago
color: #ff4400;
4 years ago
line-height: 25px;
span {
font-size: 22px;
}
4 years ago
}
}
}
}
}
4 years ago
.banner {
height: 72px;
margin-top: 20px;
4 years ago
background-color: #ff4400;
4 years ago
margin-bottom: -20px;
4 years ago
.w {
4 years ago
display: flex;
4 years ago
height: 100%;
4 years ago
justify-content: center;
4 years ago
align-items: center;
i {
font-size: 32px;
color: #fff;
4 years ago
}
4 years ago
img:last-child {
width: 173px;
height: 42px;
margin-right: 110px;
4 years ago
}
}
4 years ago
// background-color: black;
}
2 years ago
.footer_abs {
position: absolute;
left: 50%;
bottom: 0;
transform: translateX(-50%);
}
4 years ago
footer {
2 years ago
padding: 40px 30px;
4 years ago
margin-top: 20px;
4 years ago
.w {
ul {
display: flex;
justify-content: center;
li {
4 years ago
font-size: 16px;
4 years ago
text-align: center;
color: #4d575e;
line-height: 25px;
}
li:nth-of-type(2n) {
width: 1px;
height: 20px;
4 years ago
margin: 5px 54px;
4 years ago
background-color: #4d575e;
}
}
div {
text-align: center;
4 years ago
// margin-top: 16px;
4 years ago
color: #4d575e;
2 years ago
font-size: 12px;
4 years ago
i {
display: inline-block;
vertical-align: middle;
width: 1px;
4 years ago
height: 16px;
4 years ago
margin: 0 10px;
background-color: #4d575e;
}
}
4 years ago
}
}
}
4 years ago
.loginbox {
line-height: 36px;
> div:first-child {
display: flex;
align-items: center;
padding: 16px 0;
4 years ago
img {
width: 24px;
height: 24px;
margin-right: 8px;
}
4 years ago
}
.username {
max-width: 120px;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.avatar {
display: block;
line-height: 24px;
font-size: 24px !important;
4 years ago
color: #ff4400;
4 years ago
margin-right: 8px;
}
a {
div {
padding: 10px 0;
align-items: center;
}
}
button {
line-height: 28px;
4 years ago
&:hover {
border-color: #ff4400;
}
4 years ago
}
}
2 years ago
.shadow:hover {
cursor: default;
// text-shadow: 4px 4px 4px #000;
transform: scale(1.05);
img {
// box-shadow: 3px 3px 3px 3px #00000033;
}
}
2 years ago
.f40 {
/deep/ .ant-table {
.ant-table-thead > tr > th .ant-table-column-sorter .ant-table-column-sorter-inner .ant-table-column-sorter-up.on,
.ant-table-thead > tr > th .ant-table-column-sorter .ant-table-column-sorter-inner .ant-table-column-sorter-down.on {
color: #ff4400;
}
.ant-table-thead > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td,
.ant-table-tbody > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td,
.ant-table-thead > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td,
.ant-table-tbody > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td {
background: #fff3ef;
}
.ant-radio-checked .ant-radio-inner {
border-color: #ff4400 !important;
box-shadow: none !important;
}
.ant-radio-checked .ant-radio-inner::after {
background-color: #ff4400 !important;
}
.ant-radio:hover .ant-radio-inner {
border-color: #ff4400 !important;
box-shadow: none;
}
.ant-radio-checked .ant-radio-inner::after {
background-color: #ff4400 !important;
}
.ant-radio-checked:hover .ant-radio-inner {
border-color: #ff4400 !important;
}
.ant-radio {
border-color: #ddd !important;
box-shadow: none !important;
}
.ant-btn-primary:hover {
border-color: #ff4400;
background-color: #ff5416;
color: #fff;
}
.ant-input:hover {
border-color: #ff4400;
}
}
}
.user-box:hover{
cursor: pointer;
color: #ff4400 !important;
}
4 years ago
</style>