From 0aa47cb0e59eb01d4d35c6fd8254bb6b0163f65f Mon Sep 17 00:00:00 2001 From: czm <2192718639@qq.com> Date: Wed, 29 Mar 2023 11:16:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(ID1001619=E6=94=B6=E6=AC=BE?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=96=B0=E5=BB=BA=E6=94=B6=E6=AC=BE=E6=97=B6?= =?UTF-8?q?=E6=8A=A5=E9=94=99):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/addCollection/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/addCollection/index.tsx b/src/pages/addCollection/index.tsx index 4154ae4..3e64ef0 100644 --- a/src/pages/addCollection/index.tsx +++ b/src/pages/addCollection/index.tsx @@ -2,6 +2,7 @@ import { Button, Input, Textarea, View } from '@tarojs/components' import Taro, { useDidShow } from '@tarojs/taro' import { useCallback, useEffect, useMemo, useRef, useState } from 'react' import classnames from 'classnames' +import Big from 'big.js' import styles from './index.module.scss' import Form from './components/form' import { @@ -128,7 +129,7 @@ const AddCollection = () => { const query = { payment_credential_url: picUrl.current, purchaser_id: Query.purchaser_id, - receipt_amount: Number(Query.money) * 100, + receipt_amount: parseFloat(new Big(Query.money).times(100)), receiving_account_id: Query.bankId, remark: TextareaValue, }