lsw 10 ヶ月 前
コミット
086ca8b637

+ 7 - 0
app/pages.json

@@ -30,6 +30,13 @@
 			{
 				"navigationBarTitleText" : "知识详情"
 			}
+		},
+		{
+			"path" : "pages/introduction/index",
+			"style" : 
+			{
+				"navigationBarTitleText" : "医院介绍"
+			}
 		}
 	],
 	"tabBar": {

+ 1 - 1
app/pages/index/index.vue

@@ -2,7 +2,7 @@
 	<view class="main">
 		<image src="https://axure-file.lanhuapp.com/md5__f93627286149f825890eb821ab5d5abb.png" mode="widthFix" class="banner"></image>
 		<view class="flow">
-			<view class="item" @click="go()">
+			<view class="item" @click="go('/pages/introduction/index')">
 				<view class="out">
 					<view class="int">
 						<view class="icon" style="color: rgb(72, 154, 253)">&#xe775;</view>

+ 56 - 0
app/pages/introduction/index.vue

@@ -0,0 +1,56 @@
+<template>
+	<view class="main">
+		<view class="content">
+			<view class="con">
+				<u-parse :content="item.brief"></u-parse>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+export default {
+	data() {
+		return {
+			item: {}
+		};
+	},
+	onLoad(e) {
+		this.http.request({
+			url: '/app/common/introduction/医院介绍',
+			success: (res) => {
+				this.item = res.data.data;
+				this.item.brief = res.data.data.brief.replace(new RegExp('/profile/upload/', 'g'), this.http.ip + '/profile/upload/');
+			}
+		});
+	},
+	methods: {},
+	//分享
+	onShareAppMessage: function (res) {
+		return {
+			title: this.item.title,
+			path: '/pages/news/detail?id=' + this.item.id,
+			success: (res) => {},
+			fail: (res) => {}
+		};
+	}
+};
+</script>
+
+<style lang="scss">
+.main {
+	padding: 0px 10px 10px 10px;
+}
+.content {
+	padding: 15px;
+	background-color: white;
+	border-radius: 8px;
+	.con {
+		font-size: 14px;
+		line-height: 23px;
+		image {
+			border-radius: 5px !important;
+		}
+	}
+}
+</style>

+ 1 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/work/api/config/InterceptorConfig.java

@@ -23,7 +23,7 @@ public class InterceptorConfig implements WebMvcConfigurer {
         registration.excludePathPatterns("/app/user/login"); //排除
         registration.excludePathPatterns("/app/home/**"); //排除
         registration.excludePathPatterns("/app/common/type/*"); //排除
-        registration.excludePathPatterns("/app/common/agreement/*"); //排除
+        registration.excludePathPatterns("/app/common/introduction/*"); //排除
     }
 
     @Override

+ 1 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/work/controller/IntroductionController.java

@@ -37,6 +37,7 @@ public class IntroductionController extends BaseController {
     @Log(title = "编辑医院介绍", businessType = BusinessType.UPDATE)
     @PostMapping("/edit")
     public AjaxResult edit(@RequestBody Introduction introduction) {
+        introduction.setBrief(introduction.getBrief().replace("/dev-api", "").replace("/prod-api", ""));
         boolean row = introductionService.updateById(introduction);
         if (row) {
             redisCache.setCacheObject(CacheConstants.APP_INFO, introduction);