master
yujialong 4 months ago
parent 5aeda75e21
commit 4d1f77b168
  1. 11
      src/pages/product/show/index.vue
  2. 13
      src/pages/station/list/index.vue

@ -231,13 +231,12 @@ export default {
} }
}, },
// //
getStatus () { async getStatus () {
this.$get(this.api.whetherToRenewTheFee, { const { isRenew } = await this.$get(this.api.whetherToRenewTheFee, {
mallId: this.id mallId: this.id
}).then(({ isRenew }) => { })
// 10 // 10
this.overdue = isRenew this.overdue = isRenew
}).catch(res => { })
}, },
// tab // tab
tabChange ({ id }) { tabChange ({ id }) {

@ -110,9 +110,11 @@ export default {
} }
}, },
toProduct (item) { toProduct (item) {
// const links = item.nonAssociatedLinks
if (item.isInEffect) { // / cid
const links = item.nonAssociatedLinks if (!item.isInEffect || (!item.cid && !links)) {
this.$router.push(`/product/show?id=${item.mallId}`)
} else {
// //
if (links && links.length) { if (links && links.length) {
if (links.length === 1) { if (links.length === 1) {
@ -122,11 +124,8 @@ export default {
this.links = item.nonAssociatedLinks this.links = item.nonAssociatedLinks
} }
} else { } else {
this.$router.push(`/station/preview?courseId=${item.cid}&curriculumName=${item.goodsName}&mallId=${item.mallId || ''}&keyword=${this.keyword}&active=${this.active}`) this.$router.push(`/station/preview?courseId=${item.cid || ''}&curriculumName=${item.goodsName}&mallId=${item.mallId || ''}&keyword=${this.keyword}&active=${this.active}`)
} }
} else {
//
this.$router.push(`/product/show?id=${item.mallId}`)
} }
}, },
// tab // tab

Loading…
Cancel
Save