fix(custom): 修复bbc售后列表点击店铺icon跳转逻辑

This commit is contained in:
lukaijie
2025-10-30 18:24:17 +08:00
parent 5646915bf2
commit f8f4c3cfc4

View File

@@ -38,9 +38,15 @@ function CompTradeItem(props) {
const onViewStorePage = (e) => {
if (!VERSION_STANDARD) {
e.stopPropagation()
Taro.navigateTo({
url: `/subpages/store/index?id=${distributorId}`
})
if (distributorId == 0) {
Taro.redirectTo({
url: '/pages/index'
})
} else {
Taro.navigateTo({
url: `/subpages/store/index?id=${distributorId}`
})
}
}
}
@@ -52,7 +58,7 @@ function CompTradeItem(props) {
<View className='comp-tradeitem'>
<View className='trade-item-hd' onClick={onViewTradeDetail}>
<View>
<View className='shop-info' onClick={onViewStorePage}>
<View className='shop-info' onClick={onViewStorePage}>
<SpImage src={distributorInfo?.logo} width={100} height={100} />
<View className='shop-name'>
{distributorInfo?.name}
@@ -75,13 +81,15 @@ function CompTradeItem(props) {
<View className='trade-total'>
<View className='delivery'></View>
{
orderClass == 'pointsmall' && <View>
{orderClass == 'pointsmall' && (
<View>
<Text className='num'>{`${totalNum}`}</Text>
<Text className='label'>{pointName}</Text>
<Text className='point-value' style='font-size: 20px;'>{point}</Text>
<Text className='point-value' style='font-size: 20px;'>
{point}
</Text>
</View>
}
)}
{orderClass == 'normal' && (
<View>
<Text className='num'>{`${totalNum}`}</Text>