flat: 添加提示等
This commit is contained in:
@@ -343,31 +343,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() {
|
||||
|
||||
Reference in New Issue
Block a user