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.

233 lines
6.0 KiB
Vue

4 years ago
<template>
<div class="serviceoutlets-container">
<div class="maincontent w">
<div class="maincontentleft">
<div class="subset">
<div class="imgbox">
<img src="../../assets/伯才人力-郑州.png" alt="" />
</div>
<div class="outletsinfobox">
<div class="outletsname">伯才人力郑州旗舰店</div>
<p class="outletsinfo">
一个自营+撮合的B2B人力资源供应链协同平台团队通过数据挖掘
算法优化等IT技术构建多角色参与的复杂协同网络为劳动密集型的
服务业企业提供RPOBPOHRO等人力资源服务
</p>
<div class="bottombox">
<div class="outletslocation">
<i class="iconfont icon-dingwei"></i
>河南省郑州市航空港区XX街道XX号
</div>
<button>录单</button>
</div>
</div>
</div>
<div class="subset">
<div class="imgbox">
<img src="../../assets/伯才人力-许昌.png" alt="" />
</div>
<div class="outletsinfobox">
<div class="outletsname">伯才人力许昌服务店</div>
<p class="outletsinfo">
一个自营+撮合的B2B人力资源供应链协同平台团队通过数据挖掘
算法优化等IT技术构建多角色参与的复杂协同网络为劳动密集型的
服务业企业提供RPOBPOHRO等人力资源服务
</p>
<div class="bottombox">
4 years ago
<div class="outletslocation" @click="tomap">
4 years ago
<i class="iconfont icon-dingwei"></i
4 years ago
><span ref="maplocation">河南省许昌市襄城县XX街道XX号</span>
4 years ago
</div>
<button>录单</button>
</div>
</div>
</div>
</div>
<div class="maincontentright">
<div class="hotphone">
<h1>服务热线</h1>
<p>0371-666666666</p>
</div>
4 years ago
<recommend :relationList="relationList" />
4 years ago
</div>
</div>
</div>
</template>
<script>
4 years ago
import recommend from "@/components/FirstJob/components/recommend.vue";
4 years ago
export default {
// 组件名称
name: "",
// 局部注册的组件
4 years ago
components: {
recommend,
},
4 years ago
// 组件参数 接收来自父组件的数据
props: {},
// 组件状态值
data() {
return {
relationList: [1, 2, 3],
4 years ago
searchurl:
"http://api.map.baidu.com/geocoder?output=html&src=webapp.baidu.openAPIdemo&address=",
4 years ago
};
},
// 计算属性
computed: {},
// 侦听器
watch: {},
// 生命周期钩子 注:没用到的钩子请自行删除
/**
* 组件实例创建完成属性已绑定但DOM还未生成$ el属性还不存在
*/
created() {},
/**
* el 被新创建的 vm.el 替换并挂载到实例上去之后调用该钩子
* 如果 root 实例挂载了一个文档内元素 mounted 被调用时 vm.el 也在文档内
*/
mounted() {},
// 组件方法
4 years ago
methods: {
tomap() {
const value = this.$refs.maplocation.innerHTML;
// console.log(this.$refs.maplocation.innerHTML);
console.log(this.searchrl);
window.location.href = this.searchurl + value;
},
},
4 years ago
};
</script>
<style scoped lang="less">
/deep/ .maincontent {
display: flex;
justify-content: space-between;
margin-top: 16px;
.maincontentleft {
width: 914px;
margin-right: 16px;
text-align: left;
.subset {
display: flex;
justify-content: space-between;
width: 914px;
height: 226px;
padding: 20px;
margin-bottom: 16px;
background: #ffffff;
border-radius: 4px;
.imgbox {
width: 248px;
height: 186px;
margin-right: 20px;
img {
width: 100%;
height: 100%;
}
}
.outletsinfobox {
flex: 1;
.outletsname {
font-size: 20px;
font-weight: bold;
text-align: left;
color: #4d575e;
line-height: 30px;
}
.outletsinfo {
margin-top: 16px;
4 years ago
font-size: 16px;
4 years ago
text-align: left;
4 years ago
color: #4d575ecc;
line-height: 24px;
4 years ago
}
.bottombox {
display: flex;
justify-content: space-between;
margin-top: 30px;
.outletslocation {
color: #ff6a00;
// line-height: 22px;
i {
vertical-align: bottom;
font-size: 22px;
margin-right: 12px;
}
}
button {
padding: 5px 20px;
border: 1px solid #ff6a00;
font-size: 16px;
color: #ff6a00;
background-color: #fff;
border-radius: 4px;
}
}
}
}
.pagecontainer {
text-align: center;
margin-bottom: 80px;
.ant-pagination-item {
border: none;
a:hover {
4 years ago
color: #ff6a00;
4 years ago
}
}
.ant-pagination-item-active {
4 years ago
background: #ff6a00;
4 years ago
a {
color: white;
}
a:hover {
color: white;
}
}
.ant-pagination-item-link {
border: none;
}
}
}
.maincontentright {
> div {
margin-bottom: 16px;
}
.hotphone {
width: 270px;
height: 106px;
padding: 20px 32px;
border-radius: 4px;
background-color: #fff;
p {
font-size: 24px;
color: #ff6a00;
font-weight: bold;
margin-top: 12px;
}
}
.relationme {
width: 270px;
height: 110px;
padding: 20px 40px;
background: #ffffff;
border-radius: 4px;
button {
width: 190px;
height: 32px;
margin-top: 16px;
font-size: 18px;
line-height: 20px;
border-radius: 4px;
border: 0;
background-color: #ff6a00;
color: #fff;
}
}
}
}
</style>