agreement.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view class="container">
  3. <view class="content_msg">
  4. <u-parse :html="msg"></u-parse>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. msg: ''
  13. };
  14. },
  15. onLoad(options) {
  16. if (options.type == '1') {
  17. this.getYonghu()
  18. }
  19. if (options.type == '2') {
  20. this.getYinsi()
  21. }
  22. },
  23. methods: {
  24. getYonghu() {
  25. var data = {
  26. keys: ['system_article_user']
  27. }
  28. this.$u.post('base/settings/configs', data).then(res => {
  29. this.msg = res.data.configs.system_article_user
  30. })
  31. },
  32. getYinsi() {
  33. var data = {
  34. keys: ['system_article_user_hidden']
  35. }
  36. this.$u.post('base/settings/configs', data).then(res => {
  37. this.msg = res.data.configs.system_article_user_hidden
  38. })
  39. },
  40. }
  41. }
  42. </script>
  43. <style lang="scss">
  44. page {
  45. background: #F7F7F7;
  46. .container {
  47. min-height: 100vh;
  48. .content_msg {
  49. padding: 24rpx;
  50. box-sizing: border-box;
  51. margin: 24rpx;
  52. background: white;
  53. border-radius: 8rpx;
  54. }
  55. }
  56. }
  57. </style>