- 移除秒合约页面及UI - 合约页Tab改为Position Held/Transaction Record - 存款/提款/转账页增加BTC/ETH - 资产页重构(用户信息+盈亏+多语言) - 注册页改版(匹配新设计稿) - 日文全面翻译+首页菜单多语言 - 代理专属注册链接支持(?code=) - 10个locale文件同步更新
83 lines
1.6 KiB
Vue
83 lines
1.6 KiB
Vue
<template>
|
|
<view :style="'background-color: '+theme.bg" style="padding: 10rpx 0;">
|
|
|
|
<myNav :title="titleFilter"></myNav>
|
|
<view class="width-100b padding-30" v-html="content">
|
|
|
|
</view>
|
|
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
title:'about_us',
|
|
content:'',
|
|
theme:'',
|
|
}
|
|
},
|
|
computed: {
|
|
i18n() {
|
|
return this.$t('message');
|
|
},
|
|
titleFilter(){
|
|
if(this.title=='about_us'){
|
|
return this.i18n.mine.about.title
|
|
}
|
|
if(this.title=='user_item'){
|
|
return this.i18n.mine.about.list1
|
|
}
|
|
if(this.title=='privacy_treaty'){
|
|
return this.i18n.mine.about.list2
|
|
}
|
|
if(this.title=='agreement'){
|
|
return this.i18n.mine.about.list5
|
|
}
|
|
if(this.title=='tuikuan'){
|
|
return this.i18n.recharge.text18
|
|
}
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
this.title = option.title
|
|
this.getInfo()
|
|
},
|
|
onShow() {
|
|
if (uni.getStorageSync("theme") == "dark") {
|
|
this.theme = this.$store.state.darkTheme
|
|
}else{
|
|
this.theme = this.$store.state.lightTheme
|
|
}
|
|
},
|
|
methods: {
|
|
getInfo(){
|
|
this.post('/publics/get_common_data').then(res => {
|
|
console.log(res)
|
|
if(res.code == 1){
|
|
if(this.title == 'about_us'){
|
|
this.content = res.data.about_us
|
|
}
|
|
if(this.title == 'user_item'){
|
|
this.content = res.data.user_item
|
|
}
|
|
if(this.title == 'privacy_treaty'){
|
|
this.content = res.data.privacy_treaty
|
|
}
|
|
if(this.title == 'agreement'){
|
|
this.content = res.data.agreement
|
|
}
|
|
if(this.title == 'tuikuan'){
|
|
this.content = res.data.refund_text
|
|
}
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|