This commit is contained in:
zxy
2024-02-20 09:57:09 +08:00
4 changed files with 67 additions and 47 deletions

View File

@@ -5,7 +5,10 @@
"path" : "pages/index/index", "path" : "pages/index/index",
"style" : { "style" : {
"enablePullDownRefresh" : true, "enablePullDownRefresh" : true,
"navigationBarBackgroundColor" : "#FFFFFF" "navigationBarBackgroundColor" : "#FFFFFF",
"navigationBarShadow": {
"colorType": "none"
}
} }
}, },
{ {

View File

@@ -1,47 +1,51 @@
<template> <template>
<view class="home-body"> <view class="home-body">
<uni-nav-bar :shadow="false" > <view class="body_header">
<view class="headd" @click="goSeach"> <view class="home_logo"> </view>
<!-- <image src="../../static/img/search.svg" style="width: 32rpx;height: 32rpx; color: blue;" mode=""></image> --> <uni-nav-bar :shadow="false" backgroundColor="transparent">
<view class="headd_left"> <view class="headd" @click="goSeach">
<u-icon name="search" color="#2297fa" size="24"></u-icon> <!-- <image src="../../static/img/search.svg" style="width: 32rpx;height: 32rpx; color: blue;" mode=""></image> -->
<input placeholder-class="search_style" type="text" confirm-type="搜索" v-model="keywords" placeholder="搜任务/搜岗位/搜政策/搜资讯" /> <view class="headd_left">
</view> <u-icon name="search" color="#2297fa" size="24"></u-icon>
<view class="headd_right"> <input placeholder-class="search_style" type="text" confirm-type="搜索" v-model="keywords" placeholder="搜任务/搜岗位/搜政策/搜资讯" />
搜索 </view>
</view> <view class="headd_right">
</view> 搜索
</uni-nav-bar> </view>
<view class="homeHead"> </view>
<view class="headSwiper"> </uni-nav-bar>
<swiper :indicator-dots="true" indicator-active-color="#fff" indicator-color="rgba(255,255,255,0.80)" :autoplay="true" <!-- <view class="homeHead"> -->
:interval="3000" :duration="1000" class="yswiper" :circular="true"> <view class="headSwiper">
<swiper-item v-for="(item,index) in swiperList" :key="index" v-if="item.isShow !== '2'"> <swiper :indicator-dots="true" indicator-active-color="#fff" indicator-color="rgba(255,255,255,0.80)" :autoplay="true"
<view class="swiper-item"> :interval="3000" :duration="1000" class="yswiper" :circular="true">
<image :src="item.image" mode="" class="swiperImg"></image> <swiper-item v-for="(item,index) in swiperList" :key="index" v-if="item.isShow !== '2'">
</view> <view class="swiper-item">
</swiper-item> <image :src="item.image" mode="" class="swiperImg"></image>
</swiper> </view>
</view> </swiper-item>
<view class="newPolicy" v-if="policyContentList.length!=0"> </swiper>
<view class="policyContent"> </view>
<view class="policyImgIndex"> <view class="newPolicy" v-if="policyContentList.length!=0">
<image src="../../static/img/index/newPolicy.png"></image> <view class="policyContent">
</view> <view class="policyImgIndex">
<swiper style="width: 100%;height: 100rpx; line-height: 100rpx;margin-left: 164rpx;" :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" :vertical="true" :circular="true"> <image src="../../static/img/index/newPolicy.png"></image>
<swiper-item v-for="(item,index) in policyContentList" :key="index" @click="goPolicyInfo(item.id)"> </view>
<view class="swiper-item"> <swiper style="width: 100%;height: 100rpx; line-height: 100rpx;margin-left: 164rpx;" :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" :vertical="true" :circular="true">
<view class="policyText"> <swiper-item v-for="(item,index) in policyContentList" :key="index" @click="goPolicyInfo(item.id)">
<view class="textTitle">{{item.articleTitle}}</view> <view class="swiper-item">
<view class="textDate">{{dateFormat(item.createTime)}}</view> <view class="policyText">
<image src="../../static/img/right.svg" mode="" style="width: 18rpx;height: 32rpx;position:absolute;top: 12rpx;right:0;"></image> <view class="textTitle">{{item.articleTitle}}</view>
</view> <view class="textDate">{{dateFormat(item.createTime)}}</view>
</view> <image src="../../static/img/right.svg" mode="" style="width: 18rpx;height: 32rpx;position:absolute;top: 12rpx;right:0;"></image>
</swiper-item> </view>
</swiper> </view>
</view> </swiper-item>
</view> </swiper>
</view> </view>
</view>
<!-- </view> -->
</view>
<view class="jobService"> <view class="jobService">
<view class="cardTips">就业服务</view> <view class="cardTips">就业服务</view>
@@ -503,6 +507,18 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.home_logo{
background: url(@/static/img/index/inLogo.png) no-repeat center center;
background-size: cover;
height: 60rpx;
width: 400rpx;
margin: 24rpx 24rpx 24rpx 24rpx;
}
.body_header{
background: url(@/static/img/index/bannerBg.png) no-repeat center center;
background-size: 100% 100%;
padding-top: 24rpx;
}
.search_style{ .search_style{
color: #2297fa; color: #2297fa;
} }
@@ -525,16 +541,16 @@
} }
.headd { .headd {
background-color: #f6f6f6; // background-color: #f6f6f6;
border-radius: 200rpx; border-radius: 200rpx;
border: 2rpx solid #2297fa; border: 4rpx solid #2297fa;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin: 0 auto; margin: 0 auto;
width: 690rpx; width: 690rpx;
margin-right: auto; margin-right: auto;
height: 60rpx; height: 80rpx;
.headd_left{ .headd_left{
padding-left: 15rpx; padding-left: 15rpx;
display: flex; display: flex;
@@ -556,7 +572,7 @@
content: ''; content: '';
left: 0; left: 0;
top: calc(50% - 15rpx); top: calc(50% - 15rpx);
width: 2rpx; width: 4rpx;
height: 30rpx; height: 30rpx;
background-color: #2297fa; background-color: #2297fa;
@@ -572,6 +588,7 @@
width: 690rpx; width: 690rpx;
height: 260rpx; height: 260rpx;
margin: 20rpx auto; margin: 20rpx auto;
border-radius: 30rpx;
} }
.yswiper { .yswiper {

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

BIN
static/img/index/inLogo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB