提交 6877a4e5 编写于 作者: guangjun.yang's avatar guangjun.yang

状态样式等

上级 7bb4abbb
......@@ -88,21 +88,22 @@ export default {
isShowNavbar: true,
isFixNavbar: false,
pointStyle: "activity",
// buttonStyleType: "primary",
// 我的进度状态 0: 未学习 1: 学习中 2:待申请 3:已申请审核中 4:审核失败 5:审核成功 6: 已获证
// 1: 学习中 continue 不显示用户信息 不显示提示信息
// 2: 学习已经完成 completed 不显示用户信息 不显示提示信息
// 3:审核中 continue 显示用户信息 预计2019年12月10日前有反馈结果
// 4: 审核失败 error 显示用户信息 您提交的信息不准确,请重新提交或联系云鹊医官方客服
// 5: 审核通过 continue 不显示用户信息 不显示提示信息
status: 4,
status: 5,
statusStyle: "continue",
statusText: "学习中",
statusDescText: "",
needShowTips: false,
needShowUserInfo: true,
needShowBtn: false,
btnText: "重新提交"
btnText: "去学习"
};
},
created() {
......@@ -115,17 +116,18 @@ export default {
this.statusDescText = '';
this.statusText = "学习中";
this.statusStyle = 'continue';
this.needShowBtn = false;
this.needShowBtn = true;
this.btnText = '去学习';
if(status == 1) {
} else if(status == 2){
this.needShowBtn = true;
this.statusText = "学习已经完成";
this.btnText = '申请学分';
this.statusStyle = 'completed';
} else if(status == 3){
this.needShowUserInfo = true;
this.needShowTips = true;
this.needShowBtn = false;
this.statusText = "审核中";
this.statusDescText = '预计2019年12月10日前有反馈结果';
} else if(status == 4){
......@@ -133,10 +135,11 @@ export default {
this.needShowTips = true;
this.statusText = "审核失败";
this.statusStyle = 'error';
this.needShowBtn = true;
this.btnText = '重新提交';
this.statusDescText = '您提交的信息不准确,请重新提交或联系云鹊医官方客服';
} else if(status == 5){
this.needShowUserInfo = true;
this.needShowBtn = false;
this.statusText = "审核通过";
}
},
......
......@@ -12,9 +12,9 @@
:backMethod="from"
></CommonNavbar>
<van-cell-group style="margin: 10px 15px;">
<van-field label-width="150" v-model="userName" label="姓名" placeholder="请填写您的姓名" />
<van-field label-width="150" v-model="idCardId" label="身份证号" placeholder="请填写您的真实身份证号" />
<van-field label-width="150" v-model="icCardId" label="继续医学教育IC卡号" placeholder="请填写您的IC卡号" />
<van-field label-width="150" v-model="formData.name" label="姓名" placeholder="请填写您的姓名" />
<van-field label-width="150" v-model="formData.idCardNumber" label="身份证号" placeholder="请填写您的真实身份证号" />
<van-field label-width="150" v-model="formData.icCardNumber" label="继续医学教育IC卡号" placeholder="请填写您的IC卡号" />
</van-cell-group>
<div class="credit-edit-tips">
您的身份证号将用于生成项目学分证书对应的编号,请确保您所填写的身份证号的真实性
......@@ -35,9 +35,13 @@ export default {
},
data() {
return {
userName: "",
idCardId: "",
icCardId: "",
formData: {
creditId: '',
id: '',
name: "",
idCardNumber: "",
icCardNumber: "",
},
from: "outer",
isBlack: true,
bgColor: "#fff",
......@@ -50,10 +54,24 @@ export default {
isShowDialog: false
};
},
created() {
this.formData.id = this.$route && this.$route.query && this.$route.query.id || 393
},
methods: {
handlerDialogAction(type) {
this.isShowDialog = false;
}
},
applyCredit() {
let _this = this;
let param = {
portalProjectId: projectId,
token: _this.userInfo.userToken,
setEntry: true
};
this.GET("cme/credit/apply", param).then(res => {
})
}
},
};
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册