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.
37 lines
623 B
37 lines
623 B
<template>
|
|
<view class="richText">
|
|
<navbar title="案例分享" :isCenter="true" :back="true"></navbar>
|
|
<u-parse :content="content"></u-parse>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import navbar from '@/components/navbar.vue'
|
|
import {exampleShare} from '@/common/api.js'
|
|
export default {
|
|
components:{navbar},
|
|
data() {
|
|
return {
|
|
|
|
content:'',
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
this.getText()
|
|
},
|
|
methods: {
|
|
getText(){
|
|
exampleShare({custom: { auth: true }}).then(res=>{
|
|
this.content = res.data.content
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.richText{
|
|
padding:24rpx;
|
|
}
|
|
|
|
</style>
|
|
|