index.vue 817 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view>
  3. <view class="title">{{agreement.title}}</view>
  4. <view class="cont" v-html="agreement.content"></view>
  5. </view>
  6. </template>
  7. <script>
  8. import {
  9. memberCard
  10. } from '@/api/user.js';
  11. export default {
  12. data() {
  13. return {
  14. agreement: ''
  15. }
  16. },
  17. onLoad() {
  18. this.memberCard();
  19. },
  20. methods: {
  21. memberCard() {
  22. uni.showLoading({
  23. title: '加载中'
  24. });
  25. memberCard().then(res => {
  26. uni.hideLoading();
  27. const {
  28. member_explain
  29. } = res.data;
  30. this.agreement = member_explain;
  31. }).catch(err => {
  32. uni.hideLoading();
  33. });
  34. }
  35. }
  36. }
  37. </script>
  38. <style>
  39. page {
  40. background-color: #FFFFFF;
  41. }
  42. </style>
  43. <style scoped>
  44. .title {
  45. padding-top: 60rpx;
  46. font-size: 30rpx;
  47. text-align: center;
  48. }
  49. .cont {
  50. padding: 50rpx 30rpx;
  51. }
  52. </style>