|
@@ -212,13 +212,13 @@ export default {
|
|
this.datas = res.data.data.detail
|
|
this.datas = res.data.data.detail
|
|
this.datas.tags = this.datas.tags.split(',')
|
|
this.datas.tags = this.datas.tags.split(',')
|
|
this.buyed = !!(res.data.data.status)
|
|
this.buyed = !!(res.data.data.status)
|
|
- this.collectd = res.data.data.docCang
|
|
|
|
|
|
+ this.collectd = res.data.data.collect
|
|
}
|
|
}
|
|
})
|
|
})
|
|
getCoin({ B: true }).then(res => {
|
|
getCoin({ B: true }).then(res => {
|
|
- console.log(res)
|
|
|
|
|
|
+ console.log(res.data, '111111')
|
|
if (res.data.error_code === 0) {
|
|
if (res.data.error_code === 0) {
|
|
- this.coinNum = res.data.data.data.points.balance
|
|
|
|
|
|
+ this.coinNum = res.data.data.points.balance
|
|
if (this.buyed) {
|
|
if (this.buyed) {
|
|
this.btnName = '下载文档'
|
|
this.btnName = '下载文档'
|
|
} else {
|
|
} else {
|
|
@@ -290,9 +290,9 @@ export default {
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
if (this.coinNum < this.datas.price) {
|
|
if (this.coinNum < this.datas.price) {
|
|
- window.location.href = '/page_points/recharge?id=' + this.detailData.docId
|
|
|
|
|
|
+ window.location.href = '/page_points/recharge?id=' + this.datas.docId
|
|
} else {
|
|
} else {
|
|
- this.$router.push({ path: '/purchase', query: { id: this.detailData.docId } })
|
|
|
|
|
|
+ this.$router.push({ name: 'purchase', params: { id: this.datas.docId } })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|