| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <template>
- <view class="container">
- <jyf-parser :html="content" class="mar_t50"></jyf-parser>
- </view>
- </template>
- <script>
- import { post } from "@/request/api.js";
- import jyfParser from "@/components/jyf-parser/jyf-parser.vue";
- export default {
- data() {
- return {
- content: "",
- };
- },
- onLoad(da) {
- this.loadData(da.type);
- uni.setNavigationBarTitle({ title: decodeURI(da.tit) });
- },
- methods: {
- loadData(type) {
- post("/my/article", {type}).then((res) => {
- if (res.code == 0) {
- this.content = res.data.data.content;
- }
- });
- },
- },
- components: {
- jyfParser,
- },
- };
- </script>
- <style lang="scss" scoped>
- // 用户须知
- .container {
- border-top: 20rpx solid #f5f5f5;
- padding: 0 20rpx;
- box-sizing: border-box;
- }
- // 用户须知-end
- </style>
|