From 8e3ee81b6ed824866734b7034604121f370f4201 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期三, 09 七月 2025 17:55:14 +0800 Subject: [PATCH] 登录、购书码、申请阅读 --- src/views/index/manual.vue | 34 +++++++++++++++++++--------------- 1 files changed, 19 insertions(+), 15 deletions(-) diff --git a/src/views/index/manual.vue b/src/views/index/manual.vue index 164091c..63b1076 100644 --- a/src/views/index/manual.vue +++ b/src/views/index/manual.vue @@ -1,12 +1,12 @@ <template> - <div class="manualPage"> + <div class="manualPage"> <van-nav-bar title="鎿嶄綔鎵嬪唽" left-text left-arrow @click-left="onClickLeft" /> - <div style="padding-top: 20px;" v-html="manualCon"></div> + <div style="padding-top: 20px" v-html="manualCon"></div> </div> </template> @@ -16,14 +16,13 @@ data() { return { manualCon: "", - }; }, created() { - this.getOperating() + this.getOperating(); }, methods: { - onClickLeft() { + onClickLeft() { this.$router.go(-1); }, //鎿嶄綔鎵嬪唽 @@ -37,22 +36,27 @@ }) .then((res) => { if (res.datas.length > 0) { + res.datas.forEach((item) => { + item.tourism_content = item.tourism_content.replace( + /<img/g, + '<img style="max-width:100%;height:auto"' + ); + item.tourism_content = item.tourism_content.replace( + /\..\/file/g, + this.config.requestCtx + "/file" + ); + }); this.manualCon = res.datas[0].tourism_content; } }); }, - - - } + }, }; </script> <style scoped> -.manualPage{ - width:100%; - height:100%; - padding: 15px; - +.manualPage { + width: 100%; + height: 100%; + padding: 15px; } - - </style> -- Gitblit v1.9.1