小程序修改

This commit is contained in:
2026-07-12 19:44:36 +08:00
parent 3b4833b51a
commit e2dfb08de3
45 changed files with 2028 additions and 347 deletions
@@ -1,46 +1,30 @@
import { View, Text } from '@tarojs/components';
import Taro from '@tarojs/taro';
import { CUSTOMER_SERVICE_PHONE } from '@dukang/shared-types';
import PageShell from '../../components/PageShell';
import SubPageHeader from '../../components/SubPageHeader';
import { toast } from '../../lib/api';
const QUICK = ['如何核销权益?', '订单多久发货?', '如何修改地址?', '联系人工客服'];
const DIAL_PHONE = CUSTOMER_SERVICE_PHONE.replace(/-/g, '');
export default function CustomerServicePage() {
return (
<PageShell variant="sub" className="cs-page">
<SubPageHeader title="联系客服" />
<View className="sub-page-body inset-page">
<View className="cs-bubble cs-bubble--bot">
<Text></Text>
<View className="sub-page-body inset-page cs-body">
<Text className="cs-title">线</Text>
<Text className="cs-phone">{CUSTOMER_SERVICE_PHONE}</Text>
<Text className="cs-hint">9:00 - 21:00</Text>
<View
className="cs-call-btn"
onClick={() => {
Taro.makePhoneCall({ phoneNumber: DIAL_PHONE }).catch(() =>
toast('无法拨打电话'),
);
}}
>
<Text></Text>
</View>
<View className="cs-bubble cs-bubble--user">
<Text></Text>
</View>
<View className="cs-bubble cs-bubble--bot">
<Text>
</Text>
</View>
</View>
<View className="cs-quick">
{QUICK.map((q) => (
<Text
key={q}
className="cs-quick-item"
onClick={() => {
if (q === '联系人工客服') {
Taro.makePhoneCall({ phoneNumber: '4008000000' }).catch(() =>
toast('客服热线后续配置'),
);
} else {
toast(q);
}
}}
>
{q}
</Text>
))}
</View>
</PageShell>
);