mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 09:26:45 +08:00
48 lines
804 B
Vue
48 lines
804 B
Vue
<template>
|
|
<!-- 学习任务详情 -->
|
|
<view class="loaddetail-box">
|
|
<!-- <page-title :showBack="true">详细信息</page-title> -->
|
|
<web-view v-if="innerUrl!=''" :src="innerUrl" style="width: 100%;height: 100%;"></web-view>
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
data (){
|
|
return{
|
|
innerUrl:'',
|
|
}
|
|
},
|
|
onLoad(options) {
|
|
console.log(options,'options')
|
|
let params=options.params;
|
|
let to=options.to;
|
|
let urlPre=window.location.protocol+'//'+window.location.host;
|
|
this.innerUrl=urlPre+to
|
|
if(params){
|
|
this.innerUrl=this.innerUrl+'?'+params;
|
|
}
|
|
},
|
|
mounted(){
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
body{
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
uni-page-body{
|
|
height: 100%;
|
|
}
|
|
.loaddetail-box{
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
</style>
|