|
@@ -1,23 +1,45 @@
|
|
<template>
|
|
<template>
|
|
<view class="page">
|
|
<view class="page">
|
|
-
|
|
|
|
- <view class="bg-white homepage">
|
|
|
|
|
|
+ <view class="cardList">
|
|
|
|
+ <view class="card cardBg-bule" @tap="checkWorker">
|
|
|
|
+ <image class="card-avatar" src="../../static/images/index/employer.png"></image>
|
|
|
|
+ <view class="card-content">
|
|
|
|
+ <view class="content-title">我是雇主</view>
|
|
|
|
+ <view class="content-explain">为企业招聘人才</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ <!-- <view class="card cardBg-green">
|
|
|
|
+ <image class="card-avatar" src="../../static/images/index/recruiter.png"></image>
|
|
|
|
+ <view class="card-content">
|
|
|
|
+ <view class="content-title">我是经纪人</view>
|
|
|
|
+ <view class="content-explain">推荐人才入职领赏金</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view> -->
|
|
|
|
+ <view class="card cardBg-red" @tap="goUser">
|
|
|
|
+ <image class="card-avatar" src="../../static/images/index/jobhunter.png"></image>
|
|
|
|
+ <view class="card-content">
|
|
|
|
+ <view class="content-title">我是求职者</view>
|
|
|
|
+ <view class="content-explain">寻找更好的发展</view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <!-- <view class="bg-white homepage">
|
|
<view>
|
|
<view>
|
|
<view class="" @tap="checkWorker">
|
|
<view class="" @tap="checkWorker">
|
|
<view class="padding"></view>
|
|
<view class="padding"></view>
|
|
- <image mode="widthFix" style="width: 300rpx;" src="../../static/images/index/recruiter.png"></image>
|
|
|
|
- <!-- <image mode="widthFix" style="width: 100%;" :src="zqtop"></image> -->
|
|
|
|
|
|
+ <image mode="widthFix" style="width: 100%;" :src="zqtop"></image>
|
|
<view class="padding text-center text-blue">我要招聘</view>
|
|
<view class="padding text-center text-blue">我要招聘</view>
|
|
</view>
|
|
</view>
|
|
<view class="" @tap="goUser">
|
|
<view class="" @tap="goUser">
|
|
- <image mode="widthFix" style="width: 300rpx; position: fixed; left: 50%; bottom: 360rpx; margin-left: -150rpx;" src="../../static/images/index/jobhunter.png"></image>
|
|
|
|
- <!-- <image mode="widthFix" style="width: 100%; position: fixed; left: 0; bottom: 160rpx;" :src="zqbottom"></image> -->
|
|
|
|
- <view class="padding text-center text-blue" style="width: 100%; position: fixed; left: 0; bottom: 240rpx;">我要求职</view>
|
|
|
|
- <!-- <view class="padding text-center text-blue" style="width: 100%; position: fixed; left: 0; bottom: 40rpx;">我要求职</view> -->
|
|
|
|
|
|
+ <image mode="widthFix" style="width: 100%; position: fixed; left: 0; bottom: 160rpx;"
|
|
|
|
+ :src="zqbottom"></image>
|
|
|
|
+ <view class="padding text-center text-blue"
|
|
|
|
+ style="width: 100%; position: fixed; left: 0; bottom: 40rpx;">我要求职</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- </view>
|
|
|
|
-
|
|
|
|
|
|
+ </view> -->
|
|
|
|
+
|
|
<view class="cu-modal" :class="modalName=='workerModal'?'show':''">
|
|
<view class="cu-modal" :class="modalName=='workerModal'?'show':''">
|
|
<view class="cu-dialog">
|
|
<view class="cu-dialog">
|
|
<view class="cu-bar bg-white justify-end">
|
|
<view class="cu-bar bg-white justify-end">
|
|
@@ -27,10 +49,11 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="padding-tb-sm">
|
|
<view class="padding-tb-sm">
|
|
-
|
|
|
|
|
|
+
|
|
<view class="cu-list menu">
|
|
<view class="cu-list menu">
|
|
<block v-if="workerall!=null">
|
|
<block v-if="workerall!=null">
|
|
- <view class="cu-item arrow" v-for="(item,index) in workerall" :key="index" @tap="goWorker" :data-index="index">
|
|
|
|
|
|
+ <view class="cu-item arrow" v-for="(item,index) in workerall" :key="index" @tap="goWorker"
|
|
|
|
+ :data-index="index">
|
|
<view class="content text-left">
|
|
<view class="content text-left">
|
|
<text class="cuIcon-settings text-grey"></text>
|
|
<text class="cuIcon-settings text-grey"></text>
|
|
<text>{{item.title}}</text>
|
|
<text>{{item.title}}</text>
|
|
@@ -56,11 +79,11 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
|
|
+
|
|
<view class="cu-modal" :class="modalName=='apptreatyModal'?'show':''">
|
|
<view class="cu-modal" :class="modalName=='apptreatyModal'?'show':''">
|
|
<view class="cu-dialog">
|
|
<view class="cu-dialog">
|
|
<view class="cu-bar bg-white justify-end">
|
|
<view class="cu-bar bg-white justify-end">
|
|
@@ -68,7 +91,8 @@
|
|
</view>
|
|
</view>
|
|
<view class="padding-tb-sm">
|
|
<view class="padding-tb-sm">
|
|
<scroll-view class="xy-content text-left" scroll-y>
|
|
<scroll-view class="xy-content text-left" scroll-y>
|
|
- <text>请你务必审慎阅读、充分理解“用户服务协议”和“隐私政策”各条款,包括但不限于:为了向你提供即时招聘讯息、内容分享等服务,我们需要收集你的设备信息、操作日志等个人信息。</text> <br/>
|
|
|
|
|
|
+ <text>请你务必审慎阅读、充分理解“用户服务协议”和“隐私政策”各条款,包括但不限于:为了向你提供即时招聘讯息、内容分享等服务,我们需要收集你的设备信息、操作日志等个人信息。</text>
|
|
|
|
+ <br />
|
|
<view>你可阅读
|
|
<view>你可阅读
|
|
<text class="text-blue" @tap="goPage('/pages/tool/sinpage?field=service')">《用户服务协议》</text>
|
|
<text class="text-blue" @tap="goPage('/pages/tool/sinpage?field=service')">《用户服务协议》</text>
|
|
和<text class="text-blue" @tap="goPage('/pages/tool/sinpage?field=privacy')">《隐私政策》</text>
|
|
和<text class="text-blue" @tap="goPage('/pages/tool/sinpage?field=privacy')">《隐私政策》</text>
|
|
@@ -85,7 +109,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -98,10 +122,10 @@
|
|
userinfo: false,
|
|
userinfo: false,
|
|
workerinfo: null,
|
|
workerinfo: null,
|
|
workerall: null,
|
|
workerall: null,
|
|
-
|
|
|
|
|
|
+
|
|
modalName: null,
|
|
modalName: null,
|
|
apptreaty: "",
|
|
apptreaty: "",
|
|
-
|
|
|
|
|
|
+
|
|
zqtop: '',
|
|
zqtop: '',
|
|
zqbottom: ''
|
|
zqbottom: ''
|
|
}
|
|
}
|
|
@@ -112,13 +136,13 @@
|
|
_this.identityinfo = uni.getStorageSync('identityinfo') || false;
|
|
_this.identityinfo = uni.getStorageSync('identityinfo') || false;
|
|
_this.userinfo = uni.getStorageSync('userinfo') || false;
|
|
_this.userinfo = uni.getStorageSync('userinfo') || false;
|
|
_this.workerinfo = uni.getStorageSync('workerinfo') || null;
|
|
_this.workerinfo = uni.getStorageSync('workerinfo') || null;
|
|
- if (_this.identityinfo==true && _this.workerinfo!=null){
|
|
|
|
|
|
+ if (_this.identityinfo == true && _this.workerinfo != null) {
|
|
uni.reLaunch({
|
|
uni.reLaunch({
|
|
url: "/pages/worker/worker"
|
|
url: "/pages/worker/worker"
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- if (_this.identityinfo==true){
|
|
|
|
|
|
+ if (_this.identityinfo == true) {
|
|
uni.reLaunch({
|
|
uni.reLaunch({
|
|
url: "/pages/index/index"
|
|
url: "/pages/index/index"
|
|
});
|
|
});
|
|
@@ -127,12 +151,12 @@
|
|
_this.$req.ajax({
|
|
_this.$req.ajax({
|
|
path: "index/gethomedata",
|
|
path: "index/gethomedata",
|
|
data: {
|
|
data: {
|
|
- userid: _this.userinfo==false ? 0 : _this.userinfo.id
|
|
|
|
|
|
+ userid: _this.userinfo == false ? 0 : _this.userinfo.id
|
|
}
|
|
}
|
|
}).then((data) => {
|
|
}).then((data) => {
|
|
_this.apptreaty = data.apptreaty;
|
|
_this.apptreaty = data.apptreaty;
|
|
_this.workerall = data.workerall;
|
|
_this.workerall = data.workerall;
|
|
-
|
|
|
|
|
|
+
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
_this.modalName = uni.getStorageSync('apptreatyModal') || "apptreatyModal";
|
|
_this.modalName = uni.getStorageSync('apptreatyModal') || "apptreatyModal";
|
|
// #endif
|
|
// #endif
|
|
@@ -143,13 +167,13 @@
|
|
showCancel: false
|
|
showCancel: false
|
|
});
|
|
});
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
onShareAppMessage: function(res) {
|
|
onShareAppMessage: function(res) {
|
|
return {
|
|
return {
|
|
title: "晋江人力",
|
|
title: "晋江人力",
|
|
path: "/pages/index/home"
|
|
path: "/pages/index/home"
|
|
- }
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 获取图片
|
|
// 获取图片
|
|
@@ -167,7 +191,7 @@
|
|
_this.modalName = null;
|
|
_this.modalName = null;
|
|
},
|
|
},
|
|
outApptreaty: function() {
|
|
outApptreaty: function() {
|
|
- plus.runtime.quit();
|
|
|
|
|
|
+ plus.runtime.quit();
|
|
},
|
|
},
|
|
goPage: function(pageurl) {
|
|
goPage: function(pageurl) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
@@ -179,10 +203,10 @@
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
checkWorker: function() {
|
|
checkWorker: function() {
|
|
- if (_this.workerall=='null'){
|
|
|
|
|
|
+ if (_this.workerall == 'null') {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: "/pages/login/worker"
|
|
url: "/pages/login/worker"
|
|
});
|
|
});
|
|
@@ -195,7 +219,7 @@
|
|
},
|
|
},
|
|
goWorker: function(e) {
|
|
goWorker: function(e) {
|
|
var index = e.currentTarget.dataset.index;
|
|
var index = e.currentTarget.dataset.index;
|
|
- if (_this.workerall[index].status==1){
|
|
|
|
|
|
+ if (_this.workerall[index].status == 1) {
|
|
// uni.showModal({
|
|
// uni.showModal({
|
|
// title: '信息提示',
|
|
// title: '信息提示',
|
|
// content: "信息审核中,请耐心等待。",
|
|
// content: "信息审核中,请耐心等待。",
|
|
@@ -209,15 +233,15 @@
|
|
url: "/pages/worker/worker"
|
|
url: "/pages/worker/worker"
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
goLogin: function(wtype) {
|
|
goLogin: function(wtype) {
|
|
uni.setStorageSync('identityinfo', true);
|
|
uni.setStorageSync('identityinfo', true);
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: "/pages/login/worker?wtype="+wtype
|
|
|
|
|
|
+ url: "/pages/login/worker?wtype=" + wtype
|
|
});
|
|
});
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
goUser: function() {
|
|
goUser: function() {
|
|
_this.userinfo = _this.checkLogin("/pages/index/index");
|
|
_this.userinfo = _this.checkLogin("/pages/index/index");
|
|
uni.setStorageSync('identityinfo', true);
|
|
uni.setStorageSync('identityinfo', true);
|
|
@@ -230,22 +254,106 @@
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
|
- page{ background-color:#fffff6; text-align: center;}
|
|
|
|
- bg-color{ background-color:#fffff6;}
|
|
|
|
- .homepage{ height: calc(100vh); background-repeat: no-repeat; background-size: 100%; background-position: bottom center; }
|
|
|
|
- .homepage image{ width: 100%; }
|
|
|
|
- .homepage image.homebg{ width: 750rpx; position: fixed; bottom: 0rpx; }
|
|
|
|
-
|
|
|
|
- .homebox{ }
|
|
|
|
- .homebox image{ width: 280rpx; }
|
|
|
|
-
|
|
|
|
- .xy-content{padding:10rpx 30rpx; background:#F6F6F6; line-height:50rpx; font-size:28rpx; text-align: justify; box-sizing:border-box;}
|
|
|
|
- .padding{ padding: 40rpx;}
|
|
|
|
|
|
+<style lang="scss">
|
|
|
|
+ page {
|
|
|
|
+ background-color: #fffff6;
|
|
|
|
+ text-align: center;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ bg-color {
|
|
|
|
+ background-color: #fffff6;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .homepage {
|
|
|
|
+ height: calc(100vh);
|
|
|
|
+ background-repeat: no-repeat;
|
|
|
|
+ background-size: 100%;
|
|
|
|
+ background-position: bottom center;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .homepage image {
|
|
|
|
+ width: 100%;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .homepage image.homebg {
|
|
|
|
+ width: 750rpx;
|
|
|
|
+ position: fixed;
|
|
|
|
+ bottom: 0rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .homebox {}
|
|
|
|
+
|
|
|
|
+ .homebox image {
|
|
|
|
+ width: 280rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .xy-content {
|
|
|
|
+ padding: 10rpx 30rpx;
|
|
|
|
+ background: #F6F6F6;
|
|
|
|
+ line-height: 50rpx;
|
|
|
|
+ font-size: 28rpx;
|
|
|
|
+ text-align: justify;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .padding {
|
|
|
|
+ padding: 40rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
.padding15 {
|
|
.padding15 {
|
|
padding: 15rpx;
|
|
padding: 15rpx;
|
|
}
|
|
}
|
|
|
|
+
|
|
.padding10 {
|
|
.padding10 {
|
|
padding: 10rpx;
|
|
padding: 10rpx;
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+
|
|
|
|
+ .cardList {
|
|
|
|
+ padding: 30rpx 18rpx;
|
|
|
|
+
|
|
|
|
+ .cardBg-bule {
|
|
|
|
+ box-shadow: 0rpx 0rpx 10rpx 2rpx rgba(73, 128, 209, 0.3);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .cardBg-green {
|
|
|
|
+ box-shadow: 0rpx 0rpx 10rpx 2rpx rgba(19, 192, 180, 0.3);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .cardBg-red {
|
|
|
|
+ box-shadow: 0rpx 0rpx 10rpx 2rpx rgba(230, 66, 88, 0.3);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .card {
|
|
|
|
+ margin-bottom: 16rpx;
|
|
|
|
+ padding: 0 46rpx;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 224rpx;
|
|
|
|
+ background: #FFFFFF;
|
|
|
|
+ border-radius: 14rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+
|
|
|
|
+ .card-avatar {
|
|
|
|
+ width: 172rpx;
|
|
|
|
+ height: 172rpx;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .card-content {
|
|
|
|
+ margin-left: 54rpx;
|
|
|
|
+
|
|
|
|
+ .content-title {
|
|
|
|
+ margin-bottom: 12rpx;
|
|
|
|
+ font-size: 30rpx;
|
|
|
|
+ font-weight: 600;
|
|
|
|
+ color: #747474;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .content-explain {
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ font-weight: normal;
|
|
|
|
+ color: #747474;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+</style>
|