业务员签约
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user