修复超粉付费问题

This commit is contained in:
al 2025-01-16 12:36:04 +08:00
parent be37b0c99d
commit 682a2e9a49
1 changed files with 3 additions and 4 deletions

View File

@ -48,10 +48,10 @@ const ListItemWithCheckbox = ({
onPress={(e) => {
e.stopPropagation();
const newSuperSinglesContr = [...superSinglesContr];
newSuperSinglesContr[index].enable = false;
newSuperSinglesContr[index].enable =
!superSingleCheckeds.includes(index);
// newSuperSinglesContr[index].price = "0";
newSuperSinglesContr[index].wechatFree = false;
// newSuperSinglesContr[index].wechatFree = false;
setSuperSinglesContr(newSuperSinglesContr);
if (superSingleCheckeds.includes(index)) {
setSuperSingleCheckeds(() => {
@ -317,7 +317,6 @@ export default function SpacePaymentSetting({ navigation, route }) {
if (isPrice) return;
if (isSubmitting) return;
const superfan_price_list = superSinglesContr.map((it, index) => ({
period: it.key,
enable: it.enable ? 1 : 0,