feat: 为政策详情、政策列表和首页页面增加H5/PC适配样式、隐藏滚动条,并为政策详情和列表接口失败时添加H5/APP-PLUS测试数据。
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
-->
|
||||
<template>
|
||||
<!-- @scroll="handleScroll" @scrolltolower="scrollBottom" -->
|
||||
<scroll-view :scroll-y="true" class="container" style="background-image: url(../../../packageRc/static/pageBgIndex.png);">
|
||||
<scroll-view :scroll-y="true" class="container h5-pc-container" :show-scrollbar="false" style="background-image: url(../../../packageRc/static/pageBgIndex.png);">
|
||||
<view style="padding: 40rpx 28rpx;">
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<view class="kinggang">
|
||||
@@ -133,6 +133,8 @@ onMounted(()=>{
|
||||
getPolicy();
|
||||
})
|
||||
|
||||
|
||||
|
||||
function goCa(){
|
||||
if (checkLogin()) {
|
||||
const userInfo = uni.getStorageSync('userInfo')
|
||||
@@ -240,6 +242,14 @@ function nextDetail(job) {
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
/* 隐藏滚动条 */
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
-webkit-appearance: none;
|
||||
background: transparent;
|
||||
}
|
||||
view{box-sizing: border-box;display: block;}
|
||||
.container{
|
||||
background-color: #F4F4F4;background-position: top center;background-size: 100% auto;
|
||||
@@ -414,4 +424,70 @@ view{box-sizing: border-box;display: block;}
|
||||
transform: translateX(50%);
|
||||
}
|
||||
}
|
||||
|
||||
/* #ifdef H5 */
|
||||
.h5-pc-container {
|
||||
& > view {
|
||||
width: 80% !important;
|
||||
margin: 0 auto !important;
|
||||
padding-left: 0 !important;
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
|
||||
.showtab {
|
||||
margin-bottom: 80rpx;
|
||||
height: 300rpx;
|
||||
.tabItem {
|
||||
height: 300rpx !important;
|
||||
image:first-child {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tabs {
|
||||
margin-bottom: 80rpx;
|
||||
height: 120rpx;
|
||||
.tab {
|
||||
line-height: 112rpx !important;
|
||||
font-size: 38rpx !important;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.titles {
|
||||
margin-bottom: 80rpx;
|
||||
.title-item {
|
||||
font-size: 42rpx !important;
|
||||
margin-right: 80rpx !important;
|
||||
>view {
|
||||
padding: 0 24rpx !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.job-list {
|
||||
padding: 48rpx !important;
|
||||
margin-bottom: 40rpx !important;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 42rpx !important;
|
||||
}
|
||||
.infos view {
|
||||
font-size: 34rpx !important;
|
||||
line-height: 56rpx !important;
|
||||
padding: 8rpx 24rpx !important;
|
||||
}
|
||||
.salary {
|
||||
font-size: 40rpx !important;
|
||||
}
|
||||
.bottom-line {
|
||||
font-size: 32rpx !important;
|
||||
margin-top: 24rpx !important;
|
||||
}
|
||||
}
|
||||
/* #endif */
|
||||
</style>
|
||||
Reference in New Issue
Block a user