1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <template>
- <view>
- <view>
- <!-- <web-view :webview-styles="webviewStyles" src="https://uniapp.dcloud.io/static/web-view.html" @message='getMessage'></web-view> -->
- <web-view :webview-styles="webviewStyles" :src="url" @message='getMessage'></web-view>
- </view>
- </view>
- </template>
- <script>
- import { BASEURL } from '../../API/Constant.js' ;
-
- export default {
- data() {
- return {
- path:'product/manual',
- webviewStyles: {
- progress: {
- color: '#FF3333'
- }
- }
- }
- },
- methods: {
- getMessage(event){
- console.log(event);
- }
- },
- computed:{
- url(){
- return `${BASEURL}${this.path}`
- }
- },
- onLoad(option){
- if(option.path && option.path.length > 0){
- this.path = option.path
- }
- }
- }
- </script>
- <style>
- </style>
|