k-line.vue 984 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view class="web-view-box" :style="{'width': '100%' , 'height': kHeight + 'px' }">
  3. <iframe :style="{'width': '100%' , 'height': kHeight + 'px' }" src="https://kline.cuwiee.com/local.html" frameborder="0"></iframe>
  4. <!-- <web-view :fullscreen="false" :style="{'width': '100%' , 'height': kHeight + 'px' }"
  5. :src="`https://kline.cuwiee.com/local.html`"></web-view> -->
  6. </view>
  7. </template>
  8. <script>
  9. import {
  10. mapGetters
  11. } from 'vuex'
  12. export default {
  13. props: {
  14. kWidth: {
  15. type: Number,
  16. default: 0
  17. },
  18. kHeight: {
  19. type: Number,
  20. default: ''
  21. },
  22. // :k-width="kWidth" :k-height="kHeight"
  23. height: {
  24. type: String,
  25. default: '600rpx'
  26. }
  27. },
  28. computed: {
  29. ...mapGetters([
  30. 'currencyVal'
  31. ])
  32. },
  33. data() {
  34. return {
  35. webviewStyles: {
  36. width: this.kWidth + 'px',
  37. height: this.kHeight + 'px'
  38. }
  39. }
  40. }
  41. }
  42. </script>
  43. <style lang="scss" scoped>
  44. .web-view-box {
  45. width: 100%;
  46. uni-web-view {}
  47. }
  48. </style>