feat: 前端全量更新 - 含所有本次需求
- 移除秒合约页面及UI - 合约页Tab改为Position Held/Transaction Record - 存款/提款/转账页增加BTC/ETH - 资产页重构(用户信息+盈亏+多语言) - 注册页改版(匹配新设计稿) - 日文全面翻译+首页菜单多语言 - 代理专属注册链接支持(?code=) - 10个locale文件同步更新
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
<template>
|
||||
<view class="">
|
||||
<z-paging :language="$i18n.locale" ref="paging" v-model="list" @query="queryList" :pageSize="20">
|
||||
<!-- 下拉刷新 -->
|
||||
<custom-refresher slot="refresher" slot-scope="{refresherStatus}" :status="refresherStatus">
|
||||
</custom-refresher>
|
||||
|
||||
<!-- 头部 -->
|
||||
<myNav slot="top" :title="i18n.Investors.recordTitle"></myNav>
|
||||
<!-- 身体 -->
|
||||
<view>
|
||||
<view class="height-140 bj-white flex align-center justify-between">
|
||||
<view class="flex-1 height-90 flex direction-column align-center justify-between">
|
||||
<text class="font-24 color-C3C3C3 nummedium-font">{{i18n.Investors.total_investment}} APT</text>
|
||||
<text class="font-36 numbold-font color-333333">{{count_num}}</text>
|
||||
</view>
|
||||
<view class="geduan"></view>
|
||||
<view class="flex-1 height-90 flex direction-column align-center justify-between">
|
||||
<text class="font-24 color-C3C3C3 nummedium-font">{{i18n.Investors.total_revenue}}</text>
|
||||
<text class="font-36 numbold-font color-333333">{{count_sy}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view @click="goDetails(item.id)" class="listBox" v-for="(item,index) in list" :key="index">
|
||||
<view class="flex-1 height-100b flex direction-column align-start justify-between">
|
||||
<text class="font-24 color-C3C3C3 nummedium-font">{{i18n.Investors.invest_num}}</text>
|
||||
<text class="font-26 numbold-font color-333333">{{item.num}} APT</text>
|
||||
</view>
|
||||
<view class="flex-1 height-100b flex direction-column align-center justify-between">
|
||||
<text class="font-24 color-C3C3C3 nummedium-font">{{i18n.Investors.invest_price}}</text>
|
||||
<text class="font-26 numbold-font color-333333">{{item.price}} USDT</text>
|
||||
</view>
|
||||
<view class="flex-1 height-100b flex direction-column align-end justify-between">
|
||||
<text class="font-24 color-C3C3C3 nummedium-font">{{i18n.Investors.invest_time}}</text>
|
||||
<text class="font-26 numbold-font color-C3C3C3">{{item.addtime}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</z-paging>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
count_num: 0,
|
||||
count_sy: 0,
|
||||
list: [],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
i18n() {
|
||||
return this.$t('message');
|
||||
},
|
||||
},
|
||||
// onPullDownRefresh() {
|
||||
// console.log('refresh');
|
||||
// this.list = []
|
||||
// this.count_num = 0
|
||||
// this.count_sy = 0
|
||||
// this.getList()
|
||||
// setTimeout(function() {
|
||||
// uni.stopPullDownRefresh();
|
||||
// }, 1000);
|
||||
// },
|
||||
onShow() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
queryList(pageNo, pageSize) {
|
||||
setTimeout(() => {
|
||||
this.post('/angel/angel_user', {
|
||||
page: pageNo,
|
||||
page_num: pageSize
|
||||
}).then(res => {
|
||||
if (res.code == 1) {
|
||||
console.log(res)
|
||||
this.count_num = res.data.count_num
|
||||
this.count_sy = res.data.count_sy
|
||||
this.$refs.paging.complete(res.data.list);
|
||||
}
|
||||
})
|
||||
}, 500)
|
||||
},
|
||||
goDetails(id) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/index/investor/record_details?id=' + id
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.geduan {
|
||||
width: 2rpx;
|
||||
height: 61rpx;
|
||||
background-color: #707070;
|
||||
opacity: 0.17;
|
||||
}
|
||||
|
||||
.listBox {
|
||||
width: 690rpx;
|
||||
height: 117rpx;
|
||||
margin: 30rpx auto;
|
||||
padding: 18rpx 22rpx;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0rpx 4rpx 10rpx rgba(205, 206, 219, 0.3);
|
||||
border-radius: 20rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user