1***@qq.com
1***@qq.com
  • 发布:2019-01-18 18:58
  • 更新:2020-02-26 15:12
  • 阅读:2210

web-view动态显示,网页不显示请问为什么?有代码

分类:uni-app

<template>
<view>
<web-view :src="url" :webview-styles="webviewStyles" @message="getMessage"></web-view>
</view>
</template>

<script>

import common from '../../common/common.js';  

export default {  
    data() {  
        return {  

            url: '',  

            gamearray:[],  

            webviewStyles: {  
                                 progress: {  
                                       color: 'blue'  
                                 }  
                            }  
        };  
    },  
    onShow(){  
        this.gamearray = this.gloableGameArray  
    },  
    onReady(){  
        var xb = common.clickIndex;  
        console.log("传入值"+common.clickIndex);  
        options.url = this.gloableGameArray[xb].url  
    },  
    onLoad(options) {  
        this.url = options.url;  
    },  
    methods: {  
        getMessage(event) {  
            uni.showModal({  
                content: JSON.stringify(event.detail),  
                showCancel: false  
            });  
        }  
    }  
}
2019-01-18 18:58 负责人:无 分享
已邀请:
nick_sh

nick_sh

请问这个问题最后怎么解决的?

该问题目前已经被锁定, 无法添加新回复