吉光研途前端代码仓库
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.
 
 
 

41 lines
729 B

<template>
<view class="page__view">
<!-- 导航栏 -->
<navbar :title="details.title" leftClick @leftClick="$utils.navigateBack" />
<image class="img" :src="details.details" mode="widthFix"></image>
</view>
</template>
<script>
export default {
data() {
return {
details: {},
}
},
onLoad({ articleId }) {
this.getData(articleId)
},
methods: {
async getData(articleId) {
try {
this.details = await this.$fetch('queryServiceArticleById', { articleId })
} catch (err) {
console.log('err', err)
}
},
},
}
</script>
<style scoped lang="scss">
.img {
width: 100vw;
height: auto;
}
</style>