Files
nuttyreading-html/pages/medicaldes/medurl.vue

63 lines
1.0 KiB
Vue

<template>
<view class="container">
<!-- 公共组件-每个页面必须引入 -->
<public-module></public-module>
<z-nav-bar></z-nav-bar>
<view class="contentBox">
<web-view :webview-styles="webviewStyles" :src="id"></web-view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
id: '',
webviewStyles: {
progress: {
color: '#000'
}
}
};
},
onLoad(e) {
this.id = e.url ? decodeURIComponent(e.url) : uni.getStorageSync('prescriptUrl')
// #ifdef APP-PLUS
const pages = getCurrentPages()
const page = pages[pages.length - 1];
const currentWebview = page.$getAppWebview()
currentWebview.setStyle({
titleNView: {
buttons: [{
float: 'right',
type: 'close',
onclick: function() {
uni.navigateBack({
delta: 1
});
}
}]
}
})
// #endif
},
computed: {
},
watch: {
},
mounted() {
},
methods: {
}
};
</script>
<style lang="scss" scoped>
@import '@/style/mixin.scss';
</style>