优化获取微信和提交微信组件的交互

This commit is contained in:
yezian 2024-04-25 15:49:04 +08:00
parent 143ce77b58
commit d16df073a9
2 changed files with 10 additions and 2 deletions

View File

@ -206,7 +206,10 @@ export default function GetWechatModal({ visible, setVisible, streamerMid }) {
>
<TouchableOpacity
activeOpacity={1}
onPress={() => setVisible(false)}
onPress={() => {
setVisible(false);
setIsMoneyEnough(true);
}}
style={{
backgroundColor: "#00000080",
...tailwind("flex-1 justify-center items-center"),
@ -309,6 +312,7 @@ export default function GetWechatModal({ visible, setVisible, streamerMid }) {
onPress={() => {
navigation.navigate("Wallet");
setVisible(false);
setIsMoneyEnough(true);
}}
style={tailwind(
"px-4 py-2 bg-[#FF669E] rounded-full items-center justify-center"

View File

@ -240,7 +240,10 @@ export default function SubmitWechatModal({
>
<TouchableOpacity
activeOpacity={1}
onPress={() => setVisible(false)}
onPress={() => {
setVisible(false);
setIsMoneyEnough(true);
}}
style={{
backgroundColor: "#00000080",
...tailwind("flex flex-1 justify-center items-center"),
@ -359,6 +362,7 @@ export default function SubmitWechatModal({
onPress={() => {
navigation.navigate("Wallet");
setVisible(false);
setIsMoneyEnough(true);
}}
style={tailwind(
"px-4 py-2 bg-[#FF669E] rounded-full items-center justify-center"