yujialong 4 months ago
parent 3d32d5436e
commit 5aeda75e21
  1. 5
      src/pages/account/redirect/index.vue
  2. 2
      src/pages/product/show/index.vue
  3. 15
      src/pages/station/list/index.vue
  4. 6
      src/pages/station/preview/index.vue

@ -11,6 +11,7 @@ export default {
};
},
mounted () {
localStorage.removeItem('opened')
this.token ? this.setLogin() : this.$router.replace('/login')
},
methods: {
@ -49,6 +50,4 @@ export default {
};
</script>
<style lang="scss" scoped>
</style>
<style lang="scss" scoped></style>

@ -128,6 +128,7 @@
</template>
<script>
import Util from "@/libs/util";
export default {
data () {
return {
@ -277,6 +278,7 @@ export default {
dangerouslyUseHTMLString: true,
})
await this.$post(`${this.api.requestRenewalNotice}?mallId=${this.id}`)
Util.successMsg('续费申请提交成功!')
} catch (e) { }
},
//

@ -21,7 +21,8 @@
<div v-else class="cover" :style="{ backgroundImage: 'url(' + item.coverUrl + ')' }"></div>
<div class="bottom">
<p class="text"><span>{{ item.goodsName || item.curriculumName }}</span></p>
<a>{{ item.isInEffect ? '进入实验' : '续费' }}</a>
<a v-if="!item.isInEffect">续费</a>
<a v-else-if="item.cid">进入实验</a>
</div>
</div>
</template>
@ -55,7 +56,7 @@ export default {
isZj: location.host === '10.60.32.76', //
isSq: Setting.isSq,
keyword: this.$route.query.keyword || '',
active: +this.$route.query.active || '',
active: +this.$route.query.active || 0,
searchTimer: null,
tabs: [],
products: [],
@ -78,15 +79,15 @@ export default {
async getTab () {
const { data } = await this.$get(this.api.getSchoolCourseAuthority)
this.tabs = [
{
classificationId: 0,
classificationName: '最近使用',
},
{
classificationId: '',
classificationName: '全部',
},
...data,
{
classificationId: 0,
classificationName: '最近使用',
},
]
this.getList()
},
@ -99,7 +100,7 @@ export default {
pageSize: 100,
goodsName: this.keyword,
})
this.curriculumList = page.records
this.products = page.records
} else {
const { data } = await this.$get(this.api.schoolCourse, {
authority: this.active,

@ -440,6 +440,7 @@ export default {
this.addRecord()
},
async getData () {
if (this.courseId) {
let { data } = await this.$post(`${this.api.curriculumDetail}?cid=${this.courseId}&mallId=${this.mallId}`);
this.courseName = data.curriculumName;
// this.coverUrl = data.coverUrl;
@ -448,6 +449,7 @@ export default {
this.assessmentList = data.assessmentConfig;
this.systemIds = data.systemIds
this.queryProject()
}
this.getStatus()
},
// 使
@ -467,6 +469,7 @@ export default {
},
//
async getChapter () {
if (this.courseId) {
let res = await this.$get(`${this.api.curriculumChapter}/${this.courseId}`);
this.chapterList = res.chapterList;
const chapter = this.chapter === undefined ? 0 : +this.chapter
@ -475,15 +478,18 @@ export default {
if (this.chapterList.length && clist.subsectionList && clist.subsectionList.length && !this.commentId) {
this.preview(clist.subsectionList[section], clist.name, 1);
}
}
},
//
async getProgress () {
if (this.courseId) {
let res = await this.$post(`${this.api.courseLearningProgress}?courseId=${this.courseId}&systemId=${this.systemIds}&mallId=${this.mallId}`);
this.progressList = res.list
if (res.list.length) this.archProject = res.list[0].projectId
this.maximumScores.length || this.getMaximumScore()
this.plan = res.plan
this.schedule = +(res.schedule.replace('%', ''))
}
},
//
async getMaximumScore () {

Loading…
Cancel
Save