fix: 余额充值页面添加小数点支持,数据格式重构

pull/8/head
kele 2023-01-10 18:09:40 +08:00
parent 09c72942c9
commit 9df2d4320b
1 changed files with 7 additions and 5 deletions

View File

@ -24,7 +24,7 @@
<view class="unit"></view> <view class="unit"></view>
<uni-easyinput <uni-easyinput
v-model="state.recharge_money" v-model="state.recharge_money"
type="number" type="digit"
placeholder="请输入充值金额" placeholder="请输入充值金额"
:inputBorder="false" :inputBorder="false"
> >
@ -75,10 +75,12 @@
state.recharge_money = e; state.recharge_money = e;
} }
async function getRechargeTabs() { async function getRechargeTabs() {
const list = await sheep.$api.trade.rechargeRules(); const res = await sheep.$api.trade.rechargeRules();
state.data = list; if (res.error === 0) {
state.data.status = list.status; state.data = res.data;
state.faceValueList = list.quick_amounts; state.data.status = res.data.status;
state.faceValueList = res.data.quick_amounts;
}
} }
function onChange(e) { function onChange(e) {