feat: “会员优选”商品卡片点击不再跳转到商品详情页

This commit is contained in:
2026-06-05 16:37:01 +08:00
parent e271764292
commit 70cbccbb52
2 changed files with 12 additions and 3 deletions
+2 -1
View File
@@ -12,4 +12,5 @@
- 我的社员ui重构 - 我的社员ui重构
- 粉色卡默认false所有页面统一调整 - 粉色卡默认false所有页面统一调整
- 选品广场结算返回到我的店铺页 - 选品广场结算返回到我的店铺页
- 点底部 tab 的“AI店铺”时没开通就不跳转并提示 - 点底部 tab 的`AI店铺`时没开通就不跳转并提示
- `会员优选`商品卡片点击不再跳转到商品详情页
+10 -2
View File
@@ -9,7 +9,7 @@
> >
<view <view
class="shrink" class="shrink"
@click="utils.go('/pages/goods/info', { id: props.data.id })" @click="onCardClick"
:class="{ :class="{
goodsImg1: props.type == 1, goodsImg1: props.type == 1,
goodsImg2: props.type == 2, goodsImg2: props.type == 2,
@@ -22,7 +22,7 @@
mode="aspectFill" mode="aspectFill"
/> />
</view> </view>
<view class="goodItem" :class="{itemBg: props.type == 1}" @click="utils.go('/pages/goods/info', { id: props.data.id })"> <view class="goodItem" :class="{ itemBg: props.type == 1 }" @click="onCardClick">
<view class="wrap"> <view class="wrap">
<view <view
class="title " class="title "
@@ -124,6 +124,14 @@
}, },
); );
let showSelectSku = ref(false); let showSelectSku = ref(false);
const goDetail = () => {
sheep.$router.go('/pages/goods/info', { id: props.data.id });
};
const onCardClick = () => {
if (props.memberPreferred) return;
goDetail();
};
const buyMemberGoods = () => { const buyMemberGoods = () => {
uni.navigateTo({ uni.navigateTo({
url: `/pages/AI/giftOrder?id=${props.data.id}`, url: `/pages/AI/giftOrder?id=${props.data.id}`,