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.

49 lines
835 B

3 years ago
<template>
3 years ago
<view class="wrap">
<view class="stabar"></view>
<view class="secbar"><label class="back" @click="back()"></label></view>
<view class="contentContainer">
3 years ago
<view v-html="content"></view>
</view>
3 years ago
</view>
3 years ago
</template>
<script>
export default {
data() {
return {
content:"",
guid:""
};
},
onLoad(options) {
this.guid = options.guid;
this.getContent();
},
methods:{
async getContent() {
const {
data: res
} = await uni.$http.post('/small/library/getById',{guid:this.guid})
if (!res.success) return uni.$showMsg()
this.content = res.data.content
},
3 years ago
back(){
uni.navigateBack({
delta:1,//返回层数,2则上上页
})
}
3 years ago
}
}
</script>
<style lang="scss">
3 years ago
@import url("@/static/base_css.css");
.contentContainer{
padding: 15% 3%;
}
3 years ago
</style>