feat: 前端全量更新 - 含所有本次需求
- 移除秒合约页面及UI - 合约页Tab改为Position Held/Transaction Record - 存款/提款/转账页增加BTC/ETH - 资产页重构(用户信息+盈亏+多语言) - 注册页改版(匹配新设计稿) - 日文全面翻译+首页菜单多语言 - 代理专属注册链接支持(?code=) - 10个locale文件同步更新
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
<template>
|
||||
<view>
|
||||
<z-paging :language="$i18n.locale" ref="paging" v-model="list" @query="queryList" :pageSize="20"
|
||||
:style="'background-color: '+theme.bg+';color: '+theme.text">
|
||||
<!-- 下拉刷新 -->
|
||||
<custom-refresher slot="refresher" slot-scope="{refresherStatus}" :status="refresherStatus">
|
||||
</custom-refresher>
|
||||
|
||||
<myNav slot="top" :title="i18n.lockUp.title3"></myNav>
|
||||
<!-- 身体 -->
|
||||
<view slot="top" class="height-144 flex align-center bj-0165EE margin-b-24">
|
||||
<view class="flex-1 height-144 flex direction-column padding-c-25 align-center justify-between">
|
||||
<text class="font-24 color-F6F8FB">{{i18n.lockUp.text11}}</text>
|
||||
<text class="font-32 color-white numbold-font">{{data.profit_num}}</text>
|
||||
</view>
|
||||
<view class="width-2 height-64" style="background: rgba(255,255,255,0.42);"></view>
|
||||
<view class="flex-1 height-144 flex direction-column padding-c-25 align-center justify-between">
|
||||
<text class="font-24 color-F6F8FB">{{i18n.lockUp.text12}}</text>
|
||||
<text class="font-32 color-white numbold-font">{{data.last_day}}{{i18n.lockUp.text4}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="width-750 padding-b-40">
|
||||
<!-- 单一列表 -->
|
||||
<view v-for="(item,index) in list"
|
||||
class="height-126 padding-c-20 padding-w-30 flex direction-column justify-between margin-b-8">
|
||||
<view class="flex align-center justify-between font-24 color-C3C3C3">
|
||||
<text>{{i18n.lockUp.text13}}</text>
|
||||
<text>{{i18n.lockUp.text14}}</text>
|
||||
</view>
|
||||
<view class="flex align-center justify-between">
|
||||
<text class="font-28 color-C3C3C3 nummedium-font">{{item.addtime}}</text>
|
||||
<text class="font-32 numbold-font">+{{item.num}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</z-paging>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
id: '',
|
||||
data: '',
|
||||
theme: '',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
i18n() {
|
||||
return this.$t('message');
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
this.id = e.id
|
||||
},
|
||||
onShow() {
|
||||
if (uni.getStorageSync("theme") == "dark") {
|
||||
this.theme = this.$store.state.darkTheme
|
||||
} else {
|
||||
this.theme = this.$store.state.lightTheme
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getDetails() {
|
||||
this.post('/index/zhiya_shif_con', {
|
||||
id: this.id
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
if (res.code == 1) {
|
||||
this.data = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
queryList(pageNo, pageSize) {
|
||||
this.getDetails()
|
||||
setTimeout(() => {
|
||||
this.post('/index/zhiya_shif_log', {
|
||||
page: pageNo,
|
||||
page_num: pageSize,
|
||||
id: this.id
|
||||
}).then(res => {
|
||||
if (res.code == 1) {
|
||||
console.log(res)
|
||||
this.$refs.paging.complete(res.data.data);
|
||||
}
|
||||
})
|
||||
}, 500)
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
</style>
|
||||
Reference in New Issue
Block a user