58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
<template>
|
|
<NNavBar />
|
|
<view class="container" style="padding-bottom: 0;">
|
|
<view class="title">
|
|
<PageTitle :title="t('menu.fts')" style="flex-direction: row;" />
|
|
</view>
|
|
<view class="ftsSegmentedWrapper" :style="{'width': contentWidth+'px'}">
|
|
<NSegmented styleType="text" fontSize="16px" gap="13px" :current="current" :values="items"
|
|
@clickItem="onClickItem" inActiveColor="#999999" activeColor="#000"></NSegmented>
|
|
</view>
|
|
<view class="webViewWrapper" v-if="current == 0">
|
|
<web-view :style="{'width': 'calc(750rpx - 32px)', 'height': wbHeight+'px'}"
|
|
:webview-styles="{'progress': {color:'#29bbe4'}}" :fullscreen="false" :src="ftsUrl"></web-view>
|
|
</view>
|
|
<view class="webViewWrapper" v-if="current == 1">
|
|
<web-view :style="{'width': 'calc(750rpx - 32px)', 'height': wbHeight+'px'}"
|
|
:webview-styles="{'progress': {color:'#29bbe4'}}" :fullscreen="false" :src="loginUrl"></web-view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import NNavBar from '@/components/nvue/NavBar/index.nvue'
|
|
import NSegmented from '@/components/nvue/segmented/index.nvue';
|
|
import {i18n} from '@/locale/index.ts'
|
|
import {app_host} from '@/utils/request'
|
|
export default {
|
|
data() {
|
|
return {
|
|
t: i18n.global.t,
|
|
current: 0,
|
|
items: [i18n.global.t('fts.fts'), i18n.global.t('fts.login')],
|
|
ftsUrl: 'https://ratings.htfx.co/widgets/ratings?widgetKey=social-ratings',
|
|
loginUrl: 'https://copytrade.htfx.co/portal/login?redirectUrl=%2F',
|
|
wbHeight: uni.getSystemInfoSync().windowHeight - uni.getSystemInfoSync().statusBarHeight - 164,
|
|
contentWidth: uni.getSystemInfoSync().windowWidth - 32
|
|
};
|
|
},
|
|
methods: {
|
|
onClickItem(e) {
|
|
if (this.current != e.currentIndex) {
|
|
this.current = e.currentIndex;
|
|
}
|
|
}
|
|
},
|
|
created() {
|
|
|
|
},
|
|
components: {
|
|
NNavBar,
|
|
NSegmented
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
@import url('./index.css');
|
|
</style> |