Files
h5-uniapp/pages/tradingView/h5.vue
T

47 lines
967 B
Vue

<template>
<view class="">
<!-- <myNav :title="titleName"></myNav> -->
<u-navbar :title="titleName" z-index="10100" back-icon-color="#FFFFFF" title-color="#fff" :background="{ background: '#080A17' }"
height="55" :border-bottom="false" :custom-back="goHome"></u-navbar>
<view class="">
<web-view :src="src"></web-view>
</view>
</view>
</template>
<script>
export default {
components: {
},
data() {
return {
src: '',
titleName: "",
}
},
computed: {
i18n() {
return this.$t('message');
},
},
onLoad(option) {
this.src = "/hybrid/html/h5.html?symbol=" + option.symbol + "&title=" + option.title + '&bb_type='+ option.bb_type + "&lang=" + uni.getStorageSync('Language') + '&h5_url='+ uni.getStorageSync('h5_url')
this.titleName = option.title
},
onShow() {
},
methods: {
goHome() {
uni.reLaunch({
url: '/pages/index/index'
});
}
},
}
</script>
<style lang="scss">
</style>