提交 a95dcbf4 编写于 作者: huangwensu's avatar huangwensu

路由跳转改为原生跳转

上级 2a14c838
...@@ -123,7 +123,18 @@ export default { ...@@ -123,7 +123,18 @@ export default {
}, },
coopDetails(item) { coopDetails(item) {
if(this.userMobile) { if(this.userMobile) {
this.$router.push({path: '/coop',query: {id: item.id}}); let paramList = [
{
"key":"pageUrl",
"value": getWebPageUrl(`coop?id=${item.id}`),
"type":4,
"seqNo":1
}
];
rocNative.dispatchEventByModuleCode({
modeCode: 'M300',
jsonString: paramList
});
}else { }else {
rocNative.gotoLogin(); rocNative.gotoLogin();
} }
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
</div> </div>
</template> </template>
<script> <script>
import { getWebPageUrl } from '@/utils/index';
export default { export default {
props: { props: {
currentProgress: { currentProgress: {
...@@ -43,6 +44,10 @@ export default { ...@@ -43,6 +44,10 @@ export default {
creditId: { creditId: {
type: Number, type: Number,
default: 0 default: 0
},
certificateUrl: {
type: String,
default: ""
} }
}, },
data() { data() {
...@@ -96,33 +101,18 @@ export default { ...@@ -96,33 +101,18 @@ export default {
}, },
// 审核 // 审核
verifyResult() { verifyResult() {
if(this.currentProgress == 3) { // 审核中 let paramList = [
// let paramList = [ {
// { "key":"pageUrl",
// "key":"pageUrl", "value": getWebPageUrl(`credit-detail?id=${this.creditId}`),
// "value": url, "type":4,
// "type":4, "seqNo":1
// "seqNo":1 }
// },{ ];
// "key":"showTitle", rocNative.dispatchEventByModuleCode({
// "value": false, modeCode: 'M300',
// "type":1, jsonString: paramList
// "seqNo":2 });
// },{
// "key":"title",
// "value": '',
// "type":1,
// "seqNo":3
// }
// ];
// this.$rocNative.dispatchEventByModuleCode({
// modeCode: 'M300',
// jsonString: paramList
// });
this.$router.push({path: '/credit-detail',query: {flag: false, id: this.creditId}});
}else if(this.currentProgress == 4) { // 审核失败
this.$router.push({path: '/credit-detail',query: {flag: true, id: this.creditId}});
}
}, },
// 获得学分--下载证书 // 获得学分--下载证书
getScore() { getScore() {
......
...@@ -108,8 +108,7 @@ export default { ...@@ -108,8 +108,7 @@ export default {
// } else { // } else {
// rocNative.goBack(); // rocNative.goBack();
// } // }
this.$router.back(-1); rocNative.goBack();
//rocNative.goBack();
}, },
//分享 //分享
goShare() { goShare() {
......
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
:studyProgress="project.studyProgress" :studyProgress="project.studyProgress"
:credit="project.credit" :credit="project.credit"
:creditId="project.creditId" :creditId="project.creditId"
:certificateUrl="project.certificateUrl"
@applicationCredit="applicationCredit"/> @applicationCredit="applicationCredit"/>
<!-- 简介和目录 --> <!-- 简介和目录 -->
<div class="intro-catalogue-container"> <div class="intro-catalogue-container">
...@@ -100,7 +101,8 @@ import ItemIntro from "@/components/cme/item-intro"; ...@@ -100,7 +101,8 @@ import ItemIntro from "@/components/cme/item-intro";
import ItemLeader from "@/components/cme/item-leader"; import ItemLeader from "@/components/cme/item-leader";
import TeacterIntro from "@/components/cme/teacter-intro"; import TeacterIntro from "@/components/cme/teacter-intro";
import CommonDialog from "@/components/cme/common-dialog"; import CommonDialog from "@/components/cme/common-dialog";
import { getWebPageUrl } from '@/utils/index';
import { mapGetters, mapActions } from "vuex"; import { mapGetters, mapActions } from "vuex";
import vueFilters from '@/utils/filter'; import vueFilters from '@/utils/filter';
...@@ -132,6 +134,7 @@ export default { ...@@ -132,6 +134,7 @@ export default {
studyProgress: "0%", // 学习进度 studyProgress: "0%", // 学习进度
subject: "", // 学科 subject: "", // 学科
status: 0, // 项目状态 1是参加中 5是进行中 10是已结束 status: 0, // 项目状态 1是参加中 5是进行中 10是已结束
certificateUrl: "" // 证书url
}, },
projectLeader: {}, projectLeader: {},
doctorList: [], doctorList: [],
...@@ -279,7 +282,18 @@ export default { ...@@ -279,7 +282,18 @@ export default {
}; };
_this.NEW_POST("cme/credit/applyCheck", param).then(res => { _this.NEW_POST("cme/credit/applyCheck", param).then(res => {
if(res.code == "000000") { if(res.code == "000000") {
this.$router.push({path:'/credit-edit',query: {}}); let paramList = [
{
"key":"pageUrl",
"value": getWebPageUrl(`credit-edit`),
"type":4,
"seqNo":1
}
];
rocNative.dispatchEventByModuleCode({
modeCode: 'M300',
jsonString: paramList
});
}else if(res.code == "219004" || res.code == "219005") { // 未加入机构 219004 未身份认证 219005 不在申请范围 219012 }else if(res.code == "219004" || res.code == "219005") { // 未加入机构 219004 未身份认证 219005 不在申请范围 219012
let params = { let params = {
__funcName: "__checkPermissions", __funcName: "__checkPermissions",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册