feat: 初始化

This commit is contained in:
George
2025-07-07 15:55:44 +08:00
commit 9b7bfcfe5a
969 changed files with 123036 additions and 0 deletions

63
pages/pamm/index.nvue Normal file
View File

@ -0,0 +1,63 @@
<template>
<NNavBar />
<view class="container" style="padding-bottom: 0;">
<view class="title">
<PageTitle title="PAMM" style="flex-direction: row;" />
</view>
<view class="pammSegmentedWrapper" :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="pammUrl"></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('pamm.pamm'), i18n.global.t('pamm.login')],
pammUrl: 'https://stats.htfx.co/widgets/ratings?widgetKey=pamm-ratings',
loginUrl: 'https://pamm.htfx.co/app/auth',
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>