mimi.vue 984 B

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