修复编辑空间文案兼容性问题;更新版本号到1.4.5
This commit is contained in:
parent
968ff19fbf
commit
a9b694bce8
2
app.json
2
app.json
|
@ -2,7 +2,7 @@
|
|||
"expo": {
|
||||
"name": "铁粉空间",
|
||||
"slug": "ironfans",
|
||||
"version": "1.4.4",
|
||||
"version": "1.4.5",
|
||||
"orientation": "portrait",
|
||||
"icon": "./assets/icon.png",
|
||||
"splash": {
|
||||
|
|
|
@ -27,7 +27,11 @@ export default function EditSpacePost({ navigation, route }) {
|
|||
const tailwind = useTailwind();
|
||||
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);
|
||||
|
||||
//付费设置弹窗是否展示
|
||||
|
@ -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 = () => {
|
||||
|
|
|
@ -142,7 +142,7 @@ export default function PostPurchasers({ navigation, route }) {
|
|||
renderItem={renderItem}
|
||||
initialNumToRender={12}
|
||||
onEndReached={() => getData()}
|
||||
ListEmptyComponent={<Empty type="friendship" />}
|
||||
ListEmptyComponent={<Empty type="nodata" />}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
|
|
Loading…
Reference in New Issue