|
@@ -464,13 +464,20 @@ export default class extends Vue {
|
|
get guideText () {
|
|
get guideText () {
|
|
// P620需求:1、未购买预览时,引流文案
|
|
// P620需求:1、未购买预览时,引流文案
|
|
// 或者,购买豆丁文件加载时错误后,最多预览5页,最后的引流文案
|
|
// 或者,购买豆丁文件加载时错误后,最多预览5页,最后的引流文案
|
|
- let btnText = '下载文档阅读全文'
|
|
|
|
|
|
+ // 未登录
|
|
if (!this.loginInfo) {
|
|
if (!this.loginInfo) {
|
|
- return '开通文库会员免费阅读全文'
|
|
|
|
|
|
+ // 精品
|
|
|
|
+ if (this.detailData.productType === 2) {
|
|
|
|
+ return `开通文库会员${this.detailData.docMemberDiscount}折下载文档阅读全文`
|
|
|
|
+ } else {
|
|
|
|
+ // 会员免费文档
|
|
|
|
+ return '开通文库会员免费阅读全文'
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (this.docLoadError) {
|
|
if (this.docLoadError) {
|
|
return '下载文档阅读全文'
|
|
return '下载文档阅读全文'
|
|
}
|
|
}
|
|
|
|
+ let btnText = '下载文档阅读全文'
|
|
if (this.isvipFree && this.buyed === 0 && this.isviper) { // 会员免费 未下载 会员
|
|
if (this.isvipFree && this.buyed === 0 && this.isviper) { // 会员免费 未下载 会员
|
|
btnText = '下载文档阅读全文'
|
|
btnText = '下载文档阅读全文'
|
|
} else if ((this.power.freeDownload === 2 || this.power.freeDownload === 0) && this.isvipFree && this.buyed === 0 && !this.isviper) {
|
|
} else if ((this.power.freeDownload === 2 || this.power.freeDownload === 0) && this.isvipFree && this.buyed === 0 && !this.isviper) {
|