|
@@ -17,6 +17,7 @@ import {
|
|
|
Radio,
|
|
|
RadioGroup
|
|
|
} from 'vant'
|
|
|
+import { postMessage } from '@/helpers/native-message'
|
|
|
import Search from '@/components/col-search'
|
|
|
import request from '@/helpers/request'
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
@@ -30,6 +31,7 @@ import ColHeader from '@/components/col-header'
|
|
|
import bgImg from '../../images/bg.png'
|
|
|
import TheSticky from '@/components/the-sticky'
|
|
|
import dayjs from 'dayjs'
|
|
|
+import { browser } from '@/helpers/utils'
|
|
|
|
|
|
const noop = () => {
|
|
|
//
|
|
@@ -477,14 +479,26 @@ export default defineComponent({
|
|
|
showTitleImg
|
|
|
list={data.value.rows}
|
|
|
onDetail={(item: any) => {
|
|
|
- router.push({
|
|
|
- path: '/music-detail',
|
|
|
- query: {
|
|
|
- subjectType,
|
|
|
- id: item.id,
|
|
|
- tenantAlbumId: item.tenantAlbumId
|
|
|
- }
|
|
|
- })
|
|
|
+ if (browser().isApp) {
|
|
|
+ const url = `${location.origin}/tenant/#/music-detail?id=${item.id}&subjectType=${subjectType}&tenantAlbumId=${item.tenantAlbumId}`
|
|
|
+ postMessage({
|
|
|
+ api: 'openWebView',
|
|
|
+ content: {
|
|
|
+ url,
|
|
|
+ orientation: 1,
|
|
|
+ isHideTitle: false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ router.push({
|
|
|
+ path: '/music-detail',
|
|
|
+ query: {
|
|
|
+ subjectType,
|
|
|
+ id: item.id,
|
|
|
+ tenantAlbumId: item.tenantAlbumId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
}}
|
|
|
/>
|
|
|
) : (
|