Commit eb6a9505 by 姜雷

Merge branch 'develop' into test

parents c348a3b4 aca9ab0b
...@@ -62,9 +62,11 @@ export const AccountComponent = () => { ...@@ -62,9 +62,11 @@ export const AccountComponent = () => {
}); });
return; return;
} }
console.log('in recharge'); let preAimiItem = filterBeanList.find(
let preAimiItem = filterBeanList.find(item => item.serviceId === '0'); item => item.serviceId === BeanType.aimi,
);
let preAimi = preAimiItem ? preAimiItem.money : 0; let preAimi = preAimiItem ? preAimiItem.money : 0;
console.log('in recharge: preAimi', preAimiItem, preAimi);
rechargeOrder({ rechargeOrder({
id: payConfigId, id: payConfigId,
customerId: userinfo.customerId, customerId: userinfo.customerId,
...@@ -99,10 +101,10 @@ export const AccountComponent = () => { ...@@ -99,10 +101,10 @@ export const AccountComponent = () => {
userinfo.customerPhone, userinfo.customerPhone,
) )
.then(beanAccount => { .then(beanAccount => {
console.log(beanAccount);
let aimiItem = beanAccount.find( let aimiItem = beanAccount.find(
item => item.serviceId === '0', item => item.serviceId === '0',
); );
console.log(aimiItem, preAimi);
if (aimiItem && aimiItem.money === preAimi) { if (aimiItem && aimiItem.money === preAimi) {
Taro.showModal({ Taro.showModal({
title: '提示', title: '提示',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment