Files
learning-system-mobile/pages/my/myAssdetail.vue
2022-08-09 16:09:30 +08:00

47 lines
869 B
Vue

<template>
<!-- 我的测评详情 -->
<view class="loaddetail-box">
<page-title :showBack="true">我的评估</page-title>
<view class="">
<web-view v-if="url!=''" :src="url" style="width: 100%;height: 100%;"></web-view>
</view>
</view>
</template>
<script>
export default {
data() {
return{
id:'',
url:'',
text:'',
}
},
onLoad(options) {
//console.log(options.id)
let decodeUrl=decodeURIComponent(options.url);
console.log('接收后解码后:'+item.url)
this.url = decodeUrl;
},
mounted(){
// let urlPre=window.location.protocol+'//'+window.location.host;
// this.url = `${urlPre}/m/quizsummary?id=${this.id}&inner=1`
}
}
</script>
<style lang="scss" scoped>
.loaddetail-box{
width: 100%;
height: 100%;
}
body{
width: 100%;
height: 100%;
}
uni-page-body{
height: 100%;
}
</style>