业务员签约

This commit is contained in:
唐明明
2023-03-08 11:51:43 +08:00
parent d81577bcac
commit 478b70e9f7
10 changed files with 110 additions and 23 deletions

View File

@@ -82,7 +82,7 @@
},
created() {
report(this.$Route.query.id).then(res => {
let { title, total, veidoos, created_at, isAnswer } = res;
let { title, total, veidoos, created_at, isAnswer, isSign } = res;
this.isAnswer = isAnswer;
this.title = title;
this.total = total;
@@ -91,8 +91,23 @@
this.accuracy = (veidoos.count.accuracy).substring(0, (veidoos.count.accuracy).length - 1);
this.allTotal = veidoos.allTotal;
this.wrong = veidoos.wrong;
if(!isSign && isAnswer){
uni.showModal({
title : '提示',
content : '恭喜您通过了业务员考试,是否立即签约?',
cancelColor : '#446EFE',
cancelText : '去签约',
confirmText : '稍后签',
success : ModalRes => {
if(ModalRes.cancel){
this.$Router.pushTab({
name: 'Work'
})
}
}
})
}
}).catch(err => {
console.log(err)
uni.showToast({
title: err.message,
icon : "none"