鸿宇研学生前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
855 B

<template>
<view class="page__view">
<!-- 导航栏 -->
<navbar :title="details.title" leftClick @leftClick="$utils.navigateBack" bgColor="#FFFFFF" />
<!-- <image class="img" :src="details.details" mode="widthFix"></image> -->
<uv-parse :content="details.details"></uv-parse>
</view>
</template>
<script>
export default {
data() {
return {
details: {},
}
},
onLoad({ api, id, idKey }) {
this.getData(api, id, idKey)
},
methods: {
async getData(api, id, idKey) {
try {
this.details = await this.$fetch(api, { [idKey]: id })
} catch (err) {
console.log('err', err)
}
},
},
}
</script>
<style scoped lang="scss">
.page__view {
background: $uni-bg-color;
}
.img {
width: 100vw;
height: auto;
}
</style>