feat(dealer): 更新分销中心为桂乐淘分享中心
- 将导航栏标题从"分销中心"和"推广二维码"统一改为"桂乐淘分享中心" - 修改分享页面文案从"我的邀请小程序码"为"我的分享码" - 更新分享描述文案为"与好友共享福利 一起省、一起赚" - 将团队邀请文案改为"桂乐淘伙伴计划" - 自购省 | 分享赚 | 好友惠 - 在用户票据页面添加日期格式化函数 - 调整票据详情显示顺序和字段内容 - 移除门店名称显示并注释相关代码 - 统一用户组件中的中心名称为"桂乐淘分享中心" - 更新水票列表标题显示格式
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: '分销中心'
|
||||
navigationBarTitleText: '桂乐淘分享中心'
|
||||
})
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: '推广二维码'
|
||||
navigationBarTitleText: '桂乐淘分享中心'
|
||||
})
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
) : null}
|
||||
<View className="mt-1">
|
||||
<Text className="text-xs text-gray-500">下单时间:{formatDateTime(item.createTime)}</Text>
|
||||
</View>
|
||||
{/*{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>
|
||||
|
||||
@@ -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={() => {
|
||||
|
||||
Reference in New Issue
Block a user