yfx
2026-03-17 b67c9b201919c90f877f397a40a377551f528167
xieyi列表查看
1 files modified
1 files added
48 ■■■■■ changed files
pages.json 7 ●●●●● patch | view | raw | blame | history
pages/web/xieyi.vue 41 ●●●●● patch | view | raw | blame | history
pages.json
@@ -237,6 +237,13 @@
                "navigationBarTitleText": "绑卡",
                "navigationStyle":"custom"
            }
        },
        {
            "path": "pages/web/xieyi",
            "style": {
                "navigationBarTitleText": "协议",
                "navigationStyle":"custom"
            }
        }
    ],
    "tabBar": {
pages/web/xieyi.vue
New file
@@ -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>