1 files modified
1 files added
| | |
| | | "navigationBarTitleText": "绑卡", |
| | | "navigationStyle":"custom" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/web/xieyi", |
| | | "style": { |
| | | "navigationBarTitleText": "协议", |
| | | "navigationStyle":"custom" |
| | | } |
| | | } |
| | | ], |
| | | "tabBar": { |
| New file |
| | |
| | | <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> |