userAgreement.vue 746 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <view>
  3. <u-parse :content="content" class="content"></u-parse>
  4. <view class="mfooter">
  5. <view class="flex">
  6. <view class="f">
  7. <button class="btn" @click="back()">我已知晓并同意</button>
  8. </view>
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. data() {
  16. return {
  17. content: ''
  18. };
  19. },
  20. onLoad(e) {
  21. if (e.id) {
  22. this.http.request({
  23. url: '/level-one-server/app/TbAgreement/getById?id=' + e.id,
  24. success: res => {
  25. this.content = res.data.data.content;
  26. uni.setNavigationBarTitle({ title: res.data.data.type });
  27. }
  28. });
  29. }
  30. },
  31. methods: {
  32. back() {
  33. uni.navigateBack();
  34. }
  35. }
  36. };
  37. </script>
  38. <style lang="scss">
  39. .content {
  40. padding: 18px 18px 90px 18px;
  41. }
  42. </style>