|
@@ -172,8 +172,10 @@ export default defineComponent({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+ state.loading = true
|
|
|
await getDetails()
|
|
|
await FetchList()
|
|
|
+ state.loading = false
|
|
|
})
|
|
|
|
|
|
const onSubmit = async () => {
|
|
@@ -365,22 +367,20 @@ export default defineComponent({
|
|
|
</List>
|
|
|
</div>
|
|
|
</div>
|
|
|
- {!state.loading &&
|
|
|
- !state.details.ifBuy &&
|
|
|
- baseState.platformType === 'STUDENT' && (
|
|
|
- <TheSticky position="bottom">
|
|
|
- <div class={styles.btnGroup}>
|
|
|
- <Button
|
|
|
- round
|
|
|
- block
|
|
|
- color="#FE2451"
|
|
|
- onClick={() => (state.popupStatus = true)}
|
|
|
- >
|
|
|
- 购买教程
|
|
|
- </Button>
|
|
|
- </div>
|
|
|
- </TheSticky>
|
|
|
- )}
|
|
|
+ {!state.loading && baseState.platformType === 'STUDENT' && (
|
|
|
+ <TheSticky position="bottom">
|
|
|
+ <div class={styles.btnGroup}>
|
|
|
+ <Button
|
|
|
+ round
|
|
|
+ block
|
|
|
+ color="#FE2451"
|
|
|
+ onClick={() => (state.popupStatus = true)}
|
|
|
+ >
|
|
|
+ 购买教程
|
|
|
+ </Button>
|
|
|
+ </div>
|
|
|
+ </TheSticky>
|
|
|
+ )}
|
|
|
<Popup
|
|
|
v-model:show={state.popupStatus}
|
|
|
position="bottom"
|