|
@@ -41,17 +41,14 @@ export default defineComponent({
|
|
|
created() {
|
|
|
if (browser().isApp) {
|
|
|
if (state.platformType === 'STUDENT') {
|
|
|
+ const query = this.$route.query
|
|
|
+ query.recomUserId = query.userType && query.userType == 'STUDENT' ? '' : query.recomUserId
|
|
|
// 自动跳转到学生端视频课详情购买页
|
|
|
- window.location.replace(
|
|
|
- `${location.origin}/student/#/videoDetail?${qs.stringify(
|
|
|
- this.$route.query
|
|
|
- )}`
|
|
|
- )
|
|
|
// 为了处理andoird webview的跳转问题
|
|
|
if (browser().ios) {
|
|
|
window.location.replace(
|
|
|
`${location.origin}/student/#/videoDetail?${qs.stringify(
|
|
|
- this.$route.query
|
|
|
+ query
|
|
|
)}`
|
|
|
)
|
|
|
} else {
|
|
@@ -59,7 +56,7 @@ export default defineComponent({
|
|
|
api: 'openWebView',
|
|
|
content: {
|
|
|
url: `${location.origin}/student/#/videoDetail?${qs.stringify(
|
|
|
- this.$route.query
|
|
|
+ query
|
|
|
)}`,
|
|
|
orientation: 1,
|
|
|
isHideTitle: false
|
|
@@ -68,11 +65,6 @@ export default defineComponent({
|
|
|
|
|
|
postMessage({ api: 'back' })
|
|
|
}
|
|
|
- // this.locationReplace(
|
|
|
- // `${location.origin}/student/#/videoDetail?${qs.stringify(
|
|
|
- // this.$route.query
|
|
|
- // )}`
|
|
|
- // )
|
|
|
return
|
|
|
} else if (state.platformType === 'TEACHER') {
|
|
|
Dialog.alert({
|