Merge branch 'main' of https://git.yuzhankeji.cn/TmOct5/BlockChainH5 into main
This commit is contained in:
@@ -32,7 +32,7 @@ const request = (parameter) => {
|
|||||||
'Authorization': store.getters.getToken || ''
|
'Authorization': store.getters.getToken || ''
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('parameterDbug', parameter)
|
// console.log('parameterDbug', parameter)
|
||||||
|
|
||||||
// 加载提示
|
// 加载提示
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
|
|||||||
35
pages.json
35
pages.json
@@ -238,6 +238,13 @@
|
|||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "营销推广码"
|
"navigationBarTitleText": "营销推广码"
|
||||||
}
|
}
|
||||||
|
},{
|
||||||
|
"path": "pages/instrument/basics",
|
||||||
|
"name": "instrumentBasics",
|
||||||
|
"auth": true,
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "基础信息"
|
||||||
|
}
|
||||||
}, {
|
}, {
|
||||||
"path": "pages/wallet/fragment",
|
"path": "pages/wallet/fragment",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -247,6 +254,34 @@
|
|||||||
"navigationBarTextStyle": "white"
|
"navigationBarTextStyle": "white"
|
||||||
},
|
},
|
||||||
"name": "Fragment"
|
"name": "Fragment"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/wallet/addCard",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "添加银行卡",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarBackgroundColor": "#774ffd",
|
||||||
|
"navigationBarTextStyle": "white"
|
||||||
|
},
|
||||||
|
"name": "addCard"
|
||||||
|
},{
|
||||||
|
"path": "pages/wallet/selectCard",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "银行卡列表",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarBackgroundColor": "#774ffd",
|
||||||
|
"navigationBarTextStyle": "white"
|
||||||
|
},
|
||||||
|
"name": "selectCard"
|
||||||
|
},{
|
||||||
|
"path": "pages/wallet/withdrawList",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "提现记录",
|
||||||
|
"enablePullDownRefresh": false,
|
||||||
|
"navigationBarBackgroundColor": "#774ffd",
|
||||||
|
"navigationBarTextStyle": "white"
|
||||||
|
},
|
||||||
|
"name": "withdrawList"
|
||||||
}],
|
}],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="partner-list">
|
<view class="partner-list">
|
||||||
<view class="partner-label" v-for="(item, index) in lists" :larer='larer'>
|
<view class="partner-label" v-for="(item, index) in lists" :key="index" :larer='larer'>
|
||||||
<image class="partner-avatar" :src="item.avatar ? item.avatar : '/static/user/user-portrait.png'" mode="aspectFill"></image>
|
<image class="partner-avatar" :src="item.avatar ? item.avatar : '/static/user/user-portrait.png'" mode="aspectFill"></image>
|
||||||
<view class="partner-cont">
|
<view class="partner-cont">
|
||||||
<view class="partner-name">
|
<view class="partner-name">
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
<view class="privilege-name">
|
<view class="privilege-name">
|
||||||
升级条件
|
升级条件
|
||||||
</view>
|
</view>
|
||||||
<view class="privilege-label" :class="{'active' : item.finish == true}" v-for="(item, index) in identitie[tabsIndex].get_condition">
|
<view class="privilege-label" :class="{'active' : item.finish == true}" v-for="(item, index) in identitie[tabsIndex].get_condition" :key="index">
|
||||||
&{{item.message}}
|
&{{item.message}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
<view class="privilege-name">
|
<view class="privilege-name">
|
||||||
节点权益
|
节点权益
|
||||||
</view>
|
</view>
|
||||||
<view class="privilege-label privilege-right" v-for="(item, index) in identitie[tabsIndex].rights">
|
<view class="privilege-label privilege-right" v-for="(item, index) in identitie[tabsIndex].rights" :key="index">
|
||||||
&{{item.remark}}
|
&{{item.remark}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
180
pages/wallet/addCard.vue
Normal file
180
pages/wallet/addCard.vue
Normal file
@@ -0,0 +1,180 @@
|
|||||||
|
<template>
|
||||||
|
<view class="WithdrawingCoin">
|
||||||
|
<view class="withdrawing-content">
|
||||||
|
<view class="item-name">添加提现银行</view>
|
||||||
|
<view class="item">
|
||||||
|
<view class="title">收款人姓名</view>
|
||||||
|
<input class="input_num" v-model="name" maxlength="16"
|
||||||
|
placeholder-style="color:#999;font-weight:normal; font-size:30rpx;"
|
||||||
|
placeholder="请输入收款人姓名" />
|
||||||
|
</view>
|
||||||
|
<view class="item">
|
||||||
|
<view class="title">收款人账号</view>
|
||||||
|
<input class="input_num" v-model="card" type="number"
|
||||||
|
placeholder-style="color:#999;font-weight:normal; font-size:30rpx;"
|
||||||
|
placeholder="请输入收款人账号" />
|
||||||
|
</view>
|
||||||
|
<view class="item">
|
||||||
|
<view class="title">开户行</view>
|
||||||
|
<input class="input_num" v-model="name" maxlength="30"
|
||||||
|
placeholder-style="color:#999;font-weight:normal; font-size:30rpx;"
|
||||||
|
placeholder="请输入开户行" />
|
||||||
|
</view>
|
||||||
|
<view class="item">
|
||||||
|
<view class="title">支行名称</view>
|
||||||
|
<input class="input_num" v-model="name" maxlength="30"
|
||||||
|
placeholder-style="color:#999;font-weight:normal; font-size:30rpx;"
|
||||||
|
placeholder="省-市-区-支行名称" />
|
||||||
|
</view>
|
||||||
|
<view class="item">
|
||||||
|
<view class="title">收款人手机号</view>
|
||||||
|
<input class="input_num" v-model="name" maxlength="11"
|
||||||
|
placeholder-style="color:#999;font-weight:normal; font-size:30rpx;"
|
||||||
|
placeholder="请输入手机号" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="btn" @click="sureAdd">确认添加银行</view>
|
||||||
|
<view class="history" @click="$Router.push({name:'withdrawList'})">提现记录<u-icon name="question-circle-fill" /></view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
card: '', // 银行卡号
|
||||||
|
name: '', // 姓名
|
||||||
|
withdraw_input: '' // 提现能量球数量
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad() {},
|
||||||
|
methods: {
|
||||||
|
sureAdd() {
|
||||||
|
uni.navigateBack({})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
page {
|
||||||
|
width: 100%;
|
||||||
|
min-height: 100vh;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.history {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
color: #cacaca;
|
||||||
|
.u-icon{
|
||||||
|
margin-left: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.withdrawing-content {
|
||||||
|
min-height: 300rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
box-shadow: 0 0 30rpx 1rpx rgba($color: #000000, $alpha: 0.2);
|
||||||
|
margin: $margin;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
padding: $padding;
|
||||||
|
font-size: $title-size-m;
|
||||||
|
|
||||||
|
.item-name {
|
||||||
|
text-align: center;
|
||||||
|
padding: $padding * .6;
|
||||||
|
color: #303030;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: $margin;
|
||||||
|
font-size: $title-size *1.2;
|
||||||
|
position: relative;
|
||||||
|
&::after{
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
background-color: rgba($color: $text-price, $alpha: .4);
|
||||||
|
width: 200rpx;
|
||||||
|
height: 10rpx;
|
||||||
|
left: 50%;
|
||||||
|
margin-left: -100rpx;
|
||||||
|
bottom: 16rpx;
|
||||||
|
z-index: 1;
|
||||||
|
box-shadow: 0 10rpx 20rpx 0rpx rgba($color: #976dff, $alpha: 0.6);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
border-bottom: solid 1rpx #f8f8f8;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: $padding 0;
|
||||||
|
|
||||||
|
span:nth-child(1) {
|
||||||
|
color: #666;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
width: 200rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
&::before{
|
||||||
|
content: '*';
|
||||||
|
color: red;
|
||||||
|
padding-right: 4rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.input_num {
|
||||||
|
font-size: $title-size*1;
|
||||||
|
color: #3a3a3a;
|
||||||
|
font-weight: bolder;
|
||||||
|
flex: 1;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-total {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: $padding*1 0 0 0;
|
||||||
|
color: #3a3a3a;
|
||||||
|
|
||||||
|
.total {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.money {
|
||||||
|
padding-top: $padding *0.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.lists {
|
||||||
|
color: $text-price;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
background-image: linear-gradient(to right, #7c52fc, #976dff);
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
text-align: center;
|
||||||
|
padding: $padding * .9;
|
||||||
|
margin:$margin*3 $margin * 2 $margin $margin*2;
|
||||||
|
font-size: $title-size;
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 2rpx;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,50 +1,43 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="WithdrawingCoin ">
|
<view class="WithdrawingCoin ">
|
||||||
|
<view class="propery">
|
||||||
|
<image src="/static/imgs/account-bg.png" mode="aspectFill" class="record-bg" />
|
||||||
|
<view class="propery-content">
|
||||||
|
<view class="currency">能量球钱包
|
||||||
|
<!-- <span>(≈ {{ price || '0.00' }} CNY)</span> -->
|
||||||
|
</view>
|
||||||
|
<view class="balance">{{ balance.balance || '0.00' }}</view>
|
||||||
|
<view class="frozen" @click="withdrawDetail">提现记录</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="item-name">
|
||||||
|
提现至银行卡
|
||||||
|
<view class="right">
|
||||||
|
<view class="cardName" @click="addCard">添加银行卡</view>
|
||||||
|
<uni-icons type="arrowright" size="12" color="#fff" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="item-name">
|
||||||
|
选择银行卡
|
||||||
|
<view class="right">
|
||||||
|
<view class="cardName" @click="selectCard">选择银行卡</view>
|
||||||
|
<uni-icons type="arrowright" size="12" color="#fff" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="withdrawing-content">
|
<view class="withdrawing-content">
|
||||||
<view class="item-name">能量球提现至银行卡</view>
|
|
||||||
<view class="item">
|
<view class="item">
|
||||||
<view style="flex: 1;">
|
<view style="flex: 1;">
|
||||||
<input class="input_num" v-model="withdraw_input" @input='inputNum' type="number"
|
<input class="input_num" v-model="withdraw_input" @input='inputNum' type="number"
|
||||||
placeholder-style="color:#999;font-weight:normal; font-size:30rpx;" placeholder="请输入能量球数量" />
|
placeholder-style="color:#999;font-weight:normal; font-size:40rpx;"
|
||||||
|
placeholder="能量球数量" />
|
||||||
<view v-if="total">≈ ¥{{total}}</view>
|
<view v-if="total">≈ ¥{{total}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="all" @click="all">全部提现</view>
|
<view class="all" @click="all">全部提现</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="item">
|
|
||||||
<input class="input_num" v-model="card" type="number"
|
|
||||||
placeholder-style="color:#999;font-weight:normal; font-size:30rpx;" placeholder="请输入您要收款得银行卡卡号" />
|
|
||||||
</view>
|
|
||||||
<view class="item">
|
|
||||||
<input class="input_num" v-model="name" maxlength="10"
|
|
||||||
placeholder-style="color:#999;font-weight:normal; font-size:30rpx;" placeholder="请输入收款人姓名" />
|
|
||||||
</view>
|
|
||||||
<number-jpan :length="6" @closeChange="closeChange($event)" ref="numberPad"></number-jpan>
|
|
||||||
<view class="item-total">
|
|
||||||
<view class="total"><span>能量球总数 : {{balance}}</span><span class="money">总估值(CNY)≈¥{{(balance*price).toFixed(2)}}</span></view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<view class="btn" @click="open">提现至银行卡</view>
|
<view class="btn" @click="open">提现至银行卡</view>
|
||||||
<view class="ew_lists" v-if="withdrawLists.length>0">
|
<view class="des">预计5- 10个工作日到账</view>
|
||||||
<view class="" v-for="(item,index) in withdrawLists " :key="index">
|
|
||||||
<view class="receiptCode">
|
|
||||||
回执单号:{{item.receipt_code}}
|
|
||||||
</view>
|
|
||||||
<view class="item">
|
|
||||||
<view class="left">
|
|
||||||
<span>能量球:{{item.total}}</span>
|
|
||||||
<span>金额≈¥{{item.arrival}}</span>
|
|
||||||
</view>
|
|
||||||
<view class="right">
|
|
||||||
<span> {{item.created_at}} 提现</span>
|
|
||||||
<span> {{item.paid_at?item.paid_at+'到账':'努力打款中'}}</span>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="hasmore">
|
|
||||||
{{has_more?'努力加载中~':'我是有底线的~'}}
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<no-list v-else name='no-records' txt="暂无任何提现记录哦~" />
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -210,6 +203,24 @@
|
|||||||
this.withdrawLists = []
|
this.withdrawLists = []
|
||||||
this.withdrawLogs();
|
this.withdrawLogs();
|
||||||
this.withdraw();
|
this.withdraw();
|
||||||
|
},
|
||||||
|
// 添加银行卡
|
||||||
|
addCard() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/pages/wallet/addCard'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 选择银行卡
|
||||||
|
selectCard(){
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/pages/wallet/selectCard'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 提现记录
|
||||||
|
withdrawDetail(){
|
||||||
|
uni.navigateTo({
|
||||||
|
url:'/pages/wallet/withdrawList'
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -219,71 +230,119 @@
|
|||||||
page {
|
page {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background-color: #fff;
|
background-color: #f7f7f7;
|
||||||
}
|
}
|
||||||
.hasmore {
|
|
||||||
color: #808080;
|
|
||||||
font-size: $title-size-m;
|
|
||||||
text-align: center;
|
|
||||||
padding: $padding*2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nomore {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
box-sizing: border-box;
|
|
||||||
font-size: $title-size-m;
|
|
||||||
color: #808080;
|
|
||||||
margin-top: $margin*4;
|
|
||||||
|
|
||||||
image {
|
|
||||||
width: 320rpx;
|
|
||||||
margin-bottom: $margin*2;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.receiptCode {
|
.receiptCode {
|
||||||
color: #808080;
|
color: #808080;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
// margin: $margin 0;
|
// margin: $margin 0;
|
||||||
font-size: $title-size-m;
|
font-size: $title-size-m;
|
||||||
}
|
}
|
||||||
|
|
||||||
.WithdrawingCoin {
|
.WithdrawingCoin {
|
||||||
background-color: #fff;
|
background-color: #f7f7f7;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding-bottom: 100rpx;
|
padding-bottom: 100rpx;
|
||||||
|
|
||||||
|
// 账户
|
||||||
|
.propery {
|
||||||
|
position: relative;
|
||||||
|
padding-top: var(--status-bar-height);
|
||||||
|
background-image: linear-gradient(to right, #7c52fc, #976dff);
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
.record-bg {
|
||||||
|
position: absolute;
|
||||||
|
width: 120%;
|
||||||
|
height: 300rpx;
|
||||||
|
bottom: -50rpx;
|
||||||
|
right: -20rpx;
|
||||||
|
z-index: 1;
|
||||||
|
opacity: .5;
|
||||||
|
transform: rotate(-7deg);
|
||||||
|
}
|
||||||
|
.propery-content {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
padding: $padding *3 $padding *1.4;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.currency {
|
||||||
|
font-size: $title-size-m;
|
||||||
|
color: rgba($color: white, $alpha: .8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.balance {
|
||||||
|
font-size: $title-size * 2.5;
|
||||||
|
padding: $padding 0;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.frozen {
|
||||||
|
background: rgba($color: #000000, $alpha: .1);
|
||||||
|
color: rgba($color: white, $alpha: .7);
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 24rpx;
|
||||||
|
padding: 6rpx $padding;
|
||||||
|
border-radius: $radius-m;
|
||||||
|
border: solid 1rpx rgba($color: white, $alpha: .4)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
.all {
|
.all {
|
||||||
color: $text-price;
|
color: $text-price;
|
||||||
width: 160rpx;
|
width: 160rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.withdrawing-content {
|
|
||||||
min-height: 300rpx;
|
|
||||||
background-color: #fff;
|
|
||||||
box-shadow: 0 0 30rpx 1rpx rgba($color: #000000, $alpha: 0.2);
|
|
||||||
margin: $margin*1.4;
|
|
||||||
border-radius: 20rpx;
|
|
||||||
padding: $padding*1.4 ;
|
|
||||||
font-size: $title-size-m;
|
|
||||||
|
|
||||||
.item-name {
|
.item-name {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: $padding * .6;
|
|
||||||
color: #303030;
|
color: #303030;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: $margin;
|
margin-bottom: $margin;
|
||||||
font-size: $title-size *1.2;
|
font-size: 30rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background-image: linear-gradient(to right, #aaaaff, #aaaaff);
|
||||||
|
color: #fff;
|
||||||
|
margin: 30rpx;
|
||||||
|
padding: 30rpx;
|
||||||
|
|
||||||
|
.right {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 34rpx;
|
||||||
|
|
||||||
|
.cardName {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.withdrawing-content {
|
||||||
|
background-color: #fff;
|
||||||
|
padding: $padding $padding $padding $padding * 2;
|
||||||
|
font-size: $title-size-m;
|
||||||
|
|
||||||
|
/* 绑定银行卡 */
|
||||||
|
.bank-card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 45rpx 0 35rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.item {
|
.item {
|
||||||
border-bottom: solid 1rpx #f8f8f8;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -331,63 +390,19 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
background-image: linear-gradient(to right, #7c52fc, #976dff);
|
background-image: linear-gradient(to right, #7c52fc, #976dff);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: $padding * .9;
|
padding: $padding * .9;
|
||||||
margin: $margin * 2;
|
margin: $margin * 3 $margin *2 $margin $margin*2;
|
||||||
font-size: $title-size;
|
font-size: $title-size;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
.des{
|
||||||
.ew_lists {
|
text-align: center;
|
||||||
padding: $padding *2;
|
color: #cacaca;
|
||||||
border-top: solid 4rpx #f8f8f8;
|
font-size: 26rpx;
|
||||||
|
|
||||||
.item {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
box-sizing: border-box;
|
|
||||||
border-bottom: solid 1rpx #f8f8f8;
|
|
||||||
background-color: #fff;
|
|
||||||
padding: 0 0 $padding*0.8 0;
|
|
||||||
|
|
||||||
.left,
|
|
||||||
.right {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: flex-start;
|
|
||||||
justify-content: center;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
.left {
|
|
||||||
font-size: $title-size-m;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #808080;
|
|
||||||
|
|
||||||
span:nth-child(2) {
|
|
||||||
color: $text-price;
|
|
||||||
font-size: $title-size-m;
|
|
||||||
font-weight: normal;
|
|
||||||
padding-top: $padding *0.5;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.right {
|
|
||||||
font-size: $title-size-m;
|
|
||||||
align-items: flex-end;
|
|
||||||
color: #666;
|
|
||||||
|
|
||||||
span:nth-child(1) {
|
|
||||||
padding-bottom: $padding*0.5;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -188,6 +188,52 @@
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.record-list {
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
|
||||||
|
.record-list-item {
|
||||||
|
padding: 30rpx 0;
|
||||||
|
border-bottom: solid 1rpx #f7f7f7;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
box-sizing: border-box;
|
||||||
|
.record-icon{
|
||||||
|
width: 60rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
.record-list-item-top {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 600rpx;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28rpx;
|
||||||
|
width: 600rpx;
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.money {
|
||||||
|
color: #ee4c47;
|
||||||
|
font-size: 40rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
// padding-top: 20rpx;
|
||||||
|
position: relative;
|
||||||
|
top: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-list-item-date {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #a6a6a6;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
.record-top {
|
.record-top {
|
||||||
width: calc(100% - 60rpx);
|
width: calc(100% - 60rpx);
|
||||||
height: 360rpx;
|
height: 360rpx;
|
||||||
@@ -292,47 +338,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.record-list {
|
|
||||||
padding: 20rpx 30rpx;
|
|
||||||
|
|
||||||
.record-list-item {
|
|
||||||
padding: 20rpx 0;
|
|
||||||
border-bottom: solid 1rpx #f7f7f7;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: flex-start;
|
|
||||||
justify-content: flex-start;
|
|
||||||
box-sizing: border-box;
|
|
||||||
.record-icon{
|
|
||||||
width: 60rpx;
|
|
||||||
margin-right: 20rpx;
|
|
||||||
}
|
|
||||||
.record-list-item-top {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
box-sizing: border-box;
|
|
||||||
width: 600rpx;
|
|
||||||
|
|
||||||
.title {
|
|
||||||
font-size: 28rpx;
|
|
||||||
width: 600rpx;
|
|
||||||
color: #444;
|
|
||||||
}
|
|
||||||
|
|
||||||
.money {
|
|
||||||
color: #ee4c47;
|
|
||||||
font-size: 32rpx;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.record-list-item-date {
|
|
||||||
font-size: 26rpx;
|
|
||||||
color: #a6a6a6;
|
|
||||||
margin-top: 10rpx;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -3,9 +3,11 @@
|
|||||||
<view class="propery">
|
<view class="propery">
|
||||||
<image src="/static/imgs/account-bg.png" mode="aspectFill" class="record-bg" />
|
<image src="/static/imgs/account-bg.png" mode="aspectFill" class="record-bg" />
|
||||||
<view class="propery-content">
|
<view class="propery-content">
|
||||||
<view class="currency">能量球 (≈ {{ price || '0' }} CNY)</view>
|
<view class="currency">能量球钱包
|
||||||
<view class="balance">{{ balance.balance || '0' }}</view>
|
<!-- <span>(≈ {{ price || '0.00' }} CNY)</span> -->
|
||||||
<view class="frozen">{{ balance.frozen || '0' }} 冻结中</view>
|
</view>
|
||||||
|
<view class="balance">{{ balance.balance || '0.00' }}</view>
|
||||||
|
<view class="frozen">{{ balance.frozen || '0.00' }} 冻结中</view>
|
||||||
<view class="balance-flex">
|
<view class="balance-flex">
|
||||||
<view class="balance-flex-item" @click="showAddress">区块链地址</view>
|
<view class="balance-flex-item" @click="showAddress">区块链地址</view>
|
||||||
<!-- <view class="balance-flex-item" @click="showPrivatekey('privatekey')">我的私钥</view> -->
|
<!-- <view class="balance-flex-item" @click="showPrivatekey('privatekey')">我的私钥</view> -->
|
||||||
@@ -67,14 +69,36 @@
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
Promise.all([
|
this.getsum()
|
||||||
sum(),
|
this.getlog()
|
||||||
price(),
|
this.getprice()
|
||||||
logs()
|
},
|
||||||
]).then(res => {
|
methods: {
|
||||||
this.balance = res[0]
|
getsum() {
|
||||||
this.price = res[1]
|
sum().then(res => {
|
||||||
this.logs = res[2]
|
this.balance = res
|
||||||
|
}).catch(err => {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: err.message
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getprice() {
|
||||||
|
price().then(res => {
|
||||||
|
console.log(res,'87..........')
|
||||||
|
this.price = res
|
||||||
|
}).catch(err => {
|
||||||
|
uni.showToast({
|
||||||
|
icon: 'none',
|
||||||
|
title: err.message
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getlog() {
|
||||||
|
logs().then(res => {
|
||||||
|
console.log(res,'98 ...........')
|
||||||
|
this.logs = res
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
@@ -82,7 +106,6 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
|
||||||
// 弹出私钥
|
// 弹出私钥
|
||||||
showPrivatekey(pages) {
|
showPrivatekey(pages) {
|
||||||
this.passwordPages = pages
|
this.passwordPages = pages
|
||||||
@@ -102,10 +125,20 @@
|
|||||||
this.$refs.showPassword.close()
|
this.$refs.showPassword.close()
|
||||||
switch (this.passwordPages) {
|
switch (this.passwordPages) {
|
||||||
case 'privatekey':
|
case 'privatekey':
|
||||||
this.$Router.push({name:'Privatekey', params: {password: this.password}})
|
this.$Router.push({
|
||||||
|
name: 'Privatekey',
|
||||||
|
params: {
|
||||||
|
password: this.password
|
||||||
|
}
|
||||||
|
})
|
||||||
break;
|
break;
|
||||||
case 'resetPassword':
|
case 'resetPassword':
|
||||||
this.$Router.push({name:'ResetPassword', params: {password: this.password}})
|
this.$Router.push({
|
||||||
|
name: 'ResetPassword',
|
||||||
|
params: {
|
||||||
|
password: this.password
|
||||||
|
}
|
||||||
|
})
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
this.password = ''
|
this.password = ''
|
||||||
@@ -135,10 +168,11 @@
|
|||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '我的区块链地址',
|
title: '我的区块链地址',
|
||||||
content: '\n地址可以理解为银行卡卡号,与他人转账时是区块链上的两个地址间的交易行为\n\n' + this.balance.address,
|
content: '\n地址可以理解为银行卡卡号,与他人转账时是区块链上的两个地址间的交易行为\n\n' + this.balance.address,
|
||||||
cancelText: '复制',
|
confirmText: '复制',
|
||||||
cancelColor: '#b11eff',
|
confirmColor: '#b11eff',
|
||||||
|
showCancel:false,
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.cancel) {
|
if (res.confirm) {
|
||||||
uni.setClipboardData({
|
uni.setClipboardData({
|
||||||
data: this.balance.address
|
data: this.balance.address
|
||||||
})
|
})
|
||||||
@@ -178,13 +212,16 @@
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 验证密码弹出层
|
// 验证密码弹出层
|
||||||
.validationPassword {
|
.validationPassword {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border-radius: $radius-m;
|
border-radius: $radius-m;
|
||||||
width: 70vw;
|
width: 70vw;
|
||||||
|
|
||||||
.from {
|
.from {
|
||||||
padding: $padding*2;
|
padding: $padding*2;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: $title-size;
|
font-size: $title-size;
|
||||||
@@ -192,6 +229,7 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: $text-price;
|
color: $text-price;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
@@ -201,9 +239,11 @@
|
|||||||
padding: 0 ($padding*2);
|
padding: 0 ($padding*2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.buttons {
|
.buttons {
|
||||||
display: flex;
|
display: flex;
|
||||||
border-top: solid 1rpx $border-color;
|
border-top: solid 1rpx $border-color;
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
font-size: $title-size;
|
font-size: $title-size;
|
||||||
@@ -211,15 +251,18 @@
|
|||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
&.cancel {
|
&.cancel {
|
||||||
border-right: solid 1rpx $border-color;
|
border-right: solid 1rpx $border-color;
|
||||||
color: $text-gray;
|
color: $text-gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.confirm {
|
&.confirm {
|
||||||
color: $text-price;
|
color: $text-price;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// .button{
|
// .button{
|
||||||
// background-color: $text-price;
|
// background-color: $text-price;
|
||||||
// color: white;
|
// color: white;
|
||||||
@@ -238,6 +281,7 @@
|
|||||||
// background-color: transparent;
|
// background-color: transparent;
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
// 账户
|
// 账户
|
||||||
.propery {
|
.propery {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -245,16 +289,18 @@
|
|||||||
background-image: linear-gradient(to right, #7c52fc, #976dff);
|
background-image: linear-gradient(to right, #7c52fc, #976dff);
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
.record-bg {
|
.record-bg {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 120%;
|
width: 100%;
|
||||||
height: 300rpx;
|
height: 300rpx;
|
||||||
bottom: -10rpx;
|
bottom: 0;
|
||||||
right: -20rpx;
|
right: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
transform:rotate(-7deg);
|
transform: rotate(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// &::before {
|
// &::before {
|
||||||
// position: absolute;
|
// position: absolute;
|
||||||
// left: 0;
|
// left: 0;
|
||||||
@@ -294,7 +340,6 @@
|
|||||||
padding: 6rpx $padding;
|
padding: 6rpx $padding;
|
||||||
border-radius: $radius-m;
|
border-radius: $radius-m;
|
||||||
border: solid 1rpx rgba($color: white, $alpha: .4)
|
border: solid 1rpx rgba($color: white, $alpha: .4)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.balance-flex {
|
.balance-flex {
|
||||||
|
|||||||
120
pages/wallet/selectCard.vue
Normal file
120
pages/wallet/selectCard.vue
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
<template>
|
||||||
|
<view class="selectCard">
|
||||||
|
<view class="bankInfo">
|
||||||
|
<image class="bankLogin" src="/static/imgs/bankLogo.png" mode="widthFix" />
|
||||||
|
<view class="right">
|
||||||
|
<view class="left">
|
||||||
|
<view class="title">浦发银行 <view class="tags">快捷支付</view>
|
||||||
|
</view>
|
||||||
|
<view class="des">储值卡</view>
|
||||||
|
<view class="no">622 8480530 382837819</view>
|
||||||
|
</view>
|
||||||
|
<u-icon name="calendar" color="rgba(255,255,255,0.6)" size='60' />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- <u-toast ref="uToast" /> -->
|
||||||
|
<u-toast ref="uToast" />
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
chaineb
|
||||||
|
} from '@/apis/interfaces/mine';
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.selectCard {
|
||||||
|
width: 100%;
|
||||||
|
min-height: 100vh;
|
||||||
|
padding-top: 30rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
|
||||||
|
.bankInfo {
|
||||||
|
width: calc(100% - 60rpx);
|
||||||
|
background-image: linear-gradient(to right, #7c52fc, #976dff);
|
||||||
|
box-shadow: 0 10rpx 20rpx 0rpx rgba($color: #976dff, $alpha: 0.6);
|
||||||
|
margin: 0 30rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
position: relative;
|
||||||
|
padding:40rpx 30rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: space-between;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
|
.bankLogin {
|
||||||
|
width: 80rpx;
|
||||||
|
opacity: .9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
flex: 1;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
color: rgba($color: #fff, $alpha: .9);
|
||||||
|
|
||||||
|
.left {
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 38rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
|
||||||
|
.tags {
|
||||||
|
color: $text-price;
|
||||||
|
font-size: 24rpx;
|
||||||
|
margin-left: 20rpx;
|
||||||
|
padding: 4rpx 14rpx;
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
color: #7C52FC;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
background: rgba($color: #fff, $alpha: .8);
|
||||||
|
z-index: -1;
|
||||||
|
position: absolute;
|
||||||
|
content: '';
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
transform: skewX(-10deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.des {
|
||||||
|
font-size: 28rpx;
|
||||||
|
margin-top: 14rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no {
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
398
pages/wallet/withdrawList.vue
Normal file
398
pages/wallet/withdrawList.vue
Normal file
@@ -0,0 +1,398 @@
|
|||||||
|
<template>
|
||||||
|
<view class="Record">
|
||||||
|
<view class="record-top">
|
||||||
|
<image src="/static/imgs/account-bg.png" mode="widthFix" class="record-bg" />
|
||||||
|
<view class="record-top-nav">
|
||||||
|
<view :class="['record-top-item',type==='year'?'selectTopItem':'']" @click="selectType('year')">年账单
|
||||||
|
</view>
|
||||||
|
<view :class="['record-top-item',type==='month'?'selectTopItem':'']" @click="selectType('month')">月账单
|
||||||
|
</view>
|
||||||
|
<view :class="['record-top-item',type==='day'?'selectTopItem':'']" @click="selectType('day')">日账单</view>
|
||||||
|
</view>
|
||||||
|
<view class="record-mouth-year">
|
||||||
|
<view class="record-type-right">
|
||||||
|
<view class="record-title">当前能量球</view>
|
||||||
|
<view class="record-money">{{account || '0.00'}} </view>
|
||||||
|
</view>
|
||||||
|
<view class="record-type-left">
|
||||||
|
<u-picker mode="time" v-model="show" :params="params" @confirm='confirm' title='筛选日期'
|
||||||
|
start-year='2021' :end-year='currentYear' />
|
||||||
|
<view @click="show = true">
|
||||||
|
{{date?date:'选择日期'}}
|
||||||
|
<uni-icons type="arrowdown" color="#fff" size="12" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- <view class="record-title">碎片个数</view>
|
||||||
|
<view class="record-money"><span>¥</span>{{account || '0.00'}}</view> -->
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 列表。。。 -->
|
||||||
|
<view class="ew_lists" v-if="lists.length>0">
|
||||||
|
<view style="padding-top: 30rpx;" v-for="(item,index) in lists " :key="index">
|
||||||
|
<!-- <view class="receiptCode">回执单号:hash392J3K,390-9DKDKDIOKLK</view> -->
|
||||||
|
<view class="item">
|
||||||
|
<view class="left">
|
||||||
|
<span>能量球:150</span>
|
||||||
|
<span>金额≈¥300</span>
|
||||||
|
</view>
|
||||||
|
<view class="right">
|
||||||
|
<span> {{item.created_at}} 提现</span>
|
||||||
|
<span> {{item.paid_at || index === 0 ? '2021-11-11 11:11:11到账':'努力打款中'}}</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 无列表 -->
|
||||||
|
<no-list v-if="lists.length === 0" name='no-record' txt="没有任何提现记录 ~ " />
|
||||||
|
|
||||||
|
<!-- <u-toast ref="uToast" /> -->
|
||||||
|
<u-toast ref="uToast" />
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import {
|
||||||
|
chaineb
|
||||||
|
} from '@/apis/interfaces/mine';
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
lists: [1, 1.1, 1, 1],
|
||||||
|
has_next_page: true,
|
||||||
|
page: 1,
|
||||||
|
type: 'year', // 统计类型day日,month月,year年
|
||||||
|
cointype: 'in', // in 收入 out 支出
|
||||||
|
date: new Date().toISOString().slice(0, 4), // 日:Y-m-d,月Y-m,年Y
|
||||||
|
params: {
|
||||||
|
year: true,
|
||||||
|
month: false,
|
||||||
|
day: false
|
||||||
|
},
|
||||||
|
show: false, // 显示
|
||||||
|
currentDay: new Date().toISOString().slice(0, 10),
|
||||||
|
currentMonth: new Date().toISOString().slice(0, 7),
|
||||||
|
currentYear: new Date().toISOString().slice(0, 4),
|
||||||
|
account: ''
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
if (this.has_next_page) {
|
||||||
|
this.page = this.page + 1
|
||||||
|
this.getList()
|
||||||
|
} else {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: '吼吼吼~我是有底的~',
|
||||||
|
type: 'primary',
|
||||||
|
duration: 3000
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 获取列表
|
||||||
|
getList() {
|
||||||
|
let data = {
|
||||||
|
page: this.page,
|
||||||
|
type: this.type,
|
||||||
|
date: this.date,
|
||||||
|
cointype: this.cointype
|
||||||
|
}
|
||||||
|
chaineb(data).then(res => {
|
||||||
|
this.account = res.account
|
||||||
|
this.lists = this.lists.concat(res.lists)
|
||||||
|
this.has_next_page = res.has_next_page
|
||||||
|
}).catch(err => {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: err.message,
|
||||||
|
type: 'primary',
|
||||||
|
duration: 3000
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
selectCoinType(type) {
|
||||||
|
if (this.cointype !== type) {
|
||||||
|
this.cointype = type
|
||||||
|
this.reset()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 重置
|
||||||
|
reset() {
|
||||||
|
this.page = 1
|
||||||
|
this.lists = []
|
||||||
|
this.has_next_page = true
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
// 选择 年 月 日 切换要重置数据
|
||||||
|
selectType(type) {
|
||||||
|
if (this.type !== type) {
|
||||||
|
switch (type) {
|
||||||
|
case 'year':
|
||||||
|
this.type = type
|
||||||
|
this.params = {
|
||||||
|
year: true,
|
||||||
|
month: false,
|
||||||
|
day: false
|
||||||
|
}
|
||||||
|
this.date = this.currentYear
|
||||||
|
this.reset()
|
||||||
|
break;
|
||||||
|
case 'month':
|
||||||
|
this.type = type
|
||||||
|
this.params = {
|
||||||
|
year: true,
|
||||||
|
month: true,
|
||||||
|
day: false
|
||||||
|
}
|
||||||
|
this.date = this.currentMonth
|
||||||
|
this.reset()
|
||||||
|
break;
|
||||||
|
case 'day':
|
||||||
|
this.type = type
|
||||||
|
this.params = {
|
||||||
|
year: true,
|
||||||
|
month: false,
|
||||||
|
day: false
|
||||||
|
}
|
||||||
|
this.date = this.currentDay
|
||||||
|
this.reset()
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 点击确认按钮
|
||||||
|
confirm(e) {
|
||||||
|
let type = this.type
|
||||||
|
switch (type) {
|
||||||
|
case 'year':
|
||||||
|
this.date = e.year
|
||||||
|
this.reset()
|
||||||
|
break;
|
||||||
|
case 'month':
|
||||||
|
this.date = e.year + '-' + e.month
|
||||||
|
this.reset()
|
||||||
|
break;
|
||||||
|
case 'day':
|
||||||
|
this.date = e.year + '-' + e.month + '-' + e.day
|
||||||
|
this.reset()
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.Record {
|
||||||
|
width: 100%;
|
||||||
|
min-height: 100vh;
|
||||||
|
padding-top: 30rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-list {
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
|
||||||
|
.record-list-item {
|
||||||
|
padding: 30rpx 0;
|
||||||
|
border-bottom: solid 1rpx #f7f7f7;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.record-icon {
|
||||||
|
width: 60rpx;
|
||||||
|
margin-right: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-list-item-top {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 600rpx;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28rpx;
|
||||||
|
width: 600rpx;
|
||||||
|
color: #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.money {
|
||||||
|
color: #ee4c47;
|
||||||
|
font-size: 40rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
// padding-top: 20rpx;
|
||||||
|
position: relative;
|
||||||
|
top: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-list-item-date {
|
||||||
|
font-size: 26rpx;
|
||||||
|
color: #a6a6a6;
|
||||||
|
margin-top: 10rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-top {
|
||||||
|
width: calc(100% - 60rpx);
|
||||||
|
height: 360rpx;
|
||||||
|
background-image: linear-gradient(to right, #7c52fc, #976dff);
|
||||||
|
box-shadow: 0 10rpx 20rpx 0rpx rgba($color: #976dff, $alpha: 0.4);
|
||||||
|
margin: 0 30rpx;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
position: relative;
|
||||||
|
padding: 10rpx 50rpx 20rpx 50rpx;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
|
.record-bg {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 1;
|
||||||
|
opacity: .5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-top-nav {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
.record-top-item {
|
||||||
|
margin: 40rpx 20rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selectTopItem {
|
||||||
|
border-bottom: solid 4rpx #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-mouth-year {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 30rpx;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
|
||||||
|
.record-type-left {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: flex-start;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
uni-icons {
|
||||||
|
margin-left: 4rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-type-right {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: flex-start;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-size: 24rpx;
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
|
.pay_type_item {
|
||||||
|
margin: 0 10rpx;
|
||||||
|
padding: 2rpx 20rpx;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
border: solid 1rpx rgba($color: #000000, $alpha: 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pay_type_item_select {
|
||||||
|
border: solid 1rpx #f7f7f7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-title {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #fff;
|
||||||
|
padding: 0 0 20rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.record-money {
|
||||||
|
color: #fff;
|
||||||
|
font-size: 60rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
span {
|
||||||
|
font-size: 24rpx;
|
||||||
|
font-weight: 400;
|
||||||
|
padding-left: 20rpx;
|
||||||
|
margin-right: 4rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ew_lists {
|
||||||
|
padding: $padding;
|
||||||
|
border-top: solid 4rpx #f8f8f8;
|
||||||
|
|
||||||
|
.item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-bottom: solid 1rpx #f8f8f8;
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 0 0 $padding*0.8 0;
|
||||||
|
|
||||||
|
.left,
|
||||||
|
.right {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-content: center;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left {
|
||||||
|
font-size: $title-size-m;
|
||||||
|
// font-weight: 600;
|
||||||
|
padding-top: 10rpx;
|
||||||
|
color: #808080;
|
||||||
|
|
||||||
|
span:nth-child(2) {
|
||||||
|
color: #824F9A;
|
||||||
|
font-size: $title-size-m;
|
||||||
|
font-weight: normal;
|
||||||
|
padding-top: $padding *0.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
font-size: $title-size-m;
|
||||||
|
align-items: flex-end;
|
||||||
|
color: #666;
|
||||||
|
|
||||||
|
span:nth-child(1) {
|
||||||
|
padding-bottom: $padding*0.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
BIN
static/imgs/bankLogo.png
Normal file
BIN
static/imgs/bankLogo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
Reference in New Issue
Block a user