<template>
|
|
<view class="commission">
|
|
<image src="/static/image/center/10.png" mode=""></image>
|
|
<view class="price">
|
|
<view class="title">
|
|
总佣金(元)
|
|
</view>
|
|
<view class="num">
|
|
7890.34元
|
|
</view>
|
|
</view>
|
|
|
|
<view class="font-menu"
|
|
v-if="purse">
|
|
<view @click="toRunningWater(index)"
|
|
v-for="(item, index) in list"
|
|
:key="index">{{ item.name }}</view>
|
|
</view>
|
|
|
|
<view class="btn"
|
|
v-if="!purse"
|
|
@click="toPurse">
|
|
提现
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "userShopCommission",
|
|
props : {
|
|
purse : {
|
|
default : false,
|
|
},
|
|
},
|
|
data() {
|
|
return {
|
|
list : [
|
|
{
|
|
name : '余额记录',
|
|
},
|
|
{
|
|
name : '提现记录',
|
|
},
|
|
{
|
|
name : '佣金记录',
|
|
},
|
|
],
|
|
};
|
|
},
|
|
methods : {
|
|
// 跳转到钱包提现
|
|
toPurse(){
|
|
uni.navigateTo({
|
|
url:'/pages_order/mine/purse'
|
|
})
|
|
},
|
|
// 跳转到记录页面
|
|
toRunningWater(index){
|
|
uni.navigateTo({
|
|
url:'/pages_order/mine/runningWater?status=' + index
|
|
})
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.commission {
|
|
width: 700rpx;
|
|
height: 300rpx;
|
|
position: relative;
|
|
margin: 20rpx auto;
|
|
color: #fff;
|
|
|
|
image {
|
|
width: 700rpx;
|
|
height: 300rpx;
|
|
position: absolute;
|
|
border-radius: 20rpx;
|
|
}
|
|
|
|
.price {
|
|
position: absolute;
|
|
left: 50rpx;
|
|
top: 80rpx;
|
|
font-weight: 900;
|
|
|
|
.title {
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
.num {
|
|
font-size: 44rpx;
|
|
margin-top: 20rpx;
|
|
}
|
|
}
|
|
|
|
.font-menu {
|
|
font-size: 24rpx;
|
|
font-family: PingFang SC, PingFang SC-Regular;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
color: #ffffff;
|
|
line-height: 24rpx;
|
|
width: 710rpx;
|
|
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 25rpx;
|
|
display: flex;
|
|
view{
|
|
width: 160rpx;
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
position: absolute;
|
|
right: 50rpx;
|
|
bottom: 50rpx;
|
|
background-color: #FDC440;
|
|
width: 160rpx;
|
|
height: 60rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
border-radius: 30rpx;
|
|
}
|
|
}
|
|
</style>
|