yujialong 1 month ago
parent fd2e0c400c
commit 76a82ea333
  1. 2
      src/components/goToStoreModal/index.tsx
  2. 2
      src/pages/CollectionDetail/index.tsx
  3. 58
      src/pages/DisplayVideo/index.tsx
  4. 2
      src/pages/Home/index.tsx
  5. 2
      src/pages/ListenDetail/index.tsx

@ -25,7 +25,7 @@ export default function GoToStoreModal({ visible, onClose, type, mallLink = 'pag
const handleNavigateToMiniProgram = () => {
Taro.navigateToMiniProgram({
appId: 'wxbd3d383851fea776',
path: mallLink,
path: mallLink || '',
success: (res) => {
console.log('打开成功=>',res)
},

@ -116,7 +116,7 @@ export default function CollectionDetail() {
} else
if(productDetail?.IsSubscribed === -1 || productDetail?.IsSubscribed === 2){
//未订阅,跳转商城
setprdtMallLink(productDetail.MallLink)
setprdtMallLink(productDetail.MallLink || '')
setisToStoreOpen(true)
}
// Taro.navigateTo({

@ -352,36 +352,38 @@ export default function Index() {
<View className='sixteen-to-nine-container'>
<View className='content'>
{
!isFree &&
<Video
className='jimeiVideo'
src={displayindex['src']}
poster={displayindex['poster']}
initialTime={0}
controls
autoplay
loop={false}
muted={false}
onEnded={() => continuePlay()}
onPlay={() => provingCdKey()}
direction={90}
id='topvideo'
objectFit='contain'
></Video>
!isFree ?
<Video
className='jimeiVideo'
src={displayindex['src']}
poster={displayindex['poster']}
initialTime={0}
controls
autoplay
loop={false}
muted={false}
onEnded={() => continuePlay()}
onPlay={() => provingCdKey()}
direction={90}
id='topvideo'
objectFit='contain'
></Video> :
null
}
{
isFree &&
//@ts-ignore
<player-component
className='jimeiVideo'
title={displayindex.title}
id='tvp-id'
playerid='tvp'
vid={displayindex.src}
onEnded={() => continuePlay()}
onPlay={() => provingCdKey()}
autoplay
/>
isFree ?
//@ts-ignore
<player-component
className='jimeiVideo'
title={displayindex.title}
id='tvp-id'
playerid='tvp'
vid={displayindex.src}
onEnded={() => continuePlay()}
onPlay={() => provingCdKey()}
autoplay
/> :
null
}
</View>
</View>

@ -240,7 +240,7 @@ export default function Home() {
})
}else if (IsSubscribed === -1 || IsSubscribed === 2) {
//未订阅,跳转商城
setprdtMallLink(MallLink)
setprdtMallLink(MallLink || '')
setisToStoreOpen(true)
}else if(IsSubscribed === 1){
//已订阅,跳转详情页

@ -107,7 +107,7 @@ export default function ListenDetail() {
console.log('IsSubscribed=>', IsSubscribed)
if (IsSubscribed === -1) {
//未订阅,跳转商城
detailData.MallLink && setprdtMallLink(detailData.MallLink)
setprdtMallLink(detailData.MallLink || '')
setisToStoreOpen(true)
}else{
Taro.navigateTo({

Loading…
Cancel
Save