提交 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,6 +108,9 @@ const viewDataProgress = function () { ...@@ -106,6 +108,9 @@ 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) {
if (type === '15') {
window.open(`https://mall-h5-web.ezijing.com?id=${id}&experiment_id=${route.query.experiment_id}`)
} else {
studentFollowVisible = true studentFollowVisible = true
getStudentFollow({ experiment_id: experimentId, experiment_connection_id: id }).then((res: any) => { getStudentFollow({ experiment_id: experimentId, experiment_connection_id: id }).then((res: any) => {
if (res.code === 0) { if (res.code === 0) {
...@@ -115,6 +120,7 @@ const handleStudentFollow = function (experimentId: string, id: string, type: st ...@@ -115,6 +120,7 @@ const handleStudentFollow = function (experimentId: string, id: string, type: st
studentFollowData = data 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论