|
|
|
@ -100,17 +100,17 @@ export default function ListenDetail() { |
|
|
|
|
return `${formattedMinutes}:${formattedSeconds}`; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handleDisplay = (prdtId: number, resId: number) => { |
|
|
|
|
const handleDisplay = (item: DetailProps['Resources']) => { |
|
|
|
|
if(!Taro.getStorageSync('UserToken')){ |
|
|
|
|
setisLoginOpen(true) |
|
|
|
|
}else{ |
|
|
|
|
console.log('IsSubscribed=>', memberInfo) |
|
|
|
|
if (memberInfo?.SubscribedState !== 1) { |
|
|
|
|
if (!detailData.IsFree && memberInfo?.SubscribedState !== 1) { // 付费专辑 && 无会员
|
|
|
|
|
//没有会员,跳转商城
|
|
|
|
|
setisToStoreOpen(true) |
|
|
|
|
}else{ |
|
|
|
|
Taro.navigateTo({ |
|
|
|
|
url: '/pages/ListenDisplay/index?prdtId=' + prdtId + '&resId=' + resId |
|
|
|
|
url: '/pages/ListenDisplay/index?prdtId=' + detailData.Product.PrdtId + '&resId=' + item.ResId |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -219,7 +219,7 @@ export default function ListenDetail() { |
|
|
|
|
<View |
|
|
|
|
key={index} |
|
|
|
|
className='item' |
|
|
|
|
onClick={() => {handleDisplay( detailData.Product.PrdtId ,item.ResId)}} |
|
|
|
|
onClick={() => {handleDisplay(item)}} |
|
|
|
|
> |
|
|
|
|
<View className='content'> |
|
|
|
|
<View className='title'>{item.ResTitle}</View> |
|
|
|
|