123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <template>
- <view class="web-view-box" :style="{'width': '100%' , 'height': kHeight + 'px' }">
- <iframe :style="{'width': '100%' , 'height': kHeight + 'px' }" src="https://kline.cuwiee.com/local.html" frameborder="0"></iframe>
- <!-- <web-view :fullscreen="false" :style="{'width': '100%' , 'height': kHeight + 'px' }"
- :src="`https://kline.cuwiee.com/local.html`"></web-view> -->
- </view>
- </template>
- <script>
- import {
- mapGetters
- } from 'vuex'
- export default {
- props: {
- kWidth: {
- type: Number,
- default: 0
- },
- kHeight: {
- type: Number,
- default: ''
- },
- // :k-width="kWidth" :k-height="kHeight"
- height: {
- type: String,
- default: '600rpx'
- }
- },
- computed: {
- ...mapGetters([
- 'currencyVal'
- ])
- },
- data() {
- return {
- webviewStyles: {
- width: this.kWidth + 'px',
- height: this.kHeight + 'px'
- }
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .web-view-box {
- width: 100%;
- uni-web-view {}
- }
- </style>
|