| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <template>
- <view class="page-view f-30 p-40 flex-dir-column flex-x-center">
- <view class="title">{{detailVO.title}}</view>
- <view class="col-info-d t-c m-b-30">
- <u-parse :content="detailVO.content"></u-parse>
- </view>
- </view>
- </template>
- <script>
- import themeMixins from '@/pages/yuecai/mixins/themeMixins.js';
- export default {
- mixins: [themeMixins],
- data() {
- return {
- detailVO: {},
- }
- },
- methods: {
- getDetail(id) {
- this.$u.api.getProfessionalStyleDetail(id).then(res => {
- if (res.data.content) {
- res.data.content = decodeURIComponent(res.data.content);
- }
- this.detailVO = res.data || {}
- })
- }
- },
- onLoad(options) {
- this.getDetail(options.id);
- },
- }
- </script>
- <style scoped lang="scss">
- .title {
- width: 100%;
- text-align: center;
- font-size: 25px;
- color: #65371b;
- margin-bottom: 20px;
- }
- </style>
|