多租户商城-商户小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
824 B

2 years ago
2 years ago
2 years ago
  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. const NET = require('../../utils/request')
  10. const API = require('../../config/api')
  11. export default {
  12. data() {
  13. return {
  14. type: 'app_privacy_agreement',
  15. item: {}
  16. }
  17. },
  18. onLoad(item) {
  19. this.type = item.type
  20. let title = this.$t('page.malluseragreement')
  21. if (this.type === 'app_privacy_agreement') {
  22. title = this.$t('page.mallusersafement')
  23. }
  24. uni.setNavigationBarTitle({
  25. title: title
  26. })
  27. this.getquery()
  28. },
  29. methods: {
  30. getquery() {
  31. NET.request(API.Query, {
  32. name: this.type
  33. }, 'GET').then(res => {
  34. this.item = res.data
  35. }).catch(res => {
  36. })
  37. }
  38. }
  39. }
  40. </script>
  41. <style scoped>
  42. #text {
  43. padding: 40rpx;
  44. }
  45. </style>