123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <template>
- <view class="content">
- <view class="" v-html="info.introduce" v-if="info.introduce" style="text-align: justify;padding: 20rpx;">
-
- </view>
- </view>
- </template>
- <script>
- import {
- enDetails
- } from '@/api/user.js';
- export default {
- data() {
- return {
- id: 0,
- info: {}
- }
- },
- onLoad(opt) {
- if(opt.id) {
- this.id = opt.id
- }
- this.getJJ()
- },
- methods: {
- getJJ() {
- enDetails({
- id: this.id,
- page: 1,
- rows: 1
- }).then(({
- data
- }) => {
- this.info = data.content.list[0];
- if (this.info.introduce) {
- this.info.introduce = this.info.introduce.replace(/<img/g,
- "<img style='max-width:100%;height:auto;'")
- }
-
- });
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- </style>
|