|
@@ -50,6 +50,7 @@ import Recharge from '@/components/Recharge.vue'
|
|
import sharePop from '@/components/SharePopup.vue'
|
|
import sharePop from '@/components/SharePopup.vue'
|
|
import { MixinTop } from '@/utils/mixin-top'
|
|
import { MixinTop } from '@/utils/mixin-top'
|
|
import { weChatShare } from '@/utils/wxShare'
|
|
import { weChatShare } from '@/utils/wxShare'
|
|
|
|
+import { formatSize } from '@/utils/globalFunctions'
|
|
import pdf from 'vue-pdf'
|
|
import pdf from 'vue-pdf'
|
|
|
|
|
|
@Component({
|
|
@Component({
|
|
@@ -200,8 +201,8 @@ export default class extends Vue {
|
|
|
|
|
|
onList () {
|
|
onList () {
|
|
this.getDetails({ docId: this.docIds, from: this.$route.query.from }).then((res: any) => {
|
|
this.getDetails({ docId: this.docIds, from: this.$route.query.from }).then((res: any) => {
|
|
- // console.log(res.data)
|
|
|
|
this.detailData = res.data.detail
|
|
this.detailData = res.data.detail
|
|
|
|
+ this.detailData.docFileSize = formatSize(this.detailData.docFileSize)
|
|
this.detailData.docSummary = res.data.detail.docSummary.split('').length >= 500 ? res.data.detail.docSummary + '...' : res.data.detail.docSummary
|
|
this.detailData.docSummary = res.data.detail.docSummary.split('').length >= 500 ? res.data.detail.docSummary + '...' : res.data.detail.docSummary
|
|
this.buyed = res.data.status
|
|
this.buyed = res.data.status
|
|
if (res.data.status === 1) {
|
|
if (res.data.status === 1) {
|