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

跳转问题等

上级 5187521e
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
}) })
} }
}) })
}("gotoLogin", "dispatchEventByModuleCode", "gotoAuthentication", "shareWechat", "backPreviousPage", "bindingWechat", "getDeviceInfo", "goBack", "appBuryingPointEntrust", "getAuthPermission", "getAppVersionCode", "getToken", "gotoNewActivity", "gotoNewActivityWithParams", "gotoNewWebActivity", "gotoYidianActivity", "readMessage", "openFiveMintusAudio", "getStatusBarSize", "showNativeDialog", "showNativeToast", "gotoViewTop", "appInit", "checkPermissions", "getStatusBarHeight", "setTabMiniIcon", "getUserInfo", "pauseAudioView", "sendBuriedPoint", "openErrorDebug", "upGradeVersion", "getLocalData", "getPositionData"); }("gotoLogin", "dispatchEventByModuleCode", "gotoAuthentication", "shareWechat", "backPreviousPage", "bindingWechat", "getDeviceInfo", "goBack", "appBuryingPointEntrust", "getAuthPermission", "getAppVersionCode", "getToken", "gotoNewActivity", "gotoNewActivityWithParams", "gotoNewWebActivity", "gotoYidianActivity", "readMessage", "openFiveMintusAudio", "getStatusBarSize", "showNativeDialog", "showNativeToast", "gotoViewTop", "appInit", "checkPermissions", "getStatusBarHeight", "setTabMiniIcon", "getUserInfo", "pauseAudioView", "sendBuriedPoint", "openErrorDebug", "upGradeVersion", "getLocalData", "getPositionData", "rocNative", "WXpay");
if (e.__rocAndroid) { if (e.__rocAndroid) {
e.__isAndroid = true e.__isAndroid = true
e.__isIOS = false e.__isIOS = false
......
...@@ -152,6 +152,7 @@ export default { ...@@ -152,6 +152,7 @@ export default {
}, },
}, },
created() { created() {
console.log('in goods detail new', 111111111);
let href = location.href; let href = location.href;
this.shareUrl = href; this.shareUrl = href;
this.projectId = this.$route.query.projectId; this.projectId = this.$route.query.projectId;
......
...@@ -580,60 +580,51 @@ export default { ...@@ -580,60 +580,51 @@ export default {
}); });
}, },
// 跳转到原生的购买页面
confirm() { confirm() {
alert('wwwww');
this.$sendBuriedData({ this.$sendBuriedData({
component_tag: `882#88203` component_tag: `882#88203`
}); });
let appVersion = this.userInfo.appVersion || "";
let appVersionNum = appVersion.split(".").join("");
if (appVersionNum < 344) {
Toast("请您下载新版本App");
return;
}
// 直接传入职称考项目ID(projectId) // 直接传入职称考项目ID(projectId)
let projectId = this.project.projectId; let projectId = this.projectId;
let pageUrl = getWebPageUrl( let pageUrl = getWebPageUrl(
`/profexam/#/index?id=${projectId}&projectName=${this.project.projectName}&profexamProjectId=${projectId}` `/profexam/#/index?id=${projectId}&projectName=${this.project.projectName}&profexamProjectId=${projectId}`
); );
let courseUrl = encodeURIComponent(pageUrl);
let paramPageUrl = getWebPageUrl(`profexam/#/goods-detail?goodsId=${this.cardInfo.id}&projectId=${projectId}&courseUrl=${courseUrl}`);
let paramList = [ let paramList = [
{ {
key: "className", key: "pageUrl",
value: value: paramPageUrl,
"com.picahealth.yunque.activitys.studycard.StudyCardDetailActivity###PicaDo.LearningCardVC",
type: 4,
seqNo: 1
},
{
key: "goodId",
value: this.cardInfo.id,
type: 4,
seqNo: 1
},
{
key: "courseUrl",
value: encodeURIComponent(pageUrl),
// value: projectId,
type: 4, type: 4,
seqNo: 1 seqNo: 1
} }
]; ]
this.$refs.tcPlayerRef && this.$refs.tcPlayerRef.pause(); this.$refs.tcPlayerRef && this.$refs.tcPlayerRef.pause();
rocNative.dispatchEventByModuleCode({ rocNative.dispatchEventByModuleCode({
modeCode: "M200", modeCode: "M300",
jsonString: paramList jsonString: paramList
}); });
}, },
// 跳转到原生的购买页面 // 跳转到原生的购买页面
confirmOld() { confirmOld() {
// this.$sendBuriedData({ this.$sendBuriedData({
// component_tag: `885#8852` component_tag: `882#88203`
// }); });
let appVersion = this.userInfo.appVersion || "";
let appVersionNum = appVersion.split(".").join("");
if (appVersionNum < 344) {
Toast("请您下载新版本App");
return;
}
let pageUrl = this.project.examBtnUrl; // 直接传入职称考项目ID(projectId)
let projectId = this.project.projectId;
let pageUrl = getWebPageUrl(
`/profexam/#/index?id=${projectId}&projectName=${this.project.projectName}&profexamProjectId=${projectId}`
);
let paramList = [ let paramList = [
{ {
key: "className", key: "className",
...@@ -651,10 +642,12 @@ export default { ...@@ -651,10 +642,12 @@ export default {
{ {
key: "courseUrl", key: "courseUrl",
value: encodeURIComponent(pageUrl), value: encodeURIComponent(pageUrl),
// value: projectId,
type: 4, type: 4,
seqNo: 1 seqNo: 1
} }
]; ];
this.$refs.tcPlayerRef && this.$refs.tcPlayerRef.pause();
rocNative.dispatchEventByModuleCode({ rocNative.dispatchEventByModuleCode({
modeCode: "M200", modeCode: "M200",
jsonString: paramList jsonString: paramList
......
此差异已折叠。
...@@ -564,9 +564,7 @@ export default { ...@@ -564,9 +564,7 @@ export default {
// }); // });
this.commonCheckToken(() => { this.commonCheckToken(() => {
let jumpUrl = getWebPageUrl( let jumpUrl = getWebPageUrl(
`profexam/#/goods-detail?goodsId=${this.cardInfo.id}&projectId=${ `profexam/#/goods-detail?goodsId=${this.cardInfo.id}&projectId=${this.projectId}`
this.projectId
}`
); );
window.location.href = jumpUrl; window.location.href = jumpUrl;
}); });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册