flat: 添加提示等

This commit is contained in:
Apcallover
2024-04-23 20:47:18 +08:00
parent 04c0c631fd
commit b15fbe0f85
7 changed files with 166 additions and 114 deletions

View File

@@ -95,7 +95,7 @@
公司地址{{info.companyAddress || '暂无'}}
</view> -->
<view class="prolist">
工作地址{{info.jobAddress || cityNamed || '暂无'}}
工作地址{{info.jobAddress || '暂无'}}
</view>
<view class="prolist">
详细地址{{info.address || '暂无'}}
@@ -334,31 +334,43 @@
});
},
submit: function() {
if (!this.$store.state.user.token) {
GoLogin()
return
}
if (this.loading) return
const auth = this.auth
const contractOn = this.info.contractOn
const sealOk = this.autograph && this.autograph.data && this.autograph.data.signSrcUrl
// if (sealOk) {
// console.log('直接抢任务')
// this.submitTask()
// } else
// if (!auth.realNameState || !auth.laborState || !auth.insureState) {
// this.goSign(0)
// } else if (!auth.bankCardState){
// this.goSign(1)
// } else
if (contractOn && !sealOk) {
this.goSign(2)
} else if (sealOk && contractOn) {
this.nextBtn = true
this.lookMask()
} else {
this.submitTask()
}
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
const sealOk = _that.autograph && _that.autograph.data && _that.autograph
.data.signSrcUrl
// if (sealOk) {
// console.log('直接抢任务')
// this.submitTask()
// } else
// if (!auth.realNameState || !auth.laborState || !auth.insureState) {
// this.goSign(0)
// } else if (!auth.bankCardState){
// this.goSign(1)
// } else
if (contractOn && !sealOk) {
_that.goSign(2)
} else if (sealOk && contractOn) {
_that.nextBtn = true
_that.lookMask()
} else {
_that.submitTask()
}
} else if (res.cancel) {
_that.$api.msg('取消申请')
}
}
});
},
// 查看合同
lookMask() {