|
|
@@ -19,7 +19,8 @@ import {
|
|
|
Picker,
|
|
|
DropdownMenu,
|
|
|
DropdownItem,
|
|
|
- Tag
|
|
|
+ Tag,
|
|
|
+ Toast
|
|
|
} from 'vant'
|
|
|
import styles from './index.module.less'
|
|
|
import TheSticky from '@/components/the-sticky'
|
|
|
@@ -464,6 +465,11 @@ export default defineComponent({
|
|
|
}, 0)
|
|
|
}
|
|
|
const onSubmit = async () => {
|
|
|
+ if(baseState.platformType === 'TEACHER') {
|
|
|
+ Toast('请联系平台客服开通权限')
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
const album = state.details
|
|
|
const details = state.details
|
|
|
orderStatus.orderObject.orderType = 'TENANT_ALBUM'
|
|
|
@@ -703,9 +709,9 @@ export default defineComponent({
|
|
|
限购{album.buyedTimes}/{album.buyTimes}次
|
|
|
</span>
|
|
|
)}
|
|
|
- {/* 是否解锁 并且 未购买 */}
|
|
|
+ {/* 是否解锁 并且 未购买 && baseState.platformType === 'STUDENT' */}
|
|
|
{album?.albumStatus !== 'NORMAL' &&
|
|
|
- state.buy != '1' && baseState.platformType === 'STUDENT' && (
|
|
|
+ state.buy != '1' && (
|
|
|
<div class={styles.iconLock}>
|
|
|
<img src={iconLock} />
|
|
|
<p>
|
|
|
@@ -747,7 +753,8 @@ export default defineComponent({
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- {state.buy != '1' && baseState.platformType === 'STUDENT' && (
|
|
|
+ {/* && baseState.platformType === 'STUDENT' */}
|
|
|
+ {state.buy != '1' && (
|
|
|
<div class={styles.albumPriceGroup}>
|
|
|
<div class={styles.albumTimer}>
|
|
|
<img
|
|
|
@@ -1127,7 +1134,8 @@ export default defineComponent({
|
|
|
</List>
|
|
|
</div>
|
|
|
</div>
|
|
|
- {baseState.platformType === 'STUDENT' && state.buy != '1' && (
|
|
|
+ {/* baseState.platformType === 'STUDENT' && */}
|
|
|
+ {state.buy != '1' && (
|
|
|
<TheSticky
|
|
|
position="bottom"
|
|
|
varName="--bottom-train-tool-height"
|
|
|
@@ -1141,10 +1149,10 @@ export default defineComponent({
|
|
|
onClick={onSubmit}
|
|
|
>
|
|
|
{/* 开通训练教程 */}
|
|
|
- <span>
|
|
|
+ {baseState.platformType === 'STUDENT' && <span>
|
|
|
¥{state.details?.actualPrice || 0}/
|
|
|
{state.details?.purchaseNum || 0}天
|
|
|
- </span>
|
|
|
+ </span>}
|
|
|
<span>
|
|
|
{state.details?.albumStatus === 'NO_BUY'
|
|
|
? '立即开通'
|