From b67c9b201919c90f877f397a40a377551f528167 Mon Sep 17 00:00:00 2001
From: yfx <1249361928@.com>
Date: Tue, 17 Mar 2026 10:20:17 +0800
Subject: [PATCH] xieyi列表查看

---
 pages/web/xieyi.vue |   41 +++++++++++++++++++++++++++++++++++++++++
 pages.json          |    7 +++++++
 2 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/pages.json b/pages.json
index 7214a72..9023e42 100644
--- a/pages.json
+++ b/pages.json
@@ -237,6 +237,13 @@
 				"navigationBarTitleText": "绑卡",
 				"navigationStyle":"custom"
 			}
+		},
+		{
+			"path": "pages/web/xieyi",
+			"style": {
+				"navigationBarTitleText": "协议",
+				"navigationStyle":"custom"
+			}
 		}
 	],
 	"tabBar": {
diff --git a/pages/web/xieyi.vue b/pages/web/xieyi.vue
new file mode 100644
index 0000000..3856640
--- /dev/null
+++ b/pages/web/xieyi.vue
@@ -0,0 +1,41 @@
+<script>
+export default {
+  name: "xieyi",
+  data(){
+    return {
+      text: ''
+    }
+  },
+  onLoad(pro) {
+    console.log(pro);
+    let code =pro.code;
+    let title = pro.title;
+    const _this = this;
+    uni.request( {
+      url: _this.$webHost+`/api/v2/protocolInfo/getProtocol?appId=b2e24d04-6a97-40a0-9894-a44237c674ac&code=${code}`,
+      success: function (res) {
+        _this.text = res.data.data.content;
+        uni.setNavigationBarTitle({
+          title: title
+        })
+      }.bind(this)
+    })
+  },
+  onShow() {
+
+  },
+}
+</script>
+
+<template>
+  <view class="content">
+    <view class="text-container"><rich-text :nodes="text"></rich-text></view>
+  </view>
+</template>
+
+<style scoped lang="scss">
+.content{
+  height: calc( 100vh - 50px);
+  overflow: scroll;
+}
+</style>

--
Gitblit v1.9.3