flat: 国庆节暂存

This commit is contained in:
史典卓
2024-10-09 10:14:51 +08:00
parent 6504a558ac
commit a4ffe68ec2
32 changed files with 2663 additions and 2135 deletions

View File

@@ -127,7 +127,8 @@
style="margin-right: 10rpx;background-color: #FBAD17;border-radius: 45rpx;">
电话联系
</view>
<view @click="submit" class="bottombtn flexbtn" style="border-radius: 45rpx;">
<view @click="submit" class="bottombtn flexbtn"
:style="{backgroundColor: applyopen ? '#999999' : '#1B66FF'}">
申请
</view>
</view>
@@ -166,9 +167,10 @@
<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 }} :
<span style="color: blue"
<view style="text-align: center;font-size:28rpx;margin-top: 30rpx;"> {{ info.callName || '联系人 '}} :
<span style="color: blue" v-if="info.callTel"
@click="tools.onDialingPhoneNumber(info.callTel)">{{ info.callTel }}</span>
<span style="color: #333333" v-else>无联系方式</span>
</view>
</view>
</u-popup>
@@ -251,6 +253,7 @@
maxlength: 6,
collectStatus: 0, // 收藏状态
showPopUp: false,
applyopen: false
}
},
components: {
@@ -288,6 +291,14 @@
methods: {
dateFormat,
collect() {
if (!this.$api.haslogin()) {
GoLogin()
return
}
if (!this.$api.hasResume()) {
this.navTo('/pageMy/my/resume/index', true)
return
}
// console.log('收藏,取消收藏')
const status = this.collectStatus == 0 ? 1 : 0;
updateCollectStatus(this.info.id, status, 1).then(res => {
@@ -297,6 +308,15 @@
})
},
callPhone() {
if (!this.$api.haslogin()) {
GoLogin()
return
}
if (!this.$api.hasResume()) {
this.navTo('/pageMy/my/resume/index', true)
return
}
this.showPopUp = true;
},
closePopUp() {
@@ -304,6 +324,7 @@
},
// 获取收藏状态
getCollectStatus() {
if (!this.$api.haslogin()) return
getCollectState(this.info.id, 1).then(res => {
// 0 未收藏1 已收藏
// console.log(res)
@@ -326,6 +347,9 @@
lon: self.info.lon,
})
}
if (res.data.data.missionNo.search('ZKRD') >= 0) {
self.applyopen = true
}
self.showDetail = true;
self.getCollectStatus();
if (self.type === 1) {
@@ -339,16 +363,22 @@
});
},
submit: function() {
if (!this.$api.haslogin()) {
GoLogin()
return
}
if (!this.$api.hasResume()) {
this.navTo('/pageMy/my/resume/index', true)
return
}
if (this.applyopen) return;
const _that = this
uni.showModal({
title: '提示',
content: '请确认申请,申请后不能撤销',
success: function(res) {
if (res.confirm) {
if (!_that.$store.state.user.token) {
GoLogin()
return
}
if (_that.loading) return
const auth = _that.auth
const contractOn = _that.info.contractOn
@@ -554,11 +584,11 @@
background-color: #1B66FF;
color: #fff;
text-align: center;
border-radius: 10rpx;
font-family: PingFangSC-Medium;
font-size: 32rpx;
height: 90rpx;
line-height: 90rpx;
border-radius: 45rpx;
}
.btn {