index.vue 902 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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: this.$t(`正在加载中`)
  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 lang="scss">
  44. .title {
  45. padding-top: 60rpx;
  46. font-size: 30rpx;
  47. text-align: center;
  48. }
  49. .cont {
  50. padding: 50rpx 30rpx;
  51. /deep/ img {
  52. max-width: 100% !important;
  53. }
  54. }
  55. </style>