修改超粉功能
This commit is contained in:
parent
f563b24ca3
commit
7c120552db
|
@ -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",
|
||||||
|
|
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue