feat(custom): \!
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-09-03 22:17:38 +08:00
parent d57f9cc53e
commit 962d7a2b19
16 changed files with 287 additions and 314 deletions

View File

@@ -1,4 +1,4 @@
export default definePageConfig({
navigationBarTitleText: '收益提现',
navigationBarTitleText: '余额提现',
enablePullDownRefresh: true,
});

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import {ref, h} from 'vue';
import {ref} from 'vue';
import Taro from '@tarojs/taro';
import {getWithdrawList, addWithdraw} from '@/api/admin';
@@ -81,31 +81,19 @@ const rules = ref({
{
message: '请填写提现积分',
validator: (value, _) => {
if (!value) {
return false;
} else {
return true;
}
return value;
},
},
{
message: '提现积分最低为100',
validator: (value, _) => {
if (Number(value) < 100) {
return false;
} else {
return true;
}
return Number(value) >= 100;
},
},
{
message: '提现积分不能大于可提现积分',
validator: (value, _) => {
if (Number(value) > row.value) {
return false;
} else {
return true;
}
return Number(value) <= row.value;
},
},
],
@@ -144,7 +132,7 @@ Taro.useReachBottom(() => {
<view class="container">
<view class="">
<view class="font-bold text-[35px]">{{ row }}</view>
<view class="text-[25px] mt-2">可提现积分</view>
<view class="text-[25px] mt-2">可提现余额</view>
</view>
<view class="line"></view>
<view class="">
@@ -164,7 +152,7 @@ Taro.useReachBottom(() => {
</view>
<view class="formCard">
<view class="flex justify-between mb-[25px]">
<text>积分提现</text>
<text>余额提现</text>
<!-- <view class="flex items-center" @click="visible1 = true">
<image
class="w-[26px] h-[26px]"
@@ -177,7 +165,7 @@ Taro.useReachBottom(() => {
<nut-input
v-model="basicData.num"
class="nut-input-text"
placeholder="请输入提现积分"
placeholder="请输入提现余额"
type="text">
<template #right>
<text
@@ -221,7 +209,7 @@ Taro.useReachBottom(() => {
</view>
<view>
<view class="mt-3 mb-3 text-[35px]">{{ item.number }}</view>
<view class="text-[25px] mb-1">提现积分{{ item.integral }}</view>
<view class="text-[25px] mb-1">提现金额{{ item.integral }}</view>
<view class="text-[25px] mb-1"
>信息服务费{{ item.commission }}</view
>