protocol.vue 753 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view>
  3. <view id="text">
  4. <rich-text :nodes="item.dictDescribe"></rich-text>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. import { getQueryDictByNameApi } from '../../api/user'
  10. export default {
  11. name: 'Protocol',
  12. data() {
  13. return {
  14. type: 'app_privacy_agreement',
  15. item: {}
  16. }
  17. },
  18. onLoad(item) {
  19. this.type = item.type
  20. let title = '《巨蜂》商城用户协议'
  21. if (this.type === 'app_privacy_agreement') {
  22. title = '《巨蜂》商城隐私协议'
  23. }
  24. uni.setNavigationBarTitle({
  25. title
  26. })
  27. this.getquery()
  28. },
  29. methods: {
  30. getquery() {
  31. getQueryDictByNameApi({ name: this.type }, 'GET')
  32. .then((res) => {
  33. this.item = res.data
  34. })
  35. }
  36. }
  37. }
  38. </script>
  39. <style scoped>
  40. #text {
  41. padding: 40rpx;
  42. }
  43. </style>