index.vue 882 B

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