Files
WanderQ-MiniAPP2.0/apps/miniprogram/src/pages/contact/index.tsx
2026-07-23 18:45:48 +08:00

36 lines
1.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Button, Text, View } from "@tarojs/components";
import Taro from "@tarojs/taro";
const SUPPORT_PHONE = "18786174929";
const CONTACT_WAY_CONFIG_ID = "5f8a2d2756e2c69776c186ef28fc48ee";
const CONTACT_WAY_STYLE = 1;
export default function ContactPage() {
const callSupport = () => {
void Taro.makePhoneCall({ phoneNumber: SUPPORT_PHONE });
};
return (
<View className="page contact-page">
<View className="contact-hero">
<Text className="eyebrow"></Text>
<Text className="contact-title"></Text>
</View>
{CONTACT_WAY_CONFIG_ID ? (
<View className="contact-plugin-card">
<Text className="contact-card-title"></Text>
<Text className="contact-card-note"></Text>
<cell plugid={CONTACT_WAY_CONFIG_ID} styleType={CONTACT_WAY_STYLE} />
</View>
) : (
<View className="contact-plugin-card contact-fallback">
<Text className="contact-card-title"></Text>
<Text className="contact-card-note"></Text>
<Button className="phone-cta" onClick={callSupport}> {SUPPORT_PHONE}</Button>
</View>
)}
<Button className="contact-back" onClick={() => void Taro.navigateBack()}></Button>
</View>
);
}