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

跳转等、按钮等

上级 2a493ba3
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
borderStyle="1px solid #fff" borderStyle="1px solid #fff"
></CommonNavbar> ></CommonNavbar>
<section class="page-content"> <section class="page-content">
<button @click="jumpToExamAction" style="margin: 20px;font-size:20px;text-align:center;padding:10px;">测试按钮</button>
<!-- {{token}} --> <!-- {{token}} -->
<table class="page-content-table"> <table class="page-content-table">
<tr> <tr>
...@@ -131,7 +132,32 @@ export default { ...@@ -131,7 +132,32 @@ export default {
}, },
methods: { methods: {
// 跳转到第三方考试页面
jumpToExamAction() {
console.log(22);
let paramList = [
{
key: "pageUrl",
value: 'http://cmeonline.cma-cmc.com.cn/cms/weixinCourseDetail.htm?courseId=a245b2060ac0495cae440de859321b91&openCourseId=2d9b152a85dc4833892aeaa713362b9f',
type: 4,
seqNo: 1
},
// 此字段不配置,则用原来的逻辑
{
key: "needCache",
value: 1, // 0不缓存,其它值都做缓存
type: 4,
seqNo: 1
}
];
rocNative.dispatchEventByModuleCode({
modeCode: "M300",
jsonString: paramList
});
},
...mapActions(["setUserInfo"]), ...mapActions(["setUserInfo"]),
//获取版本号 //获取版本号
getUserInfo() { getUserInfo() {
rocNative.getUserInfo({ rocNative.getUserInfo({
......
...@@ -111,9 +111,10 @@ ...@@ -111,9 +111,10 @@
/> />
<ExjumperButton <ExjumperButton
@btnClick="beforeJumpToExam" @btnClick="beforeJumpToExam"
v-show="project.cmeType == 2"
v-if="project.inScope !== 0" v-if="project.inScope !== 0"
:btnText="project.currentProgress == 1 ? '参加考试' : '学完全部课程,可参加考试'" :btnText="project.currentProgress > 1 ? '参加考试' : '学完全部课程,可参加考试'"
:type="project.currentProgress == 1 ? 'primary' : 'disabled'"></ExjumperButton> :type="project.currentProgress > 1 ? 'primary' : 'disabled'"></ExjumperButton>
<div v-if="project.inScope !== 0" style="padding-top: 30px"></div> <div v-if="project.inScope !== 0" style="padding-top: 30px"></div>
</div> </div>
</template> </template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册