增加新模块
This commit is contained in:
@@ -0,0 +1,210 @@
|
||||
<template>
|
||||
<view class="purse_warp">
|
||||
<view class="purse_collect">
|
||||
<view class="collect_item collect_item_but">
|
||||
<view class="item_warp">
|
||||
<view class="collect_title">余额(元)</view>
|
||||
<view class="collect_value">100.00</view>
|
||||
</view>
|
||||
<view class="item_right_warp"></view>
|
||||
<view class="item_warp" @click="jumpBonus">
|
||||
<view class="collect_title">奖金(元)</view>
|
||||
<view class="collect_value">200.21</view>
|
||||
</view>
|
||||
<view class="item_right_warp"></view>
|
||||
<view class="item_warp">
|
||||
<view class="collect_title">兑换券</view>
|
||||
<view class="collect_value">10</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="collect_item">
|
||||
<view class="item_warp">
|
||||
<view class="collect_title">HM(锁仓)</view>
|
||||
<view class="collect_value">100.00</view>
|
||||
</view>
|
||||
<view class="item_right_warp"></view>
|
||||
<view class="item_warp">
|
||||
<view class="collect_title"> HM(可交易)</view>
|
||||
<view class="collect_value">200.21</view>
|
||||
</view>
|
||||
<view class="item_right_warp"></view>
|
||||
<view class="item_warp">
|
||||
<view class="collect_title">HMC</view>
|
||||
<view class="collect_value">10</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info_warp">
|
||||
<view class="info_title_warp">
|
||||
<view :class="selInfo === item.id ? 'info_title_item_warp info_title_item_sel_warp':'info_title_item_warp'" v-for="item in infoList" :key="item.id" @click="selectInfo(item)">
|
||||
<text>{{item.name}}</text>
|
||||
<view class="info_title_item_sel_but_warp" v-if="selInfo === item.id"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="info_list_warp">
|
||||
<view v-for="item in orderList" :key="item.id" class="purse_info_item">
|
||||
<view class="purse_info_left">
|
||||
<up-image :src="item.type === 1? '/static/mine/purse_sf.png' : '/static/mine/purse_xf.png'" width="40" height="40" bgColor="#f1f6ff00"></up-image>
|
||||
<view class="purse_data_warp">
|
||||
<view class="purse_info_name">{{item.name}}</view>
|
||||
<view class="purse_info_value">{{item.time}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="ipurse_nfo_right">
|
||||
<view class="purse_info_title">{{item.type ===1 ? '+':'-'}} {{item.amount}}</view>
|
||||
<view class="purse_info_value">{{item.typeName}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
infoList:[
|
||||
{
|
||||
id:1,
|
||||
name:"余额"
|
||||
},{
|
||||
id:2,
|
||||
name:"奖金"
|
||||
},{
|
||||
id:3,
|
||||
name:"兑换券"
|
||||
},{
|
||||
id:4,
|
||||
name:"HM"
|
||||
},{
|
||||
id:5,
|
||||
name:"HMC"
|
||||
},
|
||||
],
|
||||
selInfo:1,
|
||||
orderList:[
|
||||
{
|
||||
id:1,
|
||||
type:0,// 0:消,1:收
|
||||
name:"购物",
|
||||
time:"01-01 14:10:10",
|
||||
amount:1000,
|
||||
typeName:"购物消费",
|
||||
},{
|
||||
id:2,
|
||||
type:1,// 0:消,1:收
|
||||
name:"卖出HM-到账",
|
||||
time:"01-01 14:10:10",
|
||||
amount:1000,
|
||||
typeName:"收入到账",
|
||||
},{
|
||||
id:3,
|
||||
type:1,// 0:消,1:收
|
||||
name:"卖出HM-到账",
|
||||
time:"01-01 14:10:10",
|
||||
amount:1000,
|
||||
typeName:"收入到账",
|
||||
},{
|
||||
id:4,
|
||||
type:1,// 0:消,1:收
|
||||
name:"卖出HM-到账",
|
||||
time:"01-01 14:10:10",
|
||||
amount:1000,
|
||||
typeName:"收入到账",
|
||||
},{
|
||||
id:5,
|
||||
type:1,// 0:消,1:收
|
||||
name:"卖出HM-到账",
|
||||
time:"01-01 14:10:10",
|
||||
amount:1000,
|
||||
typeName:"收入到账",
|
||||
},
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
selectInfo(item){
|
||||
this.selInfo = item.id;
|
||||
},
|
||||
// 跳转到奖金
|
||||
jumpBonus(){
|
||||
uni.navigateTo({
|
||||
url:"/pages/mine_purse_bonus/mine_purse_bonus",
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.purse_warp{
|
||||
height: calc(100vh - 58rpx);
|
||||
padding: 20rpx;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
.purse_collect{
|
||||
padding: 48rpx 16px;
|
||||
background: $app-bt-bj;
|
||||
border-radius: 24rpx;
|
||||
.collect_item{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: #FFFFFF;
|
||||
.item_warp{
|
||||
width: 30%;
|
||||
text-align: center;
|
||||
line-height: 46rpx;
|
||||
}
|
||||
.item_right_warp{
|
||||
border-right: 1rpx solid #ffffff85;
|
||||
height: 50rpx;
|
||||
}
|
||||
.collect_title{
|
||||
font-weight: 500;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
.collect_value{
|
||||
font-weight: 800;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
}
|
||||
.collect_item_but{
|
||||
margin-bottom: 34rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.info_warp{
|
||||
margin-top: 30rpx;
|
||||
.info_title_warp{
|
||||
display: flex;
|
||||
padding-left: 10rpx;
|
||||
}
|
||||
.info_title_item_warp{
|
||||
margin-right: 40rpx;
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
color: #666666;
|
||||
}
|
||||
.info_title_item_sel_warp{
|
||||
font-weight: bold;
|
||||
font-size: 36rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.info_title_item_sel_but_warp{
|
||||
background: #FFB541;
|
||||
border-radius: 4rpx;
|
||||
width: 40rpx;
|
||||
height: 8rpx;
|
||||
margin-left: 18rpx;
|
||||
}
|
||||
.info_list_warp{
|
||||
margin-top: 30rpx;
|
||||
height: calc(100vh - 500rpx);
|
||||
overflow-y: auto;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user