xieyi.vue 947 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view class="home1">
  3. <navBar title="用户协议" color="#000" />
  4. <view v-html="content" class="home-content"></view>
  5. </view>
  6. </template>
  7. <script>
  8. import navBar from "@/components/nav-bar/index.vue";
  9. export default {
  10. data() {
  11. return {
  12. content: "",
  13. };
  14. },
  15. components: {
  16. navBar,
  17. },
  18. onLoad() {
  19. this.getGuize();
  20. },
  21. methods: {
  22. getGuize(){
  23. this.$Request.getT('/app/common/type/177').then(res =>{
  24. if(res.code === 0){
  25. this.content = res.data.value;
  26. }
  27. });
  28. }
  29. }
  30. }
  31. </script>
  32. <style scoped lang="scss">
  33. page {
  34. background: #ffffff;
  35. }
  36. .home1 {
  37. position: absolute;
  38. left: 0;
  39. bottom: 0;
  40. right: 0;
  41. top: 0;
  42. overflow: hidden;
  43. display: flex;
  44. flex-direction: column;
  45. font-size: 28rpx;
  46. line-height: 52rpx;
  47. .home-content {
  48. flex: 1;
  49. overflow: hidden;
  50. overflow-y: auto;
  51. padding: 32rpx;
  52. box-sizing: border-box;
  53. }
  54. }
  55. </style>