提交 1aab195d authored 作者: lhh's avatar lhh

修改学生进入链接商城入口

上级 27c063ff
......@@ -11,6 +11,8 @@ const store = useMapStore()
const userStore = useUserStore()
const route = useRoute()
const FormDialog = defineAsyncComponent(() => import('../components/FormDialog.vue'))
const UserDataDialog = defineAsyncComponent(() => import('../components/UserDataDialog.vue'))
const EventDataDialog = defineAsyncComponent(() => import('../components/EventDataDialog.vue'))
......@@ -106,15 +108,19 @@ const viewDataProgress = function () {
let studentFollowVisible = $ref(false)
let studentFollowData = $ref<StudentFollow>()
const handleStudentFollow = function (experimentId: string, id: string, type: string) {
studentFollowVisible = true
getStudentFollow({ experiment_id: experimentId, experiment_connection_id: id }).then((res: any) => {
if (res.code === 0) {
const data = res.data
data.connect_id = id
data.type = type
studentFollowData = data
}
})
if (type === '15') {
window.open(`https://mall-h5-web.ezijing.com?id=${id}&experiment_id=${route.query.experiment_id}`)
} else {
studentFollowVisible = true
getStudentFollow({ experiment_id: experimentId, experiment_connection_id: id }).then((res: any) => {
if (res.code === 0) {
const data = res.data
data.connect_id = id
data.type = type
studentFollowData = data
}
})
}
}
</script>
......@@ -179,7 +185,7 @@ const handleStudentFollow = function (experimentId: string, id: string, type: st
margin-right: 10px;
}
}
.connect-item{
.connect-item {
min-height: 166px;
}
</style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论