修复编辑空间文案兼容性问题;更新版本号到1.4.5
This commit is contained in:
parent
968ff19fbf
commit
a9b694bce8
2
app.json
2
app.json
|
@ -2,7 +2,7 @@
|
||||||
"expo": {
|
"expo": {
|
||||||
"name": "铁粉空间",
|
"name": "铁粉空间",
|
||||||
"slug": "ironfans",
|
"slug": "ironfans",
|
||||||
"version": "1.4.4",
|
"version": "1.4.5",
|
||||||
"orientation": "portrait",
|
"orientation": "portrait",
|
||||||
"icon": "./assets/icon.png",
|
"icon": "./assets/icon.png",
|
||||||
"splash": {
|
"splash": {
|
||||||
|
|
|
@ -27,7 +27,11 @@ export default function EditSpacePost({ navigation, route }) {
|
||||||
const tailwind = useTailwind();
|
const tailwind = useTailwind();
|
||||||
const insets = useSafeAreaInsets();
|
const insets = useSafeAreaInsets();
|
||||||
|
|
||||||
const [content, setContent] = useState(data.text);
|
const [content, setContent] = useState(
|
||||||
|
data?.paid_text
|
||||||
|
? data.text.slice(0, data.text.length - data.paid_text.length)
|
||||||
|
: data.text
|
||||||
|
);
|
||||||
const [isSubmitting, setIsSubmitting] = useState(false);
|
const [isSubmitting, setIsSubmitting] = useState(false);
|
||||||
|
|
||||||
//付费设置弹窗是否展示
|
//付费设置弹窗是否展示
|
||||||
|
@ -62,7 +66,9 @@ export default function EditSpacePost({ navigation, route }) {
|
||||||
);
|
);
|
||||||
|
|
||||||
//付费文案内容
|
//付费文案内容
|
||||||
const [paidText, setPaidText] = useState(data?.paid_text);
|
const [paidText, setPaidText] = useState(
|
||||||
|
data?.paid_text ? data.paid_text.substring(1) : data?.paid_text
|
||||||
|
);
|
||||||
|
|
||||||
//保存付费设置
|
//保存付费设置
|
||||||
const handleSavePaymentSetting = () => {
|
const handleSavePaymentSetting = () => {
|
||||||
|
|
|
@ -142,7 +142,7 @@ export default function PostPurchasers({ navigation, route }) {
|
||||||
renderItem={renderItem}
|
renderItem={renderItem}
|
||||||
initialNumToRender={12}
|
initialNumToRender={12}
|
||||||
onEndReached={() => getData()}
|
onEndReached={() => getData()}
|
||||||
ListEmptyComponent={<Empty type="friendship" />}
|
ListEmptyComponent={<Empty type="nodata" />}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|
Loading…
Reference in New Issue