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

直接传projectId给原生

上级 788cacdd
...@@ -281,6 +281,12 @@ export default { ...@@ -281,6 +281,12 @@ export default {
type: 4, type: 4,
seqNo: 1 seqNo: 1
}, },
{
key: "projectId",
value: this.projectId,
type: 4,
seqNo: 1
},
]; ];
if(trySee) { if(trySee) {
......
...@@ -77,6 +77,10 @@ export default { ...@@ -77,6 +77,10 @@ export default {
courseRequire: { courseRequire: {
type: Number, type: Number,
default: 0, default: 0,
},
projectId: {
type: Number | String,
default: 0,
} }
}, },
computed: { computed: {
...@@ -143,6 +147,12 @@ export default { ...@@ -143,6 +147,12 @@ export default {
type: 4, type: 4,
seqNo: 1 seqNo: 1
}, },
{
key: "projectId",
value: this.projectId,
type: 4,
seqNo: 1
},
]; ];
rocNative.dispatchEventByModuleCode({ rocNative.dispatchEventByModuleCode({
modeCode: "M200", modeCode: "M200",
......
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
:courseRequire="courseRequire" :courseRequire="courseRequire"
:hasBindCard="hasBindCard" :hasBindCard="hasBindCard"
:limitTimes="limitTimes" :limitTimes="limitTimes"
:projectId="projectId"
/> />
</div> </div>
</div> </div>
...@@ -1025,10 +1026,6 @@ export default { ...@@ -1025,10 +1026,6 @@ export default {
return; return;
} }
let paramList = [] let paramList = []
// let limitTimes = this.limitTimes - 0;
// if(this.hasBindCard) {
// limitTimes = -1;
// }
paramList = [ paramList = [
{ {
key: "className", key: "className",
...@@ -1054,12 +1051,12 @@ export default { ...@@ -1054,12 +1051,12 @@ export default {
type: 4, type: 4,
seqNo: 1 seqNo: 1
}, },
// { {
// key: "limitTimes", key: "projectId",
// value: limitTimes, value: this.projectId,
// type: 4, type: 4,
// seqNo: 1 seqNo: 1
// }, },
]; ];
console.log('gotoCourse', paramList); console.log('gotoCourse', paramList);
rocNative.dispatchEventByModuleCode({ rocNative.dispatchEventByModuleCode({
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册