about.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <app-layout>
  3. <view class="about">
  4. <view>
  5. <text space='nbsp'>{{about}}</text>
  6. </view>
  7. </view>
  8. </app-layout>
  9. </template>
  10. <script>
  11. export default {
  12. data() {
  13. return {
  14. about: ''
  15. }
  16. },
  17. methods: {
  18. getList() {
  19. let that = this;
  20. that.$showLoading({
  21. type: 'global',
  22. text: '加载中...'
  23. });
  24. that.$request({
  25. url: that.$api.region.setting,
  26. }).then(response=>{
  27. that.$hideLoading();
  28. if(response.code == 0) {
  29. that.about = response.data.level_up_content;
  30. }else {
  31. that.$hideLoading();
  32. uni.showToast({
  33. title: response.msg,
  34. icon: 'none',
  35. duration: 1000
  36. });
  37. }
  38. }).catch(response => {
  39. that.$hideLoading();
  40. });
  41. },
  42. },
  43. onLoad(option) { this.$commonLoad.onload(option);
  44. this.getList();
  45. },
  46. }
  47. </script>
  48. <style scoped lang="scss">
  49. .about {
  50. position: absolute;
  51. top: 0;
  52. left: 0;
  53. background-color: #fff;
  54. width: 100%;
  55. height: 100%;
  56. z-index: 2;
  57. view {
  58. background-color: #fff;
  59. padding: #{28rpx} #{24rpx};
  60. }
  61. }
  62. </style>