修改超粉功能

This commit is contained in:
al 2024-11-05 20:07:14 +08:00
parent f563b24ca3
commit 7c120552db
2 changed files with 9 additions and 10 deletions

View File

@ -131,11 +131,11 @@ export default function CreateProfile() {
ironFanPrice: "", ironFanPrice: "",
openSuper: true, openSuper: true,
superSingle: [ superSingle: [
{ enable: false, price: 0, wechatFree: false }, { enable: true, price: 0, wechatFree: true },
{ enable: false, price: 0, wechatFree: false }, { enable: false, price: 0, wechatFree: true },
{ enable: false, price: 0, wechatFree: false }, { enable: false, price: 0, wechatFree: true },
{ enable: false, price: 0, wechatFree: false }, { enable: false, price: 0, wechatFree: true },
{ enable: false, price: 0, wechatFree: false }, { enable: false, price: 0, wechatFree: true },
], ],
spaceIntro: "", spaceIntro: "",
}); });
@ -143,7 +143,7 @@ export default function CreateProfile() {
const [tiefenPriceAble, setTiefenPriceAble] = useState(false); const [tiefenPriceAble, setTiefenPriceAble] = useState(false);
const [isSubmitting, setIsSubmitting] = useState(false); const [isSubmitting, setIsSubmitting] = useState(false);
// const [superSingleCheckeds, setSuperSingleCheckeds] = useState([]); // const [superSingleCheckeds, setSuperSingleCheckeds] = useState([]);
const [superSingleChecked, setSuperSingleChecked] = useState(null); const [superSingleChecked, setSuperSingleChecked] = useState(0);
const listItemWithCheckboxMemo = useMemo(() => { const listItemWithCheckboxMemo = useMemo(() => {
return superSingles.map((item) => ( return superSingles.map((item) => (
@ -318,6 +318,7 @@ export default function CreateProfile() {
// //
// superfan_price_list, // superfan_price_list,
}; };
debugger;
const _data = await requireAPI( const _data = await requireAPI(
"POST", "POST",
"/api/zone/create", "/api/zone/create",

View File

@ -365,10 +365,8 @@ export default function spacePaymentSetting() {
is_superfanship_enabled: openSuper ? 1 : 0, is_superfanship_enabled: openSuper ? 1 : 0,
// //
superfanship_price: superfanObj.price, superfanship_price: superfanObj.price,
superfanship_valid_period: openSuper ? superfanObj.period : 0, superfanship_valid_period: superfanObj.period,
is_superfanship_give_wechat: openSuper is_superfanship_give_wechat: superfanObj.is_superfanship_give_wechat,
? superfanObj.is_superfanship_give_wechat
: 0,
// //
// superfan_price_list, // superfan_price_list,
}; };