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

跳转到H5购买页面

上级 f47c623e
...@@ -197,6 +197,7 @@ export default { ...@@ -197,6 +197,7 @@ export default {
}, },
changeCardAction(cardKey, isInTips) { changeCardAction(cardKey, isInTips) {
}, },
showCouponPopup() { showCouponPopup() {
......
...@@ -581,7 +581,7 @@ export default { ...@@ -581,7 +581,7 @@ export default {
}, },
confirm() { confirm() {
alert('wwwww'); console.log('new confirm');
this.$sendBuriedData({ this.$sendBuriedData({
component_tag: `882#88203` component_tag: `882#88203`
}); });
......
...@@ -334,6 +334,9 @@ export default { ...@@ -334,6 +334,9 @@ export default {
component_tag: `885#88516` component_tag: `885#88516`
}); });
}, },
//去购买操作-先校验登录 //去购买操作-先校验登录
confirm() { confirm() {
this.checkTokenForNative(() => { this.checkTokenForNative(() => {
...@@ -343,7 +346,35 @@ export default { ...@@ -343,7 +346,35 @@ export default {
component_tag: `885#88517` component_tag: `885#88517`
}); });
}, },
// 新购买方法
confirmGoBuy() { confirmGoBuy() {
console.log('new confirm');
this.$sendBuriedData({
component_tag: `882#88203`
});
let pageUrl = getWebPageUrl(
`/profexam/#/question-bank?id=${this.secondSubjectId}&secondSubjectId=${this.secondSubjectId}`
);
let courseUrl = encodeURIComponent(pageUrl);
let paramPageUrl = getWebPageUrl(`profexam/#/goods-detail?goodsId=${this.cardInfo.id}&projectId=${this.secondSubjectId}&courseUrl=${courseUrl}`);
let paramList = [
{
key: "pageUrl",
value: paramPageUrl,
type: 4,
seqNo: 1
}
]
rocNative.dispatchEventByModuleCode({
modeCode: "M300",
jsonString: paramList
});
},
// 原原生购买方法
confirmGoBuyOld() {
let appVersion = this.userInfo.appVersion || ""; let appVersion = this.userInfo.appVersion || "";
let appVersionNum = appVersion.split(".").join(""); let appVersionNum = appVersion.split(".").join("");
if (appVersionNum < 344) { if (appVersionNum < 344) {
......
...@@ -242,8 +242,34 @@ export default { ...@@ -242,8 +242,34 @@ export default {
} }
}, },
// 跳转到(原生)购买页面 // 新购买方法
confirmGoBuy() { confirmGoBuy() {
console.log('new confirm');
this.$sendBuriedData({
component_tag: `882#88203`
});
let pageUrl = getWebPageUrl(
`/profexam/#/question-bank?id=${this.secondSubjectId}&secondSubjectId=${this.secondSubjectId}`
);
let courseUrl = encodeURIComponent(pageUrl);
let paramPageUrl = getWebPageUrl(`profexam/#/goods-detail?goodsId=${this.cardId}&projectId=${this.secondSubjectId}&courseUrl=${courseUrl}`);
let paramList = [
{
key: "pageUrl",
value: paramPageUrl,
type: 4,
seqNo: 1
}
]
rocNative.dispatchEventByModuleCode({
modeCode: "M300",
jsonString: paramList
});
},
// 跳转到(原生)购买页面
confirmGoBuyOld() {
let appVersion = this.userInfo.appVersion || ""; let appVersion = this.userInfo.appVersion || "";
let appVersionNum = appVersion.split(".").join(""); let appVersionNum = appVersion.split(".").join("");
if (appVersionNum < 344) { if (appVersionNum < 344) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册