推广小程序前端代码
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.

47 lines
758 B

2 months ago
  1. <template>
  2. <view class="configPopup">
  3. <uv-popup ref="popup" :round="30" :customStyle="{height: '50vh'}">
  4. <view class="content">
  5. <uv-parse :content="content"></uv-parse>
  6. </view>
  7. </uv-popup>
  8. </view>
  9. </template>
  10. <script>
  11. import { mapState } from 'vuex'
  12. export default {
  13. name: 'configPoup',
  14. data() {
  15. return {
  16. content : ''
  17. }
  18. },
  19. onShow(){
  20. },
  21. methods: {
  22. //打开配置信息菜单
  23. open(key){
  24. this.content = this.configList[key]
  25. this.$refs.popup.open('bottom');
  26. }
  27. },
  28. computed : {
  29. ...mapState(['configList'])
  30. }
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. .configPopup {
  35. .content{
  36. padding: 30rpx 20rpx;
  37. overflow: scroll;
  38. height: 100%;
  39. box-sizing: border-box;
  40. }
  41. }
  42. </style>