|
|
@@ -1135,7 +1135,7 @@ export default defineComponent({
|
|
|
</div>
|
|
|
</div>
|
|
|
{/* baseState.platformType === 'STUDENT' && */}
|
|
|
- {state.buy != '1' && (
|
|
|
+ {state.buy != '1' && baseState.platformType === 'STUDENT' && (
|
|
|
<TheSticky
|
|
|
position="bottom"
|
|
|
varName="--bottom-train-tool-height"
|
|
|
@@ -1149,10 +1149,10 @@ export default defineComponent({
|
|
|
onClick={onSubmit}
|
|
|
>
|
|
|
{/* 开通训练教程 */}
|
|
|
- {baseState.platformType === 'STUDENT' && <span>
|
|
|
+ <span>
|
|
|
¥{state.details?.actualPrice || 0}/
|
|
|
{state.details?.purchaseNum || 0}天
|
|
|
- </span>}
|
|
|
+ </span>
|
|
|
<span>
|
|
|
{state.details?.albumStatus === 'NO_BUY'
|
|
|
? '立即开通'
|
|
|
@@ -1162,6 +1162,27 @@ export default defineComponent({
|
|
|
</div>
|
|
|
</TheSticky>
|
|
|
)}
|
|
|
+ {state.buy != '1' && (baseState.platformType === 'TEACHER' && state.details?.albumStatus === 'NO_BUY') && (
|
|
|
+ <TheSticky
|
|
|
+ position="bottom"
|
|
|
+ varName="--bottom-train-tool-height"
|
|
|
+ >
|
|
|
+ <div class={styles.btnGroup}>
|
|
|
+ <Button
|
|
|
+ round
|
|
|
+ block
|
|
|
+ disabled={!state.hasBuyStatus}
|
|
|
+ color="linear-gradient(270deg, #FF204B 0%, #FE5B71 100%)"
|
|
|
+ onClick={onSubmit}
|
|
|
+ >
|
|
|
+ {/* 开通训练教程 */}
|
|
|
+ <span>
|
|
|
+ 立即开通
|
|
|
+ </span>
|
|
|
+ </Button>
|
|
|
+ </div>
|
|
|
+ </TheSticky>
|
|
|
+ )}
|
|
|
</>
|
|
|
)
|
|
|
)}
|