海南旅游项目 前端仓库
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.

36 lines
870 B

4 years ago
4 years ago
4 years ago
4 years ago
  1. <template>
  2. <view class="lf-m-l-32 lf-m-r-32">
  3. <view class="lf-row-center" style="font-size: 18rpx;color: #777;" v-if="version_number">当前版本号{{version_number}}</view>
  4. <rich-text :nodes="content" v-if="$isRight(content)"></rich-text>
  5. <lf-nocontent v-else></lf-nocontent>
  6. <!-- 回到顶部 -->
  7. <u-back-top :scroll-top="pageScrollTop" :custom-style="{background: 'rgba(51, 51 51, 0.3)'}"></u-back-top>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. data(){
  13. return {
  14. content: '',
  15. version_number: '1.0.0'
  16. }
  17. },
  18. onLoad(){
  19. let info_sys = wx.getAccountInfoSync();
  20. this.version_number = info_sys.miniProgram.version;
  21. this.getData();
  22. },
  23. methods: {
  24. getData(){
  25. this.$http(this.API.API_ABOUTUS).then(res => {
  26. this.content = res.data?.about;
  27. })
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped="scoped">
  33. </style>