Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
Ver.1.3.3 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dzxrly committed Mar 21, 2020
1 parent 61f5a16 commit bc04087
Show file tree
Hide file tree
Showing 20 changed files with 298 additions and 459 deletions.
46 changes: 25 additions & 21 deletions BFVStatus-vue/src/components/PlayerStatusInfoView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<el-row type="flex" justify="center">
<el-col :span="24" style="text-align: center;">
<span style="font-size: 12px">更新于{{lastUpdateTime}}</span>
<van-button plain hairline type="info" size="mini" @click="onRefresh">刷新</van-button>
<el-button type="text" size="mini" @click="onRefresh">刷新</el-button>
</el-col>
</el-row>
<el-row class="playerStatusRow-wrap" type="flex" justify="center">
Expand All @@ -18,7 +18,7 @@
</el-row>
<el-row type="flex" justify="center">
<el-col :span="24" class="playerTime">
{{playerTime}}
游戏时长:&nbsp;{{gameTimeByHours}}小时
</el-col>
</el-row>
<el-row type="flex" justify="center">
Expand Down Expand Up @@ -148,7 +148,7 @@
</el-form>
</van-tab>
<van-tab title="兵种信息">
<el-table :data="playerClassInfos" style="width: 100%" class="classInfoTable">
<el-table :data="playerClassInfos" style="width: 100%" class="classInfoTable" border>
<el-table-column type="expand">
<template slot-scope="props">
<el-form :label-position="labelPosition" class="demo-table-expand" size="mini">
Expand Down Expand Up @@ -202,26 +202,28 @@
<el-button type="text" size="mini" @click="handleClick(scope.row)">详情</el-button>
</template>
</el-table-column>
<el-table-column label="模式" width="65px">
<el-table-column label="服务器信息" width="200">
<template slot-scope="scope">
<span>{{scope.row.modeKey | convertModeName}}</span>
</template>
</el-table-column>
<el-table-column label="地图" width="110px">
<template slot-scope="scope">
<span>{{scope.row.mapKey | convertMapName}}</span>
<div>
<el-row type="flex" justify="center">
<el-col :span="24">
<el-tag type="success" size="mini">{{scope.row.modeKey | convertModeName}}</el-tag>
<span style="font-weight: bold;">{{scope.row.mapKey | convertMapName}}</span>
</el-col>
</el-row>
<el-row type="flex" justify="center">
<el-col :span="24">
<span>{{scope.row.serverName}}</span>
</el-col>
</el-row>
</div>
</template>
</el-table-column>
<el-table-column label="时间" width="180px">
<template slot-scope="scope">
<span>{{scope.row.timestamp | convertTimestamp}}</span>
</template>
</el-table-column>
<el-table-column label="服务器名称" width="250px">
<template slot-scope="scope">
<span>{{scope.row.serverName}}</span>
</template>
</el-table-column>
</el-table>
</van-tab>
<van-tab title="武器信息">
Expand Down Expand Up @@ -311,6 +313,7 @@ export default {
},
data () {
return {
gameTimeByHours: 0,
vanTabActive: 0,
banRefresh: false,
isLoading: false,
Expand Down Expand Up @@ -400,12 +403,6 @@ export default {
}, {
value: 'rifle',
text: '单动式步枪'
}, {
value: 'sidearm',
text: '手枪'
}, {
value: 'gadget',
text: '装备'
}, {
value: 'lmg',
text: '轻机枪'
Expand All @@ -415,9 +412,15 @@ export default {
}, {
value: 'antimaterielrifle',
text: '反器材步枪'
}, {
value: 'sidearm',
text: '手枪'
}, {
value: 'melee',
text: '近战武器'
}, {
value: 'gadget',
text: '装备'
}],
weaponsInfo: [],
weaponsInfoLoading: true,
Expand Down Expand Up @@ -452,6 +455,7 @@ export default {
this.playerRankImg = this.playerData.data.segments[0].stats.rank.metadata.imageUrl
this.playerRankPercentage = '(' + this.playerData.data.segments[0].stats.rankProgression.value.toFixed(1) + '%)'
this.playerTime = this.convertTime(this.playerData.data.segments[0].stats.timePlayed.displayValue)
this.gameTimeByHours = ((this.playerData.data.segments[0].stats.timePlayed.value / 60) / 60).toFixed(0)
this.getLastUpdateTime()
this.convertMainInfosData()
this.convertOverviewInfo()
Expand Down
65 changes: 18 additions & 47 deletions BFVStatus-vue/src/components/UserSearchView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<el-form-item>
<el-row>
<el-col :span="10">
<el-button type="primary" @click="submit('form')">查询</el-button>
<el-button type="primary" @click="submit('form')" plain>查询</el-button>
</el-col>
</el-row>
</el-form-item>
Expand All @@ -34,8 +34,8 @@
</el-col>
</el-row>
<el-row class="footerRow" type="flex" justify="center">
<el-col :span="14">
<p class="word" @click="raiseAbout">Made by ViveLaCCCP</p>
<el-col :span="24">
<p class="word" @click="raiseAbout">{{tagName}}&nbsp;|&nbsp;By&nbsp;ViveLaCCCP</p>
<van-popup v-model="showPopup" position="bottom" closeable close-icon-position='top-left'>
<div class="inPopupRow">
<el-row type="flex" justify="center">
Expand All @@ -48,21 +48,25 @@
<el-button type="info" round size="mini" plain @click="goToGithub"><img src="../assets/social_github.svg">&nbsp;Github</el-button>
</el-col>
</el-row>
<el-divider>Data Source</el-divider>
<el-row type="flex" justify="center" class="dataSrcText">
<el-col :span="24" style="text-align: center">All Data From <el-button type="text" size="mini" @click="goToTRN">TRACKER NETWORK</el-button></el-col>
</el-row>
<el-divider>{{tagName}}</el-divider>
<el-row type="flex" justify="left">
<el-col :span="24">作者:</el-col>
<el-col :span="24">作者: ViveLaCCCP</el-col>
</el-row>
<el-row type="flex" justify="left">
<el-col :span="24">Origin: ViveLaCCCP</el-col>
<el-col :span="24">Origin ID: ViveLaCCCP</el-col>
</el-row>
<el-row type="flex" justify="left">
<el-col :span="24">Steam: Egg_Targaryen</el-col>
<el-col :span="24">Steam ID: Egg_Targaryen</el-col>
</el-row>
<el-divider>Powered By Vue.js</el-divider>
<el-row type="flex" justify="left" class="vueText">
<el-row type="flex" justify="center" class="vueText">
<el-col :span="24" style="text-align: center"><img :src="vueLogo" style="width: 16px;height: 16px;"></el-col>
</el-row>
<el-row type="flex" justify="left" class="vueText">
<el-row type="flex" justify="center" class="vueText">
<el-col :span="24" style="text-align: center">An Element &amp; Vant Front-end Program</el-col>
</el-row>
</div>
Expand Down Expand Up @@ -94,9 +98,10 @@ export default {
return {
versionCheckLoading: true,
isLatestVer: 1,
tagName: 'Ver.1.3.2',
tagName: 'Ver.1.3.3',
githubReleaseUrl: 'https://api.github.com/repos/dzxrly/BFVStatus/releases/latest',
githubLink: 'https://github.com/dzxrly/BFVStatus',
trnLink: 'https://tracker.gg/',
latestVerHtmlUrl: '',
githubAssetsUrl: '',
downloadUrl: '',
Expand Down Expand Up @@ -208,44 +213,10 @@ export default {
},
goToGithub () {
window.open(this.githubLink)
},
goToTRN () {
window.open(this.trnLink)
}
// download () {
// var thisView = this
// this.fullscreenLoading = true
// var params = { url: this.githubAssetsUrl }
// var onSuccess = function (res) {
// thisView.fullscreenLoading = false
// thisView.downloadUrl = JSON.parse(res).browser_download_url
// if (thisView.downloadUrl !== '') {
// thisView.fullscreenLoading = true
// var paramsInner = { url: thisView.downloadUrl }
// var onSuccessInner = function (res) {
// thisView.fullscreenLoading = false
// }
// var onErrorInner = function () {
// thisView.fullscreenLoading = false
// thisView.raiseError('下载失败', '网络错误或找不到指定文件')
// }
// var onTimeOutInner = function () {
// thisView.fullscreenLoading = false
// thisView.raiseError('下载失败', '网络错误或找不到指定文件')
// }
// httpGet(paramsInner, onSuccessInner, onErrorInner, onTimeOutInner, 20000)
// } else {
// thisView.fullscreenLoading = false
// thisView.raiseError('下载失败', '找不到指定文件')
// }
// }
// var onError = function () {
// thisView.fullscreenLoading = false
// thisView.raiseError('下载失败', '网络错误或找不到指定文件')
// }
// var onTimeOut = function () {
// thisView.fullscreenLoading = false
// thisView.raiseError('下载失败', '网络错误或找不到指定文件')
// }
// httpGet(params, onSuccess, onError, onTimeOut, 20000)
// }
}
}
</script>
Expand Down Expand Up @@ -275,7 +246,7 @@ export default {
.footerRow {
.word {
text-align center
font-size 10px
font-size 12px
color #ffffff
}
.inPopupRow {
Expand Down
Loading

0 comments on commit bc04087

Please sign in to comment.