我的申请,我的收藏,浏览记录联调
This commit is contained in:
@@ -24,11 +24,11 @@
|
||||
<image src="../../static/img/job.svg" mode=""></image>
|
||||
我的申请
|
||||
</view>
|
||||
<view class="BarList" @click="">
|
||||
<view class="BarList" @click="go('/pageMy/myProject/myCollection')">
|
||||
<image src="../../static/img/salary.svg" mode=""></image>
|
||||
我的收藏
|
||||
</view>
|
||||
<view class="BarList" @click="">
|
||||
<view class="BarList" @click="go('/pageMy/myProject/browsingHistory')">
|
||||
<image src="../../static/img/contract.png" mode=""></image>
|
||||
浏览记录
|
||||
</view>
|
||||
|
||||
@@ -136,7 +136,6 @@
|
||||
<view style="font-size: 28rpx;font-weight: bold;">重要提示:</view>
|
||||
<view style="font-size: 24rpx;color:#707070;margin-top:10rpx;">为保障个人基本劳动权益,建议通过平台用工的形式就业</view>
|
||||
<view style="text-align: center;font-size:28rpx;margin-top: 30rpx;"> {{ info.callName }} : {{ info.callTel }}</view>
|
||||
<!-- <view style="margin-left: 50rpx;font-size:28rpx;margin-top: 7rpx;">手机号:{{ info.callTel }}</view> -->
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
@@ -234,7 +233,7 @@
|
||||
collect() {
|
||||
// console.log('收藏,取消收藏')
|
||||
const status = this.collectStatus == 0 ? 1 : 0;
|
||||
updateCollectStatus(this.info.id, status).then(res => {
|
||||
updateCollectStatus(this.info.id, status, 0).then(res => {
|
||||
if(res.data.code == 200) {
|
||||
this.getCollectStatus()
|
||||
}
|
||||
@@ -248,7 +247,7 @@
|
||||
},
|
||||
// 获取收藏状态
|
||||
getCollectStatus() {
|
||||
getCollectState(this.info.id).then(res => {
|
||||
getCollectState(this.info.id, 0).then(res => {
|
||||
// 0 未收藏,1 已收藏
|
||||
// console.log(res)
|
||||
this.collectStatus = res.data.data;
|
||||
|
||||
@@ -138,7 +138,15 @@
|
||||
<view v-if="nextBtn" class="down" @click="next">下一步</view>
|
||||
</view>
|
||||
</uniMask>
|
||||
<u-popup closeable :show="showPopUp" mode="bottom" @close="closePopUp">
|
||||
<view style="height: 200rpx;padding: 20rpx 40rpx;">
|
||||
<view style="font-size: 28rpx;font-weight: bold;">重要提示:</view>
|
||||
<view style="font-size: 24rpx;color:#707070;margin-top:10rpx;">为保障个人基本劳动权益,建议通过平台用工的形式就业</view>
|
||||
<view style="text-align: center;font-size:28rpx;margin-top: 30rpx;"> {{ info.callName }} : {{ info.callTel }}</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
</view>
|
||||
|
||||
<view v-else-if="showCode" class="codeSealBox">
|
||||
<!-- #ifdef H5 || APP-PLUS -->
|
||||
<view class="closeCode" @click="closeShowCode" style="top: 124rpx;">+</view>
|
||||
@@ -196,6 +204,7 @@
|
||||
src: 'https://jlfiles.oss-cn-zhangjiakou.aliyuncs.com/jobslink-api/doc/%E7%94%B5%E5%AD%90%E5%90%88%E5%90%8C%E9%A2%84%E8%A7%88%E5%9B%BE%E7%89%87.png',
|
||||
maxlength: 6,
|
||||
collectStatus: 0, // 收藏状态
|
||||
showPopUp: false,
|
||||
}
|
||||
},
|
||||
components: {uniMask,validCode},
|
||||
@@ -230,18 +239,21 @@
|
||||
collect() {
|
||||
// console.log('收藏,取消收藏')
|
||||
const status = this.collectStatus == 0 ? 1 : 0;
|
||||
updateCollectStatus(this.info.id, status).then(res => {
|
||||
updateCollectStatus(this.info.id, status, 1).then(res => {
|
||||
if(res.data.code == 200) {
|
||||
this.getCollectStatus()
|
||||
}
|
||||
})
|
||||
},
|
||||
callPhone() {
|
||||
console.log('电话联系')
|
||||
this.showPopUp = true;
|
||||
},
|
||||
closePopUp() {
|
||||
this.showPopUp = false;
|
||||
},
|
||||
// 获取收藏状态
|
||||
getCollectStatus() {
|
||||
getCollectState(this.info.id).then(res => {
|
||||
getCollectState(this.info.id, 1).then(res => {
|
||||
// 0 未收藏,1 已收藏
|
||||
// console.log(res)
|
||||
this.collectStatus = res.data.data;
|
||||
|
||||
@@ -27,11 +27,11 @@
|
||||
<view v-show="!searchResultShow" class="search-history">
|
||||
<view class="title">搜索记录</view>
|
||||
<view class="clear" @click="clearKeyWords">
|
||||
<image src="../../static/img/delete.png" style="width: 20rpx;height: 20rpx;" mode=""></image>
|
||||
<image src="../../static/img/delete.png" style="width: 24rpx;height: 24rpx;" mode=""></image>
|
||||
<view style="margin-left: 5rpx;">清空</view>
|
||||
</view>
|
||||
<view class="wrapper" v-if="searchHistoryList.length > 0">
|
||||
<view class="item" v-for="(item, index) in searchHistoryList">
|
||||
<view class="item" v-for="(item, index) in searchHistoryList" @click="keyWordsClick(item.keywords)">
|
||||
{{ item.keywords }}
|
||||
</view>
|
||||
</view>
|
||||
@@ -160,6 +160,11 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
keyWordsClick(keyWords) {
|
||||
console.log(keyWords)
|
||||
this.keywords = keyWords;
|
||||
this.getNewList();
|
||||
},
|
||||
//最新任务;
|
||||
getList: function (type) {
|
||||
//改变搜索条件,页码值变为1
|
||||
@@ -340,7 +345,7 @@ export default {
|
||||
position: absolute;
|
||||
right: 20rpx;
|
||||
top: 10rpx;
|
||||
font-size: 20rpx;
|
||||
font-size: 24rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #707070;
|
||||
@@ -355,9 +360,9 @@ export default {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.search-history .wrapper .item {
|
||||
font-size: 20rpx;
|
||||
font-size: 24rpx;
|
||||
background-color: #f6f6f6;
|
||||
padding: 10rpx;
|
||||
padding: 8rpx 12rpx;
|
||||
border-radius: 20rpx;
|
||||
margin-right: 10rpx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user