Commit 771f4687 authored by nature's avatar nature

ios

parent 1a5f370f
......@@ -13,7 +13,6 @@ import router from './router'
import App from './App'
import Vuex from 'vuex'
import vuexI18n from 'vuex-i18n'
import PDFJS from 'pdfjs-dist'
import flexible from './common/ydui.flexible'
import components from './components/component'
......@@ -99,7 +98,6 @@ let hlsHttp = {
get: get,
post: post,
}
Vue.prototype.PDFJS = window.PDFJS = hlsHttp
Vue.prototype.hlsHttp = window.hlsHttp = hlsHttp
Vue.prototype.PDFJS = window.PDFJS = PDFJS
......
......@@ -96,7 +96,7 @@
<script>
export default {
export default {
name: 'RepayDetail',
filters: {
lengthCheck: function (value) {
......@@ -151,14 +151,14 @@
if (res.result === 'S') {
vm.fileArray = res.info
vm.fileArray.forEach(i => {
//cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes,hideurlbar=no,toolbarposition=top')
//cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes')
if(vum.Platform.isAndroid()) { //android终端
window.open(i.fileUrl,"_system","location=yes")
}else if(vum.Platform.isIOS() || vum.Platform.isIPad()) { //ios终端
window.location.href = i.fileUrl;
}else{
window.open(i.fileUrl,"_system","location=yes")
// cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes,hideurlbar=no,toolbarposition=top')
// cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes')
if (vum.Platform.isAndroid()) { // android终端
window.open(i.fileUrl, '_system', 'location=yes')
} else if (vum.Platform.isIOS() || vum.Platform.isIPad()) { // ios终端
cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes,hideurlbar=no,toolbarposition=top')
} else {
window.open(i.fileUrl, '_system', 'location=yes')
}
})
// vm.pdfDownload()
......@@ -253,7 +253,7 @@
})
},
},
}
}
</script>
<style lang='less'>
#repay-detail {
......
......@@ -12,7 +12,7 @@
</h-view>
</template>
<script>
//import PDFJS from 'pdfjs-dist'
// import PDFJS from 'pdfjs-dist'
// const Base64 = require('js-base64').Base64
export default {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment