feat: 前端全量更新 - 含所有本次需求
- 移除秒合约页面及UI - 合约页Tab改为Position Held/Transaction Record - 存款/提款/转账页增加BTC/ETH - 资产页重构(用户信息+盈亏+多语言) - 注册页改版(匹配新设计稿) - 日文全面翻译+首页菜单多语言 - 代理专属注册链接支持(?code=) - 10个locale文件同步更新
This commit is contained in:
@@ -0,0 +1,101 @@
|
||||
<template>
|
||||
<view>
|
||||
<z-paging :language="$i18n.locale" ref="paging" v-model="list" @query="queryList" :pageSize="20"
|
||||
:style="'background-color: '+theme.bg+';color: '+theme.text">
|
||||
<myNav slot="top" :title="i18n.licai.text31"></myNav>
|
||||
|
||||
<view slot="top" class="height-180 padding-w-48 flex align-center justify-between"
|
||||
:style="'background-color: '+theme.fu_bg+';color: '+theme.text">
|
||||
<view class="height-100 flex direction-column align-start justify-between">
|
||||
<text class="font-36">{{alr_num}}{{curr_name}}</text>
|
||||
<text class="font-24">{{i18n.licai.text32}}</text>
|
||||
</view>
|
||||
<view class="height-100 flex direction-column align-end justify-between">
|
||||
<text class="font-36">{{alr_day}} {{i18n.licai.text6}}</text>
|
||||
<text class="font-24">{{i18n.licai.text33}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view slot="top" class="height-70 padding-w-60 flex align-center justify-between">
|
||||
<text class="font-26 color-C3C3C3">{{i18n.licai.text34}}</text>
|
||||
<text class="font-26 color-C3C3C3">{{i18n.licai.text35}}</text>
|
||||
</view>
|
||||
|
||||
<view class="listBox" v-for="(item,index) in list" :key="index">
|
||||
<text class="font-28 color-00C481">+{{item.price}} {{curr_name}}</text>
|
||||
<text class="font-24">{{item.createtime}}</text>
|
||||
</view>
|
||||
|
||||
</z-paging>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
id:'',
|
||||
alr_day:0,
|
||||
alr_num:0,
|
||||
curr_name:'',
|
||||
|
||||
theme: '',
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
i18n() {
|
||||
return this.$t('message');
|
||||
},
|
||||
},
|
||||
onLoad(e) {
|
||||
this.id = e.id
|
||||
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('/product/product_user_con', {
|
||||
id: this.id,
|
||||
}).then(res => {
|
||||
if (res.code == 1) {
|
||||
this.alr_day = res.data.alr_day
|
||||
this.alr_num = res.data.alr_num
|
||||
this.curr_name = res.data.curr_name
|
||||
}
|
||||
})
|
||||
},
|
||||
queryList(pageNo, pageSize) {
|
||||
this.post('/product/product_user_log', {
|
||||
page: pageNo,
|
||||
id: this.id,
|
||||
}).then(res => {
|
||||
if (res.code == 1) {
|
||||
console.log('数据', res)
|
||||
this.$refs.paging.complete(res.data.data);
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.listBox {
|
||||
width: 100%;
|
||||
height: 96rpx;
|
||||
// background: #FFFFFF;
|
||||
border-radius: 24rpx;
|
||||
margin-bottom: 1px;
|
||||
padding: 0 40rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user