zhengkaixin 1 年之前
父节点
当前提交
1eb0b2dd03

+ 8 - 0
apis/weixin.js

@@ -70,3 +70,11 @@ export function decryptData(data) {
 		method: 'post',
 		method: 'post',
 	})
 	})
 }
 }
+
+export function newsList(data) {
+ 	return request({
+ 		method: 'post',
+ 		data: data,
+ 		url: '/mobile/news/newsList'
+ 	})
+}

+ 29 - 1
main.js

@@ -16,7 +16,10 @@ import uView from '@/uni_modules/uview-ui'
 
 
 Vue.use(uView);
 Vue.use(uView);
 
 
-
+	import {
+		newDate,
+	
+	} from '@/apis/utils'
 Vue.mixin({
 Vue.mixin({
 	updated: function() {
 	updated: function() {
 		
 		
@@ -32,7 +35,19 @@ Vue.mixin({
 
 
 	},
 	},
 	methods: {
 	methods: {
+		getLastTime(time){
+			
+			if(!time){
+				return false
+			}
+			var oldTime=newDate(time)
+			var nowTime=new Date()
+			// console.log(time)
+			// console.log(nowTime-oldTime)
+			return nowTime-oldTime<24*60*60*1000*3
+		},
 		getPersonName(name,item){
 		getPersonName(name,item){
+			console.log(item)
 			var thisname=name
 			var thisname=name
 			if(item.isAnonymous){
 			if(item.isAnonymous){
 				thisname=name.substring(0,1)+(item.gender==1?'先生':'女士');
 				thisname=name.substring(0,1)+(item.gender==1?'先生':'女士');
@@ -61,6 +76,19 @@ Vue.mixin({
 			}
 			}
 			
 			
 			return  ''
 			return  ''
+		},
+		clickBanner(index,list) {
+				
+			var mod = list[index]
+			
+			if(mod){
+				if(mod.content){
+					
+					uni.navigateTo({
+						url:'/pages/packages/news/articleDetail?id='+mod.id
+					})
+				}
+			}
 		},
 		},
 		gotoUrl(url,tab) {
 		gotoUrl(url,tab) {
 			uni.navigateTo({
 			uni.navigateTo({

+ 537 - 518
pages/main/index/index.vue

@@ -1,521 +1,540 @@
-<template>
-	<view>
-		<u-navbar back-text="荆州经开区共享用工平台" :customBack="customBack" :background="background"
-			:back-text-style="backColor"></u-navbar>
-
-
-
-		<!-- 头部 -->
-		<view class="top">
-			<!-- 搜索框 -->
-			<view class="search">
-				<u-search placeholder="请输入找工关键字" @focus="gotoUrl('pages/packages/search/search?type=1')"
-					:show-action="false"></u-search>
-			</view>
-
-		</view>
-		<!-- 幻灯片 -->
-		<view class="swiper">
-			<u-swiper :list="bannerlist" @click="clickBanner"  ></u-swiper>
-
-		</view>
-		<!-- 功能区 -->
-		<view class="function">
-			<view class="function-item" @click="gotoUrl('pages/tab/choreInformation/choreInformation')">
-				<view class="icon-box icon-box3">
-
-					<view class="icon">
-						<img src="@/assets/img/riFill-contacts-book-2-fill@1x.png" alt="">
-					</view>
-
-				</view>
-				<view class="item-text">
-					零工驿站
-				</view>
-			</view>
-			<view class="function-item" @click="gotoUrl('pages/packages/news/news?t=3&title=爱心驿站')">
-				<view class="icon-box icon-box2">
-
-					<view class="icon">
-						<img src="@/assets/img/riFill-heart-2-fill@1x.png" alt="">
-					</view>
-
-				</view>
-				<view class="item-text">
-					爱心驿站
-				</view>
-			</view>
-			<view class="function-item" @click="gotoUrl('pages/packages/shareEmployment/shareEmployment')">
-				<view class="icon-box">
-					<view class="icon">
-						<img src="@/assets/img/riFill-cloud-fill@1x.png" alt="">
-					</view>
-				</view>
-
-				<view class="item-text">
-					共享用工
-				</view>
-			</view>
-
-			<view class="function-item" @click="gotoUrl('pages/packages/skillTraining/skillTraining')">
-				<view class="icon-box icon-box4">
-
-					<view class="icon">
-						<img src="@/assets/img/riFill-tools-fill@1x.png" alt="">
-					</view>
-
-				</view>
-				<view class="item-text">
-					技能培训
-				</view>
-			</view>
-			<view class="function-item" @click="gotoUrl('pages/packages/news/news?t=1&title=政策发布')">
-				<view class="icon-box icon-box5">
-
-					<view class="icon">
-						<img src="@/assets/img/riFill-newspaper-fill@1x.png" alt="">
-					</view>
-
-				</view>
-				<view class="item-text">
-					政策发布
-				</view>
-			</view>
-
-
-		</view>
-
-		<!-- 标签 -->
-		<view class="tabs">
-			<view class="title">
-				<u-tabs bg-color="#F0F0F2" :list="tabList" :is-scroll="false" :current="current"
-					@change="change"></u-tabs>
-				<view class="more" @click="gotoUrl('pages/tab/jobInformation/jobInformation')">
-					更多
-					<u-icon name="arrow-right"></u-icon>
-				</view>
-
-			</view>
-			<!-- 卡片 -->
-			<view class="classify-card">
-				<view class="item" v-for="(item,i) in showList" :key="i"
-				 
-				 @click="gotoUrl('pages/packages/jobInformation/jobDetails?id='+item.id)">
-					<view class="content-1">
-						<!-- 职位 -->
-						<view class="position">
-						<span class="tophot" v-if="false" >置顶</span>	{{item.positionName}}
-						</view>
-						<!-- 薪水 -->
-						<view class="salary">
-							{{item.salary}}{{getUnit(item)}}
-						</view>
-					</view>
-					<view class="content-2">
-						<!-- 标签 -->
-						<view class="tag">
-							<view class="tag-item">
-								{{item.workArea}}
-							</view>
-							<view class="tag-item">
-								{{item.settlementMethodN}}
-							</view>
-							<view class="tag-item">
-								{{item.industryN}}
-							</view>
-							
-						</view>
-						<!-- 日期 -->
-						<view class="date">
-							{{getTime(item)}}
-						</view>
-					</view>
-					<view class="content-3">
-						<view class="issuer">
-							{{item.contacts}}
-						</view>
-						<view class="address">
-							{{item.address}}
-						</view>
-					</view>
-				</view>
-
-			</view>
-			
-		<u-divider style="margin-top: 10px;"
-		 :isnone="showList.length==0" nonetext="没有找到相关内容" 
-		 @click="gotoUrl('pages/tab/jobInformation/jobInformation')"
-		border-color="#CFD2D5">查看更多</u-divider>
-		</view>
-		
-		<tabbar :current="0"></tabbar>
-
-	</view>
-
-
-
-</template>
-
-<script>
-	import * as API from '@/apis/pagejs/main.js'
-	import tabbar from "@/components/Tabbar.vue"
-	import * as API_weixin from '@/apis/weixin.js'
-
-	export default {
-		components: {
-			tabbar
-		},
-		onShareTimeline(){
-			return {
-				title: "荆州经开区共享用工平台",
-			}
-		},
-		onShareAppMessage(res) {
-			if (res.from === 'button') { // 来自页面内分享按钮
-				//.log(res.target)
-			}
-			return {
-				title: "荆州经开区共享用工平台",
-				path: '/pages/main/index/index' 
-			}
-		},
-		data() {
-			return {
-				keyword: '',
-				// 导航栏背景
-				background: {
-					backgroundColor: '#2795FD',
-				},
-				backColor: {
-					color: '#ffffff'
-				},
-				bannerlist: [
-				],
-				tabList: [{
-					name: '最新',
-					value:"",
-					list:[],
-					recordsTotal:0
-				}, {
-					name: '日结',
-					unit:"日",
-					value:"1",
-					list:[],
-					recordsTotal:0
-				}, {
-					name: '周结',
-					unit:"周",
-					value:"2",
-					list:[],
-					recordsTotal:0
-
-				}, {
-					name: '月结',
-					unit:"月",
-					value:"3",
-					list:[],
-					recordsTotal:0
-				}],
-				
-				current: 0,
-				homeList:[],
-				
-			}
-		},
-		onShow(){
-			this.findRecruitHomePage();
-		},
-		onLoad(op) {
-			
-			
-			this.getBannerList()
-			this.findByOpenId(op);
-		},
-		computed:{
-			showRecordsTotal(){
-				return this.tabList[this.current].recordsTotal
-			},
-			showList(){
-				return this.tabList[this.current].list
-			}
-		},
-		onReachBottom() {
-			uni.navigateTo({
-				url:"/pages/tab/jobInformation/jobInformation"
-			})
-		},
-		methods: {
-			clickBanner(index,list) {
+<template>
+	<view>
+		<u-navbar back-text="荆州经开区共享用工平台" :customBack="customBack" :background="background"
+			:back-text-style="backColor"></u-navbar>
+
+
+
+		<!-- 头部 -->
+		<view class="top">
+			<!-- 搜索框 -->
+			<view class="search">
+				<u-search placeholder="请输入找工关键字" @focus="gotoUrl('pages/packages/search/search?type=1')"
+					:show-action="false"></u-search>
+			</view>
+
+		</view>
+		<!-- 幻灯片 -->
+		<view class="swiper" v-if="bannerlist.length">
+			<u-swiper  img-mode="scaleToFill"  mode="none" :list="bannerlist" @click="clickBanner"></u-swiper>
+
+		</view>
+		<!-- 功能区 -->
+		<view class="function">
+			<view class="function-item" @click="gotoUrl('pages/tab/choreInformation/choreInformation')">
+				<view class="icon-box icon-box3">
+
+					<view class="icon">
+						<img src="@/assets/img/riFill-contacts-book-2-fill@1x.png" alt="">
+					</view>
+
+				</view>
+				<view class="item-text">
+					零工驿站
+				</view>
+			</view>
+			<view class="function-item" @click="gotoUrl('pages/packages/news/news?t=3&title=爱心驿站')">
+				<view class="icon-box icon-box2">
+
+					<view class="icon">
+						<img src="@/assets/img/riFill-heart-2-fill@1x.png" alt="">
+					</view>
+
+				</view>
+				<view class="item-text">
+					爱心驿站
+				</view>
+			</view>
+			<view class="function-item" @click="gotoUrl('pages/packages/shareEmployment/shareEmployment')">
+				<view class="icon-box">
+					<view class="icon">
+						<img src="@/assets/img/riFill-cloud-fill@1x.png" alt="">
+					</view>
+				</view>
+
+				<view class="item-text">
+					共享用工
+				</view>
+			</view>
+
+			<view class="function-item" @click="gotoUrl('pages/packages/skillTraining/skillTraining')">
+				<view class="icon-box icon-box4">
+
+					<view class="icon">
+						<img src="@/assets/img/riFill-tools-fill@1x.png" alt="">
+					</view>
+
+				</view>
+				<view class="item-text">
+					技能培训
+				</view>
+			</view>
+			<view class="function-item" @click="gotoUrl('pages/packages/news/news?t=1&title=政策发布')">
+				<view class="icon-box icon-box5">
+
+					<view class="icon">
+						<img src="@/assets/img/riFill-newspaper-fill@1x.png" alt="">
+					</view>
+
+				</view>
+				<view class="item-text">
+					政策发布
+				</view>
+			</view>
+
+
+		</view>
+
+		<!-- 标签 -->
+		<view class="tabs">
+			<view class="title">
+				<u-tabs bg-color="#F0F0F2" :list="tabList" :is-scroll="false" :current="current"
+					@change="change"></u-tabs>
+				<view class="more" @click="gotoUrl('pages/tab/jobInformation/jobInformation')">
+					更多
+					<u-icon name="arrow-right"></u-icon>
+				</view>
+
+			</view>
+			<!-- 卡片 -->
+			<view class="classify-card">
+				<view class="item" v-for="(item,i) in showList" :key="i"
+					@click="gotoUrl('pages/packages/jobInformation/jobDetails?id='+item.id)">
+					<view class="content-1">
+						<!-- 职位 -->
+						<view class="position">
+							<span class="tophot" v-if="false">置顶</span> {{item.positionName}}
+						</view>
+						<!-- 薪水 -->
+						<view class="salary">
+							{{item.salary}}{{getUnit(item)}}
+						</view>
+					</view>
+					<view class="content-2">
+						<!-- 标签 -->
+						<view class="tag">
+
+							<view class="tag-item tag-item2" v-if="getLastTime(item.lastLoginTime)">
+								活跃
+							</view>
+							<view class="tag-item">
+								{{item.workArea}}
+							</view>
+							<view class="tag-item">
+								{{item.settlementMethodN}}
+							</view>
+							<view class="tag-item">
+								{{item.industryN}}
+							</view>
+
+						</view>
+						<!-- 日期 -->
+						<view class="date">
+							{{getTime(item)}}
+						</view>
+					</view>
+					<view class="content-3">
+						<view class="issuer">
+							{{item.contacts}}
+						</view>
+						<view class="address">
+							{{item.address}}
+						</view>
+					</view>
+				</view>
+
+			</view>
+
+			<u-divider style="margin-top: 10px;" :isnone="showList.length==0" nonetext="没有找到相关内容"
+				@click="gotoUrl('pages/tab/jobInformation/jobInformation')" border-color="#CFD2D5">查看更多</u-divider>
+		</view>
+
+		<tabbar :current="0"></tabbar>
+
+	</view>
+
+
+
+</template>
+
+<script>
+	import * as API from '@/apis/pagejs/main.js'
+	import tabbar from "@/components/Tabbar.vue"
+	import * as API_weixin from '@/apis/weixin.js'
+
+	export default {
+		components: {
+			tabbar
+		},
+		onShareTimeline() {
+			return {
+				title: "荆州经开区共享用工平台",
+			}
+		},
+		onShareAppMessage(res) {
+			if (res.from === 'button') { // 来自页面内分享按钮
+				//.log(res.target)
+			}
+			return {
+				title: "荆州经开区共享用工平台",
+				path: '/pages/main/index/index'
+			}
+		},
+		data() {
+			return {
+				keyword: '',
+				// 导航栏背景
+				background: {
+					backgroundColor: '#2795FD',
+				},
+				backColor: {
+					color: '#ffffff'
+				},
+				bannerlist: [],
+				tabList: [{
+					name: '最新',
+					value: "",
+					list: [],
+					recordsTotal: 0
+				}, {
+					name: '日结',
+					unit: "日",
+					value: "1",
+					list: [],
+					recordsTotal: 0
+				}, {
+					name: '周结',
+					unit: "周",
+					value: "2",
+					list: [],
+					recordsTotal: 0
+
+				}, {
+					name: '月结',
+					unit: "月",
+					value: "3",
+					list: [],
+					recordsTotal: 0
+				}],
+
+				current: 0,
+				homeList: [],
+
+			}
+		},
+		onShow() {
+			this.findRecruitHomePage();
+		},
+		onLoad(op) {
+
+
+			//this.getBannerList()
+			this.getNewsInfo()
+			this.findByOpenId(op);
+		},
+		computed: {
+			showRecordsTotal() {
+				return this.tabList[this.current].recordsTotal
+			},
+			showList() {
+				return this.tabList[this.current].list
+			}
+		},
+		onReachBottom() {
+			uni.navigateTo({
+				url: "/pages/tab/jobInformation/jobInformation"
+			})
+		},
+		methods: {
+			getNewsInfo() {
+
+				API_weixin.newsList({
+					category: 110,
+
+				}).then((res) => {
+					uni.hideLoading();
+
+					//this.newsList = res.data.data;
+					this.bannerlist = res.data.data.map(item => {
+						item.image = item.thumbnailImage
+						return item
+					})
+
+				}).catch(error => {
+					uni.showToast({
+						icon: 'none',
+						title: error,
+						icon: "none"
+					})
+				})
+			},
+
+			getBannerList() {
+				API.bannerList({
+
+				}).then((res) => {
+					this.bannerlist = res.data.data.map(item => {
+						return {
+							image: item.picUrl,
+							linkUrl: item.linkUrl
+						}
+					})
+
+
+				}).catch(error => {
+
+				})
+			},
+			findByOpenId(op) {
+
+				API_weixin.findByOpenId({
+					openId: this.carhelp.getOpenId(),
+					noerror: true
+				}).then((res) => {
+
+					this.carhelp.setPersonInfo(res.data.regUser);
+					this.carhelp.setToken(res.data.token);
+					this.carhelp.setPersonInfoPlus(res.data);
+
+
+				}).catch(error => {
+					this.carhelp.logoff();
+				})
+
+			},
+			findRecruitHomePage() {
+				uni.showLoading({
+					title: "加载中",
+					mask: true,
+				})
+				API.findRecruitSearch({
+					pageIndex: 1,
+					pageSize: 5,
+					status: 0,
+					statusType: this.tabList[this.current].value,
+				}).then((res) => {
+					uni.hideLoading();
+					this.tabList[this.current].list = res.data.data
+					this.tabList[this.current].recordsTotal = res.data.recordsTotal
+
+				}).catch(error => {
+
+					uni.showToast({
+						icon: 'none',
+						title: error
+					})
+					//this.getPhone()
+
+				})
+			},
+			customBack() {},
+			change(index) {
+				this.current = index;
+				this.findRecruitHomePage()
+			}
+		}
+	}
+</script>
+<style>
+	page {
+		background: #F0F0F2;
+		padding-bottom: 50px;
+	}
+</style>
+<style scoped lang="scss">
+	/deep/.u-navbar {
+		.u-icon--right {
+			display: none !important;
+		}
+	}
+
+	.tophot {
+		padding: 2rpx 6rpx;
+		border: 1px solid #2795FD;
+		border-radius: 8rpx;
+		color: #2795FD;
+		line-height: 24rpx;
+		font-size: 24rpx;
+		margin-right: 12rpx;
+
+	}
+
+	// 头部
+	.top {
+
+		// 搜索框
+		.search {
+			background-color: rgba(39, 149, 253, 1);
+			padding: 16rpx 32rpx;
+
+		}
+
+	}
+
+	// 功能区
+	.function {
+		background-color: #fff;
+		padding: 32rpx 46rpx;
+		display: flex;
+		justify-content: space-between;
+
+		.function-item {
+			display: flex;
+			flex-direction: column;
+			justify-content: center;
+			align-items: center;
+
+			.icon-box {
+				width: 96rpx;
+				height: 96rpx;
+				background-color: rgba(240, 233, 255, 1);
+				text-align: center;
+				border-radius: 999px;
+				display: flex;
+				justify-content: center;
+				align-items: center;
+			}
+
+			.icon-box2 {
+				background-color: rgba(255, 234, 230, 1);
+			}
+
+			.icon-box3 {
+				background-color: rgba(227, 246, 255, 1);
+			}
+
+			.icon-box4 {
+				background-color: rgba(255, 242, 224, 1);
+			}
+
+			.icon-box5 {
+				background-color: rgba(221, 247, 238, 1);
+			}
+
+
+			.icon {
+				width: 48rpx;
+				height: 48rpx;
+
+				img {
+					width: 100%;
+					height: 100%;
+				}
+			}
+
+			.item-text {
+				color: rgba(51, 51, 51, 1);
+				margin-top: 8rpx;
+				font-family: 'PingFang Medium';
+			}
+		}
+	}
+
+	// 标签
+	.tabs {
+		margin-top: 32rpx;
+
+		.title {
+			display: flex;
+			justify-content: space-between;
+			align-items: center;
+			padding: 0rpx 24rpx;
+
+			/deep/.u-tabs {
+				width: 400rpx;
+			}
+
+			.more {
+				color: rgba(119, 119, 119, 1);
+			}
+		}
+
+		.classify-card {
+			background-color: #fff;
+
+			.item {
+				padding: 24rpx 0;
+				margin: 0 32rpx;
+				border-bottom: 1px solid #F0F0F2;
+
+				.content-1 {
+					display: flex;
+					justify-content: space-between;
+					align-items: center;
+
+					// 职位
+					.position {
+						color: rgba(16, 16, 16, 1);
+						font-size: 36rpx;
+						font-family: 'PingFang Medium';
+
+						display: flex;
+						align-items: center;
+					}
+
+					// 薪水
+					.salary {
+						color: rgba(255, 61, 0, 1);
+						font-size: 32rpx;
+						font-family: 'PingFang Medium';
+						min-width: 260rpx;
+						text-align: end;
+					}
+				}
+
+				.content-2 {
+					margin-top: 12rpx;
+					display: flex;
+					justify-content: space-between;
 					
 					
-				var mod = list[index]
-			
-				if(mod){
-					if(mod.linkUrl){
-						
-						uni.navigateTo({
-							url:mod.linkUrl
-						})
-					}
-				}
-			},
-			getBannerList(){
-				API.bannerList({
-								
-				}).then((res) => {
-					this.bannerlist	=res.data.data.map(item=>{
-						return {
-							image:item.picUrl,
-							linkUrl:item.linkUrl
+					
+					// 标签
+					.tag {
+						display: flex;
+						flex-wrap: wrap;
+						.tag-item {
+							min-width: 64rpx;
+							height: 36rpx;
+							line-height: 36rpx;
+							border-radius: 8rpx;
+							background-color: rgba(241, 241, 247, 1);
+							color: rgba(129, 127, 153, 1);
+							font-size: 24rpx;
+							text-align: center;
+							margin-right: 12rpx;
+							padding: 0 8rpx;
 						}
 						}
-					})	 
-					
-									 
-				}).catch(error => {
-									
-				})
-			},
-			findByOpenId(op){
-				
-				 API_weixin.findByOpenId({
-					 openId:this.carhelp.getOpenId(),
-					 noerror:true
-				 }).then((res) => {
-					 
-					 this.carhelp.setPersonInfo(res.data.regUser );
-					 this.carhelp.setToken(res.data.token);
-					 this.carhelp.setPersonInfoPlus(res.data);
-					 
-					 
-				 }).catch(error => {
-					this.carhelp.logoff();
-				 })
-				
-			},
-			findRecruitHomePage(){
-				uni.showLoading({
-					title: "加载中",
-					mask: true,
-				})
-				API.findRecruitSearch({
-					pageIndex:1,
-					pageSize:5,
-					status:0,
-					statusType:this.tabList[this.current].value,
-				}).then((res) => {
-					uni.hideLoading();
-					this.tabList[this.current].list=res.data.data
-					this.tabList[this.current].recordsTotal=res.data.recordsTotal
-					
-				}).catch(error => {
-				
-					uni.showToast({icon: 'none',
-						title: error
-					})
-					//this.getPhone()
-					
-				})
-			},
-			customBack() {},
-			change(index) {
-				this.current = index;
-				this.findRecruitHomePage()
-			}
-		}
-	}
-</script>
-<style>
-	page {
-		background: #F0F0F2;
-		padding-bottom: 50px;
-	}
-</style>
-<style scoped lang="scss">
-	/deep/.u-navbar {
-		.u-icon--right {
-			display: none !important;
-		}
-	}
-	.tophot{
-		padding:2rpx 6rpx;
-		border: 1px solid  #2795FD ;
-		border-radius: 8rpx;
-		color:#2795FD ;
-		line-height: 24rpx;
-		font-size: 24rpx;
-		margin-right: 12rpx;
-
-	}
-	// 头部
-	.top {
-
-		// 搜索框
-		.search {
-			background-color: rgba(39, 149, 253, 1);
-			padding: 16rpx 32rpx;
-
-		}
-
-	}
-
-	// 功能区
-	.function {
-		background-color: #fff;
-		padding: 32rpx 46rpx;
-		display: flex;
-		justify-content: space-between;
-
-		.function-item {
-			display: flex;
-			flex-direction: column;
-			justify-content: center;
-			align-items: center;
-
-			.icon-box {
-				width: 96rpx;
-				height: 96rpx;
-				background-color: rgba(240, 233, 255, 1);
-				text-align: center;
-				border-radius: 999px;
-				display: flex;
-				justify-content: center;
-				align-items: center;
-			}
-
-			.icon-box2 {
-				background-color: rgba(255, 234, 230, 1);
-			}
-
-			.icon-box3 {
-				background-color: rgba(227, 246, 255, 1);
-			}
-
-			.icon-box4 {
-				background-color: rgba(255, 242, 224, 1);
-			}
-
-			.icon-box5 {
-				background-color: rgba(221, 247, 238, 1);
-			}
-
-
-			.icon {
-				width: 48rpx;
-				height: 48rpx;
-
-				img {
-					width: 100%;
-					height: 100%;
-				}
-			}
-
-			.item-text {
-				color: rgba(51, 51, 51, 1);
-				margin-top: 8rpx;
-				font-family: 'PingFang Medium';
-			}
-		}
-	}
-
-	// 标签
-	.tabs {
-		margin-top: 32rpx;
-
-		.title {
-			display: flex;
-			justify-content: space-between;
-			align-items: center;
-			padding: 0rpx 24rpx;
-
-			/deep/.u-tabs {
-				width: 400rpx;
-			}
-
-			.more {
-				color: rgba(119, 119, 119, 1);
-			}
-		}
-
-		.classify-card {
-			background-color: #fff;
-
-			.item {
-				padding: 24rpx 0;
-				margin: 0 32rpx;
-				border-bottom: 1px solid #F0F0F2;
-
-				.content-1 {
-					display: flex;
-					justify-content: space-between;
-					align-items: center;
-					
-					// 职位
-					.position {
-						color: rgba(16, 16, 16, 1);
-						font-size: 36rpx;
-						font-family: 'PingFang Medium';
-						
-						    display: flex;
-						    align-items: center;
-					}
-
-					// 薪水
-					.salary {
-						color: rgba(255, 61, 0, 1);
-						font-size: 32rpx;
-						font-family: 'PingFang Medium';
-						min-width: 260rpx;
-						text-align: end;
-					}
-				}
-
-				.content-2 {
-					margin-top: 12rpx;
-					display: flex;
-					justify-content: space-between;
-
-					// 标签
-					.tag {
-						display: flex;
-
-						.tag-item {
-							min-width: 64rpx;
-							height: 36rpx;
-							line-height: 36rpx;
-							border-radius: 8rpx;
-							background-color: rgba(241, 241, 247, 1);
-							color: rgba(129, 127, 153, 1);
-							font-size: 24rpx;
-							text-align: center;
-							margin-right: 12rpx;
-							padding: 0 8rpx;
-						}
-					}
-
-					// 日期
-					.date {
-						color: rgba(153, 153, 153, 1);
-						font-size: 24rpx;
-					}
-				}
-
-				.content-3 {
-					margin-top: 20rpx;
-					display: flex;
-					justify-content: space-between;
-					align-items: center;
-
-					.issuer {
-						color: rgba(51, 51, 51, 1);
-						font-size: 24rpx;
-					}
-
-					.address {
-						color: rgba(51, 51, 51, 1);
-						font-size: 24rpx;
-					}
-				}
-
-			}
-		}
-	}
+						.tag-item2 {
+							background-color:rgb(70, 150, 246);
+							color: #fff;
+						}
+					}
+
+					// 日期
+					.date {
+						color: rgba(153, 153, 153, 1);
+						font-size: 24rpx;
+					}
+				}
+
+				.content-3 {
+					margin-top: 20rpx;
+					display: flex;
+					justify-content: space-between;
+					align-items: center;
+
+					.issuer {
+						color: rgba(51, 51, 51, 1);
+						font-size: 24rpx;
+					}
+
+					.address {
+						color: rgba(51, 51, 51, 1);
+						font-size: 24rpx;
+					}
+				}
+
+			}
+		}
+	}
 </style>
 </style>

+ 37 - 2
pages/packages/choreInformation/jobSearchDetails.vue

@@ -46,7 +46,12 @@
 				{{info.serviceDesc}}
 				{{info.serviceDesc}}
 			</view>
 			</view>
 		</view>
 		</view>
-	
+		<!-- 幻灯片 -->
+		<view class="swiper"  v-if="bannerlist.length" >
+			<u-swiper height="100" mode="none"   img-mode="scaleToFill" 
+			:list="bannerlist" @click="clickBanner"  ></u-swiper>
+		
+		</view>
 	
 	
 	    <view class="content">
 	    <view class="content">
 			<!-- 联系方式 -->
 			<!-- 联系方式 -->
@@ -165,6 +170,8 @@
 
 
 <script>
 <script>
 	import * as API from '@/apis/pagejs/packages.js'
 	import * as API from '@/apis/pagejs/packages.js'
+
+	import * as API_weixin from '@/apis/weixin.js'
 	export default {
 	export default {
 		data() {
 		data() {
 			return {
 			return {
@@ -180,6 +187,8 @@
 				readId:"",
 				readId:"",
 				isRead:0,
 				isRead:0,
 				workChecked:-1,
 				workChecked:-1,
+				bannerlist: [
+				],
 				info: {
 				info: {
 					"id": "",
 					"id": "",
 					"personId": "",
 					"personId": "",
@@ -238,8 +247,30 @@
 				this.readId=op.readid
 				this.readId=op.readid
 			}
 			}
 			this.getInfo()
 			this.getInfo()
+			this.getNewsInfo()
 		},
 		},
 		methods: {
 		methods: {
+			getNewsInfo(){
+				
+				API_weixin.newsList({
+					category:112,
+					
+				}).then((res) => {
+					uni.hideLoading();
+					
+					//this.newsList = res.data.data;
+					this.bannerlist	=res.data.data.map(item=>{
+						item.image=item.thumbnailImage
+						return item
+					})	 
+					
+				}).catch(error => {
+					uni.showToast({icon: 'none',
+						title: error,
+						icon: "none"
+					})
+				})
+			},
 			customBack(){
 			customBack(){
 				uni.redirectTo({
 				uni.redirectTo({
 					url:"/pages/main/index/index"
 					url:"/pages/main/index/index"
@@ -453,10 +484,13 @@
 <style>
 <style>
 	page {
 	page {
 		background: #F0F0F2;
 		background: #F0F0F2;
-		padding-bottom: 50px;
+		padding-bottom: 100px;
 	}
 	}
 </style>
 </style>
 <style lang="scss" scoped>
 <style lang="scss" scoped>
+	.swiper{
+		  margin: 20rpx;
+	}
 	.content{
 	.content{
 		padding: 32rpx;
 		padding: 32rpx;
 		background-color: #fff;
 		background-color: #fff;
@@ -576,6 +610,7 @@
 						  text-align: center;
 						  text-align: center;
 						  margin-right: 16rpx;
 						  margin-right: 16rpx;
 					  }
 					  }
+					 
 				  }
 				  }
 			  }
 			  }
 		  }
 		  }

+ 66 - 3
pages/packages/jobInformation/jobDetails.vue

@@ -95,7 +95,19 @@
 				</view>
 				</view>
 
 
 			</view>
 			</view>
-			
+		</view>
+		
+		<!-- 幻灯片 -->
+		<view class="swiper2" v-if="false"  >
+			<img src="https://equipment.xiaoxinda.com/jk-temporary-workers-portal/favicon.ico"><view class="view">想随时随地看急招好岗位?</view><span  class="span">点击加入群聊</span>
+		</view>
+		
+		<!-- 幻灯片 -->
+		<view class="swiper"  v-if="bannerlist.length">
+			<u-swiper  img-mode="scaleToFill"  mode="none"   height="100"  :list="bannerlist" @click="clickBanner"  ></u-swiper>
+		
+		</view>
+		<view class="content">	
 			<view class="headline">
 			<view class="headline">
 				公司信息
 				公司信息
 			</view>
 			</view>
@@ -128,7 +140,8 @@
 				</view>
 				</view>
 			</view>
 			</view>
 		</view>
 		</view>
-
+		
+		
 
 
 		<!-- 底部按钮 -->
 		<!-- 底部按钮 -->
 		<view class="bottom">
 		<view class="bottom">
@@ -162,6 +175,7 @@
 
 
 <script>
 <script>
 	import * as API from '@/apis/pagejs/packages.js'
 	import * as API from '@/apis/pagejs/packages.js'
+		import * as API_weixin from '@/apis/weixin.js'
 	export default {
 	export default {
 		data() {
 		data() {
 			return {
 			return {
@@ -175,6 +189,8 @@
 				isRead:0,
 				isRead:0,
 				readId:"",
 				readId:"",
 				enterpriseInfo:{},
 				enterpriseInfo:{},
+				bannerlist: [
+				],
 				info: {
 				info: {
 					"isOnline":true,
 					"isOnline":true,
 					"id": "",
 					"id": "",
@@ -238,8 +254,31 @@
 					this.readId=op.readid
 					this.readId=op.readid
 			}
 			}
 			this.getInfo()
 			this.getInfo()
+			this.getNewsInfo()
 		},
 		},
+		
 		methods: {
 		methods: {
+			getNewsInfo(){
+				
+				API_weixin.newsList({
+					category:111,
+					
+				}).then((res) => {
+					uni.hideLoading();
+					
+					//this.newsList = res.data.data;
+					this.bannerlist	=res.data.data.map(item=>{
+						item.image=item.thumbnailImage
+						return item
+					})	 
+					
+				}).catch(error => {
+					uni.showToast({icon: 'none',
+						title: error,
+						icon: "none"
+					})
+				})
+			},
 			customBack(){
 			customBack(){
 				uni.redirectTo({
 				uni.redirectTo({
 					url:"/pages/main/index/index"
 					url:"/pages/main/index/index"
@@ -448,11 +487,14 @@
 <style>
 <style>
 	page {
 	page {
 		background: #F0F0F2;
 		background: #F0F0F2;
-		padding-bottom: 150px;
+		padding-bottom: 100px;
 	}
 	}
 </style>
 </style>
 
 
 <style lang="scss" scoped>
 <style lang="scss" scoped>
+	.swiper{
+		  margin: 20rpx;
+	}
 	// 岗位详情
 	// 岗位详情
 	.content {
 	.content {
 		padding: 32rpx;
 		padding: 32rpx;
@@ -604,4 +646,25 @@
 
 
 		}
 		}
 	}
 	}
+	.swiper2{
+		display: flex;
+		background-color: #2295ff;
+		    align-items: center;
+			    margin: 10px 10px;
+			    border-radius: 10px;
+		.view{
+			margin-left: 5px;
+			    color: #fff;
+			    font-size: 18px;
+		}
+		.span{
+			margin-left: 5px;
+			     font-size: 12px;
+			     background: #fff;
+			     color: #2295ff;
+			     padding: 3px;
+			     border-radius: 4px;
+			     font-weight: 400;
+		}
+	}
 </style>
 </style>

+ 13 - 2
pages/packages/news/articleDetail.vue

@@ -23,7 +23,8 @@
 			<view class="content news-content"  v-html="newsDetail.content" >
 			<view class="content news-content"  v-html="newsDetail.content" >
 			
 			
 			</view>
 			</view>
-		   
+			
+		   <image v-if="false" src="http://oss.xiaoxinda.com/enterprise/editor/2023/8/e3335976-7e10-4c2d-a322-ba384a86fc78/下载.png" :show-menu-by-longpress="true" ></image>
 		 
 		 
 		</view>
 		</view>
 	</view>
 	</view>
@@ -45,6 +46,15 @@
 			this.getNewsDetail();
 			this.getNewsDetail();
 		},
 		},
 		methods: {
 		methods: {
+			timestart(){
+					console.log("aaa1")
+			},
+			timeend(){
+					console.log("aaa2")
+			},
+			saveImg(){
+					console.log("aaa3")
+			},
 			getNewsDetail() {
 			getNewsDetail() {
 				uni.showLoading({
 				uni.showLoading({
 					title: "加载中",
 					title: "加载中",
@@ -58,7 +68,8 @@
 					var newsDetail = res.data.newsInfo;
 					var newsDetail = res.data.newsInfo;
 					if(newsDetail.content){
 					if(newsDetail.content){
 						var reg=new RegExp('alt','gi');
 						var reg=new RegExp('alt','gi');
-						newsDetail.content=newsDetail.content.replace(reg,'width="100%" height="100%" /> <p')						
+						newsDetail.content=newsDetail.content.replace(reg,'width="100%" height="100%"  /> <p')	
+						
 					}
 					}
 					this.newsDetail=newsDetail
 					this.newsDetail=newsDetail
 				}).catch(error => {
 				}).catch(error => {

+ 17 - 3
pages/packages/search/search.vue

@@ -69,10 +69,13 @@
 						</view>
 						</view>
 					</view>
 					</view>
 					<view class="issuer">
 					<view class="issuer">
-						{{getPersonName(item.realName,item)}}
+						{{getPersonName(item.personName,item)}}
 					</view>
 					</view>
 					<view class="bottom">
 					<view class="bottom">
 						<view class="tags">
 						<view class="tags">
+							<view class="tag-item tag-item2" v-if="getLastTime(item.lastLoginTime)">
+								活跃
+							</view>
 							<view class="tag-item">
 							<view class="tag-item">
 								{{item.gender==1?'男':'女'}}
 								{{item.gender==1?'男':'女'}}
 							</view>
 							</view>
@@ -129,6 +132,9 @@
 				<view class="content-2">
 				<view class="content-2">
 					<!-- 标签 -->
 					<!-- 标签 -->
 					<view class="tag">
 					<view class="tag">
+						<view class="tag-item tag-item2" v-if="getLastTime(item.lastLoginTime)">
+							活跃
+						</view>
 						<view class="tag-item">
 						<view class="tag-item">
 							{{item.workArea}}
 							{{item.workArea}}
 						</view>
 						</view>
@@ -626,7 +632,7 @@
 			
 			
 					.tags {
 					.tags {
 						display: flex;
 						display: flex;
-			
+			flex-wrap: wrap;
 						.tag-item {
 						.tag-item {
 							
 							
 							padding: 0 8rpx;
 							padding: 0 8rpx;
@@ -639,6 +645,10 @@
 							text-align: center;
 							text-align: center;
 							margin-right: 8rpx;
 							margin-right: 8rpx;
 						}
 						}
+						.tag-item2 {
+							background-color:rgb(70, 150, 246);
+							color: #fff;
+						}
 					}
 					}
 			
 			
 					.date {
 					.date {
@@ -676,7 +686,7 @@
 				// 标签
 				// 标签
 				.tag {
 				.tag {
 					display: flex;
 					display: flex;
-	
+					flex-wrap: wrap;
 					.tag-item {
 					.tag-item {
 						min-width: 64rpx;
 						min-width: 64rpx;
 						height: 36rpx;
 						height: 36rpx;
@@ -690,6 +700,10 @@
 						
 						
 						padding: 0 8rpx;
 						padding: 0 8rpx;
 					}
 					}
+					.tag-item2 {
+						background-color:rgb(70, 150, 246);
+						color: #fff;
+					}
 				}
 				}
 	
 	
 				// 日期
 				// 日期

+ 8 - 1
pages/tab/choreInformation/choreInformation.vue

@@ -50,6 +50,9 @@
 					</view>
 					</view>
 					<view class="bottom">
 					<view class="bottom">
 						<view class="tags">
 						<view class="tags">
+							<view class="tag-item tag-item2" v-if="getLastTime(item.lastLoginTime)">
+								活跃
+							</view>
 							<view class="tag-item">
 							<view class="tag-item">
 								{{item.gender==1?'男':'女'}}
 								{{item.gender==1?'男':'女'}}
 							</view>
 							</view>
@@ -340,7 +343,7 @@
 
 
 					.tags {
 					.tags {
 						display: flex;
 						display: flex;
-
+						flex-wrap: wrap;
 						.tag-item {
 						.tag-item {
 							padding: 0 10rpx;
 							padding: 0 10rpx;
 							height: 36rpx;
 							height: 36rpx;
@@ -352,6 +355,10 @@
 							text-align: center;
 							text-align: center;
 							margin-right: 8rpx;
 							margin-right: 8rpx;
 						}
 						}
+						.tag-item2 {
+							background-color:rgb(70, 150, 246);
+							color: #fff;
+						}
 					}
 					}
 
 
 					.date {
 					.date {

+ 9 - 1
pages/tab/jobInformation/jobInformation.vue

@@ -44,8 +44,12 @@
 					</view>
 					</view>
 				</view>
 				</view>
 				<view class="content-2">
 				<view class="content-2">
+					
 					<!-- 标签 -->
 					<!-- 标签 -->
 					<view class="tag">
 					<view class="tag">
+						<view class="tag-item tag-item2" v-if="getLastTime(item.lastLoginTime)">
+							活跃
+						</view>
 						<view class="tag-item">
 						<view class="tag-item">
 							{{item.workArea}}
 							{{item.workArea}}
 						</view>
 						</view>
@@ -349,7 +353,7 @@
 				// 标签
 				// 标签
 				.tag {
 				.tag {
 					display: flex;
 					display: flex;
-
+					flex-wrap: wrap;
 					.tag-item {
 					.tag-item {
 						min-width: 64rpx;
 						min-width: 64rpx;
 						height: 36rpx;
 						height: 36rpx;
@@ -363,6 +367,10 @@
 						
 						
 						padding: 0 8rpx;
 						padding: 0 8rpx;
 					}
 					}
+					.tag-item2 {
+						background-color:rgb(70, 150, 246);
+						color: #fff;
+					}
 				}
 				}
 
 
 				// 日期
 				// 日期

+ 36 - 3
pages/tab/mine/mine.vue

@@ -78,7 +78,13 @@
 			</u-grid>
 			</u-grid>
 		</view>
 		</view>
 		<!-- 用工服务 -->
 		<!-- 用工服务 -->
-
+		
+			<!-- 幻灯片 -->
+			<view class="swiper" v-if="bannerlist.length">
+				<u-swiper   img-mode="scaleToFill"  mode="none"  height="100" :list="bannerlist" @click="clickBanner"  ></u-swiper>
+			
+			</view>
+		
 		<view class="card ">
 		<view class="card ">
 			<view class="title">
 			<view class="title">
 				用工服务
 				用工服务
@@ -221,6 +227,8 @@
 				num3: 0,//0 未创建 ,1 审批中, 2 成功
 				num3: 0,//0 未创建 ,1 审批中, 2 成功
 				isReady:false,
 				isReady:false,
 				updateintention:false,
 				updateintention:false,
+				bannerlist: [
+				],
 				intentionList:[
 				intentionList:[
 					{
 					{
 											value: '1',
 											value: '1',
@@ -236,7 +244,8 @@
 		},
 		},
 		onLoad() {
 		onLoad() {
 			this.userInfo = this.carhelp.getPersonInfo()
 			this.userInfo = this.carhelp.getPersonInfo()
-			this.findByOpenId();
+			this.findByOpenId();
+			this.getNewsInfo()
 		},
 		},
 		onShow(){
 		onShow(){
 			if(this.isReady){
 			if(this.isReady){
@@ -245,6 +254,27 @@
 			}
 			}
 		},
 		},
 		methods: {
 		methods: {
+			getNewsInfo(){
+				
+				API_weixin.newsList({
+					category:113,
+					
+				}).then((res) => {
+					uni.hideLoading();
+					
+					//this.newsList = res.data.data;
+					this.bannerlist	=res.data.data.map(item=>{
+						item.image=item.thumbnailImage
+						return item
+					})	 
+					
+				}).catch(error => {
+					uni.showToast({icon: 'none',
+						title: error,
+						icon: "none"
+					})
+				})
+			},
 			changePhone(){
 			changePhone(){
 				var _this=this;
 				var _this=this;
 				uni.showModal({
 				uni.showModal({
@@ -647,7 +677,10 @@
 		padding-bottom: 150px;
 		padding-bottom: 150px;
 	}
 	}
 </style>
 </style>
-<style lang="scss" scoped>
+<style lang="scss" scoped>
+	.swiper{
+		  margin: 32rpx;
+	}
 	.showImg {
 	.showImg {
 		width: 38rpx;
 		width: 38rpx;
 		height: 38rpx;
 		height: 38rpx;