agree.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="one">
  5. <u-parse :content="info.agree"></u-parse>
  6. </view>
  7. </view>
  8. </mobile-frame>
  9. </template>
  10. <script>
  11. import uParse from "@/components/u-parse/u-parse.vue";
  12. export default {
  13. components: {
  14. uParse,
  15. },
  16. data() {
  17. return {
  18. info: {}
  19. };
  20. },
  21. onShow: function() {
  22. const that = this;
  23. that.search();
  24. },
  25. methods: {
  26. search() {
  27. const that = this;
  28. uni.getStorage({
  29. key: 'config',
  30. success: function(res) {
  31. if (res.data) that.$set(that, `info`, res.data);
  32. },
  33. fail: function(err) {
  34. console.log(err);
  35. }
  36. })
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss">
  42. .main {
  43. display: flex;
  44. flex-direction: column;
  45. width: 100vw;
  46. height: 100vh;
  47. .one {
  48. padding: 2vw;
  49. .text {
  50. text-align: center;
  51. font-size: var(--font20Szie);
  52. margin: 2vw 0;
  53. font-weight: bold;
  54. }
  55. .info {
  56. text {
  57. font-size: var(--font14Szie);
  58. float: left;
  59. width: 100%;
  60. margin: 0 0 10px 0;
  61. }
  62. }
  63. }
  64. }
  65. </style>