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

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

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