Browse Source

feat: 提现;

pull/1/head
fox 2 months ago
parent
commit
bf3d3708e6
4 changed files with 166 additions and 360 deletions
  1. +12
    -9
      pages.json
  2. +0
    -218
      pages_order/mine/partner.vue
  3. +154
    -133
      pages_order/mine/withdraw.vue
  4. BIN
      pages_order/static/withdraw/bg.png

+ 12
- 9
pages.json View File

@ -64,12 +64,21 @@
"enablePullDownRefresh": true
}
},
{
"path": "mine/memberCenter"
},
{
"path": "mine/partner"
},
{
"path": "mine/withdraw"
},
{
"path": "mine/verifyRecord"
},
{
"path": "mine/purse"
},
@ -106,9 +115,6 @@
{
"path": "mine/commission"
},
{
"path": "mine/withdraw"
},
{
"path": "mine/recharge"
},
@ -124,9 +130,6 @@
{
"path": "home/addEnterprise"
},
{
"path": "mine/memberCenter"
},
{
"path": "mine/recruit"
},


+ 0
- 218
pages_order/mine/partner.vue View File

@ -50,40 +50,6 @@
</view>
</view>
<template v-if="false">
<!-- 列表 -->
<view class="brokerage-list">
<view v-for="item in list" :key="item.id" class="brokerage-item">
<view class="brokerage-user">
<image :src="item.headImage" mode="aspectFill" class="pro-img"></image>
<view class="name-time">
<view class="name">
{{ item.nickName }}
</view>
<!-- <view class="time">
已加入平台{{ daysBetweenDates(item.createTime,new Date().toString())}}
</view> -->
<view class="time">
加入时间{{ item.createTime }}
</view>
</view>
</view>
<view class="brokerage-money">
<view class="order-money">
下单量: <text>{{ item.orderNum }}</text>
</view>
<text>|</text>
<view class="money">
佣金:<text>{{ item.commission }}</text>
</view>
</view>
</view>
</view>
</template>
</view>
</template>
@ -286,188 +252,4 @@
}
}
}
.partner {
//
.partner-info-bg {
background: $uni-color;
padding: 60rpx 0rpx;
.partner-info {
display: flex;
align-items: center;
background: white;
border-radius: 20rpx;
box-sizing: border-box;
padding: 20rpx;
width: calc(100% - 40rpx);
margin: 0rpx auto;
.profile-photo {
display: flex;
justify-content: center;
align-items: center;
width: 25%;
.pro-img {
width: 170rpx;
height: 170rpx;
border-radius: 50%;
}
}
.performance-information {
width: 75%;
padding: 0rpx 20rpx;
box-sizing: border-box;
.user-info-base {
display: flex;
flex-wrap: wrap;
align-items: center;
border-bottom: 2px dashed $uni-color;
padding: 20rpx 0rpx;
.username {
font-size: 36rpx;
}
.user-tag {
background: black;
color: white;
margin-left: 20rpx;
border-radius: 20rpx;
padding: 3rpx 20rpx;
font-size: 28rpx;
}
}
.live-performance {
display: flex;
flex-wrap: wrap;
padding: 20rpx 0rpx;
box-sizing: border-box;
.live-performance-money {
width: 50%;
.live-tag {
display: flex;
align-items: center;
justify-content: center;
background: #F99F9F;
color: #DC2828;
border-radius: 40rpx;
font-weight: bold;
font-size: 28rpx;
padding: 10rpx 0rpx;
}
.money {
font-size: 45rpx;
color: $uni-color;
font-weight: bold;
.unit {
font-size: 32rpx;
}
}
}
.withdraw {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-end;
width: 50%;
.btn {
width: 90%;
display: flex;
align-items: center;
justify-content: center;
background: #DC2828;
color: white;
border-radius: 40rpx;
padding: 20rpx 0rpx;
font-weight: bold;
font-size: 32rpx;
}
}
}
}
}
}
.tabs {
background: white;
}
//
.brokerage-list {
padding: 0rpx 20rpx;
.brokerage-item {
display: flex;
align-items: center;
flex-wrap: wrap;
background: white;
margin: 20rpx 0rpx;
border-radius: 20rpx;
padding: 20rpx;
box-sizing: border-box;
.brokerage-user {
width: 50%;
display: flex;
align-items: center;
flex-wrap: wrap;
.pro-img {
width: 100rpx;
height: 100rpx;
}
.name-time {
width: calc(100% - 100rpx);
padding: 0rpx 20rpx;
box-sizing: border-box;
.name {
font-size: 32rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.time {
color: #999999;
font-size: 26rpx;
}
}
}
.brokerage-money {
width: 50%;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.order-money {
text {
margin-left: 10rpx;
}
}
.money {
text {
color: #FEB814;
margin-left: 10rpx;
}
}
}
}
}
}
</style>

+ 154
- 133
pages_order/mine/withdraw.vue View File

@ -1,53 +1,68 @@
<template>
<view class="page">
<!-- 导航栏 -->
<navbar title="提现" leftClick @leftClick="$utils.navigateBack" bgColor="#E3441A" color="#fff" />
<navbar title="提现" leftClick @leftClick="$utils.navigateBack" color="#fff" />
<!-- 佣金信息 -->
<view class="b-relative center font-m">
<image :src="configList.tx_image" mode="aspectFill" />
<view class="content">
<view class="user-money">
<view class="title">总佣金</view>
<view class="money">{{ riceInfo.canWithdraw}}</view>
</view>
<!-- 佣金信息 -->
<view class="info">
<image class="info-bg" src="../static/withdraw/bg.png"></image>
<view class="operation">
<!-- <view @click="toRunningWater" class="operation-item">
余额记录
<view class="info-content">
<view class="label">总佣金余额</view>
<view class="value">{{ riceInfo.canWithdraw || 0 }}</view>
<view class="flex desc">
<!-- todo: 对接接口字段 -->
<view>{{ `累积提现:${123 || 0}` }}</view>
<button plain class="btn">
<text>提现记录</text>
<image class="btn-icon" src="@/static/image/center/icon-arrow.png" mode="widthFix"></image>
</button>
</view>
</view>
|
<view @click="toRunningWater" class="operation-item">
提现记录
</view>
<!-- 我要提现 -->
<view class="form">
<view class="form-title">我要提现</view>
<view class="form-item">
<uv-input
v-model.number="form.money"
placeholder="请输入提现金额"
:placeholderStyle="placeholderStyle"
:customStyle="customStyle"
color="#FF2A2A"
>
<template #prefix>
<view class="unit"></view>
</template>
</uv-input>
</view>
| -->
<view @click="toRunningWater" class="operation-item">
流水记录
<view class="form-item">
<uv-input
v-model.trim="form.name"
placeholder="请输入真实姓名"
:placeholderStyle="placeholderStyle"
:customStyle="customStyle"
></uv-input>
</view>
</view>
</view>
<!-- 我要提现 -->
<view class="from-body">
<view class="title">我要提现</view>
<view class="money-form">
<view class="unit">
</view>
<uv-input type="number" placeholder="请输入提现金额" border="surround" v-model.number="form.money"></uv-input>
<!-- 提现说明 -->
<view class="desc">
<view class="desc-title">提现说明</view>
<!-- todo: check -->
<uv-parse class="desc-content" :content="configList.recharge_instructions"></uv-parse>
<!-- <view v-html="configList.recharge_instructions" class="withdrawal-statement" style="color: #666666;"></view> -->
</view>
<view class="tools">
<button class="flex btn" @click="withdraw">立即提现</button>
</view>
</view>
<!-- 提现说明 -->
<view class="withdrawal-statement">
<view class="title">提现说明</view>
<view v-html="configList.recharge_instructions" class="withdrawal-statement" style="color: #666666;"></view>
</view>
<view @click="withdraw" class="uni-color-btn">
立即提现
</view>
</view>
</template>
@ -64,8 +79,19 @@
data() {
return {
form: {
money: ''
money: '',
name: '',
},
placeholderStyle: {
color: '#999999',
fontSize: '28rpx',
},
customStyle: {
backgroundColor: '#F5F5F5',
border: 'none',
borderRadius: '16rpx',
padding: '28rpx 35rpx'
}
}
},
onShow() {
@ -74,6 +100,16 @@
},
methods: {
withdraw() { //
if (!this.form.name) {
uni.showToast({
title: '请输入真实姓名',
icon: 'none'
})
return
}
// todo
if (this.form.money < 300) {
return uni.showToast({
title: '未满300元不可提现哦!',
@ -126,131 +162,116 @@
<style scoped lang="scss">
.page {
//
.center {
position: relative;
width: 710rpx;
height: 316rpx;
margin: 20rpx auto;
background-color: $uni-fg-color;
min-height: 100vh;
/deep/ .nav-bar__view {
background-image: linear-gradient(#84A73F, #D8FF8F);
}
}
.center image {
position: absolute;
left: 0;
top: 0;
width: 710rpx;
height: 316rpx;
border-radius: 12rpx;
.content {
padding: 28rpx 13rpx;
}
.info {
position: relative;
width: 100%;
height: 290rpx;
&-bg {
width: 100%;
height: 100%;
}
.center .user-money {
&-content {
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 9;
color: white;
padding-left: 50rpx;
top: 0;
left: 0;
width: 100%;
box-sizing: border-box;
padding: 42rpx 48rpx 0 35rpx;
.title {
font-size: 36rpx;
}
color: $uni-text-color-inverse;
.money {
font-size: 40rpx;
.label {
font-size: 30rpx;
}
}
.operation {
position: absolute;
bottom: 20rpx;
left: 0rpx;
width: 100%;
display: flex;
justify-content: flex-end;
color: white;
.operation-item {
margin: 0rpx 20rpx;
.value {
margin-top: 18rpx;
font-weight: 700;
font-size: 55rpx;
}
}
//
.from-body {
padding: 40rpx 20rpx;
font-size: 28rpx;
text-align: left;
color: #333333;
}
.desc {
justify-content: space-between;
font-size: 22rpx;
margin-top: 58rpx;
}
.from-body .title {
font-size: 36rpx;
}
.btn {
border: none;
font-size: 22rpx;
color: $uni-text-color-inverse;
.money-form {
display: flex;
flex-wrap: wrap;
align-items: center;
background: #ebebeb;
border-radius: 10rpx;
margin-top: 20rpx;
&-icon {
width: 16rpx;
height: 16rpx;
margin-left: 7rpx;
}
}
}
}
.money-form .unit {
display: flex;
justify-content: flex-end;
color: $uni-color;
width: 60rpx;
}
.form {
margin-top: 30rpx;
&::v-deep .uv-border {
border: none;
&-title {
color: #000000;
font-size: 28rpx;
padding: 0 35rpx;
}
.money {
margin: 20rpx 0rpx;
}
&-item {
margin-top: 18rpx;
//
.withdrawal-statement {
padding: 0rpx 20rpx;
box-sizing: border-box;
.title {
font-size: 36rpx;
margin-bottom: 20rpx;
.unit {
color: #FF2A2A;
padding-left: 42rpx;
}
}
}
.recharge {
position: fixed;
display: flex;
justify-content: center;
align-items: center;
left: 0;
bottom: 0;
width: 750rpx;
height: 100rpx;
background: white;
.desc {
margin-top: 45rpx;
padding: 0 42rpx;
font-size: 28rpx;
&-title {
color: #000000;
}
.recharge .btn {
width: 85%;
height: 80rpx;
border-radius: 40rpx;
color: white;
text-align: center;
line-height: 80rpx;
font-size: 28rpx;
background: $uni-color;
&-content {
margin-top: 10rpx;
color: #707070;
}
}
@media all and (min-width: 961px) {
.recharge {
left: 50% !important;
transform: translateX(-50%);
}
.tools {
margin-top: 166rpx;
padding: 0 69rpx;
.btn {
width: 100%;
padding: 29rpx 0;
color: $uni-text-color-inverse;
font-size: 28rpx;
line-height: 40rpx;
border-radius: 49rpx;
border: none;
background-image: linear-gradient(to right, #84A73F, #D8FF8F);
}
}
</style>

BIN
pages_order/static/withdraw/bg.png View File

Before After
Width: 724  |  Height: 290  |  Size: 24 KiB

Loading…
Cancel
Save