我的申请,我的收藏,浏览记录联调

This commit is contained in:
zxy
2024-02-21 17:18:40 +08:00
parent 06b6fe4140
commit 8314a2232e
11 changed files with 657 additions and 18 deletions

View File

@@ -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;