agreement.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="app-container">
  3. <view class="content">
  4. <u-parse :content="content"></u-parse>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. type: 1,
  13. content: '',
  14. };
  15. },
  16. onLoad({ type }) {
  17. this.type = type;
  18. uni.setNavigationBarTitle({
  19. title: type == 1 ? '用户协议' : '隐私声明',
  20. });
  21. this.getDetail();
  22. },
  23. methods: {
  24. getDetail() {
  25. this.$axios({
  26. url: '/common/wechat/detail',
  27. method: 'get',
  28. params: {},
  29. isLoading: 1,
  30. }).then((res) => {
  31. if (this.type == 1) {
  32. this.content = res.data.adminCompanyWechatOther.userAgreementContent;
  33. } else {
  34. this.content =
  35. res.data.adminCompanyWechatOther.privacyStatementContent;
  36. }
  37. });
  38. },
  39. },
  40. };
  41. </script>
  42. <style lang="scss">
  43. .app-container {
  44. background: #ffffff;
  45. padding: 0 30rpx;
  46. box-sizing: border-box;
  47. }
  48. .content {
  49. image {
  50. width: 100%;
  51. }
  52. }
  53. </style>