Commit 771f4687 authored by nature's avatar nature

ios

parent 1a5f370f
...@@ -13,7 +13,6 @@ import router from './router' ...@@ -13,7 +13,6 @@ import router from './router'
import App from './App' import App from './App'
import Vuex from 'vuex' import Vuex from 'vuex'
import vuexI18n from 'vuex-i18n' import vuexI18n from 'vuex-i18n'
import PDFJS from 'pdfjs-dist'
import flexible from './common/ydui.flexible' import flexible from './common/ydui.flexible'
import components from './components/component' import components from './components/component'
...@@ -99,7 +98,6 @@ let hlsHttp = { ...@@ -99,7 +98,6 @@ let hlsHttp = {
get: get, get: get,
post: post, post: post,
} }
Vue.prototype.PDFJS = window.PDFJS = hlsHttp
Vue.prototype.hlsHttp = window.hlsHttp = hlsHttp Vue.prototype.hlsHttp = window.hlsHttp = hlsHttp
Vue.prototype.PDFJS = window.PDFJS = PDFJS Vue.prototype.PDFJS = window.PDFJS = PDFJS
......
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<script> <script>
export default { export default {
name: 'RepayDetail', name: 'RepayDetail',
filters: { filters: {
lengthCheck: function (value) { lengthCheck: function (value) {
...@@ -151,14 +151,14 @@ ...@@ -151,14 +151,14 @@
if (res.result === 'S') { if (res.result === 'S') {
vm.fileArray = res.info vm.fileArray = res.info
vm.fileArray.forEach(i => { vm.fileArray.forEach(i => {
//cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes,hideurlbar=no,toolbarposition=top') // cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes,hideurlbar=no,toolbarposition=top')
//cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes') // cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes')
if(vum.Platform.isAndroid()) { //android终端 if (vum.Platform.isAndroid()) { // android终端
window.open(i.fileUrl,"_system","location=yes") window.open(i.fileUrl, '_system', 'location=yes')
}else if(vum.Platform.isIOS() || vum.Platform.isIPad()) { //ios终端 } else if (vum.Platform.isIOS() || vum.Platform.isIPad()) { // ios终端
window.location.href = i.fileUrl; cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes,hideurlbar=no,toolbarposition=top')
}else{ } else {
window.open(i.fileUrl,"_system","location=yes") window.open(i.fileUrl, '_system', 'location=yes')
} }
}) })
// vm.pdfDownload() // vm.pdfDownload()
...@@ -253,7 +253,7 @@ ...@@ -253,7 +253,7 @@
}) })
}, },
}, },
} }
</script> </script>
<style lang='less'> <style lang='less'>
#repay-detail { #repay-detail {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</h-view> </h-view>
</template> </template>
<script> <script>
//import PDFJS from 'pdfjs-dist' // import PDFJS from 'pdfjs-dist'
// const Base64 = require('js-base64').Base64 // const Base64 = require('js-base64').Base64
export default { 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