1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <view>
- <use-tabbar :tabbar="false"></use-tabbar>
- <web-view :src="url" :webview-styles="webviewStyles" @message="callback" style="margin-top:44px;"></web-view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- url: '',
- title : '',
- webviewStyles: {
- progress: {
- color: '#FF3333'
- }
- }
- };
- },
- onLoad: function(option) {
- if (option && option.name) {
- uni.setNavigationBarTitle({
- title:option.name
- });
- }
- this.url = this.Dever.data('web_view');
- this.title = this.Dever.data('web_view_title');
- },
- onShow: function() {},
- methods: {
- callback(e) {
-
- },
- }
- };
- </script>
- <style>
- </style>
|