|
@@ -231,6 +231,7 @@ import Ad from '@/components/Ad.vue'
|
|
|
import { MixinTop } from '@/utils/mixin-top'
|
|
|
import { weChatShare } from '@/utils/wxShare'
|
|
|
import { formatSize, dateFormatter } from '@/utils/globalFunctions'
|
|
|
+import { appCallOpenWindow } from '@/utils/globalFunctionsForApp'
|
|
|
import { isAdd } from '@/api'
|
|
|
import { getDocPay } from '@/api/main'
|
|
|
import pdf from 'vue-pdf'
|
|
@@ -652,7 +653,11 @@ export default class extends Vue {
|
|
|
if (type === 'down') { // 下载
|
|
|
this.getDown({ docId: this.docIds }).then((res: any) => {
|
|
|
if (res.error_code === 0) {
|
|
|
- window.location.href = res.data
|
|
|
+ if (this.$env.platform === 'app' && this.$env.platform.platformOS === 'ios') {
|
|
|
+ appCallOpenWindow(res.data)
|
|
|
+ } else {
|
|
|
+ window.location.href = res.data
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
} else if (type === 'vipget') { // 会员下载
|