fix(custom): 修复若干bug
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-06-06 21:12:44 +08:00
parent f2af8198a9
commit 5c45854e2c
2 changed files with 9 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "jdt-user",
"version": "4.0.0",
"version": "4.0.1",
"private": true,
"description": "",
"templateInfo": {
@@ -9,7 +9,7 @@
"css": "sass"
},
"taroConfig": {
"version": "4.0.0"
"version": "4.0.1"
},
"scripts": {
"build:weapp": "taro build --type weapp",
@@ -118,5 +118,6 @@
"vue-loader": "^17.3.1",
"weapp-tailwindcss": "^3.2.0",
"webpack": "^5.89.0"
}
},
"packageManager": "pnpm@9.1.4+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0"
}

View File

@@ -8,6 +8,7 @@ const user_info = ref<any>({});
const mer_info = ref<any>({});
const row = ref(0);
const str = ref(0);
const formRef = ref();
@@ -48,6 +49,7 @@ const getData = async () => {
data.value.push(...res.data.data);
pagination.value.total = res.data.total;
row.value = res.data.integral || 0;
str.value = res.data.number || 0;
} catch (e) {
throw e;
}
@@ -79,7 +81,6 @@ const rules = ref({
{
message: '请填写提现积分',
validator: (value, _) => {
console.log(value);
if (!value) {
return false;
} else {
@@ -147,9 +148,7 @@ Taro.useReachBottom(() => {
</view>
<view class="line"></view>
<view class="">
<view class="font-bold text-[35px]">{{
(row / 100 - (row / 100) * 0.138).toFixed(2)
}}</view>
<view class="font-bold text-[35px]">{{ str }}</view>
<view class="text-[25px] mt-2">实际到账</view>
</view>
</view>
@@ -166,12 +165,12 @@ Taro.useReachBottom(() => {
<view class="formCard">
<view class="flex justify-between mb-[25px]">
<text>积分提现</text>
<view class="flex items-center" @click="visible1 = true">
<!-- <view class="flex items-center" @click="visible1 = true">
<image
class="w-[26px] h-[26px]"
src="http://p1.meituan.net/csc/5437a800f4ed4a49f14984494c1c3077994.png"></image>
<view class="text-[#EC4443] text-[26px] ml-1">提现疑问</view>
</view>
</view> -->
</view>
<nut-form ref="formRef" :model-value="basicData" :rules="rules">
<nut-form-item prop="num">