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 () {
this.$get(this.api.whetherToRenewTheFee, {
async getStatus () {
const { isRenew } = await this.$get(this.api.whetherToRenewTheFee, {
mallId: this.id
}).then(({ isRenew }) => {
// 10
this.overdue = isRenew
}).catch(res => { })
})
// 10
this.overdue = isRenew
},
// tab
tabChange ({ id }) {

@ -110,9 +110,11 @@ export default {
}
},
toProduct (item) {
//
if (item.isInEffect) {
const links = item.nonAssociatedLinks
const links = item.nonAssociatedLinks
// / cid
if (!item.isInEffect || (!item.cid && !links)) {
this.$router.push(`/product/show?id=${item.mallId}`)
} else {
//
if (links && links.length) {
if (links.length === 1) {
@ -122,11 +124,8 @@ export default {
this.links = item.nonAssociatedLinks
}
} 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

Loading…
Cancel
Save