lin
2026-05-21 bc67eb7b9a46c3abedbde46c4989894e9712e99f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<script>
export default {
  name: "xieyi",
  data(){
    return {
      text: ''
    }
  },
  onLoad(pro) {
    console.log(pro);
    let code =pro.code;
    let title = pro.title;
    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>