提交 e3921510 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

增加第一次进入活动activityId为10的时候需要调的接口

上级 1fdd36ab
...@@ -102,7 +102,8 @@ import { ...@@ -102,7 +102,8 @@ import {
checkToken, checkToken,
selectAppModuleParam, selectAppModuleParam,
getSelfAllScore, getSelfAllScore,
getEncryptId } from "@/service"; getEncryptId,
checkFirstEnter } from "@/service";
import { setEventByModuleCode } from "@/utils" import { setEventByModuleCode } from "@/utils"
import { ENV_CONFIG } from '@/utils/enumerate'; import { ENV_CONFIG } from '@/utils/enumerate';
import { Base64 } from 'js-base64'; import { Base64 } from 'js-base64';
...@@ -183,7 +184,14 @@ export default { ...@@ -183,7 +184,14 @@ export default {
methods: { methods: {
// 首次进入活动页面 // 首次进入活动页面
firstEnterActivity() { firstEnterActivity() {
this.showFirstEnter = true; checkFirstEnter({
activityId: this.activityId
}).then(res => {
if(res.data == 1) { //0未知,1第一次 2非第一次
this.showFirstEnter = true;
}
})
}, },
getUserInfo() { getUserInfo() {
this.$rocNative this.$rocNative
......
...@@ -92,4 +92,13 @@ export const getEncryptId = () => { ...@@ -92,4 +92,13 @@ export const getEncryptId = () => {
method: 'get', method: 'get',
withCredentials: true, withCredentials: true,
}) })
}
// 第一次进入活动接口需要调的接口
export const checkFirstEnter = ( data ) => {
return request({
url: `/campaign/homepage/firstInPage`,
method: 'post',
withCredentials: true,
data: data
})
} }
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册