宜呗小程序--微信小程序
Lzk
2025-08-05 b7bcaf556aa2424e808b6e6426ab22df9cfe11c1
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
41
42
43
44
45
46
47
48
49
50
51
52
<template>
  <view class="content">
 
    <view class="text-container"><rich-text :nodes="text"></rich-text></view>
  </view>
</template>
 
<script>
import {getProtocol} from '@/api/modules/user'
export default {
 
  data() {
    return {
      isHideContact: false,
      isShowBack: false,
      text: null,
    };
  },
  onLoad(params) {
    console.log(params.code);
 
    uni.setNavigationBarTitle({
      title: params.title,
    });
    const code = params.code;
    getProtocol(code).then(res=>{
 
      this.text = res.content
    })
  },
  async created() {
 
 
 
 
  },
};
</script>
 
<style>
.content {
  background: #f7f7f7;
  min-height: calc(100vh - var(--window-top) - var(--window-bottom));
  height: calc(100vh - var(--window-top) - var(--window-bottom));
  width: 100vw;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
  padding: 15px;
}
</style>