feat(dealer): 更新分销中心为桂乐淘分享中心

- 将导航栏标题从"分销中心"和"推广二维码"统一改为"桂乐淘分享中心"
- 修改分享页面文案从"我的邀请小程序码"为"我的分享码"
- 更新分享描述文案为"与好友共享福利 一起省、一起赚"
- 将团队邀请文案改为"桂乐淘伙伴计划"
- 自购省 | 分享赚 | 好友惠
- 在用户票据页面添加日期格式化函数
- 调整票据详情显示顺序和字段内容
- 移除门店名称显示并注释相关代码
- 统一用户组件中的中心名称为"桂乐淘分享中心"
- 更新水票列表标题显示格式
This commit is contained in:
2026-02-07 12:22:43 +08:00
parent f15933fc82
commit 8751be5fb4
6 changed files with 26 additions and 20 deletions

View File

@@ -1,3 +1,3 @@
export default definePageConfig({
navigationBarTitleText: '分销中心'
navigationBarTitleText: '桂乐淘分享中心'
})

View File

@@ -1,3 +1,3 @@
export default definePageConfig({
navigationBarTitleText: '推广二维码'
navigationBarTitleText: '桂乐淘分享中心'
})

View File

@@ -271,9 +271,9 @@ const DealerQrcode: React.FC = () => {
}}></View>
<View className="relative z-10 flex flex-col">
<Text className="text-2xl font-bold mb-2 text-white"></Text>
<Text className="text-2xl font-bold mb-2 text-white"></Text>
<Text className="text-white text-opacity-80">
</Text>
</View>
</View>
@@ -325,10 +325,10 @@ const DealerQrcode: React.FC = () => {
)}
<View className="text-lg font-semibold text-gray-800 mb-2">
</View>
<View className="text-sm text-gray-500 mb-4">
| |
</View>

View File

@@ -51,7 +51,7 @@ const IsDealer = () => {
<View style={{display: 'inline-flex', alignItems: 'center'}}>
<Reward className={'text-orange-100 '} size={16}/>
<Text style={{fontSize: '16px'}}
className={'pl-3 text-orange-100 font-medium'}>{config?.vipText || '门店中心'}</Text>
className={'pl-3 text-orange-100 font-medium'}>{config?.vipText || '桂乐淘分享中心'}</Text>
{/*<Text className={'text-white opacity-80 pl-3'}>门店核销</Text>*/}
</View>
}
@@ -75,7 +75,7 @@ const IsDealer = () => {
title={
<View style={{display: 'inline-flex', alignItems: 'center'}}>
<Reward className={'text-orange-100 '} size={16}/>
<Text style={{fontSize: '16px'}} className={'pl-3 text-orange-100 font-medium'}>{config?.vipText || '门店中心'}</Text>
<Text style={{fontSize: '16px'}} className={'pl-3 text-orange-100 font-medium'}>{config?.vipText || '桂乐淘分享中心'}</Text>
<Text className={'text-white opacity-80 pl-3'}>{config?.vipComments || ''}</Text>
</View>
}

View File

@@ -256,6 +256,12 @@ const UserTicketList = () => {
return d.isValid() ? d.format('YYYY年MM月DD日 HH:mm:ss') : v;
};
const formatDate = (v?: string) => {
if (!v) return '-';
const d = dayjs(v);
return d.isValid() ? d.format('YYYY年MM月DD日') : v;
};
const getTicketOrderStatusMeta = (order: GltTicketOrder) => {
if (order.status === 1) return { text: '已冻结', type: 'warning' as const };
@@ -471,15 +477,12 @@ const UserTicketList = () => {
<Text className="text-base font-semibold text-gray-900">
{item.userTicketId ?? '-'}
</Text>
<View className="mt-1">
<Text className="text-xs text-gray-400">{formatDateTime(item.createTime)}</Text>
</View>
<View className="mt-1">
<Text className="text-xs text-gray-400">{formatDateTime(item.sendTime)}</Text>
</View>
<View className="mt-1">
<Text className="text-xs text-gray-500">{item.totalNum ?? 0}</Text>
</View>
<View className="mt-1">
<Text className="text-xs text-gray-500">{formatDate(item.sendTime)}</Text>
</View>
</View>
{(() => {
const meta = getTicketOrderStatusMeta(item);
@@ -492,11 +495,14 @@ const UserTicketList = () => {
<View className="mt-1 text-xs text-gray-500">
<Text>{item.address || '-'}</Text>
</View>
{item.storeName ? (
<View className="mt-1 text-xs text-gray-500">
<Text>{item.storeName}</Text>
<View className="mt-1">
<Text className="text-xs text-gray-500">{formatDateTime(item.createTime)}</Text>
</View>
) : null}
{/*{item.storeName ? (*/}
{/* <View className="mt-1 text-xs text-gray-500">*/}
{/* <Text>门店:{item.storeName}</Text>*/}
{/* </View>*/}
{/*) : null}*/}
{item.sendStartTime ? (
<View className="mt-1 text-xs text-gray-500">
<Text>{formatDateTime(item.sendStartTime)}</Text>

View File

@@ -509,7 +509,7 @@ const OrderConfirm = () => {
return (
<Cell
key={t.id}
title={<Text className={active ? 'text-green-600' : ''}>{t.templateName || '水票'}</Text>}
title={<Text className={active ? 'text-green-600' : ''}> {t.id}</Text>}
description={t.orderNo ? `来源订单:${t.orderNo}` : ''}
extra={<Text className="text-gray-700"> {t.availableQty ?? 0}</Text>}
onClick={() => {