<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
});
}
}
}
1 个回复
nick_sh
请问这个问题最后怎么解决的?